OSDN Git Service

gcc/ChangeLog:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-05-28  Paolo Bonzini  <bonzini@gnu.org>
2             Roger Sayle  <roger@eyesopen.com>
3
4         PR rtl-optimization/15649
5         Add LTGT_EXPR and improve pretty-printing of unordered
6         comparisons.
7         * c-common.c (c_common_truthvalue_conversion):
8         Handle LTGT_EXPR.
9         * c-typeck.c (build_binary_op): Likewise.
10         * dojump.c (do_jump): Likewise.
11         * expr.c (expand_expr_real_1, do_store_flag): Likewise.
12         * predict.c (tree_predict_by_opcode): Likewise.
13         * real.c (real_compare): Likewise.
14         * tree-cfg.c (verify_expr): Likewise.
15         * tree-inline.c (estimate_num_insns_1): Likewise.
16         * tree-pretty-print.c (dump_generic_node): Likewise.
17         Handle ORDERED_EXPR, UNORDERED_EXPR.
18         (op_symbol): Print unordered comparisons differently
19         than ordered ones.
20         * tree.def (LTGT_EXPR): New '<' tree code.
21         * doc/c-tree.texi (Expressions): Document floating-point
22         comparison nodes.
23
24         Fold comparisons between floating point values.
25         * fold-const.c (enum comparison_code): New, from
26         #define'd constants.  Define compcodes for unordered
27         comparisons and for invalid transformations.
28         (invert_tree_comparison): Add "honor_nans" parameter.
29         (fold_truthop): Revamp to work on floating-point types too.
30         (comparison_to_compcode): Support unordered comparisons.
31         Use new enum comparison_code.
32         (compcode_to_comparison): Likewise.
33         (combine_compcodes): New function.
34         (invert_truthvalue): Let invert_tree_comparison decide
35         whether it is valid to fold the comparison.  Fold ORDERED
36         and UNORDERED even if flag_unsafe_math_optimizations is off,
37         and the remaining even if flag_unsafe_math_optimizations
38         is off but we are under -fno-trapping-math.
39         (fold_relational_const): Integer modes do not honor NaNs.
40         
41 2004-05-28  Paul Brook  <paul@codesourcery.com>
42
43         * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
44
45 2004-05-28  Paul Brook  <paul@codesourcery.com>
46
47         * config/arm/arm.c (thumb_force_lr_save): New function.
48         (arm_get_frame_offsets, thumb_unexpanded_epilogue,
49         thumb_output_function_prologue): Use it.
50         (thumb_expand_prologue): Set lr_save_eliminated.
51
52 2004-05-28  Richard Sandiford  <rsandifo@redhat.com>
53
54         * config/mips/mips.md (extendsidi2): Tie the source and destination
55         of the register alternative.  Split it into nothing.
56
57 2004-05-28  Richard Sandiford  <rsandifo@redhat.com>
58
59         * rtl.h (skip_consecutive_labels): Declare.
60         * emit-rtl.c (skip_consecutive_labels): New function.
61         * reorg.c (relax_delay_slots, dbr_schedule): Use it.
62         * jump.c (follow_jumps): Say what null return values mean.
63
64 2004-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
65
66         PR target/13250
67         * config/sh/sh.md (rotlsi3): Use emit_move_insn.
68
69 2004-05-27  Kaz Kojima  <kkojima@gcc.gnu.org>
70
71         * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
72         libgcc-std.ver.
73         * config/sh/libgcc-std.ver: New file.
74
75 2004-05-27  Bryce McKinlay  <mckinlay@redhat.com>
76
77         * except.c: Revert change of 2004-05-26.
78         * config/i386/i386.md: Revert change of 2004-05-27.
79
80 2004-05-27  Bryce McKinlay  <mckinlay@redhat.com>
81
82         * configure.ac: Remove --enable-tree-browser option.
83         Define TREEBROWSER when ac_tree_checking is defined.
84         * configure: Rebuilt.
85
86 2004-05-27  Olivier Hainque  <hainque@act-europe.fr>
87
88         * expr.c (store_constructor): Restore sanity check on
89         the size of the type before clearing.
90
91 2004-05-27  Jan Hubicka  <jh@suse.cz>
92
93         * cfgbuild.c (control_flow_insn_p):  Notice noreturn call
94
95 2004-05-25  Paolo Bonzini  <bonzini@gnu.org>
96
97         * combine.c (gen_binary): Remove.
98         (known_cond, simplify_shift_const
99         find_split_point, combine_simplify_rtx,
100         simplify_if_then_else, simplify_set,
101         simplify_logical, expand_field_assignment,
102         extract_left_shift, force_to_mode,
103         if_then_else_cond, apply_distributive_law,
104         simplify_and_const_int, simplify_shift_const,
105         gen_lowpart_for_combine, simplify_comparison,
106         reversed_comparison): Replace with
107         simplify_gen_binary, simplify_gen_relational or
108         distribute_and_simplify_rtx.
109         (distribute_and_simplify_rtx): New function.
110         * simplify-rtx.c (simplify_binary_operation):
111         Use nonzero_bits to simplify ANDs where we are
112         turning off bits already known to be off in OP0.
113
114 2004-05-27  Alan Modra  <amodra@bigpond.net.au>
115
116         PR target/14478
117         * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
118
119 2004-05-27  Josef Zlomek  <zlomekj@suse.cz>
120
121         PR middle-end/14084
122         * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
123         to size of decl.
124
125 2004-05-26  Aldy Hernandez  <aldyh@redhat.com>
126
127         PR/14924
128         * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
129
130 2004-05-26  Roger Sayle  <roger@eyesopen.com>
131
132         * tree.h: Fix comment typo.
133
134 2004-05-27  Steven Bosscher  <stevenb@suse.de>
135
136         * gimplify.c (compare_case_labels): New function.
137         (gimplify_switch_expr): Sort case labels, and make sure the
138         last label in the label vector is the default case.
139         * tree-cfg.c (group_case_labels): New function.
140         (build_tree_cfg): Cleanup redundant labels and group case labels
141         before creating edges.
142         (cleanup_dead_labels): Handle GOTO_EXPRs.
143         (find_case_label_for_value): Use a binary search to find the
144         case label for the given value.
145         * tree-gimple.c: Mention that labels are sorted, and that the
146         last label must be the default.
147
148 2004-05-27  Jan Hubicka  <jh@suse.cz>
149
150         * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
151
152 2004-05-27  Jan Hubicka  <jh@suse.cz>
153
154         * i386.md (UNSPECV_EH_RETURN): Kill.
155         (eh_return): Use jump_insn.
156         (eh_return_si, eh_return_di): Change pattern to jump instruction.
157
158 2004-05-26  Jan Hubicka  <jh@suse.cz>
159
160         * cfgcleanup.c (try_forward_edges):  Do not check loop structure when
161         not loop optimizing.
162
163 2004-05-26  Jan Hubicka  <jh@suse.cz>
164
165         * except.c (can_throw_internal):  Notice RESX instructions.
166
167 2004-05-26  Eric Botcazou  <ebotcazou@act-europe.fr>
168
169         * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
170         of the two sizes to assemble_integer.
171
172 2004-05-25  Paul Brook  <paul@codesourcery.com>
173
174         * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
175         pointless #ifdef.
176
177 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
178
179         * Makefile.in (top_builddir): Define to .
180
181 2004-05-25  Alexandre Oliva  <aoliva@redhat.com>
182
183         * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
184         top-level detects, except when in-tree ld is being cross-built.
185         (gcc_cv_as): Likewise for as.  Use AS_FOR_TARGET otherwise, and
186         then AS only if target is host.
187         * configure: Rebuilt.
188
189 2004-05-25  Vladimir Makarov  <vmakarov@redhat.com>
190
191         * global.c (global_alloc): Call make_accurate_live_analysis.
192         (record_one_conflict): Remove dead code.
193         (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
194         (bb_info): New structure.
195         (BB_INFO, BB_INFO_BY_INDEX): New macros.
196         (allocate_bb_info, free_bb_info, mark_reg_change,
197         calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
198         modify_bb_reg_pav, calculate_reg_pav,
199         make_accurate_live_analysis): New functions.
200         
201 2004-05-25  Devang Patel  <dpatel@apple.com>
202
203         * alias.c (init_alias_analysis): Use ggc_calloc instead of
204         xrealloc.
205         (end_alias_analysis): Use ggc_free instead fo free.
206         
207 2004-05-25  Andrew Pinski  <pinskia@physics.uc.edu>
208
209         PR target/15546
210         * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
211         as needed to be outputted.
212
213 2004-05-25  Jan Hubicka  <jh@suse.cz>
214
215         * builtins.def (__builtin_expect):  Mark the function as const&nothrow.
216
217 2004-05-25  Ayal Zaks  <zaks@il.ibm.com>
218         Mostafa Hagog  <mustafa@il.ibm.com>
219
220         * Makefile.in (modulo-sched.o, ddg.o): New.
221         * ddg.h, ddg.c, modulo-sched.c: New files.
222         * cfglayout.c (duplicate_insn_chain): Remove "static" and push
223         internals to "dupicate_insn".
224         (duplicate_insn): New function.
225         * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
226         declarations.
227         * common.opt (fmodulo-sched): New flag.
228         * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
229         Remove static and forward declaration.
230         (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
231         functions.
232         * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
233         df_bb_regno_last_def_find, df_find_def, df_reg_used): New
234         declarations.
235         * flags.h (flag_modulo_sched): New flag.
236         * opts.c (common_handle_option): Handle modulo-sched flag.
237         * params.def (max-sms-loop-number, sms-max-ii-factor,
238         sms-dfa-history, sms-loop-average-count-threshold): New
239         parameters.
240         * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
241         SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
242         parameters.
243         * passes.c ("sms", "sms-vcg"): New dumps.
244         (rest_of_handle_sched): Call sms_schedule.
245         * rtl.h (sms_schedule): New declaration.
246         * timevar.def (TV_SMS): New.
247         * toplev.c (flag_modulo_sched): Initialize.
248         (f_options): Handle -fmodulo-sched option.
249         * docs/invoke.texi: Document -fmodulo-sched & -dm options.
250         * docs/passes.texi: Document new SMS pass.
251
252 2004-05-25  Paolo Bonzini  <bonzini@gnu.org>
253
254         * Makefile.in (OBJS): Add rtlhooks.o.
255         (rtlanal.o): Depend on function.h.
256         (cse.o): Depend on rtlhooks-def.h.
257         (combine.o): Depend on rtlhooks-def.h.
258         (rtlhooks.o): New rule.
259         * combine.c: Include rtlhooks-def.h.
260         (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
261         num_sign_bit_copies, cached_num_sign_bit_copies,
262         num_sign_bit_copies1): Move most of the code to rtlanal.c.
263         (reg_nonzero_bits_for_combine,
264         reg_num_sign_bit_copies_for_combine): New functions holding
265         the remnants of the above.
266         (combine_rtl_hooks): New.
267         (combine_instructions): Set rtl_hooks instead of gen_lowpart.
268         * cse.c: Include rtlhooks-def.h.
269         (cse_rtl_hooks): New.
270         (cse_main): Set rtl_hooks instead of gen_lowpart.
271         * emit-rtl.c (gen_lowpart): Remove.
272         (gen_lowpart_general): Move to rtlhooks.c.
273         * rtl.h (nonzero_bits, num_sign_bit_copies,
274         struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
275         (gen_lowpart_general): Remove.
276         (gen_lowpart): Temporarily redefine as a macro.
277         * rtlanal.c: Include function.h.
278         (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
279         num_sign_bit_copies, cached_num_sign_bit_copies,
280         num_sign_bit_copies1): New, from combine.c.
281         * rtlhooks.c: New file. 
282
283 2004-05-25  Svein E. Seldal  <Svein.Seldal@solidas.com>
284
285         * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
286         to support 32-bit -mint8 mode.
287
288         * doc/invoke.texi (-mint8): Added documentation for the -mint8
289         option in the AVR architecture. 
290
291 2004-05-24  Mike Stump  <mrs@apple.com>
292
293         * doc/install.texi: Document that dejagnu 1.4.4 is required.
294
295 2004-05-24  Joseph S. Myers  <jsm@polyomino.org.uk>
296
297         * intl.h (open_quote, close_quote): New.
298         * intl.c (open_quote, close_quote): New.
299         (gcc_init_libintl): Set them.
300         * pretty-print.c: Include "intl.h".
301         (pp_base_format_text): Support 'q' format flag and %` and %'
302         formats.  Use ' instead of ` in comments.
303         * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
304         gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
305         foramt_types_orig): Describe these new formats.
306         (decode_format_attr, check_function_format,
307         check_format_info_main): Use these new formats.
308         (status_warning): Use ATTRIBUTE_GCC_DIAG.
309         * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
310         check these formats to 3.5.
311
312 2004-05-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
313
314         * Makefile.in (CPPLIBS): Renamed to CPPLIB.
315         (BACKEND): Reflect this.
316         (LIBDEPS): Move CPPLIB before LIBIBERTY.
317         (LIBS): Likewise.
318
319 2004-05-24  Ulrich Weigand  <uweigand@de.ibm.com>
320
321         PR tree-optimization/14197
322         * builtins.c: Include "tree-gimple.h"
323         (readonly_data_expr): Use get_base_address.  Make sure to call 
324         decl_readonly_section only on trees it can handle.
325         * tree-gimple.c (get_base_address): Accept STRING_CST and
326         CONSTRUCTOR expressions.
327         * Makefile.in: Update dependencies.
328
329 2004-05-23  Paolo Bonzini  <bonzini@gnu.org>
330
331         Move libcpp to the toplevel.
332         * Makefile.in: Remove references to libcpp files,
333         use CPPLIBS instead of libcpp.a.  Define SYMTAB_H
334         and change hashtable.h to that.
335         * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
336         gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
337         * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
338         * configure: Regenerate.
339         * config.in: Regenerate.
340         * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
341         * cppcharset.c: Removed.
342         * cpperror.c: Removed.
343         * cppexp.c: Removed.
344         * cppfiles.c: Removed.
345         * cpphash.c: Removed.
346         * cpphash.h: Removed.
347         * cppinit.c: Removed.
348         * cpplex.c: Removed.
349         * cpplib.c: Removed.
350         * cpplib.h: Removed.
351         * cppmacro.c: Removed.
352         * cpppch.c: Removed.
353         * cpptrad.c: Removed.
354         * cppucnid.h: Removed.
355         * cppucnid.pl: Removed.
356         * cppucnid.tab: Removed.
357         * hashtable.c: Removed.
358         * hashtable.h: Removed.
359         * line-map.c: Removed.
360         * line-map.h: Removed.
361         * mkdeps.c: Removed.
362         * mkdeps.h: Removed.
363         * stringpool.h: Include symtab.h instead of hashtable.h.
364         * tree.h: Include symtab.h instead of hashtable.h.
365         * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
366
367 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
368
369         * gcc.c (struct prefix_list): Add forward declaration.
370         (do_spec_path): New function, extracted from...
371         (do_spec_1) <'D'>: ... here.  Drop support for
372         SPACE_AFTER_L_OPTION.
373         (do_spec_1) <'I'>: Use do_spec_path.
374         (process_command): Do not store the 'include' suffix
375         in include_prefixes.
376         * system.h: Poison SPACE_AFTER_L_OPTION.
377
378 2002-05-23  Roger Sayle  <roger@eyesopen.com>
379
380         * fold-const.c (non_lvalue): Explicitly list the tree codes that
381         need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
382
383 2004-05-23  Joseph S. Myers  <jsm@polyomino.org.uk>
384
385         * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
386         Update based on printed manual.  Enable setting of offsets for
387         FSFPRINT and move it to gcc-common.texi.
388         * doc/gcc.texi: Update FSF printing details.
389         * doc/gccint.texi: Remove FSF printing details.
390
391 2004-05-23  Andrew Pinski  <pinskia@physics.uc.edu>
392
393         * config/rs6000/t-rs6000: Remove the disabling -Werror.
394
395 2004-05-22  Roger Sayle  <roger@eyesopen.com>
396
397         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
398         expand_builtin_strrchr, expand_builtin_strpbrk,
399         expand_builtin_mempcpy, expand_builtin_memcmp,
400         expand_builtin_strcmp, expand_builtin_strncmp,
401         expand_builtin_strcat, std_expand_builtin_va_start,
402         std_expand_builtin_va_arg, expand_builtin_va_copy,
403         expand_builtin_signbit, fold_builtin_cabs,
404         fold_builtin_logarithm, fold_builtin_mempcpy,
405         fold_builtin_signbit, fold_builtin_isascii,
406         fold_builtin_toascii, fold_builtin_isdigit,
407         fold_builtin_1, build_function_call_expr,
408         simplify_builtin_strchr, simplify_builtin_strrchr,
409         simplify_builtin_strpbrk, simplify_builtin_strncpy,
410         simplify_builtin_memcmp, simplify_builtin_strcmp,
411         simplify_builtin_strncmp, simplify_builtin_strncat,
412         simplify_builtin_strspn, simplify_builtin_strcspn,
413         simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
414         to build with calls to build2, build3 or omit_one_operand.
415
416 2004-05-22  Richard Sandiford  <rsandifo@redhat.com>
417
418         * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
419         section when generating EABI code.
420
421 2004-05-22  Andrew Pinski  <pinskia@physics.uc.edu>
422
423         PR 15546
424         * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
425         Call mark_decl_referenced on the SYMBOL_REF_DECL.
426
427 2004-05-22  Andrew Pinski  <pinskia@physics.uc.edu>
428
429         * c-common.c (c_common_truthvalue_conversion): Handle
430         UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
431         ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
432         i.e. set the type to truthvalue_type_node and return.
433
434 2004-05-22  Zack Weinberg  <zack@codesourcery.com>
435
436        * tree.h (struct tree_decl): Add possibly_inlined bit.
437         (DECL_POSSIBLY_INLINED): New accessor macro.
438         * cgraph.h: Remove declaration of cgraph_inline_hash.
439         * cgraph.c: Remove definition of cgraph_inline_hash.
440         (hash_node): Revert to hashing DECL_UID.
441         (eq_node): Take two pointers to cgraph_node structures.
442         Compare DECL_UIDs.
443         (cgraph_remove_node): Pass the node directly to htab_find_slot.
444         (cgraph_varpool_hash_node): Rename hash_varpool_node;
445         hash on DECL_UID.
446         (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
447         pointers to cgraph_varpool_node structures; compare DECL_UIDs.
448         (cgraph_node): Allocate a temporary node on the stack, fill in
449         its DECL field, and pass that to htab_find_slot.
450         (cgraph_varpool_node): Likewise.
451         (cgraph_function_possibly_inlined_p): If global info is ready,
452         return the DECL_POSSIBLY_INLINED bit.
453         * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
454         instead of mucking with cgraph_inline_hash.
455
456 2004-05-22  Joseph S. Myers  <jsm@polyomino.org.uk>
457
458         * doc/contrib.texi: Add g77 contributors.
459
460 2004-05-22  Richard Sandiford  <rsandifo@redhat.com>
461
462         * calls.c (initialize_argument_information): Forbid sibcalls if a
463         callee-copied argument is stored in the current function's frame.
464
465 2004-05-22  Eric Christopher  <echristo@redhat.com>
466
467         * fix-header.c (read_scan_file): Update for add_path change.
468
469 2004-05-22  Ben Elliston  <bje@au.ibm.com>
470
471         * c.opt (Wmissing-include-dirs): New.
472         * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
473         to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
474         OPT_isystem. Handle case OPT_Wmissing_include_dirs.
475         * c-incpath.h (add_path): Add fourth (bool) argument.
476         * c-incpath.c (add_env_var_paths): Pass false to add_path ().
477         (add_standard_paths): Likewise.
478         (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
479         is used and the directory was user-supplied via -I.
480         (add_path): Set p->user_supplied_p.  Remove duplicated code by
481         using add_cpp_dir_path ().
482         * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
483         (struct cpp_dir): Add user_supplied_p.
484         * doc/invoke.texi (Warning Options): Document new option.
485
486 2004-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
487
488         * fold-const.c (fold_read_from_constant_string): Convert result to
489         requested type.
490
491 2004-05-21  Richard Henderson  <rth@redhat.com>
492
493         * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
494         (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
495         Don't mark VA_ARG_EXPRs volatile here.
496         (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
497
498 2004-05-21  Richard Henderson  <rth@redhat.com>
499
500         * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
501         * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
502
503 2004-05-21  Roger Sayle  <roger@eyesopen.com>
504
505         * fold-const.c (fold, fold_relational_hi_lo,
506         nondestructive_fold_binary_to_constant,
507         fold_read_from_constant_string): Use fold_convert instead of convert.
508         * builtins.c (simplify_builtin, simplify_builtin_strstr,
509         simplify_builtin_strchr, simplify_builtin_strrchr,
510         simplify_builtin_strpbrk): Use fold_convert instead of convert.
511
512 2004-05-21  Diego Novillo  <dnovillo@redhat.com>
513
514         * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
515         is NULL.
516
517 2004-05-21  Jakub Jelinek  <jakub@redhat.com>
518
519         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
520         override sparc.h definition.
521
522 2004-05-20  Roger Sayle  <roger@eyesopen.com>
523
524         * tree.c (array_type_nelts, save_expr, substitute_in_expr,
525         get_unwidened, get_narrower): Replace build with build2.
526         * fold-const.c (negate_expr, associate_trees, size_binop,
527         fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
528         pedantic_omit_one_operand, distribute_bit_expr,
529         make_bit_field_ref, optimize_bit_field_compare,
530         decode_field_reference, range_binop, make_range,
531         build_range_check, fold_range_test, fold_truthop,
532         optimize_minmax_comparison, extract_muldiv_1,
533         fold_binary_op_with_conditional_arg, fold_mathfn_compare,
534         fold_inf_compare, fold_single_bit_test, fold,
535         fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
536         Likewise replace build with either build2 or build3.
537
538 2004-05-20  Ian Lance Taylor  <ian@wasabisystems.com>
539
540         * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
541         * calls.c (prepare_call_address): Don't test
542         NO_RECURSIVE_FUNCTION_CSE.
543         * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
544         * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
545         * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
546         * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
547         * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
548         * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
549         * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
550         * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
551         * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
552         * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
553         * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
554         * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
555         Likewise.
556         * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
557         * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
558         * doc/tm.texi (Costs): Remove documentation for
559         NO_RECURSIVE_FUNCTION_CSE.
560
561 2004-05-20  Paul Brook  <paul@codesourcery.com>
562
563         * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
564         * unwind-dw2.c (extract_cie_info): Ditto.
565         (_Unwind_FrameState): Change retaddr_column to word type.
566
567 2004-05-20  Roger Sayle  <roger@eyesopen.com>
568
569         PR middle-end/3074
570         * fold-const.c (strip_compound_expr): Delete function.
571         (count_cond): Delete function.
572         (fold_binary_op_with_conditional_arg): Only perform transformations
573         "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
574         when a is constant.  This greatly simplifies this routine.
575
576         * tree.c (saved_expr_p): Delete function.
577         * tree.h (saved_expr_p): Delete function prototype.
578
579 2004-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
580
581         * common.opt (ftree-loop-optimize): Remove.
582
583 2004-05-20  Daniel Jacobowitz  <dan@debian.org>
584
585         * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
586         (NM_FOR_TARGET): Use := and $(shell).
587         (mainversion): Remove unused variable.
588
589 2004-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
590
591         * reorg.c (delete_from_delay_slot): If we have a barrier after the
592         sequence containing the insn to be deleted, always reemit it.
593
594 2004-05-20  Richard Henderson  <rth@redhat.com>
595
596         PR 15454
597         * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
598         * function.c (expand_function_start): Expand static_chain_decl by hand.
599         * gimplify.c (create_tmp_var_name): Export.
600         * tree-gimple.h (create_tmp_var_name): Declare.
601
602 2004-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
603
604         * rs6000.c (print_operand) <case 'z'>: Call
605         mark_decl_referenced before assemble_name.
606
607 2004-05-20  Zack Weinberg  <zack@codesourcery.com>
608
609         * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
610         (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
611         (cgraph_varpool_node): Hash on the pointer to the decl, not
612         the DECL_UID.  Fixes 64-bit bootstrap failure.
613
614 2004-05-20  Richard Earnshaw <rearnsha@arm.com>
615
616         * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
617         we don't earlyclobber operands used in the second insn.
618
619 2004-05-20  Steven Bosscher  <stevenb@suse.de>
620
621         * tree-mudflap.c: Formatting fixes.
622
623 2004-05-20  J"orn Rennecke <joern.rennecke@superh.com>
624
625         * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
626         * gengtype.c (open_base_files): Include reload.h in ifiles.
627         * reload.h (reg_equiv_memory_loc_varray): Declare.
628         * reload1.c (reg_equiv_memory_loc_varray): New variable.
629         (init_reload): Initialize it.
630         (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
631         reg_equiv_memory_loc_varray to size 0.
632         * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
633         growing reg_equiv_memory_loc_varray to the desired size.
634         * passes.c (rest_of_handle_old_regalloc): Likewise.
635         * reload.c: Amend comment on calling init_reload.
636
637 2004-05-20  Nick Clifton  <nickc@redhat.com>
638
639         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
640         with 'TRAMP' in the body of the macro definition.
641
642 2004-05-19  H.J. Lu  <hongjiu.lu@intel.com>
643
644         PR target/15383
645         * config/ia64/ia64.c (ia64_expand_compare): Don't check
646         TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
647         cmptf_libfunc isn't set.
648         (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
649         conventions.
650         (ia64_sysv4_init_libfuncs): New.
651
652         * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
653         ia64_sysv4_init_libfuncs.
654
655 2004-05-20  Falk Hueffner  <falk@debian.org>
656
657         PR other/15526
658         * libgcc2.c (__mulvsi3): Fix overflow test.
659
660 2004-05-19  Andrew Pinski  <pinskia@physics.uc.edu>
661
662         PR c/14171
663         * reg-stack.c (nan): Rename to ...
664         (not_a_num): Here.
665         (reg_to_stack): Rename nan to not_a_num.
666         (subst_stack_regs_pat): Likewise.
667         (convert_regs_entry): Likewise.
668         (convert_regs_1): Likewise.
669
670         * tree-cfg.c (find_case_label_for_value): Replace call to
671         simple_cst_equal with tree_int_cst_equal.
672
673 2004-05-19  Jeff Law <law@redhat.com>
674
675         * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
676         If the operand is for a use, then strip away the SSA_NAME, do not
677         strip away the SSA_NAME for a set.  Never call release_ssa_name.
678         (mark_def_sites): Appropriately pass additional argument to
679         prepare_operand_for_rename.  If a VDEF_RESULT is not an SSA_NAME,
680         then set the VDEF_RESULT to the VDEF_OP.
681         (set_def_block): Strip away any SSA_NAME to get to the real
682         underlying variable.
683
684         * tree-ssa-phiopt.c (value_replacement): Handle the case where
685         the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
686         BB directly.
687
688 2004-05-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
689
690         PR c++/15463
691         * loop-iv.c (iv_number_of_iterations):  Use trunc_int_for_mode on
692         result of inverse.
693
694         PR rtl-optimization/15274
695         * loop-iv.c (determine_max_iter, shorten_into_mode,
696         iv_number_of_iterations): Handle constants correctly.
697         * rtl.h (get_mode_bounds): Declaration changed.
698         * stor-layout.c (get_mode_bounds): Return a constant suitable for
699         the target mode.
700
701         PR rtl-optimization/14692
702         * loop-unswitch.c (may_unswitch_on): Try folding the result.
703         (unswitch_single_loop): Work correctly when may_unswitch_on
704         returns a folded constant.
705
706         * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
707         * simplify-rtx.c (simplify_const_relational_operation): Optimize
708         comparisons with mode bounds.
709
710         * function.c (struct temp_slot): Add new field prev.
711         (free_after_compilation, init_temp_slots): Free new fields.
712         (cut_slot_from_list, insert_slot_to_list,
713         temp_slots_at_level, max_slot_level, move_slot_to_level,
714         make_slot_available): New functions.
715         (assign_stack_temp_for_type, combine_temp_slots,
716         find_temp_slot_from_address, preserve_temp_slots,
717         preserve_rtl_expr_result, free_temp_slots,
718         free_temps_for_rtl_expr, pop_temp_slots): Work with
719         the new structure of lists.
720         (mark_all_temps_used): Removed.
721         * function.h (struct function): Field x_temp_slots
722         replaced by x_used_temp_slots and x_avail_temp_slots.
723         (temp_slots): Replaced by ...
724         (used_temp_slots, avail_temp_slots): New.
725         * tree.h (mark_all_temps_used): Declaration removed.
726
727         * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
728         simplify_using_assignment): Take the expression out of
729         the expr_list wrapper.
730
731         * loop-iv.c (iv_number_of_iterations): Improve clasification of
732         infinite loops.
733
734 2004-05-19  Roger Sayle  <roger@eyesopen.com>
735
736         * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
737         costs should be based on code size when optimizing for size.
738
739 2004-05-19  Paolo Bonzini  <bonzini@gnu.org>
740
741         * fold-const.c: Remove non-printable character 160.
742
743 2004-05-19  Nick Clifton  <nickc@redhat.com>
744
745         * doc/invoke.texi (ARM Options): Fix typo.
746         Remove descrption of -mshort-load-bytes and
747         -mno-short-load-bytes.
748
749         * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
750         missing parenthesis.
751         * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
752         * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
753
754 2004-05-19  Steven Bosscher  <stevenb@suse.de>
755
756         * expr.c (store_constructor): Build loop start and end by hand
757         instead of via loop functions from stmt.c.
758         (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
759         Remove the code to expand them.
760
761         * stmt.c (loop_stack): Remove this and everything related.
762         (struct nesting, enum nesting_desc): Update.
763         (expand_fixup): Likewise.
764         (expand_loop_start, expand_start_loop_continue_elsewhere,
765         expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
766         expand_end_null_loop, expand_continue_loop, expand_exit_loop,
767         expand_exit_loop_if_false, expand_exit_loop_top_cond,
768         expand_exit_something): Remove.
769         * tree.h: Remove prototypes.
770
771 2004-05-18  Mike Stump  <mrs@apple.com>
772             Devang Patel  <dpatel@apple.com>
773
774         * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
775         if this label is for eh.
776         * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
777         * config/darwin.c (darwin_emit_unwind_label): Likewise.
778         * dwarf2out.c (output_call_frame_info): Likewise.
779         * output.h (default_emit_unwind_label): Likewise.
780         * target.h (unwind_label): Likewise.
781         * varasm.c (default_emit_unwind_label): Likewise.
782
783         * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
784         DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
785         DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
786         DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
787         DEBUG_RANGES_SECTION): Define.
788
789 2004-05-18  Zack Weinberg  <zack@codesourcery.com>
790
791         * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
792         (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
793         (cgraph_varpool_node):
794         Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
795         (cgraph_function_possibly_inlined_p): Use the decl itself for
796         the key, not DECL_ASSEMBLER_NAME.
797         (change_decl_assembler_name): No need to muck with the hash tables.
798         (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
799         Delete.
800         * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
801         for the key, not DECL_ASSEMBLER_NAME.
802         * cgraph.h: Remove prototypes of deleted functions.
803         * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
804         (mark_decl_referenced): New function.
805         * tree.h: Prototype mark_decl_referenced.
806         * final.c (output_addr_const) <case SYMBOL_REF>: Call
807         mark_decl_referenced before assemble_name.
808         * c-decl.c (finish_decl): Use mark_decl_referenced.
809
810 2004-05-18  Andrew Pinski  <pinskia@physics.uc.edu>
811             Jeff Law <law@redhat.com>
812
813         * tree-ssa-phiopt.c (abs_replacement): New function.
814         (empty_block_p): New function extracted from...
815         (candidate_bb_for_phi_optimization): Break out empty block test.
816         (conditional_replacement): Use empty_block_p.
817         (value_replacement): Similarly.
818
819         * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
820         * tree-ssa-phiopt.c: Include flags.h.
821         (conditional_replacement): Remove argument names from prototype.
822         Minor formatting and comment fixes.
823         (tree_ssa_phiopt): If conditional_replacement returns false, then
824         call value_replacement.
825         (value_replacement): New function.
826
827 2004-05-18  Jeff Law  <law@redhat.com>
828
829         * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
830         from conditional_replacement.
831         (candidate_bb_for_phi_optimization): Similarly.
832         (conditional_replacement): Use replace_phi_with_stmt and
833         candidate_bb_for_phi_optimization.
834
835         * tree-ssa-phiopt.c: Fix various formatting issues.
836
837 2004-05-18  Steven Bosscher  <stevenb@suse.de>
838
839         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
840         s390_expand_cmpmem): Do not use expand_start_loop and
841         expand_end_loop, instead build the loop manually.
842
843 2004-05-18  Alan Modra  <amodra@bigpond.net.au>
844
845         * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
846         (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
847
848 2004-05-17  Jeff Law  <law@redhat.com>
849
850         * toplev.h (flag_delete_null_pointer_checks): Move from here to...
851         * flags.h (flag_delete_null_pointer_checks): Here.
852         * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
853         * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
854         (add_phi_arg, remove_phi_arg_num): Similarly.
855         * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
856         property into PHI nodes.
857         * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
858         (record_equivalences_from_phis): If all PHI arguments are known to be
859         nonzero, then the result must be nonzero as well.
860         (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
861         (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
862         appropriately.  Walk the USE-DEF chains and propagate nonzero property
863         as appropriate.
864         * tree.h (PHI_ARG_NONZERO): Define.
865         (phi_arg_d): Add nonzero flag.
866
867 2004-05-17  Zack Weinberg  <zack@codesourcery.com>
868
869         * f: Entire directory removed
870
871         * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
872         (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
873         (g77_integer_type_node, g77_uinteger_type_node)
874         (g77_longint_type_node, or g77_ulongint_type_node): Delete.
875         * c-common.c (c_common_nodes_and_builtins): Do not initialize
876         the above set of variables.
877
878         * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
879         * doc/invoke.texi, doc/standards.texi: Remove cross-references
880         to g77 manual.
881
882 2004-05-17  Steven Bosscher  <stevenb@suse.de>
883
884         PR tree-optimization/15438
885         * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
886         attributed functions as pure or const.
887
888 2004-05-17  Frank Ch. Eigler  <fche@redhat.com>
889
890         * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
891         from source code with errors.
892
893 2004-05-17  Ranjit Mathew  <rmathew@hotmail.com>
894
895         Enable tree browser for all front ends.
896         * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
897         (BACKEND): ...to here.
898
899 2004-05-17  Jan Hubicka  <jh@suse.cz>
900
901         * i386.c (construct_container): Do not produce BLKmode registers.
902         (classify_argument): Properly compute alignment of complex types.
903
904 2004-05-17  H.J. Lu  <hongjiu.lu@intel.com>
905
906         PR target/15084
907         * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
908         and renamed to movdi_insv_1_rex64.
909         (insv): Support SImode for 32bit and DImode for 64bit.
910
911 2004-05-17  Richard Sandiford  <rsandifo@redhat.com>
912
913         * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
914         (TARGET_SWITCHES): Remove debugg.
915         * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
916         TARGET_64BIT.
917         (subdi3): Replace the define_expand with a define_insn, the latter
918         renamed from subdi3_internal_3.
919         (negdi2): Likewise negdi2_internal_2.
920         (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
921         (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
922         and associated define_splits.
923         (adddi3_internal): Renamed from adddi3_internal_3.
924         (ashldi3_internal): Likewise ashldi3_internal4.
925         (ashrdi3_internal): Likewise ashrdi3_internal4.
926         (lshrdi3_internal): Likewise lshrdi3_internal4.
927
928 2004-05-17  Richard Sandiford  <rsandifo@redhat.com>
929
930         * optabs.c (expand_unop): Try implementing negation using subtraction
931         from zero.
932
933 2004-05-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
934
935         * pa.md:  Fix typo from last change.  Remove DFmode move to and from
936         SAR register.
937
938 2004-05-16  Richard Earnshaw  <rearnsha@arm.com>
939
940         PR target/10982
941         * arm.md (ne_zeroextractsi): Convert to insn-and-split.
942         (ne_zeroextractsi_shifted): New pattern.
943         (ite_ne_zeroextractsi): New pattern.
944         (ite_ne_zeroextractsi_shifted): New pattern.
945
946 2004-05-15  Steven Bosscher  <stevenb@suse.de>
947
948         * c-gimplify.c (c_genericize):
949         Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
950         * c-parse.in <expr_no_commas>: Likewise.
951         <if_prefix>: Likewise.
952         <select_or_iter_stmt>: Likewise.
953         * expr.c (expand_var, expand_expr_real_1): Likewise.
954         * expr.h (expand_expr): Make it a static inline function.
955         Move prototype for expand_expr_real up before this.
956         * fold-const.c (fold_relational_hi_lo, fold_relational_const):
957         Likewise.
958         * gimplify.c (gimple_boolify, gimplify_addr_expr,
959         gimplify_asm_expr, gimplify_expr): Likewise.
960         * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
961         dump_function_to_file): Likewise.
962         * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
963         * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
964         * tree-into-ssa.c (dump_tree_ssa): Likewise.
965         * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
966         Likewise.
967         * tree-optimize.c (execute_one_pass): Likewise.
968         * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
969         * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
970
971         * objc/objc-act.c (objc_build_try_enter_fragment,
972         objc_build_try_epilogue, objc_build_catch_stmt,
973         objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
974         with lang_hooks.foo ().
975
976 2004-05-15  Roger Sayle  <roger@eyesopen.com>
977
978         * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
979         that simplify_builtin doesn't destructively modify its argument.
980
981 2004-05-15  Richard Earnshaw  <reanrsha@arm.com>
982
983         * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
984         implementations for ARM and Thumb.
985         * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
986
987 2004-05-15  Thomas Quinot  <quinot@act-europe.fr>
988
989         * prefix.c (update_path): Replace PREFIX with KEY only
990         when it matches a full directory name in PATH.
991
992 2004-05-15  Richard Earnshaw  <reanrsha@arm.com>
993
994         * arm.h (TARGET_APCS_32): Delete.
995         (TARGET_MMU_TRAPS): Delete.
996         (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__.  Never
997         define __APCS_26__.
998         (CPP_SPEC): Remove checking of -mapcs-{26,32}.
999         (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
1000         (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
1001         (prog_mode_type): Delete.
1002         (PROMOTE_MODE): Always promote unsigned for HImode.
1003         (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
1004         (MASK_RETURN_ADDR): Simplify.
1005         * arm.c (arm_prgmode): Delete.
1006         (arm_override_options, arm_gen_rotated_half_load): Simplify.
1007         (print_multi_reg, output_return_instruction): Simplify.
1008         (arm_output_epilogue, arm_final_prescan_insn): Simplify.
1009         (arm_return_addr): Simplify.
1010         * arm.md (prog_mode): Delete.
1011         (conds): Simplify.
1012         (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
1013         (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
1014         (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
1015         (loadhi_shiftpredec): Delete.
1016         (peephole for post-increment on HImode load): Delete.
1017         * arm/crtn.asm: (FUNC_END): Simplify.
1018         * arm/lib1funcs.asm: Remove APCS-26 return macros.
1019         * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
1020         * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
1021         * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
1022         MULTILIB_DEFAULTS as required.
1023         * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
1024         * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
1025         variables as required.
1026         * doc/invoke.texi (ARM Options): Remove obsolete flags.
1027
1028 2004-05-15  Alan Modra  <amodra@bigpond.net.au>
1029
1030         * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
1031         UNITS_PER_WORD to calculate gpr size.  Re-instate code to set reg
1032         count to 8 to handle n_reg > 2.
1033
1034 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
1035
1036         * doc/extend.texi: Update WG14 URL.
1037
1038 2004-05-15  Steven Bosscher  <stevenb@suse.de>
1039
1040         * basic-block.h (life_analysis, delete_noop_moves):
1041         Update prototypes.
1042         * bt-load.c (branch_target_load_optimize): Don't take the
1043         insns stream as an argument.  Update the life_analysis calls.
1044         * combine.c (combine_instructions): Update delete_noop_moves
1045         calls.
1046         * flow.c (notice_stack_pointer_modification): Don't take the
1047         insns stream as an argument.  Work on the flow graph.
1048         (life_analysis): Likewise.
1049         (delete_noop_moves): Likewise.
1050         * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
1051         (rest_of_handle_life): Update life_analysis call.
1052         (rest_of_compilation): Likewise, and also update
1053         branch_target_load_optimize call.
1054         * ra.c (reg_alloc): Update life_analysis call.
1055         * reg-stack.c (reg_to_stack): Likewise.  Also, don't take
1056         the insns stream as an argument.
1057         * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
1058         call.
1059         * rtl.c (branch_target_load_optimize, reg_to_stack): Update
1060         prototypes.
1061         * value-profile.c (branch_prob): Update life_analysis call.
1062         * web.c (web_main): Work on the CFG, not on the insns stream.
1063
1064         * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
1065         * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
1066         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1067
1068 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
1069
1070         PR c/15444
1071         * c-format.c (avoid_dollar_number): New function.
1072         (check_format_info_main): Call avoid_dollar_number when operand
1073         numbers might occur but has_operand_number == 0.
1074
1075 2004-05-14  Richard Earnshaw  <rearnsha@arm.com>
1076
1077         * arm.md (all peephole2 patterns): Use predicates that validate
1078         register classes as appropriate.
1079
1080 2004-05-14  Steven Bosscher  <stevenb@suse.de>
1081
1082         PR opt/14472
1083         * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
1084         ignore type conversions that do not inhibit tail calling.
1085         (find_tail_calls): Likewise.
1086
1087 2004-05-14  Jeff Law  <law@redhat.com>
1088
1089         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
1090         bother marking bypassed virtuals for out-of-ssa.  Instead merge
1091         bypassed virtuals into vars_to_rename just before into-ssa pass.
1092
1093         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
1094         so that it picks up more opportunities to eliminate ABS expressions
1095         or turn them into negations.
1096
1097 2004-05-14  Steven Bosscher  <stevenb@suse.de>
1098
1099         * passes.c (rest_of_handle_null_pointer): Remove.
1100         (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
1101         (rest_of_compilation): Likewise.
1102         * rtl.h (delete_null_pointer_checks): Remove prototype.
1103         * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
1104         Remove declarations.
1105         (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
1106         compute_kill_rd, compute_rd, alloc_avail_expr_mem,
1107         free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
1108         expr_reaches_here_p, computing_insn, def_reaches_here_p,
1109         can_disregard_other_sets, handle_avail_expr, classic_gcse,
1110         one_classic_gcse_pass, invalidate_nonnull_info,
1111         delete_null_pointer_checks_1, delete_null_pointer_checks,
1112         expr_reached_here_p_work): Remove.
1113         (gcse_main): Do not perform classic GCSE when optimizing for size.
1114         (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
1115         are never used.
1116
1117 2004-05-14  Andrew Pinski  <pinskia@physics.uc.edu>
1118
1119         PR optimization/14466
1120         * tree-complex.c (make_temp): Remove.
1121         (gimplify_val): Replace make_temp with make_rename_temp
1122         and add NULL as the second argument.
1123         (expand_complex_div_wide): Likewise.
1124         * tree-dfa.c (make_rename_temp): New function.
1125         * tree-flow.h (make_rename_temp): Declare.
1126         * tree-sra.c (make_temp): Remove.
1127         (lookup_scalar): Replace make_temp with make_rename_temp.
1128         (create_scalar_copies): Likewise.
1129         * tree-ssa-phiopt.c (conditional_replacement): When we
1130         get non gimple create a temporary variable to hold the
1131         casted expression.
1132
1133 2004-05-14  Paul Brook  <paul@codesourcery.com>
1134
1135         * stor-layout.c (update_alignment_for_field): Use
1136         targetm.align_anon_bitfield.
1137         * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
1138         (TARGET_INITIALIZER): Use it.
1139         * target.h (struct gcc_target): Add align_anon_bitfield.
1140         * config/arm/arm.c (arm_align_anon_bitfield):  New function.
1141         (TARGET_ALIGN_ANON_BITFIELD): Define.
1142         * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
1143
1144 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
1145
1146         * tree.def (documentation): Remove mention of class 'b'.
1147         (BLOCK): Now in class 'x'.
1148         * c-common.c (verify_tree): Remove case 'b'.
1149         * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
1150         * calls.c (calls_function_1): Control cannot get past the switch
1151         when exp is a BLOCK.
1152         * print-tree.c (print_node): Move code for class 'b' to the class
1153         'c'/'x' switch, as case BLOCK.
1154         * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
1155         (unsafe_for_reeval, substitute_placeholder_in_expr)
1156         (stabilize_reference_1): Remove case 'b'.
1157         * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
1158         of something being 'b' to tests for TREE_CODE of something being
1159         BLOCK.
1160         * tree-ssa-operands.c (get_expr_operands): Likewise.
1161
1162 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
1163
1164         * tree-gimple.c: Rename from tree-simple.c.
1165         * tree-gimple.h: Rename from tree-simple.h.
1166         * c-gimplify.c: Rename from c-simplify.c
1167         * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
1168         langhooks.c, tree-alias-ander.c, tree-alias-common.c,
1169         tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
1170         tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
1171         tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
1172         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
1173         tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
1174         Update.
1175
1176 2004-05-14  Ranjit Mathew  <rmathew@hotmail.com>
1177
1178         * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
1179
1180 2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>
1181
1182         * tree-ssa.c (delete_tree_ssa): XFREE
1183         bitmaps allocated with BITMAP_XMALLOC.
1184
1185         * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
1186         idfs_cache at the end of the function.
1187
1188         * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
1189         at the end of the function.
1190
1191         * tree-ssa-dce.c (perform_tree_ssa_dce): Free
1192         el at the end of the function.
1193
1194         * tree-into-ssa.c (insert_phi_nodes_for): XFREE
1195         bitmaps allocated with BITMAP_XMALLOC.
1196
1197         * loop-unswitch.c (unswitch_single_loop): Free bbs at
1198         the end.
1199
1200         * final.c (shorten_branches): Free uid_shuid before
1201         reallocating it.
1202
1203         * bb-reoder.c (connect_traces): Free cold_traces at the end.
1204
1205 2004-05-13  Jeff Law  <law@redhat.com>
1206
1207         * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
1208         variables.  Simplify slightly by using USE_OP/DEF_OP instead
1209         of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
1210
1211         * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
1212         rather than iterating through the blocks testing each bit in
1213         livein to initialize the worklist.
1214         (mark_def_sites): Remove useless checks of KILLS for virtual
1215         operands.
1216
1217         * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
1218         new parameters for the statement and variable worklist as well
1219         as a bitmap of interesting SSA_NAMEs.  Walk over the statement
1220         worklist recording interesting variables in the variable worklist
1221         and bitmap.  Handle casts between integral and boolean types.
1222         (substitute_single_use_vars): Accept new parameters for the statement
1223         and variable worklist.  When a substitution is made add a new
1224         entry to the statement worklist.  Handle casts between integral
1225         and boolean types.
1226         (tree_ssa_forward_propagate_single_use_vars): Rework to pass
1227         worklists to children.  Iterate until the statement worklist
1228         is empty.
1229
1230 2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>
1231
1232         * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
1233         the end of the block.
1234
1235         * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
1236         with BITMAP_XMALLOC.
1237
1238         * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
1239         with BITMAP_XMALLOC.
1240
1241         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
1242         Free nonzero_vars at the end of the function.
1243
1244         * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
1245         need to generate code instead of a NOP_EXPR.
1246
1247 2004-05-13  Ian Lance Taylor  <ian@wasabisystems.com>
1248
1249         * gcc.c (default_compilers): Fill out initializers for new Fortran
1250         entries.
1251
1252 2004-05-13  Paul Brook  <paul@codesourcery.com>
1253
1254         * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
1255
1256 2004-05-13  Paul Brook  <paul@codesourcery.com>
1257
1258         * config/arm/arm.c (arm_default_short_enums): New function.
1259         (TARGET_DEFAULT_SHORT_ENUMS): Define.
1260
1261 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
1262
1263         Merge from tree-ssa-20020619-branch.
1264
1265         * Makefile.in (reload1.o-warn): Add.
1266         (tree-alias-ander.o-warn): Add.
1267         (GMPLIBS): Define.
1268         (GMPINC): Define.
1269         (BANSHEELIB): Define.
1270         (BANSHEEINC): Define.
1271         (TREE_DUMP_H): Define.
1272         (TREE_SIMPLE_H): Define.
1273         (TREE_FLOW_H): Define.
1274         (LIBDEPS): Add BANSHEELIB.
1275         (INCLUDES): Add BANSHEEINC and GMPINC.
1276         (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
1277         c-mudflap.o and c-pretty-print.o.
1278         (C_OBJS): Remove c-pretty-print.o.
1279         (OBJS-common): Remove sibcall.o.
1280         Add tree-cfg.o, tree-dfa.o, tree-eh.o,
1281         tree-ssa.o, tree-optimize.o, tree-simple.o,
1282         tree-alias-type.o, gimplify.o, tree-pretty-print.o,
1283         tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
1284         tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
1285         tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
1286         tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
1287         tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
1288         tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
1289         tree-tailcall.o, gimple-low.o, tree-iterator.o,
1290         tree-phinodes.o, tree-ssanames.o, tree-sra.o,
1291         tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
1292         tree-profile.o.
1293         (OBJC-archive): Add tree-nomudflap.o.
1294         (cc1): Add dependency on @TREEBROWSER@.
1295         (c-decl.o): Add dependency on TREE_DUMP_H.
1296         (c-dump.o): Likewise.
1297         (c-common.o): Add dependency on tree-iterator.h
1298         (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
1299         (gtype-desc.o): Add dependency on TREE_FLOW_H.
1300         (tree.o): Add dependency on tree-iterator.h,
1301         BASIC_BLOCK_H and TREE_FLOW_H.
1302         (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
1303         (langhooks.o): Add dependency on TREE_SIMPLE_H.
1304         (tree-alias-type.o, tree-alias-ander.o,
1305         tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
1306         tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
1307         tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
1308         tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
1309         domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
1310         tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
1311         tree-nested.o, tree-iterator.o, tree-dfa.o,
1312         tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
1313         tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
1314         gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
1315         tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
1316         tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
1317         tree-sra.o, tree-complex.o, tree-profile.o,
1318         rtl-profile.o): New rules.
1319         (function.o): Add dependency on basic-block.h
1320         (expr.o): Add dependency on tree-iterator.h.
1321         (sibcall.o): Remove.
1322         (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
1323         (cfg.o): Add dependency on TIMEVAR_H.
1324         (cfghooks.o): Add dependency on TREE_FLOW_H.
1325         (reg-stack.o): Add dependency on basic-block.h.
1326         (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
1327         c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
1328         tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
1329         tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
1330         tree-alias-type.h, tree-alias-common.h,
1331         tree-alias-type.c, tree-alias-common.c,
1332         tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
1333         rtl-profile.c and tree-nested.c.
1334         (gt-tree-alias-common.h, gt-tree-mudflap.h,
1335         gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
1336         gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
1337         gt-tree-cfg.h, gt-tree-nested.h): New rules.
1338         (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
1339         * basic-block.h: Include predict.h
1340         (struct edge_def): Add GTY marker.
1341         Change field 'insns' to be a union of tree and rtx.
1342         (EDGE_TRUE_VALUE): Define.
1343         (EDGE_FALSE_VALUE): Define.
1344         (EDGE_EXECUTABLE): Define.
1345         (struct bb_ann_d): Forward declare.
1346         (struct basic_block_def): Add GTY marker.
1347         Remove fields head_tree and end_tree.
1348         Add fields stmt_list, rbi and tree_annotations.
1349         (struct reorder_block_def): Define.
1350         (basic_block_info): Add GTY marker.
1351         (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
1352         variables instead of macros.
1353         (flow_call_edges_add): Remove declaration.
1354         (make_eh_edge): Remove declaration.
1355         (brief_dump_cfg, find_edge, tree_predicted_by_p,
1356         rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
1357         predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
1358         cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
1359         alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
1360         (try_redirect_by_replacing_jump): Modfiy return type to
1361         edge instead of bool.
1362         * bb-reorder.c (copy_bb): Call duplicate_block
1363         instead of cfg_layout_duplicate_bb.
1364         (copy_bb_p): Call can_duplicate_block_p instead of
1365         cfg_layout_can_duplicate_bb_p.
1366         * bitmap.c (bitmap_first_set_bit): Abort if word
1367         wasn't found.
1368         (bitmap_last_set_bit): Likewise.
1369         * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
1370         (DEF_FUNCTION_TYPE_3): Add.
1371         * builtins.c (c_strlen): Make extern.
1372         (builtin_save_expr): New.
1373         (expand_builtin_nonlocal_goto): New.
1374         (expand_builtin_constant_p): Remove.
1375         (expand_builtin_mathfn): Call builtin_save_expr instead
1376         of save_expr.
1377         (expand_builtin_mathfn_2): Likewise.
1378         (expand_builtin_strcmp): Likewise.
1379         (expand_builtin_strncmp): Likewise.
1380         (expand_builtin_strcat): Likewise.
1381         (fold_builtin_cabs): Likewise.
1382         (expand_builtin_alloca): Don't trigger if -fmudflap is
1383         given.
1384         (build_string_literal): Set TREE_INVARIANT on new node.
1385         (expand_builtin_profile_fun): New.
1386         (round_trampoline_addr): New.
1387         (expand_builtin_init_trampoline): New.
1388         (expand_builtin_adjust_trampoline): New.
1389         (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
1390         <BUILT_IN_CONSTANT_P>: Return const0_rtx;
1391         <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
1392         BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
1393         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
1394         BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
1395         Handle.
1396         (fold_builtin_expect): New.
1397         (fold_builtin_isascii): Don't return non-constant results
1398         in GIMPLE form.
1399         (fold_builtin_isdigit): Likewise.
1400         (fold_builtin_1): New.
1401         (fold_builtin): Call it.
1402         (build_function_call_expr): Update call to build a new
1403         CALL_EXPR.
1404         (purge_builtin_constant_p): Remove.
1405         (simplify_builtin, simplify_builtin_memcmp,
1406         simplify_builtin_strcmp, simplify_builtin_strncmp,
1407         simplify_builtin_strpbrk, simplify_builtin_strstr,
1408         simplify_builtin_strchr, simplify_builtin_strrchr,
1409         simplify_builtin_strcat, simplify_builtin_strncat,
1410         simplify_builtin_strspn, simplify_builtin_strcspn,
1411         simplify_builtin_next_arg, simplify_builtin_va_start,
1412         simplify_builtin_sprintf): New.
1413         * builtins.def (BUILT_IN_STACK_ALLOC,
1414         BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
1415         BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
1416         BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
1417         BUILT_IN_PROFILE_FUNC_EXIT): Define.
1418         * c-common.c: Include tree-iterator.h and hashtab.h.
1419         (lang_statement_code_p): Declare.
1420         (lang_gimplify_stmt): Declare.
1421         (fix_string_type): Set TREE_INVARIANT for value.
1422         (pointer_int_sum): Rely on build to set TREE_CONSTANT.
1423         (c_type_hash): New.
1424         (c_common_get_alias_set): Handle multiple type nodes
1425         referring to "the same" type, currently for C90 only.
1426         (c_add_case_label): Use create_artificial_label.
1427         (finish_label_address_expr): Don't set TREE_CONSTANT on
1428         result.
1429         (c_expand_expr): Don't handle STMT_EXPR.
1430         (handle_alias_attribute): Marke aliased variables to be
1431         TREE_STATIC.
1432         (handle_nonnull_attribute): Initialize arg_num.
1433         (check_function_nonnull): Likewise.
1434         (c_walk_subtrees): New.
1435         (c_estimate_num_insns_1): Don't handle
1436         EXPR_WITH_FILE_LOCATION nor FILE_STMT.
1437         (c_decl_uninit_1): Remove.
1438         (c_decl_uninit): Remove.
1439         (c_warn_unused_result): New.
1440         * c-common.def (ASM_STMT): Change number of operands
1441         to 4.
1442         (FILE_STMT): Remove.
1443         * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
1444         Remove.
1445         (lang_gimplify_stmt): Add.
1446         (expand_stmt): Remove.
1447         (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
1448         ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
1449         ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
1450         FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
1451         ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
1452         (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
1453         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
1454         genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
1455         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
1456         genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
1457         genrtl_compound_stmt, genrtl_asm_stmt,
1458         genrtl_cleanup_stmt, c_decl_uninit): Remove.
1459         (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
1460         c_tree_chain_matters_p, c_warn_unused_result,
1461         c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
1462         Declare.
1463         * c-convert.c (convert): Make convert work when
1464         converting to compatible types across translation unit.
1465         * c-decl.c: Include langhooks.h, tree-mudflap.h,
1466         tree-simple.h, diagnostic.h and tree-dump.h
1467         (merge_decls): Initialize oldtype to NULL.
1468         (finish_decl): Use DECL_HARD_REGISTER instead of
1469         DECL_C_HARD_REGISTER.
1470         (check_bitfield_type_and_width): Check for null
1471         lang_type_specific when check the precision of an enum.
1472         (grokdeclarator): Immediately layout an ARRAY_TYPE used
1473         in a pointer-to-array declarator.
1474         (finish_struct): Clear allocated struct lang_type.
1475         (finish_enum): Set enum_min and enum_max.  Set
1476         TYPE_MIN/MAX_VALUE to the limits of the compatible type,
1477         not to the enumerators.
1478         (set_decl_nonlocal): New.
1479         (store_parm_decls): Use it via walk_tree.
1480         (c_finalize): New.
1481         (finish_function): When !targetm.have_ctors_dtors,
1482         record static constructors and destructors here...
1483         (c_expand_body_1): ... not here.
1484         (c_expand_decl): Rename from c_expand_decl_stmt.
1485         Handle all C-specific expansion semantics.
1486         * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
1487         STMT_LINENO.
1488         * c-format.c (handle_format_arg_attribute): Initialize
1489         format_num.
1490         * c-lang.c: Include tree-inline.h
1491         (LANG_HOOKS_EXPAND_DECL,
1492         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
1493         LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
1494         LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
1495         LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
1496         (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
1497         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
1498         (c_types_compatible_p): New.
1499         * c-mudflap.c: New file.
1500         * c-objc-common.c: Include tree-mudflap.h
1501         (start_cdtor, finish_cdtor): Collapse
1502         together into
1503         (build_cdtor): ...here.  Update to construct a complete tree
1504         for the function.  No need to call push_scope, pop_scope, or
1505         clear_last_expr, or set current_function_cannot_inline.
1506         (c_missing_noreturn_ok_p): Change prototype to return
1507         bool.
1508         (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
1509         * c-opts.c (c_common_handle_option): Move handling of -fdump- to
1510         opts.c.
1511         (c_common_post_options): Don't ever use rtl inlining.
1512         * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
1513         * c-pragma.c (handle_pragma_redefine_extname): Define
1514         always.
1515         (init_pragma): Activate #pragma redefine_extname for mudflap.
1516         * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
1517         (pp_c_initializer): Accept any type CONSTRUCTOR.
1518         (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
1519         COMPLEX_TYPE.
1520         (decl_name_str): New local function.
1521         (pp_c_direct_declarator): Call it.
1522         (pp_c_primary_expression): Call it.
1523         (pp_c_id_expression): Call it.
1524         (pp_c_statement): Call it.
1525         (print_c_tree): Create new pp object.
1526         * c-pretty-print.h (pp_c_tree_decl_identifier,
1527         print_c_tree): Declare.
1528         * c-semantics.c: Include langhooks.h
1529         (lang_expand_stmt, lang_expand_decl_stmt,
1530         find_reachable_label_1, find_reachable_label,
1531         expand_unreachable_if_stmt, expand_unreachable_stmt,
1532         genrtl_do_stmt_1): Remove.
1533         (begin_stmt_tree): Don't check for changed filename.
1534         Call annotate_with_locus.
1535         (finish_stmt_tree): Don't set line for end of function.
1536         (build_stmt): Don't check type nodes for
1537         side effects.
1538         (build_stmt): Set TREE_SIDE_EFFECTS.
1539         Set EXPR_LOCUS instead of STMT_LINENO.
1540         (lang_expand_stmt, lang_expand_decl_stmt,
1541         expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
1542         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
1543         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
1544         genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
1545         genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
1546         genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
1547         genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
1548         find_reachable_label_1, expand_unreachable_if_stmt,
1549         expand_unreachable_stmt): Remove.
1550         (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
1551         * c-simplify.c: New file.
1552         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
1553         (struct lang_type): Add fields enum_min and enum_max.
1554         (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
1555         (c_expand_decl, c_missing_noreturn_ok_p,
1556         c_types_compatible_p): Declare.
1557         * c-typeck.c (tagged_types_tu_compatible_p): Allow for
1558         compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
1559         (default_function_array_conversion): Rely on build to
1560         set TREE_CONSTANT.
1561         (parser_build_binary_op, pointer_diff): Likewise.
1562         (build_unary_op, build_binary_op): Likewise.
1563         (build_array_ref):
1564         (build_external_ref): Set TREE_INVARIANT.
1565         (build_c_cast, pop_init_level): Likewise.
1566         (process_init_element): Use ASM_VOLATILE_P.
1567         (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
1568         (c_finish_case): Call c_do_switch_warnings.
1569         * c.opt (fdump-): Remove.
1570         * calls.c (try_to_integrate): Remove.
1571         (prepare_call_address): Replace fndecl arg with a
1572         precomputed static chain value.
1573         (emit_call_1): New argument for full call expr.
1574         (flags_from_decl_or_type): Call special_function_p.
1575         (initialize_argument_information): Add argument
1576         may_tailcall.
1577         (purge_reg_equiv_notes): New.
1578         (expand_call): Do not try to expand calls inline.
1579         (fixup_tail_calls): New.
1580         * cfg.c: Include timevar.h and ggc.h.
1581         (bb_pool, edge_pool): Remove.
1582         (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
1583         (entry_exit_blocks): Remove.
1584         (rbi_pool): Declare.
1585         (init_flow): Do not create pools.
1586         Allocate entry/exit block.
1587         (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
1588         (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
1589         (unlink_block): Clear b->prev_bb and b->next_bb.
1590         (compact_blocks): Clear all slots of BASIC_BLOCK array.
1591         (dump_flow_info): Work on trees too.
1592         (dump_cfg_bb_info): New.
1593         (brief_dump_cfg): New.
1594         * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
1595         (find_edge): New.
1596         * cfgbuild.c (rtl_make_eh_edge): Rename from
1597         make_eh_edge.  Update all users.
1598         (find_basic_blocks): Don't call VARRAY_FREE on
1599         basic_block_info.
1600         * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
1601         and newpos2.
1602         (delete_unreachable_blocks): Return changed status.
1603         (merge_seq_blocks): New.
1604         * cfghooks.c: Include tree-flow.h
1605         (tree_register_cfg_hooks, ir_type): New.
1606         (redirect_edge_and_branch): Change return type to edge.
1607         (predict_edge, predicted_by_p, can_duplicate_block_p,
1608         duplicate_block, block_ends_with_call_p,
1609         block_ends_with_condjump_p, flow_call_edges_add): New.
1610         * cfghooks.h (redirect_edge_and_branch): Change return
1611         type to edge.
1612         (predict_edge, predicted_by_p, can_duplicate_block_p,
1613         duplicate_block, block_ends_with_call_p,
1614         block_ends_with_condjump_p, flow_call_edges_add): Declare.
1615         (redirect_edge_and_branch): Change return type to edge.
1616         (struct cfg_hooks): Add fields block_ends_with_call_p,
1617         block_ends_with_condjump_p, flow_call_edges_add,
1618         predict_edge, predicted_by_p, can_duplicate_block_p and
1619         duplicate_block.
1620         (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
1621         * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
1622         (fixup_reorder_chain): Use initialize_bb_rbi.
1623         (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
1624         (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
1625         (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
1626         (insn_locators_initialize): Use new info about blocks.
1627         * cfglayout.h (typedef struct reorder_block_def): Moved to
1628         basic_block.h.
1629         (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
1630         removed.
1631         * cfgloop.c: Include tree.h and tree-flow.h.
1632         * cfgloop.h (create_loop_notes): Declare.
1633         * cfgloopmanip.c (create_loop_notes): New.
1634         * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
1635         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
1636         and duplicate_block fields.
1637         (create_basic_block_structure): Don't look at
1638         RTX_INTEGRATED_P.
1639         (rtl_block_ends_with_call_p): New.
1640         (rtl_block_ends_with_condjump_p): New.
1641         (need_fake_edge_p): Moved from cfganal.c.
1642         (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
1643         (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
1644         rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
1645         (cfg_layout_rtl_cfg_hooks): Ditto.
1646         * cgraph.c (cgraph_mark_reachable_node): Don't force nested
1647         functions to be reachable.
1648         * cgraphunit.c (decide_is_function_needed):
1649         * cgraphunit.c (decide_is_function_needed): Nested functions of extern
1650         inline functions don't need to be output.
1651         (cgraph_assemble_pending_functions): Don't do anything
1652         special for nested functions.
1653         (cgraph_mark_functions_to_output): Likewise.
1654         (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
1655         (cgraph_analyze_function): Use estimate_num_insns.
1656         (cgraph_mark_functions_to_output): Likewise.
1657         (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
1658         (cgraph_expand_function): Allow functions to not be
1659         emitted.
1660         (cgraph_remove_unreachable_nodes):
1661         (cgraph_recursive_inlining_p): Simplify.
1662         (lookup_recursive_calls,
1663         cgraph_decide_recursive_inlining): New.
1664         (cgraph_decide_inlining_*): Update calls of
1665         cgraph_mark_inline.
1666         * combine.c (get_pos_from_mask): Always set *plen.
1667         * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
1668         ftree-based-profiling, ftree-ccp, ftree-ch,
1669         ftree-combine-temps, ftree-copyrename, ftree-dce,
1670         ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
1671         ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
1672         ftree-lrs): Add.
1673         * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
1674         Undefine.
1675         * configure.ac: Add --enable-tree-browser option.
1676         Add --with-libbanshee option.
1677         Add GMPLIBS and GMPINC.
1678         * configure: Regenerate.
1679         * coverage.c (tree_ctr_tables): New.
1680         (coverage_counter_alloc): Use it.
1681         (build_ctr_info_value): Ditto.
1682         (coverage_counter_ref): Ditto.  Rename to rtl_coverage_counter_ref.
1683         (tree_coverage_counter_ref): New.
1684         * coverage.h (coverage_counter_ref): Remove declaration.
1685         (rtl_coverage_counter_ref): Declare.
1686         (tree_coverage_counter_ref): Declare.
1687         * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
1688         (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
1689         * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
1690         (struct cse_basic_block_data): Rename enum values to not
1691         conflict with profile.h; update all uses.
1692         * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
1693         in comments.
1694         * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
1695         * diagnostic.h (debug_output_buffer, dump_generic_node,
1696         print_generic_stmt, print_generic_stmt_indented,
1697         print_generic_expr, print_generic_decl,
1698         debug_generic_expr, debug_generic_stmt, debug_c_tree):
1699         Declare.
1700         * dominance.c: Cache immediate dominators.
1701         * domwalk.c: New file.
1702         * domwalk.h: New file.
1703         * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
1704         (gen_subprogram_die): Generate a DIE for a named
1705         return value.
1706         (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
1707         (add_location_or_const_value_attribute): Likewise.
1708         (add_bound_info): Likewise.
1709         (gen_decl_die): Likewise.
1710         * emit-rtl.c (maybe_set_first_label_num): New.
1711         (copy_most_rtx): Don't copy the integrated flag.
1712         Copy the new return_val flag.
1713         * et-forest.c (MAX_NODES): Define.
1714         (record_path_before_1): Abort if len is greater than
1715         MAX_NODES.
1716         * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
1717         gen_eh_region_catch, gen_eh_region_allowed,
1718         gen_eh_region_must_not_throw, get_eh_region_number,
1719         get_eh_region_may_contain_throw, get_eh_region_tree_label,
1720         set_eh_region_tree_label, expand_resx_expr): New.
1721         (expand_eh_region_start, expand_start_catch): Use them.
1722         (expand_end_catch): Tidy.
1723         (note_eh_region_may_contain_throw): Take region argument.
1724         (note_current_region_may_contain_throw): New.
1725         (get_exception_filter): Export.
1726         (collect_eh_region_array): Export.
1727         (remove_unreachable_regions): Check ERT_TRY based on reachability
1728         of catches, not reachability of continue_label.  Never remove
1729         ERT_MUST_NOT_THROW regions.
1730         (collect_rtl_labels_from_trees): New.
1731         (convert_from_eh_region_ranges): Use it.
1732         (connect_post_landing_pads): Handle dying cleanups.
1733         (struct reachable_info): Add callback data.
1734         (add_reachable_handler): Invoke the callback.
1735         (foreach_reachable_handler): New.
1736         (reachable_handlers): Use it.
1737         (arh_to_landing_pad, arh_to_label): New.
1738         (can_throw_internal_1): Split out from can_throw_internal.
1739         (can_throw_external_1): Similarly.
1740         * except.h: Update.
1741         * explow.c (emit_stack_save): Remove savearea mode check.
1742         (update_nonlocal_goto_save_area): New.
1743         (allocate_dynamic_stack_space): Use it.
1744         (probe_stack_range): Never emit loop notes.
1745         * expmed.c (extract_fixed_bit_field): Always propagate the
1746         target for the shift if it is a REG.
1747         * expr.c: Include tree-iterator.h
1748         (is_zeros_p): Remove.
1749         (categorize_ctor_elements_1, categorize_ctor_elements): New.
1750         (count_type_elements): New.
1751         (mostly_zeros_p): Use them.
1752         (expr_wfl_stack): Remove.
1753         (convert_move): Do nothing if to and from are the same.
1754         (emit_block_move_via_loop): Don't emit LOOP notes.
1755         (emit_move_insn): Don't handle CONSTANT_P_RTX.
1756         (emit_move_insn_1): Don't generate inline warnings.
1757         (expand_vars, expand_var): Split from ...
1758         (expand_expr_1): ... here.
1759         (expand_expr_real, expand_expr_real_1):  Use new macros
1760         EXPR_LOCATION and EXPR_HAS_LOCATION.
1761         * expr.h (simplify_builtin_fputs,
1762         simplify_builtin_strcpy, simplify_builtin_strncpy,
1763         expand_var, fixup_tail_calls,
1764         update_nonlocal_goto_save_area): Declare.
1765         (lookup_static_chain, expand_inline_function,
1766         mark_seen_cases): Remove.
1767         (prepare_call_address): Change type of 2nd argument to
1768         rtx.
1769         * final.c (profile_function): Update static chain test.
1770         (final): Don't look at RTX_INTEGRATED_P.
1771         * flags.h (flag_mudflap, flag_mudflap_threads,
1772         flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
1773         flag_tree_dce, flag_tree_combine_temps,
1774         flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
1775         flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
1776         flag_tree_points_to): Declare.
1777         (enum pta_type): Declare.
1778         * flow.c (lang_missing_noreturn_ok_p): Remove.
1779         (check_function_return_warnings): Remove.
1780         (update_life_info): Update comments.
1781         (free_basic_block_vars): Don't call VARRAY_FREE for
1782         basic_block_info.
1783         (regno_uninitialized): Remove.
1784         * fold-const.c (int_const_binop): Make extern.
1785         (non_lvalue): Rely on build to set TREE_CONSTANT.
1786         (operand_equal_p): Replace only_const argument with
1787         flags.  Allow pure functions if OEP_PURE_SAME.
1788         (fold): Use OEP_ONLY_CONST.
1789         (invert_truthvalue) <NOP_EXPR> Break if argument is of
1790         boolean type.
1791         (fold_relational_hi_lo,
1792         nondestructive_fold_binary_to_constant,
1793         nondestructive_fold_unary_to_constant,
1794         fold_read_from_constant_string): New.
1795         * function.c (struct function): Remove calls_constant_p.
1796         (current_function_calls_constant_p): Remove.
1797         (inline_function_decl): Remove.
1798         (put_var_into_stack): Don't use it.
1799         (fix_lexical_addr): Likewise.
1800         (inline_function_decl): Remove extern declaration.
1801         (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
1802         (trampolines_created): Move to varasm.c.
1803         (free_after_compilation): Update for removed fields.
1804         (allocate_struct_function): Likewise.
1805         (delete_handlers, lookup_static_chain): Remove.
1806         (fix_lexical_addr): Don't consider non-local variable refs.
1807         (trampoline_address): Remove.
1808         (round_trampoline_addr): Move to builtins.c.
1809         (adjust_trampoline_addr): Remove.
1810         (expand_function_start): Update for changes to static chain
1811         and nonlocal goto handling.
1812         (initial_trampoline): Move to varasm.c.
1813         (expand_function_end): Don't build trampolines or kill
1814         unreferenced nonlocal goto labels.
1815         (free_after_compilation): Don't set it.
1816         (expand_function_end): Likewise.
1817         (setjmp_vars_warning): Rename from
1818         uninitialized_vars_warning, remove uninitialized vars warning.
1819         (uninitialized_vars_warning): Remove old comment
1820         and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
1821         and do not call the langhook.
1822         (expand_function_start, expand_function_end): Don't do
1823         function instrumentation here.
1824         (clear_block_marks): Rename from reorder_blocks_0, export.
1825         (blocks_nreverse): Export.
1826         (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
1827         of rtl.
1828         (reset_block_changes, record_block_change, finalize_block_changes,
1829         check_block_change, free_block_changes): New functions.
1830         (assign_parms): Setting of current_function_stdarg
1831         moved ...
1832         (allocate_struct_function): ... here.
1833         * function.h (struct function): Remove x_nonlocal_labels,
1834         x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
1835         x_context_display, x_trampoline_list, needs_context.
1836         Add static_chain_decl, nonlocal_goto_save_area.
1837         (struct function): Remove x_clobber_return_insn.
1838         Add tail_call_emit field, last_label_uid,
1839         unexpanded_var_list, dont_emit_block_notes,
1840         ib_boundaries_block, function_end_locus and saved_tree/saved_args.
1841         (clear_block_marks): Declare.
1842         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
1843         (mfwrap_spec, mflib_spec): Declare.
1844         (cpp_unique_options, cc1_options): Ditto.
1845         (default_compilers): Add .F and .f90.
1846         (static_specs): Add mfwrap and mflib.
1847         * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
1848         CONSTANT_RTX_P.
1849         (reg_used_on_edge, reg_killed_on_edge, bypass_block):
1850         Update to match insns field in struct edge_def.
1851         * gdbinit.in (pgs, pge): Define.
1852         * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
1853         instead of the integrated flag.
1854         * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
1855         * gengtype-yacc.y (bitfieldlen): Add empty action.
1856         (struct_fields): Accept unnamed bitfields.
1857         (bitfieldlen): Split from ...
1858         (bitfieldopt): ... here.
1859         * gengtype.c (ifiles): Add tree-alias-type.h and
1860         tree-flow.h.
1861         * genrecog.c (validate_pattern): Do not handle
1862         CONSTANT_P_RTX.
1863         * gimple-low.c: New file.
1864         * gimplify.c: New file.
1865         * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
1866         (restore_line_notes): Do not set RTX_INTEGRATED_P.
1867         * ifcvt.c (dead_or_predicable): Initialize local variable
1868         'earliest'.
1869         * input.h (expr_wfl_stack): Remove.
1870         * integrate.c (INTEGRATE_THRESHOLD): Remove.
1871         (setup_initial_hard_reg_value_integration): Likewise.
1872         (initialize_for_inline): Likewise.
1873         (note_modified_parmregs): Likewise.
1874         (integrate_parm_decls): Likewise.
1875         (process_reg_param): Likewise.
1876         (save_parm_insns): Likewise.
1877         (copy_insn_list): Likewise.
1878         (copy_insn_notes): Likewise.
1879         (compare_blocks): Likewise.
1880         (find_block): Likewise.
1881         (inlining): Likewise.
1882         (function_cannot_inline_p): Likewise.
1883         (parmdecl_map): Likewise.
1884         (in_nonparam_insns): Likewise.
1885         (save_for_inline): Likewise.
1886         (FIXED_BASE_PLUS): Likewise.
1887         (expand_inline_function): Likewise.
1888         (copy_rtx_and_substitute): Don't look at map->integrating,
1889         map->inline_target, and inlining, since we are never copying
1890         for integrating.
1891         Don't abort on RTX_INTEGRATED_P.
1892         (old_fun): Remove.
1893         (output_inline_function): Remove.
1894         * integrate.h (struct inline_map): Remove fields integrating,
1895         block_map, leaf_reg_map, inline_target, and local_return_label.
1896         * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
1897         copy_loop_headers, never_reached_warning): Removed.
1898         (any_uncondjump_p): Reject nonlocal goto.
1899         * langhooks-def.h (lhd_types_compatible_p,
1900         lhd_expand_decl, lhd_gimplify_expr): Declare.
1901         (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
1902         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
1903         LANG_HOOKS_FUNCTION_LEAVE_NESTED,
1904         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
1905         LANG_HOOKS_GIMPLIFY_EXPR,
1906         LANG_HOOKS_GIMPLE_BEFORE_INLINING,
1907         LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
1908         LANG_HOOKS_GIMPLIFY_EXPR,
1909         LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
1910         (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
1911         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
1912         LANG_HOOKS_FUNCTION_LEAVE_NESTED,
1913         LANG_HOOKS_RTL_EXPAND_INITIALIZER,
1914         LANG_HOOKS_DECL_UNINIT,
1915         LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
1916         * langhooks.c: Include tree-simple.h.
1917         (lhd_expand_decl): New.
1918         (lhd_types_compatible_p): New.
1919         (lhd_decl_uninit): Remove.
1920         (lhd_gimplify_expr): New.
1921         * langhooks.h (struct lang_hooks_for_rtl_expansion):
1922         Remove.
1923         (struct lang_hooks_for_functions): Add field
1924         missing_noreturn_ok_p.
1925         (struct lang_hooks): Add field expand_decl,
1926         types_compatible_p, gimplify_expr and
1927         gimple_before_inlining.
1928         Remove fields decl_uninit and rtl_expand
1929         * opts.c (decode_options): Set flag_tree_ccp,
1930         flag_tree_dce, flag_tree_dom, flag_tree_dse,
1931         flag_tree_pre, flag_tree_ter,
1932         flag_tree_live_range_split, flag_tree_sra,
1933         flag_tree_copyrename and flag_tree_ch at -O1 and higher.
1934         (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
1935         OPT_fmudflapth, OPT_fmudflapir,
1936         OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
1937         OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
1938         OPT_ftree_dominator_opts, OPT_ftree_copyrename,
1939         OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
1940         OPT_ftree_points_to_ and OPT_ftree_pre.
1941         * output.h (regno_uninitialized, find_basic_blocks,
1942         cleanup_cfg, delete_unreachable_blocks,
1943         check_function_return_warnings): Remove.
1944         * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
1945         PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
1946         PARAM_MAX_INLINE_RECURSIVE_DEPTH,
1947         PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
1948         PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
1949         * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
1950         Define.
1951         * passes.c (rest_of_decl_compilation):
1952         (rest_of_handle_sibling_calls): Remove.
1953         (rest_of_handle_inlining): Remove.
1954         (rest_of_handle_gcse): Do not run
1955         purge_builtin_constant_p.
1956         (rest_of_compilation): Update.
1957         Do not call copy_loop_headers.
1958         Do rtl-based profiling only when
1959         !flag_tree_based_profiling.  Register rtl-based profiling
1960         hooks.
1961         * predict.c:  Include tree-flow.h, ggc.h, tree-dump.h
1962         (predicted_by_p): Rename to ...
1963         (rtl_predicted_by_p): .. this one; make global
1964         (tree_predicted_by_p): New.
1965         (dump_prediction): Add FILE argument.
1966         (predict_edge): Rename to ...
1967         (rtl_predict_edge): .. this one.
1968         (tree_predict_edge): New.
1969         (combine_predictions_for_insn): Update calls of predict_edge.
1970         (predict_loops): Break out from ...
1971         (estimate_probability): ... here; update comments; move updating
1972         of unknown probabilities from ...
1973         (estimate_bb_frequencies): ... here.
1974         (combine_predictions_for_bb): New.
1975         (tree_predict_by_opcode): New.
1976         (tree_estimate_probability): New.
1977         * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
1978         PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
1979         * predict.h: Add include guard.
1980         (predict_edge, predict_edge_def): Move prototypes to basic_block.h
1981         * pretty-print.c (pp_write_text_to_stream): Make extern.
1982         * pretty-print.h (pp_write_text_to_stream): Declare.
1983         * print-rtl.c (print_rtx): Don't print the integrated flag.
1984         Print the return_val flag.
1985         * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
1986         of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
1987         Remove support for EXPR_WITH_FILE_LOCATION nodes.
1988         (print_node): Print TREE_INVARIANT and TREE_VISITED.
1989         * profile.c: Include cfghooks.h, tree-flow.h.
1990         (profile_hooks): New.
1991         (profile_dump_file): New.
1992         (instrument_edges): Use hooks instead of RTL-specific code.
1993         (instrument_values): Ditto.
1994         (get_exec_counts): Ditto.
1995         (compute_branch_probabilities): Ditto.
1996         (compute_value_histograms): Ditto.
1997         (branch_prob): Ditto.
1998         (find_spanning_tree): Ditto.
1999         (end_branch_prob): Ditto.
2000         (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
2001         (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
2002         (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
2003         (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
2004         (tree_register_profile_hooks): New.
2005         (rtl_register_profile_hooks): New.
2006         * ra-rewrite.c (rewrite_program): Clear variable info.
2007         * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
2008         * regs.h: Add include guards.
2009         * reload.c (decompose): Clear val using memset.
2010         * rtl.def (CONSTANT_P_RTX): Remove.
2011         * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
2012         (copy_loop_headers): Remove.
2013         (struct rtx_def): Replace the integrated flag with the
2014         return_val flag.
2015         (maybe_set_first_label_num): Declare.
2016         (init_branch_prob): Move declaration to value-prof.h.
2017         (end_branch_prob): Ditto.
2018         (branch_prob): Ditto.
2019         (never_reached_warning): Don't declare it.
2020         * rtlanal.c (get_related_value): Initialize get_jump_table_offset
2021         (hoist_insn_to_edge): Update to match field insns in
2022         struct edge_def.
2023         * sbitmap.c (sbitmap_realloc): New.
2024         * sbitmap.h (sbitmap_realloc): Declare.
2025         * sibcall.c: Remove file.
2026         * simplify-rtx.c (simplify_rtx): Do not handle
2027         CONSTANT_P_RTX.
2028         * stmt.c (parse_output_constraint): Don't warn for read-write
2029         memory operand.
2030         (tail_recursion_args): Use types_compatible_p langhook.
2031         (force_label_rtx): Don't look at inline_function_decl.
2032         (label_rtx): Set LABEL_PRESERVE_P appropriately.
2033         (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.
2034         (declare_nonlocal_label): Remove.
2035         (expand_goto): Don't handle nonlocal gotos.
2036         (expand_nl_handler_label): Remove.
2037         (expand_nl_goto_receivers): Remove.
2038         (expand_end_bindings): Don't expand_nl_goto_receivers.  Use
2039         update_nonlocal_goto_save_area.
2040         (expand_expr_stmt_value): Check TREE_NO_WARNING.
2041         (warn_if_unused_value): Likewise.
2042         (expand_start_loop, expand_loop_continue_here,
2043         expand_end_loop): Don't create loop notes.
2044         (all_cases_count, BITARRAY_TEST, BITARRAY_SET,
2045         mark_seen_cases, check_for_full_enumeration_handling): Remove.
2046         (expand_end_case_type): Don't do warn_switch handling.
2047         (pushcase, pushcase_range) Update add_case_node calls.
2048         (add_case_node): Add dont_expand_label argument.
2049         (same_case_target_p): Don't search rtl.
2050         (expand_start_bindings_and_block, expand_end_bindings):
2051         Don't emit block notes when dont_emit_block_notes.
2052         (using_eh_for_cleanups_p): Export.
2053         (expand_return): Allow any typed rhs.
2054         (expand_stack_alloc): New.
2055         (expand_stack_save, expand_stack_restore): New.
2056         (containing_blocks_have_cleanups_or_stack_level): New
2057         function.
2058         (asm_op_is_mem_input): New fn.
2059         (expand_asm_expr): New fn.
2060         (warn_if_unused_value): Check operand 0 of SAVE_EXPR
2061         nodes.
2062         * stor-layout.c (layout_type): Just return if type is
2063         error_mark_node.
2064         (update_alignment_for_field): Export.
2065         (variable_size): We don't care about global_bindings_p if
2066         the frontend doesn't want a list of the expressions.
2067         * system.h: Poison INTEGRATE_THRESHOLD.
2068         * timevar.def (TV_TREE_GIMPLIFY, TV_TREE_EH, TV_TREE_CFG,
2069         TV_TREE_CLEANUP_CFG, TV_TREE_PTA, TV_TREE_MAY_ALIAS,
2070         TV_TREE_INSERT_PHI_NODES, TV_TREE_SSA_REWRITE_BLOCKS,
2071         TV_TREE_SSA_OTHER, TV_TREE_OPS,
2072         TV_TREE_SSA_DOMINATOR_OPTS, TV_TREE_SRA, TV_TREE_CCP,
2073         TV_TREE_SPLIT_EDGES, TV_TREE_PRE, TV_TREE_PHIOPT,
2074         TV_TREE_FORWPROP, TV_TREE_DCE, TV_TREE_CD_DCE,
2075         TV_TREE_DSE, TV_TREE_LOOP, TV_TREE_CH,
2076         TV_TREE_SSA_TO_NORMAL, TV_TREE_SSA_TO_NORMAL,
2077         TV_TREE_NRV, TV_TREE_COPY_RENAME, TV_TREE_SSA_VERIFY,
2078         TV_TREE_STMT_VERIFY, TV_DOM_FRONTIERS,
2079         TV_CONTROL_DEPENDENCES): Define.
2080         * toplev.c: Include tree-alias-common.h
2081         (current_file_decl, flag_mudflap, flag_mudflap_threads,
2082         flag_mudflap_ignore_reads, flag_tree_based_profiling,
2083         flag_tree_gvn, flag_tree_points_to, flag_tree_ccp,
2084         flag_tree_dce, flag_tree_ch, flag_tree_sra,
2085         flag_tree_combine_temps, flag_tree_ter,
2086         flag_tree_live_range_split, flag_tree_dom,
2087         flag_tree_copyrename, flag_tree_dse): Declare.
2088         (f_options): Add tree-based-profiling, tree-gvn,
2089         tree-pre, tree-ccp, tree-dce,
2090         tree-dominator-opts, tree-copyrename, tree-dse,
2091         tree-combine-temps, tree-ter, tree-lrs and tree-ch.
2092         (wrapup_global_declarations): Don't output nested inlined functions.
2093         (general_init): Call init_tree_optimization_passes.
2094         (process_options): Sorry for -ftree-based-profiling plus
2095         -ftest-coverage or -fprofile-values.
2096         * toplev.h (init_tree_optimization_passes,
2097         flag_tree_based_profiling): Declare.
2098         * tracer.c (tail_duplicate): Use cfghooks for bb duplication.
2099         * tree-alias-ander.c: New file.
2100         * tree-alias-ander.h: New file.
2101         * tree-alias-common.c: New file.
2102         * tree-alias-common.h: New file.
2103         * tree-alias-type.c: New file.
2104         * tree-alias-type.h: New file.
2105         * tree-browser.c: New file.
2106         * tree-browser.def: New file.
2107         * tree-cfg.c: New file.
2108         * tree-complex.c: New file.
2109         * tree-dfa.c: New file.
2110         * tree-dump.c (dump_enable_all): New.
2111         (dequeue_and_dump): Do not handle EXPR_WITH_FILE_LOCATION.
2112         (dump_node): Remove const from field suffix and swtch.
2113         (dump_files): Add null entry, .generic, .nested, .vcg,
2114         .xml and a match-all entry.
2115         (extra_dump_files, extra_dump_files_in_use,
2116         extra_dump_files_alloced): Declare
2117         (dump_option_value_info): Add raw, details, stats,
2118         blocks, vops, lineno, uid and all.
2119         (dump_register): New.
2120         (get_dump_file_info): New.
2121         (dump_begin): Call it.
2122         Do nothing for TDI_none.
2123         (dump_begin): Include phase number in dump filename.
2124         (dump_enable_all): New.
2125         (dump_switch_p_1): Split out from dump_switch_p.
2126         (dump_switch_p): Handle extra_dump_files.
2127         Start our scan at TDI_none + 1.
2128         If -fdump-tree-all was given, call dump_enable_all.
2129         * tree-dump.h: Include splay-tree.h.
2130         (dump_function, dump_function_to_file, dump_register):
2131         Declare.
2132         * tree-eh.c: New file.
2133         * tree-flow-inline.h: New file.
2134         * tree-flow.h: New file.
2135         * tree-inline.c: Re-write to handle inlining on GIMPLE.
2136         * tree-inline.h (walk_tree,
2137         walk_tree_without_duplicates): Move to tree.h.
2138         (estimate_num_insns): Declare.
2139         * tree-into-ssa.c: New file.
2140         * tree-iterator.c: New file.
2141         * tree-iterator.h: New file.
2142         * tree-mudflap.c: New file.
2143         * tree-mudflap.h: New file.
2144         * tree-nested.c: New file.
2145         * tree-nomudflap.c: New file.
2146         * tree-nrv.c: New file.
2147         * tree-optimize.c (dump_flags, vars_to_rename,
2148         in_gimple_form, all_passes, pass_gimple,
2149         pass_rebuild_bind, pass_all_optimizations, pass_del_cfg): Declare.
2150         (execute_gimple, execute_rebuild_bind,
2151         gate_all_optimizations, execute_del_cfg,
2152         register_one_dump_file, register_dump_files, dup_pass_1,
2153         init_tree_optimization_passes, execute_todo,
2154         execute_one_pass, execute_pass_list): New.
2155         (clear_decl_rtl): Remove.
2156         (tree_rest_of_compilation): Update to use tree
2157         optimizers.
2158         * tree-outof-ssa.c: New file.
2159         * tree-pass.h: New file.
2160         * tree-phinodes.c: New file.
2161         * tree-pretty-print.c: New file.
2162         * tree-profile.c: New file.
2163         * tree-simple.c: New file.
2164         * tree-simple.h: New file.
2165         * tree-sra.c: New file.
2166         * tree-ssa-alias.c: New file.
2167         * tree-ssa-ccp.c: New file.
2168         * tree-ssa-copy.c: New file.
2169         * tree-ssa-copyrename.c: New file.
2170         * tree-ssa-dce.c: New file.
2171         * tree-ssa-dom.c: New file.
2172         * tree-ssa-dse.c: New file.
2173         * tree-ssa-forwprop.c: New file.
2174         * tree-ssa-live.c: New file.
2175         * tree-ssa-live.h: New file.
2176         * tree-ssa-loop.c: New file.
2177         * tree-ssa-operands.c: New file.
2178         * tree-ssa-operands.h: New file.
2179         * tree-ssa-phiopt.c: New file.
2180         * tree-ssa-pre.c: New file.
2181         * tree-ssa.c: New file.
2182         * tree-ssanames.c: New file.
2183         * tree-tailcall.c: New file.
2184         * tree.c: Include tree-iterator.h, basic-block.h and
2185         tree-flow.h.
2186         (tree_node_kind): Add phi_nodes and ssa names.
2187         (tree_size): Handle PHI_NODE, EPHI_NODE, SSA_NAME,
2188         EUSE_NODE, EKILL_NODE, EEXIT_NODE and STATEMENT_LIST.
2189         (make_node_stat): Handle PHI_NODE and SSA_NAME.
2190         <'c'> Set TREE_INVARIANT.
2191         (copy_node_stat): Abort if trying to copy a
2192         STATEMENT_LIST.
2193         Clear TREE_VISITED.
2194         Clear annotation field.
2195         (build_constructor): Copy TREE_INVARIANT from vals.
2196         Don't clear TREE_CONSTANT.
2197         (expr_first, expr_last, expr_length): Remove.
2198         (staticp): Pass unknown component references to the language.
2199         (save_expr): Check TREE_INVARIANT instead of TREE_CONSTANT.
2200         (skip_simple_arithmetic): Likewise.
2201         (stabilize_reference_1): Likewise.
2202         (tree_node_structure): Handle PHI_NODE, EPHI_NODE,
2203         EUSE_NODE, EKILL_NODE, EEXIT_NODE, SSA_NAME and
2204         STATEMENT_LIST.
2205         (lhd_unsave_expr_now): Remove.
2206         (unsafe_for_reeval): Handle LABEL_EXPR and BIND_EXPR.
2207         (recompute_tree_invarant_for_addr_expr): New.
2208         (build1_stat): Clear EXPR_LOCUS and TREE_BLOCK.
2209         Call recompute_tree_invarant_for_addr_expr.
2210         Set TREE_INVARIANT accordingly.
2211         (build2_stat): Don't handle CALL_EXPR.
2212         (build3_stat): Don't call build2_stat for CALL_EXPRs.
2213         (build_expr_wfl): Remove.
2214         (annotate_with_file_line, annotate_with_locus): New.
2215         (simple_cst_equal): Call simple_cst_list_equal to compare
2216         CONSTRUCTOR_ELTS pointers.
2217         (iterative_hash_expr): Don't hash types associated
2218         with conversions.  Instead hash on the signedness of the
2219         toplevel object and the operand of the conversion.
2220         (dump_tree_statistics): Call ssanames_print_statistics
2221         and phinodes_print_statistics.
2222         (ephi_node_elt_check_failed, phi_node_elt_check_failed,
2223         add_var_to_bind_expr, build_empty_stmt, is_essa_node,
2224         needs_to_live_in_memory): New.
2225         (initializer_zerop): Handle VECTOR_CST.  Don't check
2226         AGGREGATE_TYPE_P for CONSTRUCTOR.
2227         * tree.def (FILTER_EXPR, CASE_LABEL_EXPR, RESX_EXPR,
2228         SSA_NAME, EUSE_NODE, EKILL_NODE, EPHI_NODE, EEXIT_NODE,
2229         PHI_NODE, CATCH_EXPR, EH_FILTER_EXPR, STATEMENT_LIST): Define.
2230         (GOTO_SUBROUTINE_EXPR): Change type to 's'.
2231         (CALL_EXPR): Add another operand.
2232         (EXPR_WITH_FILE_LOCATION): Remove.
2233         (SWITCH_EXPR): Add another operand.
2234         * tree.h: Update various comments.
2235         (union tree_ann_d): Forward declare.
2236         (struct tree_common): Add fields nowarning_flag,
2237         invariant_flag and visited.
2238         (EREF_NODE_CHECK, EPHI_NODE_ELT_CHECK,
2239         PHI_NODE_ELT_CHECK, EREF_NODE_CHECK, PHI_NODE_ELT_CHECK,
2240         EPHI_NODE_ELT_CHECK, TREE_BLOCK,
2241         STRIP_USELESS_TYPE_CONVERSION, CALL_EXPR_TAILCALL,
2242         TREE_NO_WARNING, FORCED_LABEL, TREE_INVARIANT,
2243         IS_EMPTY_STMT, EXPR_LOCUS, SET_EXPR_LOCUS, EXPR_FILENAME,
2244         EXPR_LINENO, EXPR_LOCATION, EXPR_HAS_LOCATION,
2245         EXIT_EXPR_COND, SWITCH_COND, SWITCH_BODY, SWITCH_LABELS,
2246         CASE_LOW, CASE_HIGH, CASE_LABEL, BIND_EXPR_VARS,
2247         BIND_EXPR_BODY, BIND_EXPR_BLOCK, GOTO_DESTINATION,
2248         ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS,
2249         ASM_INPUT_P, ASM_VOLATILE_P, COND_EXPR_COND,
2250         COND_EXPR_THEN, COND_EXPR_ELSE, LABEL_EXPR_LABEL,
2251         CATCH_TYPES, CATCH_BODY, EH_FILTER_TYPES,
2252         EH_FILTER_FAILURE, EH_FILTER_MUST_NOT_THROW,
2253         SSA_NAME_VAR, SSA_NAME_DEF_STMT, SSA_NAME_VERSION,
2254         SSA_NAME_OCCURS_IN_ABNORMAL_PHI, SSA_NAME_IN_FREE_LIST,
2255         PHI_RESULT, PHI_REWRITTEN, PHI_NUM_ARGS,
2256         PHI_ARG_CAPACITY, PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF,
2257         EREF_PROCESSED, EREF_ID, EREF_NAME, EREF_STMT,
2258         EREF_RELOAD, EREF_SAVE, EREF_CLASS, EREF_INJURED,
2259         EREF_TEMP, EUSE_DEF, EUSE_PHIOP, EUSE_INSERTED,
2260         EUSE_LVAL, EPHI_NUM_ARGS, EPHI_ARG_CAPACITY,
2261         EPHI_ARG_ELT, EPHI_ARG_EDGE, EPHI_ARG_PRED, EPHI_ARG_DEF,
2262         EPHI_ARG_INJURED, EPHI_ARG_DELAYED_RENAME,
2263         EPHI_ARG_HAS_REAL_USE, EPHI_ARG_STOPS,
2264         EPHI_ARG_PROCESSED2, EPHI_IDENTITY, EPHI_IDENT_INJURED,
2265         EPHI_REP_OCCUR_KNOWN, EPHI_IDENTICAL_TO, EPHI_DOWNSAFE,
2266         EPHI_CANT_BE_AVAIL, EPHI_DEAD, EPHI_USES, EPHI_STOPS,
2267         TREE_VISITED, SSA_VAR_P, DECL_NUM_STMTS,
2268         DECL_HARD_REGISTER, DECL_PTA_ALIASVAR, LABEL_DECL_UID,
2269         DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL,
2270         STATEMENT_LIST_HEAD, STATEMENT_LIST_TAIL, TDF_RAW,
2271         TDF_DETAILS, TDF_STATS, TDF_BLOCKS, TDF_VOPS, TDF_LINENO,
2272         TDF_UID,): Define.
2273         (TREE_NO_UNUSED_WARNING, EXPR_WFL_EMIT_LINE_NOTE,
2274         EXPR_WFL_NODE, EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME,
2275         EXPR_WFL_LINECOL, EXPR_WFL_LINENO, EXPR_WFL_COLNO,
2276         EXPR_WFL_SET_LINECOL): Remove.
2277         (phi_node_elt_check_failed, ephi_node_elt_check_failed,
2278         make_phi_node, init_phinodes, fini_phinodes,
2279         release_phi_node, phinodes_print_statistics,
2280         init_ssanames, fini_ssanames, make_ssa_name,
2281         release_ssa_name, ssanames_print_statistics,
2282         annotate_with_file_line, build_empty_stmt,
2283         annotate_with_locus, expr_only, categorize_ctor_elements,
2284         count_type_elements, add_var_to_bind_expr, is_essa_node,
2285         expand_stack_alloc, expand_stack_save,
2286         expand_stack_restore, add_case_node, operand_equal_p,
2287         nondestructive_fold_unary_to_constant,
2288         nondestructive_fold_binary_to_constant,
2289         fold_read_from_constant_string, int_const_binop,
2290         strip_float_extensions, simplify_builtin, c_strlen,
2291         recompute_tree_invarant_for_addr_expr,
2292         needs_to_live_in_memory, make_vector,
2293         setjmp_vars_warning, update_alignment_for_field,
2294         expand_asm_expr, asm_op_is_mem_input,
2295         containing_blocks_have_cleanups_or_stack_level,
2296         create_artificial_label, gimplify_function_tree,
2297         get_name, unshare_expr, walk_tree,
2298         walk_tree_without_duplicates, in_gimple_form): Declare.
2299         (struct tree_exp): Add fields locus and block.
2300         (struct tree_ssa_name, struct edge_def, struct
2301         tree_phi_node, struct tree_eref_common, struct
2302         tree_euse_node, struct ephi_arg_d, struct tree_ephi_node,
2303         union alias_var_def, struct tree_statement_list_node,
2304         struct tree_statement_list, enum operand_equal_flag): Declare.
2305         (enum tree_node_structure_enum): Add TS_SSA_NAME,
2306         TS_PHI_NODE, TS_EPHI_NODE, TS_EUSE_NODE, TS_EREF_NODE,
2307         TS_STATEMENT_LIST.
2308         (union tree_node): Add fields ssa_name, phi, eref, ephi,
2309         euse and stmt_list.
2310         (function_cannot_inline_p, uninitialized_vars_warning,
2311         save_for_inline, output_inline_function, all_cases_count,
2312         check_for_full_enumeration_handling,
2313         declare_nonlocal_label): Remove.
2314         (enum tree_dump_index): Add TDI_none, TDI_tu,
2315         TDI_generic, TDI_nested, TDI_vcg, TDI_xml.
2316         * unroll.c (unroll_loop): Don't clear map->inline_target.
2317         * unwind-sjlj.c (uw_install_context): Make a proper static inline
2318         function.
2319         * value-prof.c (value_prof_hooks): New.
2320         (find_values_to_profile): Rename to rtl_find_values_to_profile.
2321         Move rtl-specific bits in from branch_prob.
2322         (value_profile_transformations): Rename to
2323         rtl_value_profile_transformations.
2324         (struct value_prof_hooks): New.
2325         (rtl_value_prof_hooks): New.
2326         (rtl_register_value_prof_hooks): New.
2327         (tree_find_values_to_profile): New stub.
2328         (tree_value_profile_transformations): New stub.
2329         (tree_value_prof_hooks): New stub.
2330         (tree_register_value_prof_hooks): New stub.
2331         (find_values_to_profile): New.
2332         (value_profile_transformations): New.
2333         * value-prof.h: Add multiple inclusion guard.
2334         (struct histogram_value): Change rtx fields to void *.
2335         (rtl_register_value_prof_hooks): New declaration.
2336         (tree_register_value_prof_hooks): New declaration.
2337         (find_values_to_profile): New declaration.
2338         (free_profiled_values): New declaration.
2339         (value_profile_transformations): New declaration.
2340         (struct profile_hooks): New declaration.
2341         (init_branch_prob): Declaration moved from rtl.h.
2342         (branch_prob): Declaration moved from rtl.h.
2343         (end_branch_prob): Declaration mooved from rtl.h.
2344         (tree_register_profile_hooks): New declaration.
2345         (rtl_register_profile_hooks): New declaration.
2346         (tree_profile_hooks): New declaration.
2347         (rtl_profile_hooks): New declaration.
2348         * varasm.c: Include tree-mudflap.h.
2349         (TRAMPOLINE_ALIGNMENT): Remove.
2350         (make_decl_rtl): Call mudflap_enqueue_decl.
2351         (assemble_static_space):
2352         (assemble_trampoline_template): Set and return
2353         TRAMPOLINE_ALIGNMENT.
2354         * varray.c (element): Add GENERIC_PTR_NOGC entry.
2355         Add entry for 'tree *'.
2356         Add entry for struct edge_def *.
2357         (varray_copy): New.
2358         * varray.h (enum varray_data_enum): Add
2359         VARRAY_DATA_GENERIC_NOGC, VARRAY_DATA_EDGE and
2360         VARRAY_DATA_TREE_PTR.
2361         (union varray_data_tag): Corresponding changes.
2362         (VARRAY_GENERIC_PTR_NOGC_INIT, VARRAY_EDGE_INIT,
2363         VARRAY_TREE_PTR_INIT, VARRAY_GENERIC_PTR_NOGC,
2364         VARRAY_EDGE, VARRAY_TREE_PTR,
2365         VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_EDGE,
2366         VARRAY_PUSH_TREE_PTR, VARRAY_TOP_GENERIC_PTR_NOGC,
2367         VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Define.
2368
2369         * config/*/*: Various updates for changed macros, tree
2370         codes, etc.  Check ChangeLog.tree-ssa.
2371
2372         * doc/cfg.texi: New file.
2373         * doc/tree-ssa.texi: New file.
2374         * doc/c-tree.texi: Document new codes.
2375         * doc/gccint.texi: Include new files.
2376         * doc/install.texi: Document new features.
2377         * doc/invoke.texi: Document new switches.
2378         * doc/passes.texi: Document new passes.
2379         * doc/rtl.texi: Update changed RTL codes.
2380         * doc/sourcebuild.texi: Update build instructions.
2381         * doc/standards.texi: Document Fortran changes.
2382         * doc/tm.texi: Update.
2383
2384 2004-05-12  Paolo Bonzini  <bonzini@gnu.org>
2385
2386         Replace several arrays with a struct of arrays.
2387         * combine.c (struct reg_stat): New.
2388         (init_reg_last_arrays): Renamed to...
2389         (init_reg_last): ...this.  Callers adjusted.
2390         (reg_stat): New.
2391         (combine_instructions): Allocate it and use it.
2392         (reg_last_death, reg_last_set, reg_last_set_value,
2393         reg_last_set_label, reg_last_set_table_tick,
2394         reg_last_set_invalid, reg_nonzero_bits, reg_sign_bit_copies,
2395         reg_last_set_mode, reg_last_set_nonzero_bits,
2396         reg_last_set_sign_bit_copies): Replace throughout
2397         with items of reg_stat.
2398
2399 2004-05-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2400
2401         PR optimization/15100
2402         * combine.c (distribute_notes): Don't create a dangling
2403         REG_LIBCALL/REG_RETVAL note.
2404
2405 2004-05-11  Aldy Hernandez  <aldyh@redhat.com>
2406
2407         * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
2408
2409         * config/rs6000/rs6000.c (bdesc_1arg): Change spe_evneg to
2410         negv2si2.
2411
2412 2004-05-11  Aldy Hernandez  <aldyh@redhat.com>
2413
2414         * doc/md.texi (Standard Names): Fix typo in vec_init description.
2415
2416 2004-05-11  Geoffrey Keating  <geoffk@apple.com>
2417
2418         * doc/gty.texi (GTY Options): Clarify example.
2419
2420 2004-05-11  Fariborz Jahanian  <fjahanian@apple.com>
2421
2422         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
2423         Add const qualifier to altivec vector type if one is needed.
2424
2425 2004-05-11  Paul Brook  <paul@codesourcery.com>
2426
2427         * flags.h (flag_short_enums): Update comment.
2428         * opts.c (decode_options): Set flag_short_enums to 2.
2429         * toplev.c (flag_short_enums): Update comment.
2430         (process_options): Call default_short_enums target hook.
2431
2432 2004-05-11  Andrew Pinski  <pinskia@gcc.gnu.org>
2433
2434         PR target/14063
2435         * config/rs6000/altivec.md (altivec_dssall):
2436         Change to unspec_volatile.
2437         (altivec_dss): Likewise.
2438
2439 2004-05-10  Aldy Hernandez  <aldyh@redhat.com>
2440
2441         * config/rs6000/altivec.md ("one_cmplv16qi2"): Change vnot to
2442         vnor.
2443         ("one_cmplv8hi2"): Same.
2444         ("one_cmplv4si2"): Same.
2445
2446 2004-05-10  Kaz Kojima  <kkojima@gcc.gnu.org>
2447
2448         PR target/15130
2449         * config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
2450         * config/sh/sh.c (output_stack_adjust): Take the sibcall epilogue
2451         into account.  Compute the correct number of general registers
2452         for the return value.  Generate a special push/pop sequence when
2453         failing to get a temporary register for non SHmedia epilogue.
2454         (sh_expand_epilogue): Add an argument to show whether it's for
2455         sibcall or not.  Set the 3rd argument of output_stack_adjust to
2456         -1 if needed.
2457         (sh_need_epilogue): Call sh_expand_epilogue with 0.
2458         * config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
2459         with 1.
2460         (epilogue): Call sh_expand_epilogue with 0.
2461
2462 2004-05-10  Andrew Pinski  <pinskia@physics.uc.edu>
2463
2464         * gcse.c (eliminate_partially_redundant_loads): Instead of returning early,
2465         goto a cleanup label.  After the cleanup, free the allocated memory.
2466
2467 2004-05-10  Ziemowit Laski  <zlaski@apple.com>
2468
2469         * config/rs6000/altivec.h (vec_sld): Add overloads for
2470         argument/return types of 'vector bool int', 'vector bool short'
2471         and 'vector bool char'.
2472
2473 2004-05-10  Zack Weinberg  <zack@codesourcery.com>
2474
2475         * c-decl.c (store_parm_decls_newstyle): Correct test for a
2476         nested function.
2477
2478 2004-05-10  Richard Sandiford  <rsandifo@redhat.com>
2479
2480         * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted,
2481         treating missing ones as "".
2482         * config/mips/mips.md: Remove constraints from match_operands and
2483         match_scratches if they appear in define_expands (except reload*),
2484         define_peephole2s, define_splits or attribute specifications.
2485         * config/mips/7000.md, config/mips/sb1.md: Remove match_operand
2486         constraint strings.
2487
2488 2004-05-10  Alan Modra  <amodra@bigpond.net.au>
2489
2490         * config/rs6000/rs6000.c (function_arg_boundary): Always align
2491         AltiVec vectors.
2492         (function_arg_advance): Pass TARGET_32BIT -mabi=no-altivec AltiVec
2493         vectors by refererence.  Align the same for TARGET_64BIT to a 16
2494         byte boundary.  Remove useless code.  Add function comment.
2495         (function_arg): Similarly.  Move gpr rs6000_mixed_function_arg
2496         call to where it belongs.
2497         (function_arg_partial_nregs): Return true for all TARGET_32BIT
2498         -mabi=no-altivec AltiVec vectors.  Fix debug output.
2499         (rs6000_va_arg): Adjust for AltiVec change.
2500
2501 2004-05-10  Paul Brook  <paul@codesourcery.com>
2502
2503         * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
2504         * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
2505         (TARGET_DOUBLEWORD_ALIGN): Use it.
2506         (WCHAR_TYPE): Define.
2507         (WCHAR_SIZE_TYPE): Define.
2508         (SIZE_TYPE): Define.
2509
2510 2004-05-10  Alan Modra  <amodra@bigpond.net.au>
2511
2512         * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4
2513         when size is 8 bytes.
2514         (function_arg_advance): Account for stack space used by AltiVec
2515         args when -mabi=altivec.  Simplify alignment calculations.  For
2516         ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec.
2517         (function_arg): Similarly.
2518         (function_arg_pass_by_reference): True for ABI_V4 AltiVec when
2519         not AltiVec ABI.
2520         (rs6000_va_arg): Correct fp arg test.  Adjust for AltiVec change.
2521         Correct alignment, and align before testing reg count.  Remove
2522         TREE_THIS_VOLATILE from reg.  Don't emit unused labels.
2523         (rs6000_complex_function_value): Check TARGET_HARD_FLOAT and
2524         TARGET_FPRS here..
2525         (rs6000_function_value): .. not here before call.
2526
2527 2004-05-09  Aldy Hernandez  <aldyh@redhat.com>
2528
2529         * config/rs6000/spe.md ("tstsflt_gpr"): Fix typo in unspec.
2530
2531 2004-05-09  Zack Weinberg  <zack@codesourcery.com>
2532
2533         PR 15007
2534         * c-decl.c (current_file_decl): Rename to all_translation_units,
2535         adjust comment.
2536         (pop_scope): If popping file_scope, construct a
2537         TRANSLATION_UNIT_DECL and make it the context of all the
2538         symbols in the scope.
2539         (push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
2540         (pushdecl): Clarify comment.  Do not set DECL_CONTEXT of
2541         anything to current_file_decl.
2542         (pushdecl_top_level): Likewise.
2543         (store_parm_decls_newstyle): Adjust check for nested function.
2544         (c_write_global_declarations): Update for renamed variable.
2545
2546 2004-05-09  Aldy Hernandez  <aldyh@redhat.com>
2547
2548         * config/rs6000/rs6000-protos.h
2549         (rs6000_conditional_register_usage): Protoize.
2550
2551         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): New.
2552
2553         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Call
2554         function.
2555
2556 2004-05-08  Roger Sayle  <roger@eyesopen.com>
2557
2558         * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2
2559         where op is a comparison operator and C1 and C2 are integer constants
2560         into a range check.
2561         (fold): Call fold_div_compare.
2562
2563 2004-05-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2564
2565         * doc/install.texi (sparc-sun-solaris2*): Document bootstrap
2566         problems with earlier versions of the GNU compiler.
2567
2568 2004-05-07  Aldy Hernandez  <aldyh@redhat.com>
2569
2570         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
2571         Declare.
2572
2573         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): New.
2574         (rs6000_hard_regno_mode_ok): New.
2575         (rs6000_init_hard_regno_mode_ok): New.
2576         (rs6000_override_options): Call rs6000_init_hard_regno_mode_ok.
2577
2578         * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Use precomputed
2579         result.
2580
2581 2004-05-07  Ziemowit Laski  <zlaski@apple.com>
2582
2583         * config/rs6000/altivec.h (vector, pixel, bool): Do not
2584         define as macros #ifdef __APPLE_ALTIVEC__.
2585
2586 2004-05-07  Fariborz Jahanian  <fjahanian@apple.com>
2587
2588         * config/rs6000/rs6000.c (rs6000_mixed_function_arg):
2589         Generate appropriate parallels for vector arguments
2590         passed to vararg functions. (function_arg): make the call
2591         to rs6000_mixed_function_arg for vector args as needed.
2592
2593 2004-05-07  Richard Sandiford  <rsandifo@redhat.com>
2594
2595         * config/mips/mips.c (mips_va_arg): Fix calculation of osize for
2596         EABI_FLOAT_VARARGS_P.
2597
2598 2004-05-07  Richard Sandiford  <rsandifo@redhat.com>
2599
2600         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY): Remove TARGET_MIPS5500.
2601         * config/mips/mips.c (override_options): Disable branch likely
2602         instructions if TUNE_MIPS5500.
2603
2604 2004-05-07  Richard Sandiford  <rsandifo@redhat.com>
2605
2606         * config/mips/mips.c (override_options): Allow the hi and lo registers
2607         to store any integral mode, not just MODE_INTs.
2608
2609 2004-05-07  Paul Brook  <paul@codesourcery.com>
2610
2611         * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
2612         * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
2613         (TARGET_DOUBLEWORD_ALIGN): Use it.
2614         (WCHAR_TYPE): Define.
2615         (WCHAR_SIZE_TYPE): Define.
2616         (SIZE_TYPE): Define.
2617
2618 2004-05-07  Uros Bizjak  <uros@kss-loka.si>
2619
2620         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Use
2621         testb $4, %ah insn instead of sahf insn if !TARGET_USE_SAHF.
2622
2623 2004-05-07  Andrew Pinski  <pinskia@physics.uc.edu>
2624
2625         * loop-doloop.c (doloop_valid_p): Make sure that body
2626         gets freed.
2627
2628 2004-05-07  Eric Botcazou  <ebotcazou@act-europe.fr>
2629
2630         * config/sparc/sparc-protos.h (sparc_skip_caller_unimp): New
2631         declaration.
2632         * config/sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Delete.
2633         (sparc_skip_caller_unimp): New global variable.
2634         (sparc_function_epilogue): Set 'sparc_skip_caller_unimp'.
2635         Use it instead of SKIP_CALLERS_UNIMP_P.
2636         * config/sparc/sparc.md (call expander): Add sanity check.
2637         (call_address_struct_value_sp32): Re-sync with expander.
2638         (call_symbolic_struct_value_sp32): Likewise.
2639         (return peepholes): Use 'sparc_skip_caller_unimp' instead
2640         of custom predicate.
2641
2642 2004-05-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2643
2644         PR c++/14962
2645         * c-pragma.c (handle_pragma_redefine_extname): Only change
2646         the assembler name of FUNCTION_DECLs and VAR_DECLs.
2647
2648 2004-05-07  Uros Bizjak  <uros@kss-loka.si>
2649
2650         * optabs.h (enum optab_index): Add new OTI_log1p.
2651         (log1p_optab): Define corresponding macro.
2652         * optabs.c (init_optabs): Initialize log1p_optab.
2653         * genopinit.c (optabs): Implement log1p_optab using log1p?f2
2654         patterns.
2655         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG1P{,F,L}
2656         using log1p_optab.
2657         (expand_builtin): Expand BUILT_IN_LOG1P{,F,L} using
2658         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2659
2660         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2XP1.
2661
2662         * config/i386/i386.c (ix86_emit_i387_log1p): New function.
2663         * config/i386/i386-protos.h (ix86_emit_i387_log1p):
2664         Prototype here.
2665         * config/i386/i386.md (UNSPEC_FYL2XP1): New unspec to represent
2666         x87's fyl2xp1 instruction.
2667         (*fyl2x_xf3): Rename insn definition to fyl2x_xf3.
2668         (fyl2xp1_xf3): New pattern to implement fyl2xp1 x87 instruction.
2669         (log1psf2, log1pdf2, log1pxf2): New expanders to implement log1pf,
2670         log1p  and log1pl built-ins as inline x87 intrinsics.
2671
2672 2004-05-07  Loren James Rittle  <ljrittle@acm.org>
2673
2674         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Proper redefinition.
2675         * config/arm/freebsd.h: Likewise.
2676         * config/ia64/freebsd.h: Likewise.
2677         * config/sparc/freebsd.h: Likewise.
2678
2679 2004-05-07  Hans-Peter Nilsson  <hp@axis.com>
2680
2681         PR optimization/15296
2682         * reorg.c (fill_simple_delay_slots): Use next_real_insn when
2683         getting last consecutive label at a branch.
2684         (relax_delay_slots): Similar, near top of loop.
2685
2686 2004-05-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2687
2688         PR target/15202
2689         * pa.md (movdi, movsi, movhi, movqi): Support move from shift amount
2690         register to general register.
2691
2692 2004-05-07  Alan Modra  <amodra@bigpond.net.au>
2693
2694         * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either
2695         TARGET_ALTIVEC or TARGET_ALTIVEC_ABI.
2696         * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise.
2697         (STACK_BOUNDARY): Delete.
2698
2699 2004-05-06  Stuart Hastings  <stuart@apple.com>
2700
2701         * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421,
2702         mistakenly clobbered by 1.423.
2703
2704 2004-05-06  Richard Sandiford  <rsandifo@redhat.com>
2705
2706         * doc/invoke.texi: Document -mvr4130-align.
2707         * config/mips/mips.h (MASK_VR4130_ALIGN, TARGET_VR4130_ALIGN)
2708         (TUNE_MIPS4120, TUNE_MIPS4130): New macros.
2709         (TUNE_MACC_CHAINS): Include TUNE_MIPS4120 and TUNE_MIPS4130.
2710         (TARGET_SWITCHES): Add -mvr4130-align and -mno-vr4130-align.
2711         * config/mips/mips.md: Include sched-int.h.
2712         (USEFUL_INSN_P, SEQ_BEGIN, SEQ_END, FOR_EACH_SUBINSN): New macros.
2713         (mips_rtx_costs): Set integer multiplication costs for TUNE_MIPS4130.
2714         (override_options): Enable -mvr4130-align at -O3 and above.
2715         (mips_sim_insn): New variable.
2716         (mips_sim): New structure.
2717         (mips_sim_reset, mips_sim_init, mips_sim_next_cycle, mips_sim_wait_reg)
2718         (mips_sim_wait_regs_2, mips_sim_wait_regs_1, mips_sim_wait_regs)
2719         (mips_sim_wait_units, mips_sim_wait_insn, mips_sim_record_set)
2720         (mips_sim_issue_insn, mips_sim_issue_nop, mips_sim_finish_insn)
2721         (vr4130_avoid_branch_rt_conflict, vr4130_align_insns): New functions.
2722         (mips_reorg): Call vr4130_align_insns.
2723         (vr4130_last_insn): New variable.
2724         (vr4130_true_reg_dependence_p_1, vr4130_true_reg_dependence_p)
2725         (vr4130_swap_insns_p, vr4130_reorder): New functions.
2726         (mips_sched_reorder, mips_variable_issue): Hook in vr4130 code.
2727         (mips_issue_rate): Return 2 for PROCESSOR_R4130.
2728         (mips_use_dfa_pipeline_interface): Return true for the same.
2729         * config/mips/4130.md: New file.
2730         * config/mips/mips.md: Include it.  Add a peephole2 to convert
2731         "mult;mflo" into "mtlo;macc".
2732         (*macc, *umul_acc_di, *smul_acc_di): Use $1 rather than $0 as the
2733         target of maccs.
2734         (*msac_using_macc): New pattern.
2735
2736 2004-05-06  Richard Sandiford  <rsandifo@redhat.com>
2737
2738         * config/mips/5500.md (ir_vr55_store): Set latency to 0.
2739         (ir_vr55_hilo): Split into...
2740         (ir_vr55_mfhilo, ir_vr55_mthilo): ...these new reservations.
2741         (ir_vr55_imul_si, ir_vr55_imadd): Change latency to 5.
2742         (ir_vr55_imul_di): Change latency to 9.  Reserve vr55_mac for 4 cycles.
2743         Add various multiplication bypasses.
2744         * config/mips/mips.c (mips_rtx_costs): Adjust VR5500 costs for integer
2745         multiplication.
2746
2747 2004-05-06  Uros Bizjak  <uros@kss-loka.si>
2748
2749         * config/i386/i386.md (*fscalexf4): Correct insn "mode"
2750         attribute to "XF".
2751
2752 2004-05-05  Uros Bizjak  <uros@kss-loka.si>
2753
2754         * optabs.h (enum optab_index): Add new OTI_fmod and OTI_drem.
2755         (fmod_optab, drem_optab): Define corresponding macros.
2756         * optabs.c (init_optabs): Initialize fmod_optab and drem_optab.
2757         * genopinit.c (optabs): Implement fmod_optab and drem_optab
2758         using fmod?f3 and drem?f3 patterns.
2759         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_FMOD{,F,L}
2760         using fmod_optab and BUILT_IN_DREM{,F,L} using drem_optab.
2761         (expand_builtin): Expand BUILT_IN_FMOD{,F,L} and
2762         BUILT_IN_DREM{,F,L} using expand_builtin_mathfn_2 if
2763         flag_unsafe_math_optimizations is set.
2764
2765         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FPREM_F,
2766         UNSPEC_FPREM_U, UNSPEC_FPREM1_F and UNSPEC_FPREM1_U.
2767
2768         * config/i386/i386.c (ix86_emit_fp_unordered_jump): New function.
2769         * config/i386/i386-protos.h (ix86_emit_fp_unordered_jump):
2770         Prototype here.
2771         * config/i386/i386.md (UNSPEC_FPREM_F, UNSPEC_FPREM_U,
2772         UNSPEC_FPREM1_F, UNSPEC_FPREM1_U): New unspecs to represent x87's
2773         fprem and fprem1 instructions.
2774         (*x86_fnstsw_1): Change input parameter to (reg:CCFP 18).
2775         Rename insn definition to x86_fnstsw_1.
2776         (fpremxf4, fprem1xf4): New patterns to implement fprem and fprem1
2777         x87 instructions.
2778         (fmodsf3, fmoddf3, fmodxf3): New expanders to implement fmodf, fmod
2779         and fmodl built-ins as inline x87 intrinsics.
2780         (dremsf3, dremdf3, dremxf3): New expanders to implement dremf, drem
2781         and dreml built-ins as inline x87 intrinsics.
2782
2783 2004-05-05  Roger Sayle  <roger@eyesopen.com>
2784
2785         * reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.
2786
2787 2004-05-05  Ian Lance Taylor  <ian@wasabisystems.com>
2788
2789         PR driver/9822
2790         * doc/invoke.texi (Spec Files): Remove documentation of %c.
2791
2792 2004-05-05  Chris Demetriou  <cgd@broadcom.com>
2793
2794         * config/mips/mips.md: Update the msub define_split for new mflo/mfhi
2795         representation.
2796
2797 2004-05-06  Paul Brook  <paul@codesourcery.com>
2798
2799         * config/arm/arm-protots.h (vfp_mem_operand): Rename ...
2800         (arm_coproc_mem_operand): ... To this.
2801         * config/arm/arm.c (arm_legitimate_address_p): Allow ldrd modes.
2802         (arm_legitimate_index_p): Ditto.
2803         (vfp_mem_operand): Rename ...
2804         (arm_coproc_mem_operand): ... To this.  Handle writeback modes.
2805         (vfp_secondary_reload_class): Use it.
2806         (output_move_double): Use doubleword load/store instructions.
2807         (arm_hard_regno_mode_ok): Only allow even reg pairs for ldrd.
2808         * config/arm/arm.h (TARGET_LDRD): Define.
2809         (EXTRA_CONSTRAINT_STR_ARM): Add 'Uy'.
2810         * config/gcc/arm/arm.md (arm_movdi): Allow all valid memory operands.
2811         New splitter for invalid doubleword loads.
2812         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Use Uy constraint.
2813         * config/arm/vfp.md (arm_movdi_vfp): Allow all valid memory operands.
2814         * doc/md.texi: Document Uy constraint.
2815
2816 2004-05-05  Jan Hubicka  <jh@suse.cz>
2817
2818         PR opt/14980
2819         * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
2820         inline clones.
2821
2822 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2823
2824         PR target/15290
2825         * config/i386/i386.c (ix86_split_to_parts): Use real_to_target
2826         instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE.
2827
2828 2004-05-05  Mike Stump  <mrs@apple.com>
2829
2830         * config/darwin-c.c (add_framework): Copy the directory name as it
2831         can be freed later.  Also, ensure we always allocate enough room
2832         for the cached framework information.
2833         (find_subframework_header): Keep track of the directory where the
2834         subframework header was found.
2835         (framework_construct_pathname): Speed up by not trying to re-add a
2836         framework.
2837         * cppfiles.c (search_path_exhausted): Arrange for the missing
2838         header callback to be able to set the directory where the header
2839         was found.
2840         (cpp_get_dir): Add.
2841         * cpplib.h (missing_header_cb): Add a parameter.
2842         (cpp_get_dir): Add.
2843
2844 2004-05-03  Mike Stump  <mrs@apple.com>
2845
2846         * doc/invoke.texi (Directory Options): Document -iquote.
2847         * doc/cpp.texi: Likewise.
2848         * doc/cppopts.texi: Likewise.
2849         * c-opts.c (c_common_missing_argument): Add -iquote processing.
2850         (c_common_handle_option): Likewise.
2851         * c.opt (iquote): Add.
2852         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
2853         * c-incpath.c (merge_include_chains): Update comment to use -iquote.
2854
2855         * c-opts.c (case OPT_I): Deprecate -I- support.
2856         * doc/invoke.texi: Likewise.
2857         * doc/cpp.texi: Likewise.
2858         * doc/cppopts.texi: Likewise.
2859
2860 2004-05-05  Steven Bosscher  <stevenb@suse.de>
2861
2862         * basic-block.h (free_basic_block_vars): Update prototype.
2863         * flow.c (free_basic_block_vars): Remove the keep_head_end_p
2864         argument.
2865         (life_analysis): Update call.
2866         * ifcvt.c (if_convert): Likewise.
2867         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
2868         * passes.c (rest_of_handle_final): Likewise.
2869         (rest_of_compilation): Likewise.
2870         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2871
2872         * emit-rtl.c (next_real_insn): Use INSN_P.
2873         (prev_real_insn): Likewise.
2874
2875 2004-05-05  Eric Christopher  <echristo@redhat.com>
2876
2877         * config/mips/mips.md: Update the madd define_split for new mflo/mfhi
2878         representation.
2879
2880 2004-05-05  Paolo Bonzini  <bonzini@gnu.org>
2881
2882         * config/rs6000/rs6000.c (build_opaque_vector_type):
2883         New function.
2884         (rs6000_init_builtins): Use it.
2885
2886 2004-05-04  Bernard Giroud  <bgiroud2@free.fr>
2887
2888         * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
2889         (func_table): Change type from char ** to vms_func_ref.
2890         (write_rtnbeg):  Update to reflect func_table change.  Use
2891         fde->funcdef_number instead of rtnnum in output.
2892         (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
2893
2894 2004-05-04  Paolo Bonzini  <bonzini@gnu.org>
2895             Richard Henderson  <rth@redhat.com>
2896
2897         PR target/14899
2898
2899         * c-common.c (vector_types_convertible_p): New function.
2900         * c-typeck.c (comptypes): Recurse on vector types.
2901         (convert_for_assignment): Use vector_types_convertible_p.
2902         (digest_init): Use vector_types_convertible_p to check
2903         validness of constant vector initializers; otherwise treat
2904         them as scalars.
2905         * tree.c (make_or_reuse_type): New.
2906         (build_common_tree_nodes): Use it.
2907         * cp/call.c (standard_conversion): Likewise.
2908         * cp/typeck.c (comptypes): Recurse on vector types.
2909         (convert_for_assignment): Use vector_types_convertible_p.
2910
2911 2004-05-04  Chris Demetriou  <cgd@broadcom.com>
2912
2913         * config/mips/mips.c (override_options): Default to no
2914         generation of branch-likely operations when tuning for
2915         CPUs where they tend to have a negative performance impact
2916         (e.g., SB-1).
2917
2918 2004-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2919
2920         * expr.c (store_constructor_field): Don't call store_constructor
2921         if bitsize is not a multiple of a byte.
2922
2923 2004-05-04  Richard Sandiford  <rsandifo@redhat.com>
2924
2925         * reload1.c (inherit_piecemeal_p): New function.
2926         (emit_reload_insns): When reloading a group of hard registers, use
2927         inherit_piecemeal_p to decide whether the values of individual hard
2928         registers can be inherited.
2929
2930 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2931
2932         * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
2933         * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
2934         * config/t-linux (LIB2ADDEHDEP): Likewise.
2935
2936 2004-05-04  Paul Brook  <paul@codesourcery.com>
2937
2938         * config/arm/crti.asm: Push an even number of registers.
2939         * config/arm/crtn.asm: And restore them.  Load via sp.
2940
2941 2004-05-04  Paolo Bonzini  <bonzini@gnu.org>
2942
2943         * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
2944         Collect overhead information.
2945         (ggc_alloc_stat): New name of ggc_alloc.  Add MEM_STAT_DECL
2946         parameter and pass it through.
2947         (ggc_alloc_typed_stat): New name of ggc_alloc_typed.  Add
2948         MEM_STAT_DECL parameter and pass it through.
2949         (ggc_alloc_zone_stat): New name of ggc_alloc_zone.  Add
2950         MEM_STAT_DECL parameter and pass it through.
2951
2952 2004-05-03  Aldy Hernandez  <aldyh@redhat.com>
2953
2954         * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
2955
2956         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
2957
2958         * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
2959         rs6000_hard_regno_nregs.
2960
2961 2004-05-03  Eric Christopher  <echristo@redhat.com>
2962
2963         * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
2964         prologue insn instead of setting up call.
2965         (s390_emit_epilogue): Ditto.
2966         * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
2967         (define_constants): Add numbers for above patterns.
2968
2969 2004-05-03  Eric Christopher  <echristo@redhat.com>
2970
2971         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
2972         * config/s390/s390.c (s390_conditional_register_usage): ...here.
2973         * config/s390/s390-protos.h: Prototype.
2974
2975 2004-05-03  Joe Buck <jbuck@welsh-buck.org>
2976
2977         * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
2978         assignment.
2979
2980 2004-05-03  Eric Christopher  <echristo@redhat.com>
2981
2982         * config/mips/mips.md: Fix branch length attribute definition.
2983
2984 2004-05-03  Aldy Hernandez  <aldyh@redhat.com>
2985
2986         * config.gcc: Remove --enable-altivec support.
2987
2988         * config/rs6000/altivec-defs.h: Remove.
2989
2990 2004-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2991
2992         * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
2993         * fixinc/fixincl.x: Regenerate.
2994
2995 2004-05-03  Uros Bizjak  <uros@kss-loka.si>
2996
2997         * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
2998         definition.
2999         (log?f2, log10?f2, log2?f2): Reimplement expanders with
3000         float_truncate insn.
3001         (*fxtractsf3, *fxtractdf3): Remove insn definition.
3002         (logb?f2): Reimplement expanders with float_truncate insn.
3003
3004 2004-05-03  Graham Stott  <graham.stott@btinternet.com>
3005
3006         PR 14718
3007         * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
3008         force_type_die for CONST_DECL.
3009
3010 2004-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3011             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3012
3013         * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
3014         tm-dwarf2.h to tm_file.
3015         (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
3016         * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
3017         (ASM_DEBUG_SPEC): Delete.
3018
3019 2004-05-03  Uros Bizjak  <uros@kss-loka.si>
3020
3021         * optabs.h (enum optab_index): Add new OTI_expm1.
3022         (expm1_optab): Define corresponding macro.
3023         * optabs.c (init_optabs): Initialize expm1_optab.
3024         * genopinit.c (optabs): Implement expm1_optab using expm1?f2
3025         patterns.
3026         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
3027         using expm1_optab.
3028         (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
3029         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
3030
3031         * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
3032         to implement expm1, expm1f and expm1l built-ins as inline x87
3033         intrinsics.
3034
3035 2004-05-02  Alexandre Oliva  <aoliva@redhat.com>
3036
3037         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
3038         * config/frv/frv.md (*return_true, *return_false): New patterns.
3039
3040 2004-05-02  Kazu Hirata  <kazu@cs.umass.edu>
3041
3042         * rtl.h (PHI_NODE_P): Remove.
3043
3044 2004-05-02  Eric Botcazou  <ebotcazou@act-europe.fr>
3045
3046         PR middle-end/14988
3047         * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
3048         when passed -2 as 'align'.
3049         (put_var_into_stack): Use 'bool' as the type for the three local
3050         predicates.  Adjust calls to put_reg_into_stack.
3051         When passed a CONCAT, instruct put_reg_into_stack to use
3052         a consecutive stack slot for the second part.
3053         (put_reg_into_stack): Remove 'promoted_mode' parameter, add
3054         'consecutive_p' parameter.  Turn the three predicates into 'bool'
3055         parameters.  Retrieve the register mode from 'reg'.
3056         When consecutive_p is true, instruct assign_stack_local_1 to use
3057         BITS_PER_UNIT alignment.
3058         (put_addressof_into_stack): Use 'bool' as the type for the two
3059         local predicates. Adjust call to put_reg_into_stack.
3060
3061 2004-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3062
3063         * fold-const.c (fold_convert_const, fold): Add missing
3064         FIX_ROUND_EXPR case.
3065
3066 2004-05-02  Alexandre Oliva  <aoliva@redhat.com>
3067
3068         * configure.ac (FLEX, BISON): Only use tools from the build tree
3069         if build equals host.
3070         * configure: Rebuilt.
3071
3072         * config/frv/frv-protos.h (frv_expand_epilogue,
3073         frv_expand_fdpic_call): Add bool argument.
3074         * config/frv/frv.c (frv_function_ok_for_sibcall): New.
3075         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
3076         (frv_expand_epilogue): Use new argument to decide whether to emit
3077         return instruction or copy the return address to LR.
3078         (frv_expand_fdpic_call): Inline PLT entry when emitting direct
3079         sibcalls.
3080         (sibcall_operand): New.
3081         * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
3082         PLUS nor LABEL_REF.  Add sibcall_operand.
3083         * config/frv/frv.md (call, call_value): Pass false to
3084         frv_expand_fdpic_call.
3085         (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
3086         (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
3087         sibcall_value_internal, sibcall_value_fdpicdi): New.
3088         (return_unsigned_true, return_unsigned_false): New.
3089         (epilogue): Adjust call to frv_expand_epilogue.
3090         (sibcall_epilogue): New.
3091
3092         * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
3093         (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
3094         before redefining them.
3095
3096 2004-05-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3097
3098         * builtins.c (fold_fixed_mathfn): New function.
3099         (fold_builtin_lround, fold_builtin): Use it.
3100
3101 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
3102
3103         * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
3104         also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
3105
3106 2004-05-01  Kazu Hirata  <kazu@cs.umass.edu>
3107
3108         * config/cris/cris.h: Revert my "fix comment typos" patch.
3109
3110 2004-05-01  Richard Sandiford  <rsandifo@redhat.com>
3111
3112         * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
3113
3114 2004-05-01  Falk Hueffner  <falk@debian.org>
3115
3116         * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
3117         builtin_insll): Disallow 0 as first input operand.
3118
3119 2004-05-01  Falk Hueffner  <falk@debian.org>
3120
3121         * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
3122
3123 2004-05-01  Ulrich Weigand  <uweigand@de.ibm.com>
3124
3125         PR middle-end/15054
3126         * expr.c (expand_expr_real): Do not call preserve_temp_slots
3127         on a TARGET_EXPR temp.
3128         * function.c (assign_stack_temp_for_type): Set 'keep' flag for
3129         TARGET_EXPR temp slots.
3130
3131 2004-05-01  Paolo Bonzini  <bonzini@gnu.org>
3132
3133         * simplify-rtx.c (simplify_ternary_operation): When
3134         converting an IF_THEN_ELSE to a relational op, return
3135         correct mode.
3136
3137 2004-04-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3138
3139         * builtins.c (fold_builtin_round): Fix comment typo.
3140         (fold_builtin_lround): New function.
3141         (fold_builtin): Use it.
3142
3143 2004-04-20  Andrew Pinski  <pinskia@physics.uc.edu>
3144
3145         PR target/11608
3146         * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
3147         more like the one in config/dbxelf.h.
3148
3149 2004-04-30  Zack Weinberg  <zack@codesourcery.com>
3150
3151         * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
3152         and adjust definition accordingly.
3153         (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
3154         (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
3155         * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
3156         VECTOR_TYPE.
3157
3158 2004-04-30  Jason Merrill  <jason@redhat.com>
3159
3160         PR c++/14587
3161         * config/i386/winnt.c (associated_type): Look for attributes on
3162         the TYPE_MAIN_VARIANT of *this.
3163         * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
3164         apply the attributes to the variants.
3165
3166 2004-04-30  Paul Brook  <paul@codesourcery.com>
3167
3168         * config.gcc: Simplify arm --with-{cpu,tune} test.
3169         * config/arm/arm-cores.def: Document whitespace restrictions.
3170
3171 2004-04-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3172
3173         PR other/1963
3174         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
3175
3176 2004-04-30  Brian Ford  <ford@vss.fsi.com>
3177             DJ Delorie  <dj@redhat.com>
3178
3179         * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
3180         (DWARF2_DEBUGGING_INFO): Define to enable.
3181         (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
3182         DWARF2.
3183         * configure.ac (Target-specific assembler checks)
3184         <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
3185         relocs.
3186         * configure: Regenerate.
3187         * config.in: Likewise.
3188
3189         * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
3190         (ASM_OUPUT_DWARF_OFFSET): Define.
3191
3192 2004-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
3193
3194         * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
3195         (s390_emit_call): New function prototype added.
3196         (s390_tls_get_offset): Function removed.
3197         * config/s390/s390.c (s390_function_ok_for_sibcall,
3198         s390_call_saved_register_used_p): New functions.
3199         (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
3200         (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
3201         (s390_emit_tls_call_insn): New function.
3202         (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
3203         emit_call_insn.
3204         (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
3205         (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
3206         added.
3207         * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
3208         register number used to hold the target address for sibcalls.
3209         * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
3210         New expanders.
3211         ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
3212         "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
3213         ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
3214         Expanders removed.
3215         ("call", "call_value"): Call s390_emit_call to emit the call patterns.
3216         ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
3217         "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
3218         ("epilogue"): Changed the call to s390_emit_epilogue to use the
3219         new parameter.
3220
3221 2004-04-30  Kazu Hirata  <kazu@cs.umass.edu>
3222
3223         * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
3224         cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
3225         reg-stack.c, varasm.c, config/alpha/ev4.md,
3226         config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
3227         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
3228         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
3229         config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
3230         config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
3231         config/ia64/itanium2.md, config/ip2k/ip2k.c,
3232         config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
3233         config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
3234         comment typos.
3235
3236 2004-04-30  Paul Brook  <paul@codesourcery.com>
3237
3238         * config.gcc: Default ep9312 to hard-float.
3239         * config/arm/arm-cores.def: Add ARCH field.
3240         * config/arm/arm.c (FL_FOR_ARCH*): Define.
3241         (arm_arch_cirrus): New variable.
3242         (all_cores): Set and use arch.
3243         (all_architectures): Ditto.
3244         (arm_arch_name): New variable.
3245         (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
3246         Set and use arm_arch_cirrus.
3247         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
3248         (enum processor_type): Update ARM_CORE define.
3249         (enum target_cpus): Add.  Replaces TARGET_CPU_* defines.
3250         (CPP_SPEC): Remove %(cpp_cpu_arch).
3251         (CPP_ARCH_DEFAULT_SPEC): Remove.
3252         (CPP_CPU_ARCH_SPEC): Remove.
3253         (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
3254         (FPUTYPE_DEFAULT): Don't define here.
3255
3256 2004-04-30  J"orn Rennecke <joern.rennecke@superh.com>
3257
3258         * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
3259         updates too.
3260
3261 2004-04-30  Paul Brook  <paul@codesourcery.com>
3262
3263         * arm.c (arm_needs_doubleword_align): Use mode alignment.
3264
3265 2004-04-30  Paolo Bonzini  <bonzini@gnu.org>
3266
3267         * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
3268         vec_sububs.
3269         [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
3270         duplicates.
3271
3272 2004-04-30  Uros Bizjak  <uros@kss-loka.si>
3273
3274         * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
3275         atan2?f3 expanders.
3276
3277 2004-04-29  Nick Clifton  <nickc@redhat.com>
3278
3279         Bug 14093
3280         * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
3281         * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
3282         Delete static from definition.
3283         * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
3284
3285 2004-04-30  Uros Bizjak  <uros@kss-loka.si>
3286
3287         * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
3288         UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
3289         <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
3290         <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
3291
3292 2004-04-29  Richard Guenther  <richard.guenther@uni-tuebingen.de>
3293
3294         * commom.opt (Wfatal-errors): Add it.
3295         * diagnostic.c (flag_fatal_errors): Define it.
3296         (diagnostic_action_after_output): Check for flag_fatal_errors.
3297         * flags.h (flag_fatal_errors): Declare it.
3298         * opts.c (common_handle_option): Add OPT_Wfatal_errors.
3299         * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
3300
3301 2004-04-30  Josef Zlomek  <zlomekj@suse.cz>
3302
3303         * gcse.c (remove_reachable_equiv_notes): Delete notes also in
3304         blocks which have kill flag set.
3305
3306 2004-04-29  Ben Elliston  <bje@au.ibm.com>
3307
3308         * configure.ac (--with-as): Abort if user-supplied assembler
3309         cannot be executed.
3310         (--with-ld): Likewise for the linker.
3311         * configure: Regenerate.
3312
3313 2004-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3314
3315         * convert.c (convert_to_integer): Ensure `long_integer_type_node'
3316         isn't NULL before using it.
3317
3318 2004-04-29  Richard Sandiford  <rsandifo@redhat.com>
3319
3320         PR target/15189
3321         * config/mips/mips.md (load_df_low): Use default length.
3322         (load_df_high, store_df_high): Likewise.
3323
3324 2004-04-29  Kazu Hirata  <kazu@cs.umass.edu>
3325
3326         * config/mips/mips.md, config/mips/sb1.md,
3327         config/rs6000/rs6000.c: Fix comment typos.
3328
3329 2004-04-29  Kazu Hirata  <kazu@cs.umass.edu>
3330
3331         * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
3332         Fix comment typos.
3333
3334 2004-04-29  Douglas B Rupp  <rupp@gnat.com>
3335
3336         * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
3337         (delete_if_ordinary): Use above macro.
3338         * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
3339         Update copyright.
3340         * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
3341
3342 2004-04-29  Richard Earnshaw  <rearnsha@arm.com>
3343
3344         * c-decl.c (get_parm_info): Use the correct tag keywords when
3345         warning about type declarations in prototypes.
3346
3347 2004-04-29  Paul Brook  <paul@codesourcery.com>
3348
3349         * config.gcc: Pull list of cores from arm-cores.def.
3350
3351 2004-04-29  Paolo Bonzini  <bonzini@gnu.org>
3352
3353         * combine.c (combine_simplify_rtx): Adjust call to use
3354         simplify_relational_operation.  Do not use SELECT_CC_MODE
3355         when a comparison already has a MODE_CC mode.
3356
3357 2004-04-29  Paolo Bonzini  <bonzini@gnu.org>
3358
3359         (simplify_set): simplify_relational_operation may now
3360         return another relational expression.
3361         * cse.c (fold_rtx): simplify_relational_operation now
3362         takes of computing the comparison mode.
3363         * dojump.c (compare_from_rtx): Use simplify_relational_operation,
3364         remove dead code.
3365         (do_compare_rtx_and_jump): Likewise.
3366         * integrate.c (subst_constants): simplify_relational_operation
3367         may now return another relational expression.
3368         * simplify-rtx.c (simplify_gen_relational): Move most code to
3369         the new simplify_relational_operation and
3370         simplify_relational_operation_1 functions.
3371         (simplify_relational_operation): Rewritten.
3372         (simplify_relational_operation_1): New function.
3373         (simplify_ternary_operation): simplify_relational_operation
3374         may now return another relational expression.
3375         (simplify_rtx): Remove unnecessary temp variable.
3376
3377 2004-04-29  Uros Bizjak  <uros@kss-loka.si>
3378
3379         * reg-stack.c (swap_to_top): New function.
3380         (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
3381         swap_to_top().
3382         (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
3383         (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
3384         UNSPEC_FSCALE_EXP.
3385
3386         * config/i386/i386.md (UNSPEC_FSCALE): Remove.
3387         (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
3388         (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
3389         x87's fscale insn.
3390         (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
3391         (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
3392         patterns.
3393
3394 2004-04-28  Serge Belyshev  <1319@bot.ru>
3395
3396         PR 14944
3397         * coverage.c (read_counts_file): Fix usage of warning () call.
3398         * pretty-print.c (pp_base_format_text): Fix typo in the comment.
3399
3400 2004-04-28  Ben Elliston  <bje@au.ibm.com>
3401
3402         * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
3403         options with "-" in the option index.
3404         (SPARC Options): Likewise.
3405         (M32R/D Options): Likewise.
3406
3407 2004-04-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3408
3409         * convert.c (convert_to_integer): Convert (long)round -> lround,
3410         etc.
3411
3412 2004-04-28  Andrew Pinski  <pinskia@physics.uc.edu>
3413
3414         * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
3415         Return false if we do not have fp register.
3416         (addrs_ok_for_quad_peep): Rename to ...
3417         (mems_ok_for_quad_peep): this.
3418         Add check for volatile memory.
3419         * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
3420         Rename to ...
3421         (mems_ok_for_quad_peep): this.
3422         * config/rs6000/rs6000.md: Change peephole's for lfq/stq
3423         to peephole2's.
3424         (lfq_power2): New instruction.
3425         (stfq_power2): Likewise.
3426
3427 2004-04-28  Jan Hubicka  <jh@suse.cz>
3428
3429         PR c/15004
3430         * function.c (do_warn_unused_parameter): Break out form ...
3431         (expand_function_end): ... here; warn only when not using cgraphunit.
3432         * function.h (do_warn_unused_parameter): Declare.
3433         * cgraphunit.c: Include function.h.
3434         (cgraph_finalize_function): Do unused parameter warning.
3435         * Makefile.in (cgraphunit.o): Depend on function.h
3436
3437 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
3438
3439         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
3440         calling install-info on $(DESTDIR)$(infodir)/dir already being
3441         present.
3442
3443 2004-04-28  Paul Brook  <paul@codesourcery.com>
3444
3445         * dwarf2out.c (mem_loc_descriptor): Handle shifts.
3446
3447 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3448
3449         * gcse.c (find_moveable_store): Do not accept store insns with
3450         REG_EH_REGION note.
3451
3452 2004-04-28  Paul Brook  <paul@codesourcery.com>
3453
3454         * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
3455         * function.c (assign_temp): Ditto.
3456         * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
3457
3458 2004-04-28  Paul Brook  <paul@codesourcery.com>
3459
3460         * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
3461
3462 2004-04-28  Josef Zlomek  <zlomekj@suse.cz>
3463
3464         * var-tracking.c (variable_different_p): Add a parameter
3465         compare_current_location, compare current location of variable parts
3466         if it is true.
3467         (dataflow_set_different_1): Pass compare_current_location == false.
3468         (dataflow_set_different_2): Pass compare_current_location == false.
3469         (emit_notes_for_differences_1): Pass compare_current_location == true.
3470
3471 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3472
3473         * config/s390/s390.md ("casesi"): Mark jump table access as
3474         non-trapping and unchanging.
3475
3476 2004-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3477
3478         PR debug/14829
3479         * dwarf2out.c (reg_number): Rename to dbx_reg_number.  Adjust all
3480         callers.
3481         (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
3482         number for indexing hard_regno_nregs array.
3483
3484 2004-04-27  Geoffrey Keating  <geoffk@apple.com>
3485
3486         * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
3487         * config/darwin-crt2.c: Only have contents on __ppc__.
3488
3489 2004-04-27  Bob Wilson  <bob.wilson@acm.org>
3490
3491         * config/xtensa/xtensa.c (call_insn_operand): Check
3492         SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
3493         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
3494         * config/xtensa/xtensa.md (call, call_value): Likewise.
3495
3496 2004-04-27  Wu Yongwei  <adah@sh163.net>
3497
3498         * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
3499         (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
3500         (__gthread_mutex_init_function): Replace CreateMutex with
3501         initialization of custom mutex using CreateSemaphore.
3502         (__gthread_mutex_lock): Use InterlockedIncrement.
3503         (__gthread_mutex_trylock): Use InterlockedCompareExchange.
3504         (__gthread_mutex_unlock): Use InterlockedDecrement and
3505         ReleaseSemaphore to unlock
3506         * config/i386/gthr-win32.c (__gthread_mutex_init_function,
3507         __gthread_mutex_lock, __gthread_mutex_trylock,
3508         __gthread_mutex_unlock): Adjust to match inline versions in
3509         gthr-win32.h.
3510
3511 2004-04-27  Paul Brook  <paul@codesourcery.com>
3512
3513         * config/arm/arm.c (arm_promote_prototypes): New function.
3514         (TARGET_PROMOTE_PROTOTYPES): Use it.
3515
3516 2004-04-27  Paul Brook  <paul@codesourcery.com>
3517
3518         * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
3519
3520 2004-04-26  Bernard Giroud  <bgiroud@free.fr>
3521
3522         * config/alpha.c (alpha_end_function): For OpenVMS gas,
3523         correctly output .pdesc directive before .end.
3524
3525 2004-04-26  James E Wilson  <wilson@specifixinc.com>
3526
3527         Bug 14927
3528         * config/ia64/ia64.md (movxf): New local op0.  Handle case where
3529         operands[0] is a SUBREG.  Handle case where operands[1] is a GR reg.
3530
3531 2004-04-26  Zack Weinberg  <zack@codesourcery.com>
3532
3533         * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
3534         * config/pa/pa-hpux10.h: Likewise.
3535         * config/pa/pa-hpux11.h: Likewise.
3536
3537 2004-04-26  Geoffrey Keating  <geoffk@apple.com>
3538
3539         * doc/invoke.texi (Overall Options): Document default for -o
3540         for PCH files.
3541
3542 2004-04-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3543
3544         * builtins.c (expand_builtin_update_setjmp_buf): New function.
3545         (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
3546         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
3547
3548 2004-04-26  Paul Brook  <paul@codesourcery.com>
3549
3550         * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
3551
3552 2004-04-26  Paul Brook  <paul@codesourcery.com>
3553
3554         * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
3555
3556 2004-04-25  Roger Sayle  <roger@eyesopen.com>
3557
3558         * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
3559         fold (build1 (NEGATE_EXPR, ...)).  Optimize X / -1 as -X and
3560         X % -1 as 0.
3561
3562 2004-04-26  Hans-Peter Nilsson  <hp@bitrange.com>
3563
3564         PR bootstrap/15141
3565         * except.c (connect_post_landing_pads): Delete insns after the
3566         barrier when generating a unwind_resume_libfunc call.
3567
3568 2004-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3569
3570         PR/c++ 15119
3571         * tree.c (substitute_placeholder_in_expr, case 4): New case,
3572         for TARGET_EXPR.
3573
3574 2004-04-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3575
3576         * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
3577         __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
3578         inhibit_libc is defined.
3579
3580 2004-04-25  Richard Sandiford  <rsandifo@redhat.com>
3581
3582         * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
3583         * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
3584         * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
3585         (TARGET_SCHED_VARIABLE_ISSUE): Define.
3586         (mips_adjust_cost): Move later in file, next to other sched hooks.
3587         (mips_macc_chains_last_hilo): New variable.
3588         (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
3589         (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
3590         * config/mips/mips.md (may_clobber_hilo): New attribute.
3591
3592 2004-04-24  Roger Sayle  <roger@eyesopen.com>
3593             Bruce Korb  <bkorb@gnu.org>
3594
3595         * fixinc/inclhack.def (aix_syswait_2): New fix.
3596         * fixinc/fixincl.x: Regenerate.
3597         * fixinc/tests/base/sys/wait.h: Update for new test.
3598
3599 2004-04-24  Alan Modra  <amodra@bigpond.net.au>
3600
3601         PR target/14960
3602         * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
3603         to non_fixed_size, and leave out fixed_size from the sum.
3604         (generate_set_vrsave): Correct clobbers.
3605         (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
3606         (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
3607         (rs6000_libcall_value): Likewise.
3608         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
3609         (FUNCTION_ARG_REGNO_P): Likewise.
3610
3611 2004-04-24  Ulrich Weigand  <uweigand@de.ibm.com>
3612
3613         * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
3614         is a CONST_INT.
3615         (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
3616         with NARROW_OP1 instead of OP1.
3617
3618 2004-04-24  Ulrich Weigand  <uweigand@de.ibm.com>
3619
3620         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
3621         and __s390x__ hosts.
3622
3623 2004-03-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3624
3625         * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
3626         _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
3627         * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
3628         BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
3629         BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
3630         * builtins.c (expand_builtin_fork_or_exec): New.
3631         (expand_builtin): Call it.
3632         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
3633         BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
3634         * c-common.c (PID_TYPE): New macro.
3635         (c_common_nodes_and_builtins): Initialize pid_type_node.
3636         * calls.c (special_function_p): Do not handle fork and exec.
3637         (expand_call): Do not handle ECF_FORK_OR_EXEC.
3638         * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
3639         __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
3640         * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
3641         __gcov_execv, __gcov_execvp, __gcov_execve): New.
3642         * tree.h (enum tree_index): Add TI_PID_TYPE.
3643         (pid_type_node): New macro.
3644         (ECF_FORK_OR_EXEC): Removed.
3645
3646 2004-04-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
3647
3648         PR optimization/13985
3649         * cfgloopmanip.c (fix_loop_placements): New prototype.
3650         Call fix_bb_placements on the preheader of loops that have
3651         been reparented.
3652         (remove_path): Adjust call to fix_loop_placements.
3653
3654 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
3655
3656         * config/darwin7.h: New file.
3657         * config.gcc (*-*-darwin*): Add darwin7.h if the
3658         version is greater than 6.
3659         * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
3660         (MATH_LIBRARY): Wrap in ifdefs.
3661
3662 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
3663
3664         * config/arm/arm.c (arm_output_epilogue): Reverse the order of
3665         loading iWMMXt registers with a frame pointer.  Use post-increment
3666         without a frame pointer.
3667         (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
3668
3669 2004-04-23  Paolo Bonzini  <bonzini@gnu.org>
3670
3671         * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
3672         mode" rather than "-funit-at-a-time" since -O2 enables it
3673         without requiring -f* options.  Refer to -fprofile-generate and
3674         -fprofile-use correctly.  Move -funit-at-a-time among options
3675         enabled by -O.  Add information about unit-at-a-time caveats.
3676
3677 2004-04-22  Per Bothner  <per@bothner.com>
3678
3679         * line-map.h (struct line_maps):  New field highest_line.
3680         (linemap_position_for_column):  Make non-inline function.
3681         (LINEMAP_POSITION_FOR_COLUMN):  New macro.
3682         * line-map.c (linemap_init):  Clear highest_line field.
3683         (linemap_add):  Set highest_line field.
3684         (linemap_line_start):  Minor optimization - use highest_line field.
3685         Reduce maximum column hint to 10000.  Update highest_line field.
3686         (linemap_position_for_column):  Moved from line-map.h.  Optimize a bit.
3687         * cpphash.h (struct cpp_reader):  Remove line field - instead use
3688         line_table->highest_line.
3689         (saved_line):  Remove unused field.
3690         (CPP_INCREMENT_FILE):  Don't do linemap_lookup - just use newest map.
3691         Use  line_table's highest_line field instead of cpp_reader's line.
3692         * cpplib.c (start_directive):  Likewise use highest_line field.
3693         (do_line, do_linemarker):  Likewise just use newest map.
3694         (_cpp_do_file_change):  Don't need to set cpp_reader's line field.
3695         * cpperror.c (cpp_error):  Likewise use highest_line field.
3696         * cppfiles.c (open_file_failed:  Likewise.
3697         (cpp_make_system_header):  Likewise use newest map and highest_line.
3698         * cppinit.c (cpp_create_reader):  Don't initialize removed field.
3699         * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
3700         skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
3701         _cpp_lex_direct):  Likewise use highest_line.
3702         (_cpp_lex_direct):  Use new LINEMAP_POSITION_FOR_COLUMN macro.
3703         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use highest_line,
3704         and use newest map.
3705         * cpppch.c (cpp_read_state):  Don't save+restore cpp_reader's line.
3706         * cpptrad.c (_cpp_overlay_buffer):  Don't save cpp_reader's line.
3707         (copy_comment, _cpp_scan_out_logical_line):  Likewise use highest_line.
3708
3709 2004-04-23  Alan Modra  <amodra@bigpond.net.au>
3710
3711         PR bootstrap/14992
3712         * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
3713         * config/linux.h (USE_LD_AS_NEEDED): Define.
3714         * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
3715         * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
3716         * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
3717         * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
3718         * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
3719         * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
3720         * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
3721
3722 2004-04-22  Per Bothner  <per@bothner.com>
3723
3724         * cppinit.c (cpp_read_main_file):  Return NULL rather than false.
3725         Fixes PR preprocessor/15067.
3726
3727 2004-04-23  Andreas Schwab  <schwab@suse.de>
3728
3729         * config/ia64/ia64intrin.h: Add intermediate cast to void * to
3730         avoid aliasing warning.
3731
3732 2004-04-22  Jan Hubicka  <jh@suse.cz>
3733             Mostafa Hagog <mustafa@il.ibm.com>
3734
3735       * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
3736       * cfgloopanal.c (expected_loop_iterations): Change the return value
3737
3738 2004-04-22  Jakub Jelinek  <jakub@redhat.com>
3739
3740         * cselib.h (struct elt_loc_list): Remove canon_loc field.
3741         * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
3742         (cselib_invalidate_mem): Remove all canon_loc and canon_x
3743         traces.
3744
3745 2004-04-22  Josef Zlomek  <zlomekj@suse.cz>
3746
3747         Revert
3748         2004-04-20  Josef Zlomek  <zlomekj@suse.cz>
3749
3750                 * var-tracking.c (variable_part_different_p): Variable parts
3751                 differ when the most recent locations differ.
3752
3753 2004-04-22  Richard Sandiford  <rsandifo@redhat.com>
3754
3755         * doc/invoke.texi: Remove the MIPS -membedded-pic option.
3756         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
3757         (embedded_pic_offset): Delete.
3758         * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete.  Shuffle other
3759         MASK_* constants.
3760         (TARGET_EMBEDDED_PIC): Delete.
3761         (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
3762         (ASM_SPEC): Remove -membedded-pic.
3763         (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
3764         (ASM_OUTPUT_CASE_LABEL): Likewise.
3765         * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
3766         * config/mips/windiss.h (ASM_SPEC): Likewise.
3767         * config/mips/mips.c (struct machine_function): Remove
3768         embedded_pic_fnaddr_rtx.
3769         (TARGET_ENCODE_SECTION_INFO): Remove override.
3770         (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
3771         (override_options): Remove -membedded-pic handling.
3772         (print_operand): Remove handling of '%S'.
3773         (mips_select_section: Remove -membedded-pic handling.
3774         (mips_encode_section_info): Delete.
3775         (mips_output_conditional_branch): Remove mention of -membedded-pic.
3776         * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
3777         -membedded-pic handling.
3778         (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
3779
3780 2004-04-22  Alan Modra  <amodra@bigpond.net.au>
3781
3782         * var-tracking.c (frame_base_decl): Remove useless GTY.
3783
3784 2004-04-21  Aldy Hernandez  <aldyh@redhat.com>
3785
3786         * config/rs6000/rs6000.c (rs6000_override_options): Error when
3787         user wants altivec and e500 instructions.
3788
3789 2004-04-21  H.J. Lu  <hongjiu.lu@intel.com>
3790
3791         PR target/14813
3792         * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
3793         in .init_array section to ...
3794         * config/ia64/crtbegin.asm: Here.
3795
3796         * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
3797         and hidden if HAVE_INITFINI_ARRAY is defined.
3798
3799 2004-04-21  James E Wilson  <wilson@specifixinc.com>
3800
3801         * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
3802         * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
3803         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
3804         (fp_register_operand, lo_operand): New.
3805         (mips_rtx_costs): Add TUNE_SB1 support.
3806         (mips_issue_rate): Add comment.  Add PROCESSOR_SB1 support.
3807         (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
3808         (mips_multipass_dfa_lookahead): New.
3809         * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
3810         TUNE_SB1): New.
3811         (TARGET_SWITCHES): Add -mfp-exceptions support.
3812         (TARGET_FP_EXCEPTIONS_DEFAULT): New.
3813         (BRANCH_COST): Fix whitespace.
3814         * config/mips/mips.md: Include sb1.md.
3815         * config/mips/sb1.md: New file.
3816         * doc/invoke.texi: Document -mfp-exceptions.
3817
3818         * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS.  Fix
3819         comment.
3820         * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
3821         (fixincl.o-warn): Delete.
3822
3823 2004-04-21  Andrew Pinski  <pinskia@physics.uc.edu>
3824
3825         * config/rs6000/rs6000 (print_operand) ['z']:
3826         Change ifdef of TARGET_MACHO to if TARGET_MACHO.
3827
3828 2004-04-21 Daniel Jacobowitz  <drow@mvista.com>
3829
3830         * config.gcc: Support --with-arch=iwmmxt for ARM.
3831
3832 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3833
3834         * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
3835         in two more places; remove unneeded force_reg
3836
3837 2004-04-21  Andrew Pinski  <pinskia@physics.uc.edu>
3838
3839         * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
3840         for TARGET_MACHO.
3841         (print_operand): For TARGET_MACHO check to see if we need a stub
3842         and output one if we need it.
3843
3844         PR debug/15033
3845         * dwarf2out.c (rtl_for_decl_location): Check for NULL
3846         rtl.
3847
3848 2004-04-20  James E Wilson  <wilson@specifixinc.com>
3849
3850         * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
3851         (vall_value_gp): Likewise.
3852
3853 2004-04-20  DJ Delorie  <dj@redhat.com>
3854
3855         * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
3856         variables stored in word registers, then in memory.
3857
3858 2004-04-20  Eric Christopher  <echristo@redhat.com>
3859
3860         * cp/parser.c (cp_parser_declaration): Move translate
3861         up before tokens are lexed.
3862
3863 2004-04-20  Uros Bizjak  <uros@kss-loka.si>
3864
3865         * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
3866         (asin_optab, acos_optab): Define corresponding macros.
3867         * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
3868         * genopinit.c (optabs): Implement asin_optab and acos_optab
3869         using asin?f2 and acos?f2 patterns.
3870         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
3871         using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
3872         (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
3873         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
3874
3875         * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
3876         acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
3877         acos, acosf and acosl built-ins as inline x87 intrinsics.
3878
3879 2004-04-20  Paul Brook  <paul@codesourcery.com>
3880
3881         * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
3882
3883 2004-04-20  Paul Brook  <paul@codesourcery.com>
3884
3885         * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
3886
3887 2004-04-20  Paolo Bonzini  <bonzini@gnu.org>
3888
3889         Revert part of 2004-04-17 change that moved -frename-registers
3890         to -O1.  -frename-registers is buggy.
3891
3892         * toplev.c (flag_rename_registers): Initialize to 0.
3893         * doc/invoke.texi (Optimize options): Move -frename-registers
3894         to "Not triggered by any -O level" section.  Adjust commentary
3895         accordingly.
3896
3897 2004-04-20  Anil Paranjpe <anilp1@kpitcummins.com>
3898
3899         * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
3900
3901 2004-04-20  Richard Sandiford  <rsandifo@redhat.com>
3902
3903         * config/mips/mips.c (mips_legitimize_move): Generate special patterns
3904         for mflo and mfhi instructions.
3905         (mips_output_move): Remove mflo and mfhi handling.
3906         * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
3907         (*mulsidi3_64bit): Update for new mfhi/mflo representation.
3908         Likewise various define_peephole2s.
3909         (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
3910         alternatives.
3911         (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
3912         (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
3913         (mfhilo_di, mfhilo_si): New patterns.
3914
3915 2004-04-20  Josef Zlomek  <zlomekj@suse.cz>
3916
3917         * function.c (assign_parms): Force
3918         MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
3919
3920 2004-04-20  Josef Zlomek  <zlomekj@suse.cz>
3921
3922         * var-tracking.c (variable_part_different_p): Variable parts differ
3923         when the most recent locations differ.
3924
3925 2004-04-19  James E Wilson  <wilson@specifixinc.com>
3926
3927         * rtl.h (reg_set_last): Delete declaration.
3928         * rtlanal.c (reg_set_last): Delete.
3929
3930 2004-04-19  Roger Sayle  <roger@eyesopen.com>
3931
3932         * fold-const.c (fold_convert): Make function extern/public.
3933         * tree.h (fold_convert): Prototype here.
3934         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
3935         expand_builtin_strrchr, expand_builtin_strpbrk,
3936         expand_builtin_mempcpy, expand_builtin_bcopy,
3937         expand_builtin_bzero, expand_builtin_memcmp,
3938         expand_builtin_strcmp, expand_builtin_strncmp,
3939         stabilize_va_list, expand_builtin_sprintf,
3940         fold_trunc_transparent_mathfn, fold_builtin_logarithm,
3941         fold_builtin_exponent, fold_builtin_mempcpy,
3942         fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
3943         fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
3944         fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
3945
3946 2004-04-19  Aldy Hernandez  <aldyh@redhat.com>
3947
3948         * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
3949         (move_from_CR_gt_bit): New.
3950         (cceq_ior_compare): Name previously unnamed pattern.  Disable for
3951         E500.
3952         (cceq_rev_compare): Name previously unnamed pattern.  Allow for
3953         E500.
3954
3955         * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
3956         (tstsfeq_gpr): Same.
3957         (cmpsfgt_gpr): Same.
3958         (tstsfgt_gpr): Same.
3959         (cmpsflt_gpr): Same.
3960         (tstsflt_gpr): Same.
3961         (e500_cceq_ior_compare): New.
3962         (e500_flip_gt_bit): New.
3963
3964         * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
3965         (print_operand): Add 'c' and 'D'.
3966         (rs6000_generate_compare): Rewrite to generate correct rtl.
3967         (rs6000_emit_sCOND): Handle E500.
3968         (output_cbranch): Adjust for changes in rs6000_generate_compare.
3969         (output_e500_flip_gt_bit): New.
3970
3971         * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
3972         Protoize.
3973
3974 2004-04-19  Eric Christopher  <echristo@redhat.com>
3975
3976         * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
3977
3978 2004-04-19  David Edelsohn  <edelsohn@gnu.org>
3979
3980         * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
3981         fix information.
3982
3983 2004-04-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3984
3985         * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
3986         download URL.
3987
3988 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
3989
3990         * stor-layout.c (layout_decl): Check DECL_PACKED before calling
3991         ADJUST_FIELD_ALIGN.  Check maximum_field_alignment after.
3992
3993 2004-04-19  Andrew PInski  <pinskia@physics.uc.edu>
3994
3995         * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
3996         (fold_builtin): Update caller to match.
3997
3998         PR bootstrap/15009
3999         * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
4000
4001         PR bootstrap/14999
4002         * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
4003
4004 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4005
4006         * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
4007
4008         * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
4009         (expand_mult_highpart_optab): Likewise.
4010         (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
4011
4012 2004-04-19  Paul Brook  <paul@codesourcery.com>
4013
4014         * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
4015         floatunssisf2, floatunssidf2): New patterns.
4016
4017 2004-04-18  Mark Mitchell  <mark@codesourcery.com>
4018
4019         PR other/14918
4020         * doc/invoke.texi (-fprofile-generate): Document requirement to
4021         use -fprofile-generate when linking.
4022
4023         * doc/extend.texi (Strong Using): Warn users against using this
4024         feature.
4025
4026 2004-04-18  Richard Sandiford  <rsandifo@redhat.com>
4027
4028         * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
4029         * config/mips/mips.h (mips_entry, mips_string_length): Delete.
4030         (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
4031         * config/mips/mips.c (struct mips16_constant): Renamed from struct
4032         constant.  Propogate change throughout file.
4033         (struct machine_function): Remove insns_len.
4034         (mips_string_length, mips16_strings, string_constants): Delete.
4035         (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
4036         when generating mips16 code.  Remove special mips16 treatment of
4037         string constants.
4038         (mips_symbolic_constant_p): Allow mips16 constant pool accesses
4039         to have the form LABEL+CONSTANT.
4040         (mips_symbolic_address_p): Fix comment.
4041         (m16_usym8_4, m16_usym5_4): Delete.
4042         (mips_output_function_epilogue): Remove mips16 string handling.
4043         (mips_output_mi_thunk): Call mips16_lay_out_constants.
4044         (mips_select_section, mips_encode_section_info): Remove mips16
4045         string handling.
4046         (struct mips16_constant_pool): New.
4047         (add_constant): Take a mips16_constant_pool structure.  Keep pool
4048         sorted into order of ascending mode size.  Keep track of the highest
4049         possible start address, taking padding and the masking of the base PC
4050         value into account.
4051         (dump_constants_1): New function, split out from dump_constants.
4052         Handle vector constants.  Use gen_consttable_{int,float} rather than
4053         separate functions for each mode.
4054         (dump_constants): Simplify.  Use GET_MODE_ALIGNMENT.  Use gen_align
4055         rather than separate functions for each alignment.
4056         (mips_find_symbol): Delete.
4057         (mips16_insn_length): New function, split out from
4058         mips16_lay_out_constants.
4059         (mips16_rewrite_pool_refs): New function.
4060         (mips16_lay_out_constants): Rework. Remove string handling.
4061         Always create an inline constant pool.
4062         * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
4063         (UNSPEC_ALIGN): New constants.
4064         (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
4065         (UNSPEC_ALIGN_[248]): Delete.
4066         (consttable_int, consttable_float, align): New patterns.
4067         (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
4068
4069 2004-04-17  Aldy Hernandez  <aldyh@redhat.com>
4070
4071         * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
4072         __unn_args_eq.
4073
4074 2004-04-17  Alan Modra  <amodra@bigpond.net.au>
4075
4076         PR target/14715
4077         * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
4078         with STARTING_FRAME_OFFSET.
4079
4080 2004-04-17  Richard Sandiford  <rsandifo@redhat.com>
4081
4082         * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
4083         * config/mips/mips.c (macc_msac_operand): New function.
4084         * config/mips/mips.md (*msac): Move after *macc.
4085         (*msac2): New.  Generalize macc-related peepholes so that they apply
4086         to msac too.
4087
4088 2004-04-17  Paolo Bonzini  <bonzini@gnu.org>
4089
4090         * opts.c (decode_options): Do not enable flag_rename_registers
4091         and flag_web at -O3.
4092         * toplev.c (flag_rename_registers): Initialize
4093         flag_rename_registers and flag_web to
4094         AUTODETECT_FLAG_VAR_TRACKING.
4095         (default_debug_hooks): New global.
4096         (process_options): Initialize default_debug_hooks.  Warn if
4097         -fvar-tracking specified but not supported by the current
4098         debug format.  Do not run var tracking at -O0 or if not
4099         supported by the current debug format, even if
4100         -fvar-tracking was given.  If -fno-rename-registers
4101         is not specified, always run register renaming if var
4102         tracking is supported by the default debugging information
4103         format for the target, and we are at -O1 or higher; similarly
4104         for -fweb, but only at -O2 or higher.
4105         * doc/invoke.texi (Optimize Options): Document this.
4106
4107 2004-04-17  Richard Sandiford  <rsandifo@redhat.com>
4108
4109         * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
4110         * configure: Regenerate.
4111
4112 2004-04-17  Richard Sandiford  <rsandifo@redhat.com>
4113
4114         * gcc.c (used_arg): Check whether an option has been removed.
4115
4116 2004-04-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4117
4118         * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
4119         debugging on Solaris 7 and up.
4120
4121 2004-04-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4122
4123         * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
4124         IRIX 5 port.
4125         Remove -save-temps workaround, handled automatically.
4126         Require GNU binutils 2.15 for debugging.
4127         Remove SGI make warnings since GNU make is now required.
4128         (Specific, mips-sgi-irix6): Some markup fixes.
4129         Describe MIPSpro C problems and workarounds.
4130         Mention working O32 ABI support.
4131         Recommend GNU as 2.15 for O32 with debugging.
4132         Remove description of fixed structure pass/return bug.
4133
4134 2004-04-16  DJ Delorie  <dj@redhat.com>
4135
4136         * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
4137         TYPE_FIELDS.
4138         (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
4139
4140 2004-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4141
4142         * pa.md: Remove unnecessary declarations for asm_out_file.
4143
4144         * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
4145         SAR register.  Fix comment.
4146         (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
4147         (%cr11).
4148
4149         * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
4150
4151 2004-04-16  Nick Clifton  <nickc@redhat.com>
4152
4153         * config/arm/arm.c (arm_override_options): Revert previous patch.
4154         * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
4155         be safely built.
4156
4157 2004-04-16  Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
4158
4159         * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
4160         bug.
4161         (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
4162         TARGET_DEFAULT): Changed. Ditto.
4163         (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
4164         TARGET_ENDIAN_DEFAULT): Added. Ditto.
4165         * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
4166         (TARGET_ENDIAN_DEFAULT): Added.
4167
4168 2004-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4169
4170         * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
4171         ATTR_CONST_NOTHROW_LIST.
4172
4173 2004-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4174
4175         PR/middle-end 14915
4176         * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
4177         BITS_BIG_ENDIAN.
4178
4179 2004-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4180
4181         * ra-debug.c (ra_print_rtx): Add break's to case legs.
4182
4183 2004-04-14  James E Wilson  <wilson@specifixinc.com>
4184
4185         * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
4186
4187 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4188
4189         * libada-mk.in: New file.
4190         * configure.ac: Create libada-mk from libada-mk.in.
4191         * configure: Regenerate.
4192
4193 2004-04-14  Uros Bizjak  <uros@kss-loka.si>
4194
4195         * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
4196         (logb_optab, ilogb_optab): Define corresponding macros.
4197         * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
4198         * genopinit.c (optabs): Implement logb_optab and ilogb_optab
4199         using logb?f2 and ilogb?i2 patterns.
4200         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
4201         using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
4202         (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
4203         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4204
4205         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
4206         and UNSPEC_XTRACT_EXP.
4207
4208         * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
4209         patterns to implement fxtract x87 instruction.
4210         (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
4211         logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
4212         intrinsics.
4213         (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
4214         x87's fxtract insn.
4215
4216 2004-04-14  Eric Christopher  <echristo@redhat.com>
4217
4218         * config/mips/t-elf: Enable multilibs by default.
4219
4220 2004-04-14  Andreas Tobler  <a.tobler@schweiz.ch>
4221
4222         * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
4223         previous fix to check HAVE_return at runtime too.
4224
4225 2004-04-14  Nick Clifton  <nickc@redhat.com>
4226
4227         * config/arm/arm.c (arm_override_options): If the user has not
4228         specified an ABI, then default to AAPCS for the iWMMXt processor.
4229         * config/arm/t-xscale-elf: Remove redundant multilib specifications.
4230         * config/arm/t-xscale-coff: Likewise.
4231
4232 2004-04-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4233
4234         * builtins.c (fold_builtin_isdigit): New.
4235         (fold_builtin): Handle BUILT_IN_ISDIGIT.
4236         * defaults.h: Add TARGET_DIGIT0 and sort.
4237         * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
4238
4239 2004-04-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4240
4241         * builtins.c (fold_builtin_cabs, fold_builtin): Use
4242         `mathfn_built_in' to determine the new builtin.
4243         * fold-const.c (fold): Likewise.
4244
4245 2004-04-14  Richard Sandiford  <rsandifo@redhat.com>
4246
4247         * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
4248         * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
4249         (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
4250         (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
4251         (ASM_SPEC): Update accordingly.
4252         * config/mips/mips.c: Update after above renaming.
4253         * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
4254         * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
4255
4256 2004-04-13  James E Wilson  <wilson@specifixinc.com>
4257
4258         * c-opt.c (c_common_post_options): If this_input_filename is NULL,
4259         increment errorcount and return false instead of true.
4260
4261 2004-04-13  Uros Bizjak  <uros@kss-loka.si>:
4262
4263         * optabs.c (expand_twoval_unop): Reorder function arguments.
4264         * builtins.c (expand_builtin_mathfn_3): Update calls to
4265         expand_twoval_unop.
4266
4267         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
4268         and UNSPEC_TAN_TAN. Add missing comment.
4269
4270         * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
4271         patterns to implement fptan x87 instruction.
4272         (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
4273         and tanl built-ins as inline x87 intrinsics. Define corresponding
4274         peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
4275         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
4276         x87's fptan insn.
4277
4278 2004-03-13  Richard Henderson  <rth@redhat.com>
4279
4280         * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
4281         for LABEL_REFs.
4282
4283         * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
4284         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
4285         * doc/invoke.texi: Update to match.
4286
4287         * varasm.c (unlikely_text_section): Use assemble_align instead of
4288         ASM_OUTPUT_ALIGN.  Use it in the correct place with an approximately
4289         correct alignment argument.
4290
4291 2004-04-13  Ulrich Weigand  <uweigand@de.ibm.com>
4292
4293         * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
4294         after setting reg_last_reload_reg for optional output reloads.
4295
4296 2004-04-12  Fariborz Jahanian <fjahanian@apple.com>
4297
4298         * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
4299         Definition of these two macros are corrected by adding
4300         matchine right paren.
4301
4302 2004-04-12  Jonathan Larmour  <jifl@eCosCentric.com>
4303
4304         * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
4305
4306 2004-04-12  Roger Sayle  <roger@eyesopen.com>
4307
4308         * config/i386/i386.c (output_387_reg_move): New function.
4309         * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
4310         * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
4311         *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
4312         *extendsfdf2_1,  *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
4313         truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
4314
4315 2004-04-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4316
4317         * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
4318         TYPE_DECL.
4319         * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
4320         * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
4321         * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
4322         Use skip_simple_arithmetic to find SAVE_EXPR.
4323         (force_type_save_exprs, force_type_save_exprs_1): New functions.
4324         * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
4325         Properly chain multiple pointers.
4326         (copy_tree_r): Copy a TYPE_DECL.
4327         * tree.c (variably_modified_type_p): Add some missing tests and
4328         make some other minor changes.
4329         * tree.h (force_type_save_exprs): New declaration.
4330
4331 2004-04-12  Roger Sayle  <roger@eyesopen.com>
4332
4333         * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
4334         Remove fall throughs.  Convert 0/x and 0%x into x&0 when x has
4335         side-effects.  Don't convert x/1.0 into x if we honor signaling NaNs.
4336         Convert x/-1.0 into -x if we don't honor signaling NaNs.  Convert
4337         x/-1 into -x.  Optimize x%1 into x&0 if x has side-effects.  Optimize
4338         x%-1 into 0 (or x&0 if x has side-effects).
4339
4340 2004-04-11  Aldy Hernandez  <aldyh@redhat.com>
4341
4342         * config/rs6000/rs6000.md: Document why a pattern is not
4343         available.
4344
4345         * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
4346         of floats on the E500.
4347         (branch_positive_comparison_operator): Do not allow NE even on the
4348         E500.
4349
4350 2004-04-11  Aldy Hernandez  <aldyh@redhat.com>
4351
4352         * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
4353         in_text_unlikely_section to in_unlikely_text_section.
4354
4355 2004-04-11  Roger Sayle  <roger@eyesopen.com>
4356
4357         * fold-const.c (fold_binary_op_with_conditional_arg):  Tweak
4358         calling convention to allow a NULL_TREE to be returned.  Factor
4359         sanity checks from callers, return NULL_TREE when appropriate.
4360         (fold): Handle COMPOUND_EXPR operands of binary expressions
4361         before COND_EXPR operands.  Use reorder_operands_p(a,b) to check
4362         whether a op (b,c) can be rewritten as (b, a op c).  Simplify
4363         calls to fold_binary_op_with_conditional_arg.
4364
4365 2004-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4366
4367         * config/mips/iris5.h (current_section_flags):  Add
4368         in_unlikely_executed_text and default case.
4369
4370 2004-04-11  Andreas Tobler  <a.tobler@schweiz.ch>
4371
4372         * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
4373         failure on solaris. Place ifdef HAVE_return around gen_ret call.
4374         * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
4375         HAVE_return and place it around the place where it is needed.
4376
4377 2004-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
4378
4379         * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
4380         ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
4381         and NORMAL_TEXT_SECTION_NAME.
4382         (unlikely_text_section): Check targetm.have_named_sections
4383         instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
4384         instead of SECTION_FORMAT_STRING.
4385         * config/mips/iris5.h (current_section_name): Add
4386         in_unlikely_executed_text case and move the abort into the switch.
4387         * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
4388         (NORMAL_TEXT_SECTION_NAME): Remove.
4389         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
4390         (SECTION_FORMAT_STRING): Remove.
4391         * defaults.h (SECTION_FORMAT_STRING): Remove.
4392         * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
4393         (SECTION_FORMAT_STRING): Remove.
4394
4395 2004-04-10  Joseph S. Myers  <jsm@polyomino.org.uk>
4396
4397         * c-typeck.c (common_type): Prefer long long to long when same
4398         precision.
4399
4400 2004-04-09  Zack Weinberg  <zack@codesourcery.com>
4401
4402         PR 14887
4403         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
4404         mode argument.
4405         * config/ia64/ia64.c (ia64_hpux_file_end): Check
4406         TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
4407
4408 2004-04-09  Roger Sayle  <roger@eyesopen.com>
4409
4410         * simplify-rtx.c (mode_signbit_p): New function to check whether
4411         an RTX is an immediate constant that represents the most significant
4412         bit of a given machine mode.
4413         (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
4414         C is the sign bit.
4415         (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
4416         when C2 is the sign bit.
4417         (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
4418         is the sign bit.  Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
4419         sign bit.
4420
4421 2004-04-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4422
4423         * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
4424         TYPE_MODE.
4425
4426 2004-04-09  Andrew Pinski  <pinskia@physics.uc.edu>
4427
4428         * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
4429         of TREE_READONLY for types.
4430
4431 2004-04-09  Caroline Tice  <ctice@apple.com>
4432
4433         * basic-block.h (struct edge_def):  Add new field, crossing_edge.
4434         (struct basic_block_def):  Add new field, partition.
4435         (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION):  New constant macro
4436         definitions.
4437         (partition_hot_cold_basic_blocks): Add extern function
4438         declaration.
4439         * bb-reorder.c (function.h, obstack.h, expr.h, regs.h):  Add four new
4440         include statements.
4441         (N_ROUNDS): Increase the maximum number of rounds by 1.
4442         (branch_threshold): Add array value for new round.
4443         (exec_threshold): Add array value for new round.
4444         (push_to_next_round_p): New function.
4445         (add_unlikely_executed_notes): New function.
4446         (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
4447         (mark_bb_for_unlikely_executed_section): New function.
4448         (add_labels_and_missing_jumps): New function.
4449         (add_reg_crossing_jump_notes): New function.
4450         (fix_up_fall_thru_edges): New function.
4451         (find_jump_block): New function.
4452         (fix_crossing_conditional_branches): New function.
4453         (fix_crossing_unconditional_branches): New function.
4454         (fix_edges_for_rarely_executed_code): New function.
4455         (partition_hot_cold_basic_blocks): New function.
4456         (find_traces):  Add an extra round for partitioning hot/cold
4457         basic blocks.
4458         (find_traces_1_round): Add a parameter.  Modify to push all cold blocks,
4459         and only cold blocks, into the last (extra) round of collecting traces.
4460         (better_edge_p): Add a parameter.  Modify to favor non-crossing edges
4461         over crossing edges.
4462         (bb_to_key):  Add code to correctly identify cold blocks when
4463         doing partitioning.
4464         (connect_traces): Modify to connect all the non-cold traces first, then
4465         go back and connect up all the cold traces.
4466         (reorder_basic_blocks):  Add call to add_unlikely_executed_notes.
4467         * cfg.c (entry_exit_blocks): Add initialization for partition field in
4468         entry and exit blocks.
4469         * cfgbuild.c (make_edges): Update current_function_has_computed_jump
4470         if we are doing hot/cold partitioning.
4471         * cfgcleanup.c (cfglayout.h): Add new include statement.
4472         (try_simplify_condjump): Modify to not attempt on blocks with jumps
4473         that cross section boundaries.
4474         (try_forward_edges): Likewise.
4475         (merge_blocks_move_predecessor_nojumps): Likewise.
4476         (merge_blocks_move_successor_nojumps): Likewise.
4477         (merge_blocks_move): Likewise.
4478         (try_crossjump_to_edge): Modify to not attempt after we have done
4479         the block partitioning.
4480         (try_crossjump_bb): Modify to not attempt on blocks with jumps that
4481         cross section boundaries.
4482         (try_optimize_cfg): Likewise.
4483         * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
4484         jumps that cross section boundaries.
4485         * cfglayout.c (flags.h): Add new include statement.
4486         (update_unlikely_executed_notes):  New function.
4487         (fixup_reorder_chain):  Add code so when a new jumping basic block is
4488         added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
4489         updated appropriately.
4490         (duplicate_insn_chain):  Add code to duplicate the new NOTE insn
4491         introduced by this optimization.
4492         * cfglayout.h (scan_ahead_for_unlikely_executed_note):  Add new
4493         extern function declaration.
4494         * cfgrtl.c (can_delete_note_p):  Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
4495         list of notes that can be deleted.
4496         (create_basic_block_structure):  Add initialization for partition field.
4497         (rtl_can_merge_blocks):  Modify to test blocks for jumps that cross
4498         section boundaries.
4499         (try_redirect_by_replacing_jump):  Modify to not attempt on jumps that
4500         cross section boundaries.
4501         (commit_one_edge_insertion): Add code so newly created basic block
4502         ends up in correct (hot or cold) section.  Modify to disallow
4503         insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
4504         (rtl_verify_flow_info_1):  Add code to verify that no fall_thru edge
4505         crosses section boundaries.
4506         (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
4507         cross section boundaries.
4508         (force_nonfallthru_and_redirect): Modify to make sure new basic block
4509         ends up in correct section, with correct notes attached.
4510         * common.opt (freorder-blocks-and-partition):  Add new flag for this
4511         optimization.
4512         * dbxout.c (dbx_function_end):  Add code to make sure scope labels at
4513         the end of functions are written into the correct (hot or cold)
4514         section.
4515         (dbx_source_file): Add code so writing debug file information
4516         doesn't incorrectly change sections.
4517         * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
4518         in partitioning hot/cold basic blocks into separate sections.
4519         (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
4520         section partitioning.
4521         (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
4522         conditional branches can span all of memory.
4523         (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
4524         unconditional branches can span all of memory.
4525         * final.c (scan_ahead_for_unlikely_executed_note):  New function.
4526         (final_scan_insn):  Add code to check for NOTE instruction indicating
4527         whether basic block belongs in hot or cold section, and to make sure
4528         the current basic block is being written to the appropriate section.
4529         Also added code to ensure that jump table basic blocks end up in the
4530         correct section.
4531         * flags.h (flag_reorder_blocks_and_partition):  New flag.
4532         * ifcvt.c (find_if_case_1):  Modify to not attempt if conversion if
4533         one of the branches has a jump that crosses between sections.
4534         (find_if_case_2): Likewise.
4535         (ifcvt): Modify to not attempt to mark loop exit edges after
4536         hot/cold partitioning has occurred.
4537         * opts.c (decode_options): Code to handle new flag,
4538         flag_reorder_blocks_and_partition; also to turn it off if
4539         flag_exceptions is on.
4540         (common_handle_option): Code to handle new flag,
4541         flag_reorder_blocks_and_partition.
4542         * output.h (unlikely_text_section): New extern function declaration.
4543         (in_unlikely_text_section): New extern function declaration.
4544         * passes.c (rest_of_handle_stack_regs):  Add
4545         flag_reorder_blocks_and_partition as an 'or' condition for calling
4546         reorder_basic_blocks.
4547         (rest_of_handle_reorder_blocks):  Add flag_reorder_blocks_and_partition
4548         as an 'or' condition for calling reorder_basic_blocks.
4549         (rest_of_compilation):  Add call to partition_hot_cold_basic_blocks.
4550         * print-rtl.c (print_rtx): Add code for handling new note,
4551         NOTE_INSN_UNLIKELY_EXECUTED_CODE
4552         * rtl.c  (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
4553         (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
4554         cross between section boundaries.
4555         * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE):  New note instruction,
4556         indicating the basic block containing it belongs in the cold section.
4557         (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
4558         between hot and cold sections.
4559         * toplev.c (flag_reorder_blocks_and_partition):  Add code to
4560         initialize this flag, and to tie it to the command-line option
4561         freorder-blocks-and-partition.
4562         * varasm.c (cfglayout.h):  Add new include statement.
4563         (unlikely_section_label_printed):  New global variable, used for
4564         determining when to output section name labels for cold sections.
4565         (in_section):  Add in_unlikely_executed_text to enum data structure.
4566         (text_section):  Modify code to use SECTION_FORMAT_STRING and
4567         NORMAL_TEXT_SECTION_NAME macros.
4568         (unlikely_text_section):  New function.
4569         (in_unlikely_text_section):  New function.
4570         (function_section):  Add code to make sure beginning of function is
4571         written into correct section (hot or cold).
4572         (assemble_start_function):  Add code to make sure stuff is written to
4573         the correct section.
4574         (assemble_zeros):  Add in_unlikely_text_section as an 'or' condition
4575         to an if statement that was checking 'in_text_section'.
4576         (assemble_variable):  Add 'in_unlikely_text_section' as an 'or'
4577         condition to an if statement that was checking 'in_text_section'.
4578         (default_section_type_flags_1):  Add check: if in cold section
4579         flags = SECTION_CODE.
4580         * config/darwin.c (darwin_asm_named_section):  Modify to use
4581         SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
4582         * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
4583         specifically for the i386.
4584         (HAS_LONG_UNCOND_BRANCH):  Defined this macro specifically for the i386.
4585         * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
4586         text string to something more informative.
4587         (NORMAL_TEXT_SECTION_NAME): Add new definition.
4588         (SECTION_FORMAT_STRING):  Add new definition.
4589         * config/rs6000/rs6000.c (rs6000_assemble_integer):  Add
4590         '!in_unlikely_text_section' as an 'and' condition to an if statement
4591         that was already checking '!in_text_section'.
4592         * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
4593         UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
4594         sure these are properly defined for linux on ppc.
4595         * doc/invoke.texi  (freorder-blocks-and-partition): Add documentation
4596         for this new flag.
4597         * doc/rtl.texi (REG_CROSSING_JUMP):  Add documentation for new
4598         reg_note.
4599         * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
4600         HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
4601         these new macros.
4602
4603 2004-04-08  Roger Sayle  <roger@eyesopen.com>
4604
4605         * function.c (gen_mem_addressof): When changing the RTX from a REG
4606         to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
4607
4608 2004-04-08  Roger Sayle  <roger@eyesopen.com>
4609
4610         PR target/14888
4611         * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
4612         truncxfdf2_noop): Provide dummy "fmov" implementations.
4613
4614 2004-04-08  Ian Lance Taylor  <ian@wasabisystems.com>
4615
4616         * gcc.c (default_compilers): Add missing initializers.
4617
4618         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
4619         Return 1 if file was successfully mapped.
4620
4621 2004-04-08  Geoffrey Keating  <geoffk@apple.com>
4622
4623         PR pch/13419
4624         PR pch/14137
4625         Radar #: 3315288
4626         * doc/invoke.texi (Precompiled Headers): Suggest -o
4627         to put an output file in a particular place.  Be more detailed
4628         about which options affect PCH validity and which options
4629         might not work.
4630         * c-pch.c (pch_matching): New.
4631         (MATCH_SIZE): New.
4632         (struct c_pch_validity): New field 'match'.
4633         (pch_init): Handle pch_matching.
4634         (c_common_valid_pch): Check pch_matching.
4635
4636         * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
4637
4638 2004-04-08  Mark Mitchell  <mark@codesourcery.com>
4639
4640         * doc/invoke.texi (Precompiled Headers): Warn about known
4641         problems.
4642
4643 2004-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
4644
4645         PR c++/14808
4646         * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
4647         to 1 if ASM_OUTPUT_DEF is defined.
4648         * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
4649         * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
4650         Set to non-zero iff not a one_only decl.
4651
4652 2004-04-08  Paul Brook  <paul@codesourcery.com>
4653
4654         * arm.h (CLASS_LIKELY_SPILLED_P): Define.
4655
4656 2004-04-08  Paul Brook  <paul@codesourcery.com>
4657
4658         * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
4659         PROMOTE_FOR_CALL_ONLY.
4660         * config/arm/arm-protos.h (arm_function_value): Declare.
4661         * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
4662         (TARGET_PROMOTE_PROTOTYPES): Return false.
4663         (arm_function_value): New function.
4664         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
4665         (FUNCTION_VALUE): Call arm_function_value.
4666         * config/cris/cris.h (PROMOTE_MODE): Rename ...
4667         (PROMOTE_FUNCTION_MODE): ... to this.
4668         (PROMOTE_FOR_CALL_ONLY): Remove.
4669         * config/mmix/mmix.h: Likewise.
4670         * config/s390/s390.h: Likewise.
4671         * config/sparc/sparc.h: Likewise.
4672         * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
4673         * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
4674         (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
4675         (PROMOTE_FOR_CALL_ONLY): Remove.
4676
4677 2004-04-08  Joel Sherrill <joel@oarcorp.com>
4678
4679         PR ada/14538
4680         * ada/5rosinte.adb: Remove fake mprotect() body.
4681         * ada/5rosinte.ads: Add SA_SIGINFO.
4682         * ada/5rtpopsp.adb: Rewrite to use new interface.
4683         * ada/init.c: Reorder so the simple single OS conditional __rtems__
4684         is tested before more complex ones which mix UNIX and embedded
4685         systems in the conditional.
4686
4687 2004-04-08  Joel Sherrill  <joel@oarcorp.com>
4688
4689         PR ada/14665
4690         * ada/osint.adb (Find_Program_Name): Rework to properly handle
4691         filenames which end in .exe or have versioning suffixes like VMS.
4692
4693 2004-04-08  Andrew Pinski  <pinskia@physics.uc.edu>
4694
4695         PR target/10129
4696         * config/darwin.c (darwin_encode_section_info): When the decl has
4697         a DECL_INITIAL, it is only defined also when it is not a common.
4698
4699 2004-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4700
4701         * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
4702         (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
4703
4704 2004-04-07  H.J. Lu  <hongjiu.lu@intel.com>
4705
4706         * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
4707         global register variables.
4708
4709 2004-04-07  Joseph S. Myers  <jsm@polyomino.org.uk>
4710
4711         * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
4712         rpc_xdr_lvalue_cast_b): New fixes.
4713         * fixinc/fixincl.x: Regenerate.
4714         * fixinc/tests/base/rpc/xdr.h: Add new tests.
4715
4716 2004-04-07  David Edelsohn  <edelsohn@gnu.org>
4717
4718         * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
4719         to power4 and power5 entries.
4720
4721 2004-04-06  Geoffrey Keating  <geoffk@apple.com>
4722
4723         * c-common.h (pending_lang_change): Mark for PCH.
4724
4725 2004-04-07  Caroline Tice  <ctice@apple.com>
4726
4727         * gcc.c (main): Move 'break' in main loops (on an error)
4728         to wait until error processing has occurred.
4729
4730 2004-04-06  Nathanael Nerode  <neroden@gcc.gnu.org>
4731
4732         * config.gcc: Stop changing enable_threads midstream.
4733         Replace uses of enable_threads_flag with enable_threads.
4734         * configure.ac: Replace uses of enable_threads_flag with
4735         enable_threads.  Improve autoconf quotation in one place.
4736         * configure: Regenerate.
4737
4738 2004-04-06  Uros Bizjak  <uros@kss-loka.si>
4739
4740         * builtins.c: Implement support for sincos function.
4741         (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
4742         BUILT_IN_COS{,F,L}.
4743         (expand_builtin_mathfn_3): New function.
4744         (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
4745         BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
4746         flag_unsafe_math_optimization is set.
4747
4748         * optabs.h (enum optab_index): Add new OTI_sincos.
4749         (sincos_optab): Define corresponding macro.
4750
4751         * optabs.c (init_optabs): Initialize sincos_optab.
4752         (expand_twoval_unop): New function.
4753
4754         * genopinit.c (optabs): Implement sincos_optab using sincos?f3
4755         patterns.
4756
4757         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
4758         and UNSPEC_SINCOS_SIN.
4759
4760         * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
4761         sincosxf3): New patterns to implement sincos, sincosf and sincosl
4762         built-ins as inline x87 intrinsics. Define splits for
4763         sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
4764         cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
4765         sincos patterns.
4766         (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
4767         (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
4768
4769         (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
4770         x87's fsincos insn.
4771
4772 2004-04-06  Devang Patel  <dpatel@apple.com>
4773
4774         PR 14467
4775         * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
4776
4777 2004-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4778
4779         * doc/install.texi: Update HP-UX 11 installation procedure.
4780
4781 2004-04-06  Paul Brook  <paul@codesourcery.com>
4782
4783         * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
4784
4785 2004-04-05  Kaz Kojima  <kkojima@gcc.gnu.org>
4786
4787         * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
4788         when the TLS address is generated by a function call.
4789         * config/sh/sh.md (tls_global_dynamic): Use a call expression.
4790         (tls_local_dynamic): Likewise.
4791
4792 2004-04-05  Andrew Pinski  <pinskia@physics.uc.edu>
4793
4794         * tree.c (reconstruct_complex_type): Use TYPE_READONLY
4795         and TYPE_VOLATILE.
4796
4797 2004-04-05  Caroline Tice  <ctice@apple.com>
4798
4799         * gcc.c (combine_flag): New global variable, for new driver option.
4800         (struct compiler): Add two new fields, to be used when
4801         combining multiple input files in a single pass (IMA).
4802         (default_compilers):  Add values for the new fields to all
4803         compiler entries. Modify the "@c" compiler entry for doing IMA
4804         properly with "-save-temps" and the "combine" flag.
4805         (option_map):  Add new driver option, "--combine", to tell driver
4806         to pass multiple input files to compiler at one time.
4807         (have_o_argbuf_index): New global variable.
4808         (store_arg): Modify to assign value to have_o_argbuf_index.
4809         (struct infile):  Add three new fields, to help with IMA.
4810         (display_help): Add help for new "combine" option.
4811         (process_command): Remove local variable have_o; add code to check
4812         for new "combine" option; remove assignment to combine_inputs.
4813         (do_spec_1):  Modify to deal with IMA better.
4814         (main): Make variable 'lang_n_infiles' local to entire function
4815         rather than to a single block.  Use flag combine_flag to
4816         determine whether to do IMA or not; Modify loop initializing
4817         infiles to deal properly with linker files.
4818         Add code for doing preprocessing in presence of
4819         IMA with "-save-temps" flag.  Modify "main" loop to handle
4820         multiple input files, in multiple languages, with or without
4821         preprocessing,  gracefully.
4822         * toplev.c (set_src_pwd): Modify to not complain if attempting to
4823         re-set it to same directory it's previously been set to (avoid
4824         irritating, meaningless warning messages when doing IMA with
4825         save-temps).
4826         * doc/invoke.texi: Add "-combine" to list of Overall Options;
4827         remove documentation about IMA that is no longer accurate; Add
4828         documentation explaining what "-combine" does.
4829         * ada/lang-specs.h: Add initialization values for new fields in
4830         "struct compiler".
4831         * cp/lang-specs.h: Likewise.
4832         * f/lang-specs.h: Likewise.
4833         * java/lang-specs.h: Likewise.
4834         * objc/lang-specs.h: Likewise.
4835         * treelang/lang-specs.h: Likewise.
4836
4837 2004-04-05  David Edelsohn
4838
4839         * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
4840         symbol handling.
4841
4842 2004-04-05  Jakub Jelinek  <jakub@redhat.com>
4843             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4844
4845         PR optimization/13424 (hppa), bootstrap/14462, c/14828
4846         * pa.md: Use replace_equiv_address to retain the attributes of the
4847         memory operands used in the split and peephole2 patterns for optimizing
4848         the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
4849
4850 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4851
4852         * c-decl.c (build_compound_literal): Use TYPE_READONLY.
4853         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4854         * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
4855         * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
4856         PARM_DECL.
4857         * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
4858         for a type.
4859         * print-tree.c (print_node): Properly handle side-effects, readonly,
4860         and constant flags.
4861         * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
4862         and TREE_CONSTANT if not a type.
4863         * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
4864         (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
4865         (NON_TYPE_CHECK): New macro.
4866         (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
4867
4868 2004-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
4869
4870         * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
4871         to DWARF2_DEBUG unconditionally.
4872         (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
4873
4874 2004-04-04  Ian Lance Taylor  <ian@wasabisystems.com>
4875             Nathanael Nerode  <neroden@gcc.gnu.org>
4876
4877         PR target/14548
4878         * config.host: Set the shell variable host_can_use_collect2.
4879         Set it to yes by default, and to no for alpha*-dec-*vms*,
4880         i[34567]86-*-mingw32*, and powerpc-*-beos*.
4881         * configure.ac: Set and substitute the shell variable collect2.
4882         Give an error if use_collect2 is yes and host_can_use_collect2 is
4883         no.
4884         * Makefile.in (COLLECT2): Rename from USE_COLLECT2.  Change all
4885         uses.  Initialize to @collect2@.
4886         (STAGESTUFF): Remove $(USE_COLLECT2).
4887         * config/alpha/x-vms (USE_COLLECT2): Don't set.
4888         * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
4889         * config/rs6000/t-beos (USE_COLLECT2): Likewise.
4890         * config/pa/t-pa64: Remove commented out USE_COLLECT2.
4891         * configure: Regenerate.
4892
4893 2004-04-04  Roger Sayle  <roger@eyesopen.com>
4894
4895         * simplify-rtx.c (simplify_binary_operation): Constant fold
4896         DIV, MOD, UDIV and UMOD using div_and_round_double.
4897
4898 2004-04-04  Mark Mitchell  <mark@codesourcery.com>
4899
4900         PR c++/14804
4901         * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
4902         RECORD_TYPEs.
4903
4904 2004-04-04  Mark Mitchell  <mark@codesourcery.com>
4905
4906         * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
4907         documentation.
4908
4909 2004-04-04  Roger Sayle  <roger@eyesopen.com>
4910
4911         * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
4912         updating the REG_EQUAL note on an insn's libcall_insn.
4913
4914 2004-04-04  Roger Sayle  <roger@eyesopen.com>
4915
4916         * df.h: Tidy up whitespace in the definitions of the DF_ flags.
4917
4918 2004-04-03  Roger Sayle  <roger@eyesopen.com>
4919
4920         * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
4921         with reorder_operands_p.
4922
4923 2004-04-03  Jan Hubicka  <jh@suse.cz>
4924
4925         * md.texi (vec_set, vec_extract, vec_init): Document.
4926
4927 2004-04-02  Gabor Loki <loki@inf.u-szeged.hu>
4928
4929        * opts.c (decode_options): Do function inlining with very small
4930        max-inline-insns-* parameters when optimizing for size.
4931
4932 2004-04-02  Vladimir Makarov  <vmakarov@redhat.com>
4933
4934         * config/i386/i386.h (TARGET_NOCONA): New macro.
4935         (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
4936         (processor_type): Add PROCESSOR_NOCONA.
4937
4938         * config/i386/i386.md (cpu): Add nocona to the attribute values.
4939
4940         * config/i386/i386.c (nocona_cost): New variable.
4941         (m_NOCONA): New macro.
4942         (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
4943         x86_branch_hints, x86_use_sahf, x86_single_stringop,
4944         x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
4945         x86_integer_DFmode_moves, x86_partial_reg_dependency,
4946         x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
4947         x86_decompose_lea, x86_arch_always_fancy_math_387,
4948         x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
4949         x86_ext_80387_constants, x86_four_jump_limit):
4950         (override_options): Add nocona_cost to processor_target_table.
4951         Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
4952         (incdec_operand): Prevent inc/dec generation for Nocona too.
4953         (ix86_issue_rate): Add PROCESSOR_NOCONA.
4954
4955 2004-04-01  Andrew Pinski  <pinskia@physics.uc.edu>
4956
4957         * rtlanal.c (find_reg_note): Manually
4958         unswitch the loop.
4959
4960 2004-04-01  Mark Mitchell  <mark@codesourcery.com>
4961
4962         * genemit.c (gen_split): Change prototype of generated code.
4963         * genrecog.c (write_action): Adjust prototype for and calls to
4964         gen_split_*.
4965         * gensupport.c (struct queue_elem): Add split field.
4966         (queue_pattern): Return a value.  Clear the split field.
4967         (process_rtx): Maintain an association between an insn and the
4968         split generated from it for a define_insn_and_split.
4969         (process_one_cond_exec): Generate a new split for a
4970         define_insn_and_split.
4971         * config/arm/arm-protos.h (arm_split_constant): Add insn
4972         parameter.
4973         (emit_constant_insn): New function.
4974         (arm_gen_constant): Use it.
4975         * config/arm/arm.md: Adjust calls to arm_split_constant.
4976
4977 2004-04-02  Jan Hubicka  <jh@suse.cz>
4978
4979         * cgraph.c: Add overall comment.
4980         (cgraph_inline_hash): New global variable.
4981         (cgraph_create_node): Break out from ...
4982         (cgraph_node): ... here.
4983         (cgraph_edge): New function.
4984         (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
4985         (cgraph_remove_edge): Accept edge, intead of source and destination.
4986         (cgraph_redirect_edge_callee): New.
4987         (cgraph_remove_node): Update all new datastructures.
4988         (cgraph_record_call, cgraph_remove_call): Kill.
4989         (dump_cgraph_node): Break out from ... ; dump new datastructures.
4990         (dump_cgraph): ... here.
4991         (cgraph_function_possibly_inlined_p): Use new hashtable.
4992         (cgraph_clone_edge, cgraph_clone_node): New.
4993         * cgraph.h: Include hashtab.h
4994         (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
4995         fields, add inlined_to pointer.
4996         (cgraph_node): Add pointer to next_clone.
4997         (cgraph_remove_edge, cgraph_create_edge): Update prototype.
4998         (cgraph_remove_call, cgraph_record_call): Kill.
4999         (cgraph_inline_hash): Declare.
5000         (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
5001         cgraph_redirect_edge_callee): Declare.
5002         (cgraph_create_edges, cgraph_inline_p): Update prorotype.
5003         (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
5004         cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
5005         * cgraphunit.c: Add overall comment.
5006         (cgraph_optimize_function): Kill.
5007         (cgraph_assemble_pending_functions): Do not assemble inline clones.
5008         (cgraph_finalize_function): Update call of cgraph_remove_node
5009         (record_call_1): Record call sites.
5010         (cgraph_create_edges): Accept node instead of decl argument.
5011         (error_found): New static variable.
5012         (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
5013         (cgraph_analyze_function): Update for new datastructures.
5014         (cgraph_finalize_compilation_unit): Plug memory leak.
5015         (cgraph_optimize_function): Kill.
5016         (cgraph_expand_function): Do not use cgraph_optimize_function.
5017         (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
5018         cgraph_inlined_callees): Kill.
5019         (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
5020         clones.
5021         (estimate_growth): Simplify.
5022         (cgraph_clone_inlined_nodes): New function.
5023         (cgraph_mark_inline_edge): Re-implement.
5024         (cgraph_mark_inline): Likewise.
5025         (cgraph_check_inline_limits): Simplify.
5026         (cgraph_recursive_inlining_p): New.
5027         (update_callee_keys): Break out from ...
5028         (cgraph_decide_inlining_of_small_functions): ... here; simplify.
5029         (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
5030         Likewise.
5031         (cgraph_expand_all_functions):  Remove inline clones from the ordered
5032         list.
5033         (cgraph_preserve_function_body_p): New predicate.
5034         (cgraph_optimize): Verify cgraph.
5035         * function.h (struct function): Add fields saved_tree/saved_args.
5036         * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
5037         * toplev.c (rest_of_compilation): Do not free cfun.
5038         * tree-inline.c: Include function.h
5039         (struct inline_data): Add saving_p field; replace decl/current_decl by
5040         node/current_node.
5041         (insert_decl_map): New function.
5042         (copy_body_r): Handle saving; update cgraph datastructure.
5043         (copy_body): Handle recursive inlining.
5044         (initialize_inlined_parameters): Likewise.
5045         (expand_call_inline): Propagate node attributes; update cgraph.
5046         (optimize_inline_calls): Verify that datastructure still match.
5047         (save_body): New function.
5048         * tree-inline.h (save_body): New.
5049         * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
5050         * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
5051         * langhooks.c (lang_hooks): Add update_decl_after_saving.
5052
5053 2004-04-01  Serge Belyshev  <1319@bot.ru>
5054
5055         PR target/14702
5056         * config/i386/i386.md: fix source operand constraints in
5057         mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
5058
5059 2004-04-01  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
5060
5061         * fold-const.c (folda): Preserve types of comparisons.
5062
5063 2004-04-01  Richard Henderson  <rth@redhat.com>
5064
5065         * toplev.c (backend_init): Move init_optimization_passes call ...
5066         (lang_dependent_init): ... here.
5067
5068 2004-04-01  Alan Modra  <amodra@bigpond.net.au>
5069             Jakub Jelinek  <jakub@redhat.com>
5070
5071         * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
5072         -lgcc --as-needed -lgcc_s --no-as-needed by default.
5073         * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
5074         * configure: Rebuilt.
5075         * config.in: Rebuilt.
5076         * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
5077         (stage2-start, stage3-start, stage4-start): Likewise.
5078         (stageprofile-start, stagefeedback-start): Likewise.
5079
5080 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
5081
5082         * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
5083         * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
5084         * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
5085         * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
5086         (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
5087         * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
5088         with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
5089         * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
5090         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
5091         * config/sparc/t-linux: Removed.
5092
5093 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
5094
5095         PR c++/14755
5096         * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
5097         "bitfld++ == const" to "++bitfld == const + incr" transformations.
5098
5099 2004-04-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5100
5101         * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
5102         * stor-layout.c (layout_decl): Likewise.
5103         * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
5104         * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
5105         * print-tree.c (print_node): Handle various used of unsigned_flag.
5106         * tree.def (BIT_FIELD_REF): Update comment.
5107         * tree.h (TREE_UNSIGNED): Deleted.
5108         (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
5109
5110 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5111
5112         * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
5113         Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
5114         * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
5115         * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
5116         * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
5117         * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
5118         * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
5119         * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
5120         * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
5121         * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
5122         REAL_TYPE, not INTEGER_TYPE.
5123         (layout_type, case VECTOR_TYPE): Simplify code.
5124         * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
5125         * tree.h: Update comments.
5126         (STRIP_NOPS): Use TYPE_UNSIGNED.
5127         (TYPE_UNSIGNED): New macro.
5128         (TYPE_TRAP_SIGNED): Remove now redundant check.
5129         (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
5130
5131 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5132
5133         * function.c (put_var_into_stack): Properly set orig_reg for indirect.
5134
5135 2004-03-31  Andrew Pinski  <pinskia@physics.uc.edu>
5136
5137         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
5138         Add darwin-fpsave.asm, darwin-vecsave.asm,
5139         and darwin-world.asm.
5140         (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
5141         as the asm files contain altivec instructions.
5142         * config/rs6000/darwin-fpsave.asm: New file.
5143         * config/rs6000/darwin-vecsave.asm: New file.
5144         * config/rs6000/darwin-world.asm: New file.
5145
5146 2004-03-31  Zack Weinberg  <zack@codesourcery.com>
5147
5148         * gengtype-yacc.y (option, stringseq): Add missing
5149         terminating semicolon.
5150
5151 2004-03-30  David Edelsohn  <edelsohn@gnu.org>
5152
5153         * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
5154         tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
5155         tls_dtprel_ha_32, tls_dtprel_ha_64,
5156         tls_dtprel_lo_32, tls_dtprel_lo_64,
5157         tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
5158         tls_tprel_ha_32, tls_tprel_ha_64,
5159         tls_tprel_lo_32, tls_tprel_lo_64,
5160         tls_got_tprel_32, tls_got_tprel_64,
5161         tls_tls_32, tls_tls_64): Replace register_operand with
5162         gpc_reg_operand.
5163
5164 2004-03-30  Mostafa Hagog  <mustafa@il.ibm.com>
5165
5166         * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
5167         *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
5168         *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
5169         *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
5170         *ctrdi_internal6): Replace register_operand with
5171         nonimmediate_operand.
5172
5173 2004-03-29  Fariborz Jahanian <fjahanian@apple.com>
5174
5175         * fold-const.c (fold): Reassociate multiply expression
5176         with an adjacent non-multiply expression to use
5177         architecture's multiply-add instruction.
5178
5179 2004-03-30  Zack Weinberg  <zack@codesourcery.com>
5180
5181         * gengtype.c (create_option): New function.
5182         * gengtype.h: Prototype it.
5183         * gengtype-yacc.y (stringseq): New rule.
5184         (option): Use create_option.  Add new bare ID production.  Use
5185         stringseq, not STRING directly.
5186
5187         * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
5188         * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
5189         * varray.h, config/alpha/alpha.c:
5190         Use new shorter form of GTY markers.
5191
5192         * doc/gty.texi: Rewrite.
5193
5194 2004-03-30  Andrew Pinski  <pinskia@physics.uc.edu>
5195
5196         * config/darwin.c (machopic_function_base_name):
5197         Remove current_name and getting the name of the
5198         current function.
5199
5200 2004-03-30  Nick Clifton  <nickc@redhat.com>
5201
5202         * config/arm/arm.md (thumb_jump): Reduce the backward branch
5203         range, and increase the forward branch range, to allow for
5204         the fact that the PC will be off by 4.
5205
5206 2004-03-30  Alan Modra  <amodra@bigpond.net.au>
5207
5208         * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
5209
5210 2004-03-30  Hartmut Penner  <hpenner@de.ibm.com>
5211
5212         * config/rs6000/rs6000.c (output_vec_const_move):
5213         Find all cases of EASY_VECTOR_15_ADD_SELF.
5214         (easy_vector_constant_add_self): Accept
5215         all vector constant loadable by vsplt* and vadd*.
5216         (easy_vector_same): Use easy_vector_splat_const.
5217         (easy_vector_const): Use easy_vector_splat_const.
5218         (easy_vector_splat_const): New function.
5219         (gen_easy_vector_constant_add_self): New function.
5220
5221         * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
5222         New prototype.
5223
5224         * config/rs6000/altivec.md (movv4si splitter): Change to
5225         emit move insn with halfed vector constant.
5226         (*movv8hi splitter): Likewise.
5227         (*movv16qi splitter): Likewise.
5228
5229 2004-03-30  Hartmut Penner  <hpenner@de.ibm.com>
5230
5231         PR 11591
5232         * config/rs6000/rs6000.c (rs6000_legitimate_address):
5233         Allow any offset to argument pointer in no-strict case.
5234
5235 2004-03-30  Jan Hubicka  <jh@suse.cz>
5236
5237         * toplev.c (backend_init): Add missing call to inint_optimization_passes.
5238         * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
5239         dump file in non-unit-at-a-time mode.
5240
5241 2004-03-29  Hans-Peter Nilsson  <hp@axis.com>
5242
5243         * config/cris/cris.h: Correct #ifdef to test for
5244         HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
5245         HAVE_AS_MUL_BUG_ABORT_OPTION.
5246
5247 2004-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5248
5249         * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
5250         the address inside the old RTL.
5251
5252 2004-03-28  Zack Weinberg  <zack@codesourcery.com>
5253
5254         * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
5255         (struct c_binding, struct c_scope): Add chain_next
5256         attributes to GTY markers.
5257         (struct lang_identifier, struct lang_tree_node): Define
5258         here...
5259         * c-tree.h: ... not here.  No longer need to declare struct
5260         c_binding either.  Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
5261         * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
5262         to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
5263
5264         PR 14734, 11944
5265         * c-decl.c (get_parm_info): If error_mark_node is encountered
5266         in the bindings chain, unbind and discard it; don't abort.
5267
5268 2004-03-28  Olga Golovonevsky <olga@il.ibm.com>
5269             Dorit Naishlos <dorit@il.ibm.com>
5270
5271         * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
5272         one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
5273
5274 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
5275
5276         * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
5277
5278         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
5279         (m68hc11_attribute_table): New attribute "page0" to mark a global
5280         variable as being allocated from within page0 section.
5281         (m68hc11_encode_label): New function.
5282         (m68hc11_strip_name_encoding): New function.
5283         (m68hc11_page0_symbol_p): New function.
5284         (m68hc11_indirect_p): Accept global variables marked in page0.
5285         (m68hc11_encode_section_info): Lookup "page0" attribute.
5286
5287         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
5288         represents access to page0 variables.
5289
5290         * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
5291         ("*logicalsi3_silshl16_zext"): Likewise.
5292         ("*ashldi3_const32"): Likewise.
5293         (peephole2 ashift): Likewise.
5294
5295 2004-03-28  Joseph S. Myers  <jsm@polyomino.org.uk>
5296
5297         * c-tree.h (C_DECL_REGISTER): New.
5298         * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
5299         finish_decl, grokdeclarator, get_parm_info), c-typeck.c
5300         (build_array_ref, c_mark_addressable): Set and use it.
5301         * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
5302         Allow structures with volatile fields to be declared register.
5303         Don't check TREE_ADDRESSABLE before warning about taking address
5304         of register.
5305         * c-decl.c (finish_decl): Don't allow structures with volatile
5306         fields to be placed in named register.
5307         * doc/trouble.texi: Remove reference to structures with volatile
5308         fields in registers.
5309
5310 2004-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
5311
5312         * function.c (thread_prologue_and_epilogue): Move
5313         NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
5314         before the epilogue.
5315
5316 2004-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
5317
5318         * expr.c (store_constructor): Use gen_int_mode to correctly
5319         sign-extend CONST_INT value.
5320
5321 2004-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5322
5323         * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
5324         * builtins.def (DEF_C94_BUILTIN): New.  Add wctype builtins.
5325         * doc/extend.texi: Likewise.
5326
5327 2004-03-26  Diego Novillo  <dnovillo@redhat.com>
5328
5329         * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
5330           with TYPE_ORIG_SIZE_TYPE.
5331
5332 2004-03-25  Aldy Hernandez  <aldyh@redhat.com>
5333
5334         PR 14219
5335         * c-typeck.c (build_binary_op): Do not allow comparisons of
5336         vectors.
5337
5338 2004-03-26  James A. Morrison  <ja2morri@uwaterloo.ca>
5339
5340         * config.gcc: Remove sparc-tti-*.
5341         * config/sparc/pbd.h: Delete.
5342
5343         * config/sparc/sol2.h: Remove note about Sun OS 4.x.
5344         * config/sparc/aout.h: Likewise.
5345
5346         * config/sparc/sparc.h: Remove if 0'd code.
5347         * config/sparc/sparc.md (call): Remove if 0'd code.
5348         (call_value): Likewise.
5349         (nonlocal_goto): Likewise.
5350         (unimp_insn): Delete.
5351
5352 2004-03-25  Roger Sayle  <roger@eyesopen.com>
5353
5354         * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
5355         BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
5356
5357 2004-03-25  Richard Henderson  <rth@redhat.com>
5358
5359         PR 11527
5360         * c-typeck.c (pop_init_level): Emit pending init elements earlier
5361         rather than later.
5362
5363 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5364
5365         * builtins.c (fold_builtin): Fix error in last change.
5366
5367 2004-03-25  Richard Sandiford  <rsandifo@redhat.com>
5368
5369         * config/mips/mips.h: Formatting fix.
5370
5371 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5372
5373         * builtins.def: Add ctype builtins.
5374         * doc/extend.texi: Likewise.
5375
5376 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5377
5378         * builtins.c (fold_builtin): Add new builtin optimizations for
5379         sqrt and/or cbrt.
5380         * fold-const.c (fold): Likewise.
5381
5382 2004-03-25  David Edelsohn  <edelsohn@gnu.org>
5383
5384         * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
5385         (rs6000_sched_groups): New variable.
5386         (processor_target_table): Add power5.
5387         (rs6000_override_options): Set rs6000_sched_insert_nops,
5388         rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
5389         from rs6000_sched_groups.
5390         (output_cbranch): Use rs6000_always_hint.
5391         (rs6000_variable_issue): Use rs6000_sched_groups.
5392         (rs6000_adjust_cost): Add CPU_POWER5.
5393         (is_microcoded_insn): Use rs6000_sched_groups.
5394         (is_dispatch_slot_restricted): Use rs6000_sched_groups.
5395         Return 2 for POWER5 cracked instructions.
5396         (is_cracked_insn): Use rs6000_sched_groups.
5397         (is_branch_slot_insn): Use rs6000_sched_groups.
5398         (rs6000_issue_rate): Add CPU_POWER5.
5399         (rs6000_sched_finish): Use rs6000_sched_groups.
5400         (rs6000_rtx_costs): Add PROCESSOR_POWER5.
5401         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
5402         (DEFAULT_SCHED_COSTLY_DEP): Delete.
5403         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
5404         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
5405         * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
5406         * config/rs6000/power5.md: New file.
5407         * doc/invoke.texi: Add power5 option.
5408
5409 2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>
5410
5411         * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
5412         config/arm/arm.c, objc/objc-act.c: Fix comment typos.
5413         * doc/invoke.texi: Fix a typo.
5414
5415 2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>
5416
5417         PR optimization/9707.
5418         * stmt.c (emit_case_nodes): Emit equality comparisons instead
5419         of recursing if both children are single-valued cases with no
5420         children.
5421
5422 2004-03-25  Paul Brook  <paul@codesourcery.com>
5423
5424         * config/arm/arm.c (vfp_print_multi): Remove.
5425         (arm_output_fldmx): New function.
5426         (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
5427         (arm_expand_prologue): Update to match.
5428         (arm_get_vfp_saved_size): New Function.
5429         (arm_get_frame_offsets): Use it.
5430         (arm_output_epilogue): Use new functions.
5431
5432 2004-03-24  Richard Henderson  <rth@redhat.com>
5433
5434         * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
5435         (reg_known_value, reg_known_value_size): Likewise; make static.
5436         (reg_known_equiv_p): Make static.
5437         (clear_reg_alias_info): Update for new indexing.
5438         (get_reg_known_value, set_reg_known_value): New.
5439         (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
5440         (canon_rtx): Use them.
5441         (init_alias_analysis): Likewise.  Allocate reg_known_value with gc.
5442         Don't play queer offsetting games with reg_known_value and
5443         reg_known_equiv_p.
5444         (end_alias_analysis): Free reg_known_value with gc.
5445         * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
5446         * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
5447         (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
5448         functions instead.
5449
5450 2004-03-24  Kazu Hirata  <kazu@cs.umass.edu>
5451
5452         * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
5453         config/i386/mmintrin.h: Update copyright.
5454
5455 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
5456
5457         * configure.ac: Add --enable-werror-always (for top level bootstrap
5458         support).
5459         * configure: Regenerate.
5460
5461 2004-03-24  Ziemowit Laski  <zlaski@apple.com>
5462
5463         * objc/objc-act.c (objc_comptypes): Treat comparisons
5464         between 'Class' and '<class> *' as explicitly invalid.
5465
5466 2004-03-24  David Edelsohn  <edelsohn@gnu.org>
5467
5468         * doc/invoke.texi (-frename-registers): Add enabled at -O3.
5469         (-fprofile-values): Add enabled with profile-{generate,use}.
5470         (-fvpt): Same.
5471         (-ftracer): Add enabled with profile-use.
5472         (-funit-at-a-time): Add enabled at -O2,-O3.
5473         (-funroll-loops): Add enabled with profile-use.
5474         (-funswitch-loops): Add enabled with profile-use.  Remove duplicates.
5475         (max-gcse-passes): Mention default.
5476         (max-cse-path-length): Mention default.
5477
5478 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
5479
5480         * Makefile.in (STRICT2_WARN): Reorder.
5481         * configure.ac: Check for -Wold-style-definition, and use it
5482         in strict1_warn if it's available.
5483         * configure: Regnerate.
5484
5485 2004-03-24  Paul Brook  <paul@nowt.org>
5486
5487         * config.gcc <arm>: Add --with-abi=
5488         * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
5489         thumb_far_jump_used): Remove prototypes.
5490         (arm_needs_doubleword_align): Add prototype.
5491         (thumb_compute_initial_elimination_offset): Ditto.
5492         * config/arm/arm.c (arm_get_frame_offsets): New function.
5493         (use_return_insn, output_return_instruction, arm_output_epilogue,
5494         arm_output_function_epilogue, arm_compute_initial_elimination_offset,
5495         arm_expand_prologue, thumb_expand_epilogue): Use it.
5496         (arm_abi, target_abi_name, all_arm_abis): New variables.
5497         (arm_override_options): Set them.  Set structure padding for AAPCS.
5498         (arm_return_in_memory): Update ABI check.
5499         (arm_init_cumulative_args): Initialize can_split.
5500         (arm_needs_doubleword_align): New function.
5501         (arm_function_arg): Don't split args after pushing to stack. Handle
5502         doubleword/even reg alignment.
5503         (arm_va_arg): Handle all doubleword aligned args.
5504         (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
5505         on ABI, not CPU.
5506         (arm_compute_save_reg0_reg12_mask): Fix comment.
5507         (thumb_get_frame_size, thumb_get_frame_size): Remove.
5508         (thumb_jump_far_used_p): Remove superfluous argument.  Return save
5509         value for alignment.
5510         (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
5511         to match.
5512         (thumb_compute_initial_elimination_offset): New function.
5513         (thumb_expand_prologue): Use arm_get_frame_offsets.  Remove
5514         unneccessary rounding.
5515         * config/arm/arm.h (target_abi_name): Declare.
5516         (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
5517         arm_abi_type, ARM_DEFAULT_ABI): Define.
5518         (ARM_FLAG_ATPCS): Remove.
5519         (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
5520         (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
5521         (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
5522         TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
5523         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
5524         Contitionalize on ABI, not CPU.
5525         (struct arm_stack_offsets): Define.
5526         (struct machine_function): Add stack_offsets.  Remove frame_size.
5527         (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
5528         pushed.
5529         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
5530         doubleword alignment.
5531         (THUMB_INITIAL_ELIMINATION_OFFSET,
5532         ARM_INITIAL_ELIMINATION_OFFSET): Remove.
5533         (INITIAL_ELIMINATION_OFFSET): Call functions directly.
5534         * config/arm/arm.md (align_8): Enable for all targets.
5535         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
5536         (ARM_DEFAULT_ABI): Define.
5537         * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
5538         -mstructure-size-boundary.
5539
5540 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
5541
5542         * configure.ac: Check for -Wno-variadic-macros; don't use
5543         -pedantic (in stage 1 or a simple 'make all') unless it's available,
5544         and if it's available, use it.  Also, clean up check for
5545         -Wno-long-long.
5546         * configure: Regenerate.
5547
5548 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
5549
5550         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
5551         * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
5552         (MULTILIB_DEFAULTS): Use it.
5553         (MIPS_CPU_STRING_DEFAULT): Remove.
5554         (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
5555         (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120.  Make
5556         EABI64 -mlong32 the default ABI.  Enforce the default architecture.
5557         * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
5558         march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
5559         (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
5560         (MULTILIB_EXCEPTIONS): Change choice of multilibs.  Update comments
5561         accordingly.
5562
5563 2004-03-24  DJ Delorie  <dj@redhat.com>
5564             Richard Sandiford  <rsandifo@redhat.com>
5565
5566         * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
5567         (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
5568         (ASM_SPEC): Pass down -mfix-vr4122-bugs.
5569         * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
5570         in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
5571         (mips_init_libfuncs): Use special functions for divsi3 and modsi3
5572         if TARGET_FIX_VR4122.
5573         * config/mips/mips.md (define_attr length): Account for nops inserted
5574         after macc and dmult when using -mfix-vr4122-bugs.
5575         (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
5576         * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
5577         LIB2FUNCS_EXTRA.  Add config/mips/vr4122-div.S.
5578         * config/mips/vr4122-div.S: New file.
5579         * doc/invoke.texi: Document -mfix-vr4122-bugs.
5580
5581 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
5582
5583         * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
5584         (TARGET_MIPS4130): New macro.
5585         (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
5586         * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
5587         (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
5588         with PROCESSOR_R4130.
5589         * config/mips/mips.md (define_attr cpu): Add r4130.
5590         * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
5591
5592 2004-03-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5593             Richard Sandiford  <rsandifo@redhat.com>
5594
5595         * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
5596
5597 2004-03-24  Alexandre Oliva  <aoliva@redhat.com>
5598
5599         PR preprocessor/14438
5600         * cpplib.c (do_pragma): Remove line_change call after pragma
5601         handler.
5602
5603 2004-03-23  Ian Lance Taylor  <ian@wasabisystems.com>
5604
5605         * doc/extend.texi (ARM Built-in Functions): Replace with correct
5606         declarations.
5607
5608 2004-03-23  Roger Sayle  <roger@eyesopen.com>
5609
5610         * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
5611         if flag_unsafe_math_optimizations.
5612         * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
5613         and TARGET_80387 expand using truncdfsf2_noop pattern.
5614         (truncxfsf2): Likewise using truncxfsf2_noop.
5615         (truncxfdf2): Likewise using truncxfdf2_noop.
5616         (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
5617
5618 2004-03-23  Ziemowit Laski  <zlaski@apple.com>
5619
5620         * hooks.c (hook_constcharptr_tree_null): New hook.
5621         * hooks.h (hook_constcharptr_tree_null): New prototype.
5622         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
5623         * target.h (mangle_fundamental_type): New target hook.
5624         * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
5625         target hook at rs6000_mangle_fundamental_type.
5626         (rs6000_mangle_fundamental_type): New function.
5627         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
5628
5629 2004-03-23  Zack Weinberg  <zack@codesourcery.com>
5630
5631         PR 12267, 12391, 12560, 13129, 14114, 14133
5632         * c-tree.h: Forward declare struct c_binding.  Declare
5633         c_override_bindings_to_false.  Update prototypes.
5634         (struct lang_identifier): Update comments.  Change fields to be
5635         struct c_binding *.
5636         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
5637         (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
5638         (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
5639         (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
5640         * c-common.h: Update prototypes.
5641         * c-decl.c (struct c_scope): Update commentary.  Remove names,
5642         names_last, parms, parms_last, tags, and shadowed fields.  Add
5643         bindings and depth fields.
5644         (scope_freelist): Move to more appropriate location.
5645         (c_print_identifier): Update for changes to struct lang_identifier.
5646         (objc_mark_locals_volatile): Update for new bindings structures.
5647         (global_bindings_p): Honor c_override_global_bindings_to_false.
5648         (pushlevel): Rename to push_scope; take no arguments; use the
5649         scope_freelist; initialize scope->depth and check for overflow.
5650         (poplevel): Rename to pop_scope; totally rewritten for new bindings
5651         structures.
5652         (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
5653         C_DECL_INVISIBLE, for certain decisions.  Adjust some diagnostics.
5654         Improve some commentary.  Adjust handling of forward parm decls.
5655         (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
5656         Preserve C_DECL_IN_EXTERNAL_SCOPE.
5657         (warn_if_shadowing): Correct indentation.  Improve diagnostics.
5658         (pushdecl): Remove unnecessary assertion.  Short-circuit anonymous
5659         decls.  Rewrite for new bindings structures.  Improve commentary.
5660         Eliminate the copy_node call.
5661         (implicit_decl_warning): Use the "diag" idiom (as seen in
5662         locate_old_decl) to reduce code duplication; call locate_old_decl
5663         if appropriate.  Relocate to remove need for forward declaration.
5664         (implicitly_declare): Adjust for new bindings structures.  Kludge
5665         around Objective-C not-really-builtin functions.
5666         (undeclared_variable): Improve diagnostics.  If current_function_decl
5667         is nonnull but current_function_scope is null, use current_scope.
5668         Use bind.
5669         (lookup_tag): Adjust for new bindings structures.  Kludge around
5670         Objective-C's tag declarations that wind up in the external scope.
5671         (lookup_name): Adjust for new bindings structures.  Kludge around
5672         c-common.c's pseudo-typedefs that wind up in the external scope.
5673         (lookup_name_current_level): Rename lookup_name_in_scope; take a
5674         second argument indicating the scope to examine; rewrite for
5675         new bindings structures.
5676         (c_init_decl_processing): Adjust for renamed functions.  Do not
5677         initialize current_file_decl, first_builtin_decl, last_builtin_decl.
5678         First scope pushed is the external scope, not the global scope.
5679         (builtin_function): Use bind, not pushdecl.  Adjust other bits
5680         for new data structures.  Keep track of builtins that should be
5681         made visible automatically.
5682         (start_decl): Adjust diagnostics.  Remove unnecessary call to
5683         expand_decl.
5684         (grokparms): Return 0 if arg_types is error_mark_node.
5685         (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
5686         reversed sense.  Rewrite for new bindings structures.  Do not
5687         leave any decls in the scope, to prevent pop_scope from doing
5688         contradictory things with them.
5689         (finish_struct, finish_enum): Remove redundant diagnostics.
5690         (build_enumerator): Don't cascade diagnostics for error_mark_node.
5691         Mark location where -pedantic changes the meaning of the program.
5692         (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
5693         parameter decls into the function's scope structure using bind.
5694         Warn here about function definitions in the wrong style.
5695         Adjust diagnostics.
5696         (store_parm_decls): Correct the determination of whether a
5697         function was defined with a prototype.
5698         (c_write_global_declarations): Operate on all file decls and on
5699         the external scope.  Split body of the loop to...
5700         (c_write_global_declarations_1): ... this new function, to avoid
5701         code duplication.
5702         (truly_local_externals, first_builtin_decl, last_builtin_decl)
5703         (make_scope, pop_scope, in_parm_level_p, set_block)
5704         (any_external_decl, record_external_decl, bind_label, getdecls)
5705         (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
5706         (c_reset_state): Delete.
5707         (visible_builtins, c_override_global_bindings_to_false)
5708         (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
5709         (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
5710         (external_scope, binding_freelist, bind, free_binding_and_advance)
5711         (push_file_scope, pop_file_scope): New.
5712         (pushtag, pushdecl_top_level, lookup_label, declare_label)
5713         (define_label, c_make_fname_decl, finish_decl)
5714         (mark_forward_parm_decls, build_compound_literal)
5715         (grokdeclarator, start_function, check_for_loop_decls)
5716         (identifier_global_value, record_builtin_type): Minor adjustments
5717         for new bindings structures.  Improve diagnostics and commentary.
5718         * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
5719         pushlevel/poplevel respectively.
5720         (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
5721         * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
5722         Warn about YYDEBUG not being defined only if -dy.  Remove no-longer-
5723         correct loop over multiple translation units; call fatal_error if
5724         requested to compile more than one file at once.  (This disables
5725         IMA temporarily - an up-front error being preferable to a crash.)
5726         * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
5727         (all actions): Adjust calls to pushlevel/poplevel.
5728         (parsing_iso_function_signature): Delete.
5729         (extdef_1): Fold into extdef.
5730         (old_style_parm_decls_1): Fold into old_style_parm_decls.  Don't
5731         warn here about function definitions in the wrong style.
5732         (after_tyle_declarator, parm_declarator_starttypename)
5733         (parm_declarator_nostarttypename, notype_declarator): Remove
5734         commented-out productions.
5735         (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
5736         an empty TREE_LIST node.  Adjust calls to get_parm_info.
5737         (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
5738         to suppress -Wold-style-definition after this error.
5739         (c_parse_file): Don't clear the binding stack or call
5740         finish_fname_decls here.  Correct comment.
5741         * c-typeck.c (same_translation_unit_p): Export.
5742         (common_type): Use c_override_global_bindings_to_false, not
5743         pushlevel/poplevel/declare_parm_level.
5744         * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
5745         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
5746         and LANG_HOOKS_GETDECLS with do-nothing stubs.
5747         * objc/objc-lang.c: Likewise.
5748         * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
5749         get_parm_info.
5750         (OBJC_VOID_AT_END): Delete; replace all uses
5751         with void_list_node.
5752         (generate_forward_declaration_to_string_table): Delete.
5753         * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
5754
5755         * coverage.c (create_coverage): Don't pushdecl anything.
5756         * langhooks.c (lhd_clear_binding_stack): Call
5757         lang_hooks.decls.poplevel, not poplevel.
5758         * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
5759         circular list rather than going into an infinite loop.
5760
5761 2004-03-23  Olivier Hainque  <hainque@act-europe.fr>
5762
5763         * optabs.c (expand_binop): When synthesizing double word rotates
5764         from single word shifts, use a new register target if the provided
5765         target is not a REG already.
5766
5767 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5768
5769         * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
5770         * c-common.c (handle_mode_attribute): Add extra arg to
5771         build_pointer_type_for_mode and build_reference_type_for_mode.
5772         * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
5773         for INTEGER_CST.
5774         * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
5775         Chain pointers via TYPE_NEXT_PTR_TO.
5776         (build_reference_type_for_mode): Similarly.
5777         (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
5778         and build_reference_type_for_mode.
5779         (tree_check4_failed): New function.
5780         * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
5781         (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
5782         (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
5783         Add check.
5784
5785 2004-03-23  Roger Sayle  <roger@eyesopen.com>
5786
5787         * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
5788         A is nonnegative or B is nonnegative.  Similarly A|B is nonnegative
5789         when both A and B are nonnegative.
5790         (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
5791         nonzero.
5792
5793 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
5794
5795         * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
5796         VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
5797
5798 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
5799
5800         PR optimization/14669
5801         * fold-const.c (fold): Only unwiden integer comparisons for equality
5802         and inequality operators, or when the signedness doesn't change.
5803
5804 2004-03-23  Jakub Jelinek  <jakub@redhat.com>
5805
5806         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
5807         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
5808         * config/sparc/t-linux: New file.
5809
5810 2004-03-23  Richard Sandiford  <rsandifo@redhat.com>
5811
5812         * gcse.c (can_assign_to_reg_p): New function, split out from...
5813         (want_to_gcse_p): ...here.
5814         (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
5815         the rhs of a store.
5816
5817 2004-03-22  Diego Novillo  <dnovillo@redhat.com>
5818
5819         * c-typeck.c (same_translation_unit_p): Fix pasto.
5820
5821 2004-03-22  David Edelsohn  <edelsohn@gnu.org>
5822
5823         * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
5824         (PARAM_MAX_SCHED_REGION_INSNS): New.
5825         * sched-rgn.c: Include params.h
5826         (MAX_RGN_BLOCKS): Delete.
5827         (MAX_RGN_INSNS): Delete.
5828         (too_large): Return bool.  Convert to PARAM_VALUE.
5829         * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
5830         * doc/invoke.texi (param): Document max-sched-region-blocks and
5831         max-sched-region-insns.
5832
5833 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
5834
5835         * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
5836         for base types.
5837
5838 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
5839
5840         * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
5841         change.
5842
5843 2004-03-22  Jakub Jelinek  <jakub@redhat.com>
5844
5845         PR c/14069
5846         * c-decl.c (finish_struct): Change type of incorrect flexible array
5847         field into error_mark_node.
5848
5849 2004-03-22  Andrew Pinski  <pinskia@physics.uc.edu>
5850
5851         PR target/14580
5852         * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
5853         who are not local for Darwin PIC.
5854
5855 2004-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
5856
5857         * regrename.c (regrename_optimize): Set regs_ever_live for all
5858         registers introduced as replacement.
5859
5860 2004-03-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
5861
5862         PR middle-end/14470
5863         * expr.c (mark_queue): New function.
5864         (emit_insns_enqueued_after_mark): New function replacing
5865         emit_queue.  Clear the body of emitted queued insns.
5866         (emit_queue): Call emit_insns_enqueued_after_mark.
5867         (store_expr): Mark the increment queue on entry.  Emit
5868         only the incrementations queued when expanding the source.
5869
5870 2004-03-22  Nathanael Nerode  <neroden@gcc.gnu.org>
5871
5872         * configure.ac: Allow --disable-coverage-flags (for the future benefit
5873         of top level bootstrap, and consistency).  Reindent.
5874         * configure: Regenerate.
5875
5876 2004-03-21  Kazu Hirata  <kazu@cs.umass.edu>
5877
5878         * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
5879         ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
5880         unnecessary casts.
5881
5882 2004-03-22  Danny Smith  <dannysmith@users.sourceforge.net>
5883
5884         PR target/14291
5885         * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
5886         __MINGW32__.
5887
5888 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
5889
5890         * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
5891         to nonimmediate_operand.
5892         ("*doloop_di"): Likewise.
5893
5894 2004-03-21  Alexandre Oliva  <aoliva@redhat.com>
5895
5896         * real.h (struct real_value): Use the same type for all
5897         bitfields.  Rename exp to uexp.
5898         (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
5899         Adjust all uses of exp...
5900         * builtins.c: ... here, ...
5901         * emit-rtl.c: ... here, and ...
5902         * real.c: ... and here.
5903
5904 2004-03-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5905
5906         * pretty-print.c (pp_base_maybe_space): New function.
5907         * pretty-print.h (pp_base_maybe_space): Declare.
5908         (pp_maybe_space): New macro.
5909
5910 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
5911
5912         * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
5913
5914 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
5915
5916         * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
5917         of using register multiplication cost.
5918         (expand_mult): Adapt choose_mult_variant call.
5919         (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
5920         of MODE; pass appropriate cost bound.  Adjust result when
5921         performing signed multiplication by a negative constant.
5922         Don't use intermediate modes larger than word_mode.
5923
5924 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5925
5926         * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
5927         * emit-rtl.c (component_ref_for_mem_expr): Likewise.
5928         (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5929         * explow.c (expr_size): Likewise.
5930         * expr.h (placeholder_list, find_placeholder): Deleted.
5931         * expr.c (store_constructor): Likewise.
5932         (get_inner_reference): Likewise.  Also don't call find_placeholder.
5933         (placeholder_list, find_placeholder): Deleted.
5934         (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
5935         (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
5936         (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
5937         * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
5938         * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
5939         Likewise.
5940         * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
5941         (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
5942         * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
5943         (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
5944         Clean up by using first_rtl_op.
5945         (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
5946         (substitute_placeholder_in_expr): New function.
5947         * tree.def (WITH_RECORD_EXPR): Deleted.
5948         * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
5949         (substitute_placeholder_in_expr): New.
5950
5951 2004-03-21  Andrew Pinski  <pinskia@gcc.gnu.org>
5952
5953         * dojump.c (prefer_and_bit_test): Fix which part of
5954         the and_test is replaced.
5955
5956 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
5957
5958         * frontends.texi: Add missing line.
5959
5960 2004-03-21  Zack Weinberg  <zack@codesourcery.com>
5961             Chris Devers  <cdevers@pobox.com>
5962             Joseph S. Myers  <jsm@polyomino.org.uk>
5963
5964         * doc/frontends.texi: Rewrite.
5965         * doc/gcc.texi: Update last modification date.
5966
5967 2004-03-21  Josef Zlomek  <zlomekj@suse.cz>
5968
5969         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
5970         message before redirecting the edge.
5971
5972 2004-03-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5973
5974         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
5975         flag.
5976         * explow.c (force_not_mem): Set REG_POINTER flag according to
5977         MEM_POINTER one.
5978         * rtl.h (MEM_POINTER): New macro.
5979         (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
5980         for MEM_POINTER.
5981
5982 2004-03-20  Roger Sayle  <roger@eyesopen.com>
5983
5984         PR target/13889
5985         * cse.c (fold_rtx): Avoid substituting constants into unary
5986         conversion operations.
5987
5988 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
5989
5990         * fold-const.c (fold): Replace "expr" with "t".
5991
5992 2004-03-20  Ian Lance Taylor  <ian@wasabisystems.com>
5993
5994         PR c/12373
5995         * c-typeck.c (tagged_types_tu_compatible_p): Don't use
5996         DECL_ORIGINAL_TYPE if there isn't one.
5997
5998 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
5999
6000         * fold-const.c (fold): Replace "final_type" with "type".
6001         Remove variable "final_type".
6002
6003 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6004
6005         * fold-const.c (fold): Constify "type".
6006         Replace "TREE_TYPE (t)" with "type".
6007
6008 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6009
6010         * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
6011         dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
6012         via (*targetm.foo) () with targetm.foo ().
6013
6014 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
6015
6016         PR other/14630
6017         * doc/install.texi: Add info directory category and entry.
6018
6019 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6020
6021         * fold-const.c (fold): Replace "t" with "tem" where it is used
6022         as a temporary variable.  Remove "orig_t" and all of its uses.
6023
6024 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6025
6026         * fold-const.c (fold): Remove variable "invert".
6027         Move the handling of relational expressions that can be folded
6028         to a constant ...
6029         (fold_relational_const): ... here.
6030         (tree_expr_nonzero_p): New.
6031
6032 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
6033
6034         PR c/14635
6035         * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
6036         DEF_GCC_BUILTIN.
6037
6038 2004-03-20  Richard Sandiford  <rsandifo@redhat.com>
6039
6040         * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
6041         (GTFILES): Add $(srcdir)/dojump.h.
6042         (gt-dojump.h): New dependency.
6043         * dojump.c (and_reg, and_test, shift_test): New static variables.
6044         (prefer_and_bit_test): New function.
6045         (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
6046
6047 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6048
6049         * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
6050         expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
6051         reorg.c, tree.h: Fix comment typos.
6052
6053 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
6054
6055         * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
6056         c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
6057         cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
6058         haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
6059         sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
6060         vmsdbgout.c: Replace calls via (*targetm.foo) () with
6061         targetm.foo ().
6062
6063 2004-03-19  Ziemowit Laski  <zlaski@apple.com>
6064
6065         * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
6066         vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
6067         always_inline attribute.
6068         * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
6069         Treat expansion as completed even if literal argument is
6070         invalid (so that other expansions are not tried in vain).
6071
6072 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
6073
6074         * loop-doloop.c (add_test): Replace GEN_INT (0) with
6075         const0_rtx.
6076
6077 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
6078
6079         * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
6080         ...
6081         (fold_abs_const): ... here.
6082
6083 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6084
6085         * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
6086
6087 2004-03-19  Denis Chertykov  <denisc@overta.ru>
6088
6089         PR target/11520
6090         * config/avr/avr.md ("call_insn"): Handle explicit integer
6091         specially.
6092         (call_value_insn): Likewise.
6093
6094 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6095
6096         * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
6097
6098 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
6099
6100         * fold-const.c (negate_expr): Move the handling of constants
6101         ...
6102         (fold_negate_const): ... here.
6103
6104 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6105
6106         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
6107         * langhooks.h (struct lang_hooks_for_types): New field hash_types.
6108         * tree.c (debug_no_type_hash): Deleted.
6109         (type_hash_canon): Abort if passed a variant.
6110         Check lang_hooks.types.hash_types.
6111         (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
6112         (build_array_type): Remove unnecessary allocation of pointer type.
6113         (build_complex_type): Properly qualify resulting type.
6114
6115 2004-03-19  Paolo Bonzini  <bonzini@gnu.org>
6116
6117         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
6118
6119 2004-03-19  Richard Sandiford  <rsandifo@redhat.com>
6120
6121         * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
6122         (expand_mult): ...here.
6123         (extract_high_half): New, split out from expand_mult_highpart.
6124         (expand_highpart_optab): Likewise.  Don't clobber target prematurely.
6125         (expand_highpart): Evaluate the cost of a shift/add sequence,
6126         then see if any of the specialized optabs are cheaper.
6127
6128 2004-03-18  Ian Lance Taylor  <ian@wasabisystems.com>
6129
6130         * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
6131
6132 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6133
6134         * convert.c (convert_to_real): Add more math builtins.
6135
6136 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6137
6138         * convert.c (convert_to_real): Reformat using switch stmt.
6139
6140 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
6141
6142         * c-common.c (pointer_int_sum): Do not complain about using
6143         pointers to pointers-to-members.
6144
6145 2004-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6146
6147         * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
6148         have moved to the target hooks structure".
6149
6150 2004-03-18  James E Wilson  <wilson@specifixinc.com>
6151
6152         * config/mips/mips.md (type): Split move into arith and fmove.  Split
6153         hilo into mthilo and mfhilo.  Add trap.  Delete icmp.  Fix all uses.
6154         * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
6155         Likewise.
6156         * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
6157         Likewise.
6158         * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
6159         rm7_fp_quick): Likewise.
6160         * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
6161         rm9k_fquick): Likewise.
6162         * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
6163         Likewise.
6164         (ir_sr70_icmp): Delete.
6165
6166 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6167
6168         * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
6169         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
6170         (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
6171         (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
6172         (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
6173         Protect with proper check.
6174         (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
6175         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
6176         * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
6177         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
6178         * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
6179         * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
6180         not TYPE_FIELDS.
6181         * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
6182
6183 2004-03-18  Mostafa Hagog  <mustafa@il.ibm.com>
6184
6185         * gcse.c (eliminate_partially_redundant_loads): Reject change if
6186         dest is set between beginning and current insn.
6187
6188 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
6189
6190         * c-decl.c (grokdeclarator): Do not complain about redeclaring
6191         visible "static" identifiers "extern" in a local scope.
6192         * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
6193         post-increments/decrements.
6194
6195 2004-03-18  Bob Wilson  <bob.wilson@acm.org>
6196
6197         * config/xtensa/xtensa.c (current_function_arg_words): Delete.
6198         (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
6199         (xtensa_va_start): Remove assignment to current_function_arg_words.
6200
6201 2004-03-18  Richard Sandiford  <rsandifo@redhat.com>
6202
6203         * alias.c (record_set): Detect the case where a register is assigned
6204         a new value that has the same base term as the old one.
6205
6206 2004-03-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6207
6208         * doloop.c: Removed.
6209         * loop-doloop.c: New file.
6210         * Makefile.in (doloop.o): Remove.
6211         (loop-doloop.o): New.
6212         * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
6213         * cfgloopanal.c (get_loop_level): New function.
6214         * loop-iv.c (iv_number_of_iterations): Handle case when loop
6215         is leaved immediatelly.
6216         * loop.c (strength_reduce): Do not call doloop optimization.
6217         * loop.h (LOOP_BCT): Removed.
6218         * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
6219         (rest_of_handle_loop2): Call doloop_optimize_loops.
6220         (rest_of_compilation): Test for optimizations moved to
6221         rest_of_handle_loop2.
6222
6223 2004-03-17  Fariborz Jahanian <fjahanian@apple.com>
6224
6225         * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
6226         for mixed mode.
6227         (rs6000_emit_prologue): Ditto.
6228         (rs6000_emit_epilogue): Ditto.
6229         * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
6230         macro for mixed mode.
6231
6232 2004-03-18  Jan Hubicka  <jh@suse.cz>
6233
6234         * predict.c (propagate_freq): Compute correctly frequency of
6235         EXIT_BLOCK.
6236
6237 2004-03-17  Eric Christopher  <echristo@redhat.com>
6238
6239         * builtins.c (apply_args_size): Use reg_raw_mode.
6240         (apply_result_size): Ditto.
6241
6242 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6243
6244         PR target/14620
6245         * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
6246
6247 2004-03-17  Jakub Jelinek  <jakub@redhat.com>
6248
6249         * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
6250         32-bit builds when defaulting to 32-bit.
6251
6252 2004-03-17  Jan Hubicka  <jh@suse.cz>
6253
6254         * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
6255         array.
6256
6257 2004-03-17  James E Wilson  <wilson@specifixinc.com>
6258
6259         * config/mips/mips.md (zero_extendsidi2): Add length attribute.
6260         (hazard_nop): Change type to nop.
6261         (type): Split arith into arith, shift, slt, clz.  Delete darith.
6262         Fix all uses.  Change arith to multi if more than one insn emitted.
6263         * config/mips/5400.md (ir_vr54_arith): Likewise.
6264         * config/mips/5500.md (ir_vr55_arith): Likewise.
6265         * config/mips/7000.md (rm7_int_other): Likewise.
6266         * config/mips/9000.md (rm9k_int): Likewise.
6267         * config/mips/sr71k.md (ir_sr70_arith): Likewise.
6268
6269 2004-03-17  Joel Brobecker  <brobecker@gnat.com>
6270
6271         * dwarf2out.c (subrange_type_die): Define new variable "subtype"
6272         to hold the subtype tree instead of recomputing it several times.
6273
6274 2004-03-17  Kazu Hirata  <kazu@cs.umass.edu>
6275
6276         * config/mn10300/mn10300.c (notice_update_cc): Don't handle
6277         CC_INVERT.
6278         * config/mn10300/mn10300.md (cc): Remove "invert".
6279
6280 2004-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6281
6282         * builtins.c (integer_valued_real_p): Add builtin rint.
6283         (fold_builtin): Likewise.
6284         * convert.c (convert_to_real): Likewise.
6285
6286         * convert.c (convert_to_real): Fix typos in `long double'
6287         builtins.
6288
6289 2004-03-16  Mark Mitchell  <mark@codesourcery.com>
6290
6291         PR c++/14481
6292         * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
6293         generated COMPOUND_EXPRs.
6294
6295 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6296
6297         * config/h8300/t-rtems (h8300-*-rtems*): New.
6298
6299 2004-03-16  Eric Christopher  <echristo@redhat.com>
6300
6301         * doc/cppopts.texi(fwide-exec-charset): Fix typo.
6302
6303 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
6304
6305         * config/i386/i386-protos.h: Add a prototype for
6306         ix86_reverse_condition.
6307         * config/i386/i386.c (ix86_reverse_condition): New.
6308         * config/i386/i386.h (REVERSE_CONDITION): Use
6309         ix86_reverse_condition.
6310         * config/i386/i386.md: Use ix86_reverse_condition instead of
6311         REVERSE_CONDITION.
6312
6313 2004-03-16  J. Brobecker  <brobecker@gnat.com>
6314
6315         * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
6316
6317 2004-03-16  Nathanael Nerode  <neroden@gcc.gnu.org>
6318
6319         PR bootstrap/12974
6320         * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
6321
6322 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
6323
6324         * c-common.c (c_common_type_for_mode): Build vector types on
6325         demand.
6326         (handle_mode_attribute): Deprecate using the mode attribute
6327         to create vector types.  Fix indentation.
6328         (vector_type_node_list): Remove.
6329         (handle_vector_size_attribute): Create vector types on demand.
6330         Strip a NON_LVALUE_EXPR from the attribute if there is one.
6331         * c-typeck.c (comptypes): Make vector types compatible if they
6332         have the same underlying mode.
6333         (convert_for_assignment): Use comptypes to convert between
6334         vector types.
6335         * tree.c (build_common_tree_nodes_2): Do not create vector types.
6336         * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
6337         vector types.
6338         * tree.h: Remove vector types.
6339         * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
6340         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
6341         (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
6342         V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
6343         * doc/extend.texi (Vector Types): Document how to use the
6344         vector_size attribute to create vectors, rather than mode.
6345
6346         * config/arm/mmintrin.h: Use vector_size attribute, not mode.
6347         * config/i386/emmintrin.h: Likewise.
6348         * config/i386/mmintrin.h: Likewise.
6349         * config/i386/xmmintrin.h: Likewise.
6350         * config/sh/ushmedia.h: Likewise.
6351
6352 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
6353
6354         * config/freebsd-spec.h, config/arc/arc-protos.h,
6355         config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
6356         config/arm/linux-gas.h, config/arm/semi.h,
6357         config/cris/cris-protos.h, config/i386/xm-djgpp.h,
6358         config/ia64/freebsd.h, config/mips/7000.md,
6359         config/mips/9000.md, config/ns32k/ns32k-protos.h,
6360         config/sparc/pbd.h: Update copyright.
6361
6362 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6363
6364         PR target/14577
6365         * config.gcc: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff.
6366
6367 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
6368
6369         * combine.c (combine_simplify_rtx): Remove the "last"
6370         parameter and its documentation.  Adjust recursive calls.
6371         (simplify_logical): Always perform the only simplification
6372         controlled by "last", if the simplified expression is
6373         actually different.
6374         (try_combine): Do not pass the "last" parameter to
6375         combine_simplify_rtx.
6376
6377 2004-03-16  Richard Sandiford  <rsandifo@redhat.com>
6378
6379         PR target/14599
6380         * config/mips/mips.md (UNSPEC_GP): New constant.
6381         * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
6382         an UNSPEC instead of (reg $gp).
6383         (mips16_gp_pseudo_reg): Change accordingly.
6384         (print_operand): Print $gp directly when handling CONST_GP_P.
6385
6386 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
6387
6388         * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
6389         * longlong.h: Make code 68060 clean when compiling for m68060.
6390
6391 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
6392
6393         * config/m68k/m68k.md: Fix constraints for bitfield instructions.
6394         * doc/md.texi: Clarify description of "i" constraint.
6395
6396 2004-03-15  James E Wilson  <wilson@specifixinc.com>
6397
6398         * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
6399         Split store into store, fpstore, fpidxstore.  Fix all uses.
6400         * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
6401         Likewise.
6402         * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
6403         * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
6404         * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
6405         * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
6406         ir_sr70_fstore): Likewise.
6407
6408 2004-03-15  Richard Henderson  <rth@redhat.com>
6409
6410         PR middle-end/14535
6411         * except.c (collect_one_action_chain): Record action for cleanup
6412         outer of exception spec.
6413
6414 2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>
6415
6416         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
6417         Fix the check for abort and only do the mmap if we can.
6418
6419 2004-03-15  Eric Botcazou  <ebotcazou@act-europe.fr>
6420
6421         * config/sparc/sparc.h: Rework comments about the code model
6422         in 64-bit environment and the mode 'Pmode'.
6423         * doc/invoke.texi (SPARC options): Rework description of the
6424         different code models supported in 64-bit environment.
6425
6426 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
6427
6428         * defaults.h (REVERSIBLE_CC_MODE): Define.
6429         * jump.c (reversed_comparison_code_parts): Don't check if
6430         REVERSIBLE_CC_MODE is defined.
6431
6432 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
6433
6434         * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
6435         et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
6436         hosthooks.h, params.h, ra-colorize.c, web.c,
6437         config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
6438         config/avr/avr-protos.h, config/avr/avr.md,
6439         config/fr30/fr30-protos.h, config/fr30/fr30.md,
6440         config/h8300/fixunssfsi.c, config/i386/darwin.h,
6441         config/i386/freebsd.h, config/i386/freebsd64.h,
6442         config/ia64/hpux.h, config/ia64/unwind-ia64.c,
6443         config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
6444         config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
6445         config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
6446         config/pa/pa64-regs.h, config/rs6000/aix41.h,
6447         config/rs6000/aix43.h, config/rs6000/host-darwin.c,
6448         config/sparc/aout.h, config/sparc/freebsd.h,
6449         config/sparc/litecoff.h, config/vax/vax-protos.h,
6450         doc/hostconfig.texi, doc/include/gcc-common.texi: Update
6451         copyright.
6452
6453 2004-03-15  Paul Brook  <paul@codesourcery.com>
6454
6455         * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
6456
6457 2004-03-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6458
6459         * c-pretty-print.c (pp_c_semicolon): Fix formatting.
6460         (pp_c_cv_qualifier): Document.
6461         (pp_c_space_for_pointer_operator): Likewise.
6462         (pp_c_integer_constant): Likewise.
6463         (pp_c_identifier): Likewise.
6464         (pp_c_init_declarator): Don't print function body.
6465
6466 2004-03-14  Joseph S. Myers  <jsm@polyomino.org.uk>
6467
6468         * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
6469         doc/install.texi, doc/invoke.texi, doc/makefile.texi,
6470         doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
6471         "gcc", "g++" and "g77" or mark up with appropriate markup.  Adjust
6472         wording and grammar.
6473
6474 2004-03-14  Roger Sayle  <roger@eyesopen.com>
6475
6476         * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
6477         with lang_hooks.foo ().
6478         * builtins.c (expand_builtin_va_arg): Likewise.
6479         * c-common.c (fname_as_string, c_common_truthvalue_conversion,
6480         c_common_type_for_mode, c_common_nodes_and_builtins,
6481         handle_mode_attribute, handle_vector_size_attribute): Likewise.
6482         * c-convert.c (convert): Likewise.
6483         * c-format.c (check_format_types): Likewise.
6484         * c-objc-common.c (c_tree_printer): Likewise.
6485         * c-typeck.c (build_unary_op, build_conditional_expr,
6486         build_binary_op): Likewise.
6487         * calls.c (try_to_integrate, expand_call,
6488         emit_library_call_value_1): Likewise.
6489         * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
6490         Likewise.
6491         * cgraphunit.c (record_call_1, cgraph_analyze_function,
6492         cgraph_expand_function): Likewise.
6493         * convert.c (convert_to_pointer, convert_to_integer): Likewise.
6494         * coverage.c (build_fn_info_type, build_ctr_info_type,
6495         build_gcov_info, create_coverage): Likewise.
6496         * dbxout.c (dbxout_init): Likewise.
6497         * diagnostic.c (diagnostic_report_current_function): Likewise.
6498         * dojump.c (do_jump): Likewise.
6499         * dwarf2out.c (dwarf2_name): Likewise.
6500         * except.c (init_eh): Likewise.
6501         * explow.c (expr_size, int_expr_size): Likewise.
6502         * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
6503         Likewise.
6504         * expr.c (store_expr, store_constructor, safe_from_p,
6505         expand_expr_real, do_store_flag, try_casesi): Likewise.
6506         * function.c (push_function_context_to, pop_function_context_from,
6507         free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
6508         put_var_into_stack, allocate_struct_function, current_function_name):
6509         Likewise.
6510         * integrate.c (copy_decl_for_inlining, expand_inline_function):
6511         Likewise.
6512         * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
6513         lhd_print_error_function): Likewise.
6514         * opts.c (handle_option, decode_options): Likewise.
6515         * passes.c (open_dump_file): Likewise.
6516         * print-tree.c (print_node): Likewise.
6517         * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
6518         expand_decl_cleanup, emit_case_nodes): Likewise.
6519         * stor-layout.c (variable_size): Likewise.
6520         * toplev.c (announce_function, wrapup_global_declarations,
6521         check_global_declarations, compile_file, default_tree_printer,
6522         process_options, lang_dependent_init, finalize): Likewise.
6523         * tree-dump.c (dequeue_and_dump): Likewise.
6524         * tree-inline.c (remap_decl, remap_block, copy_body_r,
6525         initialize_inlined_parameters, declare_return_variable,
6526         inlinable_function_p, expand_call_inline, optimize_inline_calls,
6527         walk_tree, copy_tree_r): Likewise.
6528         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6529         * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
6530         unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
6531         variably_modified_type_p, dump_tree_statistics): Likewise.
6532         * varasm.c (assemble_variable, compare_constant, copy_constant,
6533         force_const_mem, compute_reloc_for_constant, output_constant,
6534         output_addressed_constants, initializer_constant_valid_p): Likewise.
6535
6536 2004-03-14  Kelley Cook  <kcook@gcc.gnu.org>
6537
6538         * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
6539
6540 2004-03-14  Andreas Tobler  <a.tobler@schweiz.ch>
6541
6542         * doc/install.texi: Reflect autoconf and automake version for
6543         libffi. Update autoconf version to 2.59.
6544
6545 2004-03-13  Roger Sayle  <roger@eyesopen.com>
6546
6547         * fold-const.c (negate_expr, operand_equal_for_comparison_p,
6548         optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
6549         make_range, build_range_check, fold_range_test, unextend,
6550         constant_boolean_node, fold_binary_op_with_conditional_arg,
6551         fold_truthop, fold_mathfn_compare, fold_inf_compare,
6552         fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
6553         with lang_hooks.foo ().
6554
6555 2004-03-14  Richard Earnshaw  <rearnsha@arm.com>
6556
6557         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
6558
6559 2004-03-13  Dara Hazeghi  <dhazeghi@yahoo.com>
6560
6561         * doc/install.texi: Note status of -fnew-ra.
6562
6563 2004-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
6564
6565         PR middle-end/14470
6566         * expr.c (store_expr): Call emit_queue before generating the move
6567         from the temporary to the original target.  Protect the temporary
6568         from emit_queue.
6569
6570 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
6571
6572         PR target/14533
6573         * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
6574         other than UNSPEC_GOTOFF.
6575
6576 2004-03-13  Richard Earnshaw  <rearnsha@arm.com>
6577
6578         * arm.c (arm_legitimate_address_p): New argument, OUTER.  Pass through
6579         to arm_legitimate_index_p.  Update all callers with SET as default
6580         value.
6581         (arm_legitimate_index_p): New argument, OUTER.  Restrict the index
6582         range if OUTER is a sign-extend operation on QImode.  Correctly
6583         reject shift operations on sign-extended QImode addresses.
6584         (bad_signed_byte_operand): Delete.
6585         (arm_extendqisi_mem_op): New function.
6586         * arm.h (EXTRA_CONSTRAINT_ARM): Delete.  Replace with...
6587         (EXTRA_CONSTRAINT_STR_ARM): ... this.  Handle extended address
6588         constraints.
6589         (CONSTRAINT_LEN): New.
6590         (EXTRA_CONSTRAINT): Delete.  Replace with...
6591         (EXTRA_CONSTRAINT_STR): ... this.
6592         (PREDICATE_CODES): Remove bad_signed_byte_operand.
6593         * arm.md (extendqihi_insn): Use new constraint Uq.  Rework.  Length
6594         is now always default.
6595         (define_splits for bad sign-extend loads): Delete.
6596         (arm_extendqisi, arm_extendqisi_v5): Likewise.
6597         * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
6598         Rework 'U' constraint to 'Uv'.
6599         * arm-protos.h: Remove bad_signed_byte_operand.  Add
6600         arm_extendqisi_mem_op.
6601         * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
6602         Add Uq constraint.
6603
6604 2004-03-13  Alan Modra  <amodra@bigpond.net.au>
6605
6606         * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
6607         with targetm version.
6608
6609         PR target/14567
6610         * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
6611         (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
6612         * config/rs6000/rs6000.c (rs6000_arg_size): New function.
6613         Update all users of RS6000_ARG_SIZE.
6614         (function_arg_advance): Count fregno using mode size.
6615         (function_arg): Handle long double split over regs and memory.
6616         (function_arg_partial_nregs): Likewise.
6617         (rs6000_va_arg): Repackage complex args.
6618
6619 2004-03-13  Dean Ferreyra <dferreyra@igc.org>
6620
6621         PR target/14047
6622         * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
6623         (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
6624         * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
6625
6626 2004-03-12  Jakub Jelinek  <jakub@redhat.com>
6627
6628         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
6629         prototype.
6630         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
6631         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
6632
6633 2003-03-12  Andrew Pinski  <apinski@apple.com>
6634
6635         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
6636         Use ret instead of result. Use addr instead of base.
6637
6638 2004-03-12  David Edelsohn  <edelsohn@gnu.org>
6639
6640         * doc/install.texi (*-ibm-aix*): Document assembler and achiver
6641         fixes required by libstdc++ and update installation instructions
6642         for libstdc++.a.
6643
6644 2004-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
6645
6646         * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
6647         leading '@' on fastcall symbols before stripping suffix.
6648
6649 2004-03-12  Roger Sayle  <roger@eyesopen.com>
6650
6651         * combine.c (unmentioned_reg_p): New function to check whether an
6652         expression is a "specialization" of another, i.e. that there are
6653         no registers or memory references mentioned in the first that don't
6654         appear in the second.
6655         (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
6656         (combine_instructions): Also try combining instructions using the
6657         REG_EQUAL note from a preceding log-linked instruction.
6658
6659 2004-03-12  Roger Sayle  <roger@eyesopen.com>
6660
6661         * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
6662
6663 2004-03-12  Matt Austern  <austern@apple.com>
6664
6665         * target.h (struct gcc_target): New target hook, unwind_label.
6666         * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
6667         * output.h (default_emit_unwind_label): New function.
6668         * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
6669         (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
6670         (TARGET_SUPPORTS_HIDDEN): New target macro.
6671         * dwarf2out.c (struct dw_fde_struct): Add field for function decl
6672         that corresponds to this FDE.
6673         (FRAME_BEGIN_LABEL): Allow target to override default label.
6674         (output_call_frame_info): If FDEs are linknonce, then use extra
6675         indirection for FDE encoding, output a label for each FDE, and
6676         output an empty label for each function without an FDE.
6677         (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
6678         * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
6679         decls with DECL_ONE_ONLY set, if that macro is defined.
6680         (make_decl_one_only): Don't use DECL_COMMON if we're compiling
6681         for a SUPPORTS_ONE_ONLY target.
6682         * config/darwin-protos.h (darwin_unique_section): Declare.
6683         (darwin_asm_named_section): Likewise.
6684         (darwin_section_type_flags): Likewise.
6685         (darwin_non_lazy_pcrel): Likewise.
6686         (darwin_emit_unwind_label): Likewise.
6687         (darwin_make_decl_one_only): Likewise.
6688         * config/darwin.c (machopic_finish): Get rid of tweak that
6689         eliminate stubs for symbols that are defined.
6690         (darwin_encode_section_info): Don't treat weak functions as defined.
6691         (darwin_make_decl_one_only): Define.
6692         (darwin_asm_named_section): Likewise.
6693         (darwin_section_type_flags): Likewise.
6694         (darwin_unique_section): Likewise.
6695         (darwin_emit_unwind_label): Likewise.
6696         (darwin_non_lazy_pcrel): Likewise.
6697         (darwin_asm_output_dwarf_delta): Difference between two labels is
6698         local only if both labels are local.
6699         * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
6700         (ASM_MAKE_LABEL_LINKONCE): Likewise.
6701         (TARGET_SUPPORTS_HIDDEN): Likewise.
6702         (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
6703         (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
6704         (FRAME_BEGIN_LABEL): Likewise.
6705         (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
6706         (ASM_DECLARE_FUNCTION_NAME): Likewise.
6707         (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
6708         (TARGET_ASM_UNIQUE_SECTION): Define.
6709         (EH_FRAME_SECTION_NAME): Define.
6710         (EH_FRAME_SECTION_ATTR): Likewise.
6711         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6712         (TARGET_ASM_NAMED_SECTION): Likewise.
6713         (TARGET_SECTION_TYPE_FLAGS): Likewise.
6714         * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
6715         TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
6716         TARGET_ASM_EMIT_UNWIND_LABEL.
6717
6718 2004-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6719
6720         * builtins.c (expand_builtin_mathfn): Add pow10* to the
6721         existing exp10* case.
6722         (expand_builtin): Likewise.
6723
6724 2004-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
6725
6726         * doc/tm.texi (registers) <Values in Registers>: Add
6727         entry for REGMODE_NATURAL_SIZE.
6728
6729 2004-03-12  Richard Henderson  <rth@redhat.com>
6730
6731         PR target/14547
6732         * target.h (struct gcc_target): Move calls substructure before
6733         booleans.  Add split_complex_arg.
6734         * function.c (assign_parms, split_complex_args): Use it.
6735         * calls.c (expand_call): Likewise.
6736         (split_complex_values): Likewise.  Check for splittable types
6737         before allocating memory.
6738         (split_complex_types): Likewise.
6739         * system.h (SPLIT_COMPLEX_ARGS): Poison.
6740         * expr.h (SPLIT_COMPLEX_ARGS): Remove.
6741         * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
6742         * config/alpha/alpha.c (alpha_split_complex_arg): New.
6743         (TARGET_SPLIT_COMPLEX_ARG): New.
6744         * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
6745         * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
6746         (rs6000_override_options): Zap it for non-AIX.
6747         (rs6000_function_value): Use targetm.calls.split_complex_arg.
6748         * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
6749         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
6750         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
6751         * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
6752         SPLIT_COMPLEX_ARGS entry.
6753
6754 2004-03-11  Richard Henderson  <rth@redhat.com>
6755
6756         * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
6757         (alpha_lookup_xfloating_lib_func): Use them, return rtx.
6758         (alpha_emit_xfloating_arith): Update to match.
6759         (alpha_emit_xfloating_compare): Likewise.
6760         (alpha_emit_xfloating_cvt): Likewise.
6761         (alpha_emit_xfloating_libcall): Take already built symbol,
6762         mark call const.
6763         * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
6764         op1 in a register.
6765
6766 2004-03-11  Richard Henderson  <rth@redhat.com>
6767
6768         PR target/14539
6769         * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
6770
6771         * simplify-rtx.c (simplify_relational_operation): Fix typo.
6772
6773 2004-03-11  Richard Henderson  <rth@redhat.com>
6774
6775         PR middle-end/14477
6776         * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
6777
6778 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
6779
6780         PR target/14262
6781         * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
6782         defined, pass small BLKmode values in registers in the low-order part.
6783
6784 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
6785
6786         * combine.c (if_then_else_cond): Check for NULL return value of
6787         simplify_gen_subreg.
6788
6789 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
6790
6791         PR target/14496
6792         * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
6793         TARGET_SINGLE_FLOAT.
6794
6795 2004-03-11  Steve Ellcey  <sje@cup.hp.com>
6796
6797         * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
6798         * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
6799         * config/ia64/ia64.c (ia64_init_libfuncs): New.
6800         (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
6801
6802 2004-03-11  Roger Sayle  <roger@eyesopen.com>
6803
6804         * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
6805         -((int)X>>C) where C is an integer constant one bit less than the
6806         size of X into (unsigned)X>>C.  Similarly for unsigned->signed.
6807         (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
6808
6809         * simplify-rtx.c (simplify_unary_operation): Also implement the
6810         above transformations at the RTL level.
6811
6812 2004-03-11  Alan Modra  <amodra@bigpond.net.au>
6813
6814         * real.c (encode_ibm_extended): Do round low word.
6815
6816 2004-03-11  Ben Elliston  <bje@wasabisystems.com>
6817
6818         * config/arm/arm.md (is_xscale): Comment this attribute and move
6819         it a bit further up in the file, closer to related attributes.
6820
6821 2004-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
6822
6823         * config/host-solaris.c (sol_gt_pch_use_address): Add
6824         missing terminating marker to comment.
6825
6826 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
6827
6828         * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
6829         (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
6830         (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
6831         (*movsf_mips16, *movdf_mips16):  Name unnamed patterns.  Use
6832         move_operand as source predicate in all cases.
6833         (*movdi_32bit): Renamed from movdi_internal.  Remove 'F' constraint.
6834         Test reg_or_0_operand.  Use move_operand as source predicate.
6835         (*movdi_64bit): Renamed from movdi_internal2.  Test reg_or_0_operand.
6836         (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
6837         (*movsi_internal): Renamed from movsi_internal.  Test reg_or_0_operand.
6838         (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
6839         (*movhi_internal): Renamed from movhi_internal.  Test reg_or_0_operand.
6840         Use move_operand as source predicate.  Remove 'K' constraint.
6841         (*movqi_internal): Likewise movqi_internal.
6842         (*movsf_hardfloat): Renamed from movsf_internal1.  Test
6843         reg_or_0_operand.  Use move_operand as source predicate.
6844         (*movsf_softfloat): Likewise movsf_internal2.
6845         (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
6846         (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
6847         (*movdf_softfloat): Likewise movdf_internal2.
6848         * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
6849         for DImode if !TARGET_64BIT.
6850         (mips_legitimize_move): Simplify accordingly.
6851
6852 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
6853
6854         PR/14362
6855         * var-tracking.c (struct variable_def): Added field refcount.
6856         (variable_htab_free): Decrease the refcount and delete variable
6857         only if there are no more references.
6858         (unshare_variable): New function.
6859         (vars_copy_1): Increase refcount instead of copying the variable.
6860         (variable_union): Share the variables where possible, unshare
6861         the variables if needed.
6862         (variable_different_p): Return false if var1 and var2 are
6863         the same structure.
6864         (variable_was_changed): Init the refcount of new variable.
6865         (set_frame_base_location): Unshare variable if needed.
6866         (set_variable_part): Init the refcount of new variable.
6867         Unshare the variables if needed.
6868         (delete_variable_part): Unshare the variables if needed.
6869         (emit_notes_for_differences_1): Init the refcount of new variable.
6870         (vt_add_function_parameters): Do not add function parameters to
6871         IN set of ENTRY_BLOCK_PTR because it is unused anyway.
6872         (vt_initialize): Do not add frame_base_decl to IN set of
6873         ENTRY_BLOCK_PTR because it is unused anyway.
6874
6875 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
6876
6877         * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
6878         (vars_copy): Likewise.
6879         (variable_union): Likewise.
6880         (set_variable_part): Likewise.
6881         (delete_variable_part): Likewise.
6882
6883 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
6884
6885         * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
6886         ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
6887         config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
6888         config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
6889         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
6890         config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
6891         config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
6892         config/pdp11/pdp11.h, config/rs6000/rs6000.c,
6893         config/stormy16/stormy16.c: Fix comment typos and formatting.
6894
6895 2004-03-11  Nathanael Nerode  <neroden@gcc.gnu.org>
6896
6897         * configure: Regenerate, since I forgot to while committing Paolo's
6898         changes.
6899
6900 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
6901
6902         PR ada/14131
6903         Move language detection to the top level.
6904         * configure.ac: Remove code to detect languages,
6905         it now lives exclusively in the top level.
6906         * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
6907         top level, renamed to ACX_PROG_GNAT.
6908
6909 2004-03-10  Richard Henderson  <rth@redhat.com>
6910
6911         * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
6912         extra arguments.
6913         * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
6914         and host_xmake_file fragments.
6915         * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
6916         (gt_pch_restore): Similarly for gt_pch_use_address.
6917         (default_gt_pch_get_address): New.
6918         (mmap_gt_pch_get_address): Split out of gt_pch_save.
6919         (default_gt_pch_use_address): Split out of gt_pch_restore.
6920         (mmap_gt_pch_use_address): Likewise.
6921         * hooks.c (hook_voidp_size_t_null): Remove.
6922         (hook_bool_voidp_size_t_false): Remove.
6923         * hooks.h: Likewise.
6924         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
6925         default_ or mmap_ definitions.
6926         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
6927         * hosthooks.h (struct host_hooks): Update gt_pch_get_address
6928         and gt_pch_use_address.
6929         * config/host-linux.c, config/host-solaris.c: New files.
6930         * config/x-linux, config/x-solaris: New files.
6931         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
6932         Update for changed definition.
6933         (darwin_rs6000_gt_pch_use_address): Likewise.
6934         * doc/hostconfig.texi: Update docs.
6935
6936 2004-03-10  Richard Henderson  <rth@redhat.com>
6937
6938         PR c/14517
6939         * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
6940         except for pedantic c90 mode.
6941
6942 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
6943
6944         * configure.ac: Bump AC_PREREQ to 2.59.
6945         * configure: Regenerate.
6946
6947 2004-03-10  Uros Bizjak  <uros@kss-loka.si>
6948
6949         * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
6950         (exp10_optab, exp2_optab): Define corresponding macros.
6951         * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
6952         * genopinit.c (optabs): Implement exp10_optab and exp2_optab
6953         using exp10?f2 and exp2?f2 patterns.
6954         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
6955         using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
6956         (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
6957         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6958
6959         * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
6960         exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
6961         exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
6962
6963 2004-03-10  Anthony Green  <green@redhat.com>
6964
6965         * doc/invoke.texi (ARM Options): Fix -mpfu typo.
6966
6967 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
6968
6969         * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
6970         (TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
6971         __LONGDOUBLE128.
6972         * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
6973         TARGET_OS_AIX_CPP_BUILTINS.
6974         * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
6975         * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
6976         * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
6977         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
6978         previous change.
6979
6980 2004-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6981
6982         * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
6983
6984 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
6985
6986         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6987         __LONGDOUBLE128 on AIX.
6988
6989 2004-03-10  Andrew Haley  <aph@redhat.com>
6990
6991         PR optimization/14381
6992         * function.c (expand_function_end): Emit a blockage insn before
6993         the epilogue when -fnon-call-exceptions is used.
6994
6995         * except.c (expand_start_all_catch): Make comment more accurate.
6996
6997 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
6998
6999         PR target/14480
7000         * config/rs6000/t-rtems: Add missing file on branch.
7001
7002 2004-03-10  Ulrich Weigand  <uweigand@de.ibm.com>
7003
7004         * dbxout.c (dbxout_symbol_location): Do not output references
7005         to optimized-out constant pool symbols.
7006
7007 2004-03-10  Andreas Schwab  <schwab@suse.de>
7008
7009         * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
7010         twon34_r.
7011
7012 2004-03-09  James E Wilson  <wilson@specifixinc.com>
7013
7014         * alias.c (alias_sets_might_conflict_p): New.
7015         * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
7016         * common.opt (Wstrict-aliasing=): New.
7017         * flags.h (warn_strict_aliasing): Change type to int.
7018         * opts.c (warn_strict_aliasing): Change type to int.
7019         (common_handle_option): Handle OPT_Wstrict_aliasing_.
7020         * tree.h (alias_sets_might_conflict_p): Declare it.
7021         * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
7022
7023 2004-03-10  Roman Zippel  <zippel@linux-m68k.org>
7024
7025         PR bootstrap/12371
7026         * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
7027         (CALL_USED_REGISTERS): Likewise.
7028         (REG_CLASS_CONTENTS): Likewise.
7029         (REG_ALLOC_ORDER): New.
7030         (REGNO_REG_CLASS): Use regno_reg_class.
7031         * config/m68k/m68k.c: Add regno_reg_class array.
7032
7033 2004-03-09  Steve Ellcey  <sje@cup.hp.com>
7034
7035         * config/ia64/ia64.md (divsi3): Fix algorithm.
7036           (udivsi3): Ditto.
7037           (setf_exp_xf): Remove '*' from name.
7038         * testsuite/gcc.dg/20040309-1.c: New test.
7039
7040 2004-03-09  Ian Lance Taylor  <ian@wasabisystems.com>
7041
7042         * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
7043         * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
7044         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
7045         * config/sparc/sparc.c (sparc_aout_select_section): Remove.
7046         (sparc_aout_select_rtx_section): Don't check
7047         SUNOS4_SHARED_LIBRARIES.
7048         * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
7049
7050 2004-03-10  Hans-Peter Nilsson  <hp@axis.com>
7051
7052         PR other/14474
7053         * doc/md.texi (Pattern Ordering, Dependent Patterns)
7054         (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
7055         INTERNALS".
7056
7057 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
7058
7059         * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
7060         (LIBGCC_SPEC): Update to match.
7061
7062 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
7063
7064         * c-decl.c (last_function_parms, last_function_parm_tags)
7065         (last_function_parm_others, current_function_parms)
7066         (current_function_parm_tags, current_function_parm_others):
7067         Delete.
7068         (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
7069         New macros.
7070         (grokdeclarator): For function definitions, save the arg-info
7071         block from the declarator in DECL_ARGUMENTS.
7072         (grokparms): Do not write to last_function_parm*.  Use ARG_INFO_*
7073         macros to operate on arg-info block.  Can assume ARG_INFO_PARMS
7074         contains only PARM_DECLs.  Improve diagnostics.
7075         (get_parm_info): Use ARG_INFO_* macros.  Improve comments and
7076         diagnostics.  Disable some expensive checks if not ENABLE_CHECKING.
7077         (store_parm_decls_newstyle): Take the function to operate on,
7078         and an arg-info block, as arguments; don't get anything from
7079         current_function_* globals.
7080         (store_parm_decls_oldstyle): Likewise.
7081         (store_parm_decls): Pass fndecl and its arg-info block down to
7082         store_parm_decls_newstyle/oldstyle.  Send functions with empty
7083         argument lists through store_parm_decls_newstyle to reduce
7084         overhead.
7085         (pushdecl): Comment on the problems with the call to copy_node.
7086         Clear DECL_ARGUMENTS of the old node after copying it, if it
7087         is an arg-info block instead of a chain of decls.
7088         (start_function): Do not manipulate current_function_parm* or
7089         last_function_parm*.
7090
7091 2004-03-09  Roger Sayle  <roger@eyesopen.com>
7092             Andrew Pinski  <pinskia@physics.uc.edu>
7093
7094         * ifcvt.c (noce_try_sign_mask): New function to transform
7095         "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
7096         (noce_process_if_block): Call noce_try_sign_mask.
7097
7098 2004-03-09  Andrew Pinski  <apinski@apple.com>
7099
7100         * c-typeck.c (tagged_types_tu_compatible_p):
7101         Fix typo.
7102
7103 2004-03-09  Roger Sayle  <roger@eyesopen.com>
7104
7105         * simplify-rtx.c (simplify_const_relational_operation): New function
7106         renamed from simplify_relational_operation.
7107         (simplify_relational_operation): Change prototype to accept an
7108         additional mode argument.  Call simplify_const_relational_operation.
7109         (simplify_gen_relational): Update simplify_relational_operation call.
7110         (simplify_ternary_operation): Update simplify_relational_operation
7111         subroutine call to use simplify_const_relational_operation instead.
7112
7113         * rtl.h (simplify_const_relational_operation): Prototype here.
7114         (simplify_relational_operation): Add addtional mode argument.
7115
7116         * combine.c (combine_simplify_rtx): Update calls to
7117         simplify_relational_operation.
7118         (simplify_set): Likewise.
7119         (gen_binary): Likewise.
7120         * cse.c (fold_rtx): Likewise.
7121         * dojump.c (compare_from_rtx): Likewise.
7122         (do_compare_rtx_and_jump): Likewise.
7123         * integrate.c (subst_constants): Likewise.
7124         * unroll.c (simplify_cmp_and_jump_insns): Likewise.
7125
7126 2004-03-09  Kazu Hirata  <kazu@cs.umass.edu>
7127
7128         * config/m32r/m32r.md: Remove all define_peephole's.
7129
7130 2004-03-09  Alan Modra  <amodra@bigpond.net.au>
7131
7132         * config/rs6000/rs6000.md: Remove trailing whitespace.
7133
7134 2004-03-08  Eric Christopher  <echristo@redhat.com>
7135
7136         * Makefile.in (site.exp): Add libiconv variable definition.
7137
7138 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
7139
7140         * configure: Regenerate for config/accross.m4 correction.
7141
7142 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
7143
7144         PR target/14480
7145         * config/rs6000/t-rtems: Add missing file on branch.
7146
7147 2004-03-08  Roger Sayle  <roger@eyesopen.com>
7148
7149         PR middle-end/14289
7150         * c-typeck.c (c_mark_addressable): A register variable should
7151         be considered global if its not automatic, i.e. TREE_PUBLIC,
7152         TREE_STATIC or DECL_EXTERNAL.
7153         * function.c (put_var_into_stack): Call abort when placing a
7154         hard register into the stack, if x_parm_reg_stack_loc is NULL.
7155
7156 2004-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
7157
7158         * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
7159         ("*extendqisi2_short_displ"): Likewise.
7160
7161 2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7162
7163         * config/pdp11/pdp11.c (comparison_operator_index): Remove.
7164         (comp_operator): Likewise.
7165         * config/pdp11/pdp11-protos.h: Remove corresponding
7166         prototypes.
7167
7168 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
7169
7170         * expr.c (highest_pow2_factor_for_type): Rename into
7171         highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
7172         TYPE_ALIGN when the target is a COMPONENT_REF.
7173         (expand_assignment): Ajust call to highest_pow2_factor_for_type.
7174
7175 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
7176
7177         * config/rs6000/rs6000.c: Formatting fix.
7178         (legitimate_offset_address_p): Correct offset range check.
7179
7180         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
7181         -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
7182         and MASK_STRING.
7183
7184 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
7185
7186         * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
7187         for little endian.
7188         ("ashrdi3_no_power"): Disable for little endian.
7189         (ashrdi3): Same.
7190
7191 2004-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7192
7193         * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
7194         builtins.
7195
7196 2004-03-08  Hans-Peter Nilsson  <hp@axis.com>
7197
7198         PR target/14471
7199         * configure.ac (Target-specific assembler checks) <cris-*-*>: New
7200         case, checking for -no-mul-bug-abort option.
7201         * configure, config.in: Regenerate.
7202         * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
7203         and -mno-mul-bug-workaround.
7204         * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
7205         ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
7206         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
7207         Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
7208         * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
7209         sure mulu.d is not last on cache-line.
7210         * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
7211         into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
7212         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
7213         (TARGET_SWITCHES): New options -mmul-bug-workaround and
7214         -mno-mul-bug-workaround.
7215         (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
7216         (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
7217         * config/cris/cris.c (cris_operand_extend_operator): Clarify
7218         relation to MULT in head comment.
7219         (cris_op_str): Abort for MULT.
7220         (cris_print_operand) <case '!'>: New case.
7221
7222 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
7223
7224         PR debug/11983
7225         * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
7226         dw_val_class_vec.  Replace use throughout file.
7227         (dw_float_const): Delete.
7228         (dw_vec_const): New.
7229         (dw_val_struct_union): Rename val_float to val_vec.  Replace use
7230         throughout file.
7231         (add_AT_vec): Rename from add_AT_float.  Add elt_size param.
7232         (same_dw_val_p): Adjust vec comparison.  Use memcmp.
7233         (size_of_die): Adjust dw_val_class_vec sizing.
7234         (output_die): Output dw_val_class_vec.
7235         (insert_int, extract_int, insert_float): New functions.
7236         (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
7237         Handle CONST_VECTOR.
7238         (add_location_or_const_value_attribute): Handle CONST_VECTOR.
7239
7240 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
7241
7242         * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
7243         AltiVec abi cannot co-exist.
7244
7245         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
7246
7247 2004-03-07  Jan Hubicka  <jh@suse.cz>
7248
7249         * except.c (emit_to_new_bb_before):  Break fallthru edges.
7250
7251 2004-03-07  Stephane Carrez  <stcarrez@nerim.fr>
7252
7253         * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
7254         ("*lshrsi3"): Also accept an immediate for 68HC12.
7255         ("*ashrsi3_const"): Likewise.
7256         ("*ashrsi3"): Likewise.
7257         ("*ashlsi3_const"): Likewise.
7258         ("*ashlsi3"): Likewise.
7259         ("cmphi_1_hc12"): Compare two hard register by pushing them and
7260         comparing with a pop; don't use a split for that.
7261         ("cmphi split"): Disable compare split for 68HC12.
7262
7263         * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
7264         the status operands if they have side effects.
7265
7266 2004-03-07  Kazu Hirata  <kazu@cs.umass.edu>
7267
7268         * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
7269         definition.
7270         * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
7271         config/h8300/h8300.h, config/ia64/ia64.h,
7272         config/mcore/mcore.h, config/mmix/mmix.h,
7273         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
7274         config/stormy16/stormy16.h, config/v850/v850.h,
7275         config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
7276         * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
7277         definition.
7278
7279 2004-03-07  Roger Sayle  <roger@eyesopen.com>
7280
7281         * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
7282         <XOR_EXPR>: Fold x ^ x as zero.
7283         <AND_EXPR>: Fold x & x as x.
7284
7285 2004-03-07  Roger Sayle  <roger@eyesopen.com>
7286
7287         * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
7288         "foo++ == const" into "++foo == const+incr".
7289
7290 2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
7291
7292         * config/mips/mips.c (mips_in_small_data_p): Return false if
7293         TARGET_ABICALLS.
7294
7295 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
7296
7297         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
7298         the stack register.
7299         (expand_prologue): Don't make an interrupt or a trap handler a far
7300         symbol.
7301         (m68hc11_initial_elimination_offset): Likewise.
7302
7303 2004-03-06  Richard Henderson  <rth@redhat.com>
7304
7305         * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
7306
7307 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
7308
7309         * config/ns32k/ns32k-protos.h: Add a prototype for
7310         ns32k_notice_update_cc.
7311         * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
7312         * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
7313         ns32k_notice_update_cc.
7314
7315 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
7316
7317         * config/s390/s390.md ("load_multiple", "*load_multiple_di",
7318         "*load_multiple_si"): Allow only if reload_completed.
7319         ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
7320         Likewise.
7321
7322 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
7323
7324         * config/vax/vax-protos.h: Add a prototype for
7325         vax_notice_update_cc.
7326         * config/vax/vax.c (vax_notice_update_cc): New.
7327         * config/vax/vax.h (NOTICE_UPDATE_CC): Call
7328         vax_notice_update_cc.
7329
7330 2004-03-06  David Edelsohn  <edelsohn@gnu.org>
7331
7332         * collect2.c (main): Only export initfunc and finifunc if
7333         LD_INIT_SWITCH not defined.
7334         (scan_prog_file): Only export constructors and destructors if
7335         LD_INIT_SWITCH not defined.  Only export symbols not found in
7336         shared objects.
7337
7338 2004-03-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7339
7340         * pa.md (icacheflush): Reorder operands to make match_scratch operand
7341         last.
7342         * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
7343         from calls to gen_icacheflush.
7344
7345 2004-03-06  Richard Henderson  <rth@redhat.com>
7346
7347         * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
7348         (TARGET_LONG_DOUBLE_128): New.
7349         (TARGET_SWITCHES): Add long-double-{128,64}.
7350         (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
7351         (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
7352         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
7353         (WIDEST_HARDWARE_FP_SIZE): New.
7354         (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
7355         * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
7356         if TARGET_VAX_FLOAT.
7357         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
7358         (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
7359
7360 2004-03-06  Richard Henderson  <rth@redhat.com>
7361
7362         * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
7363         botched rtx class conversion.
7364
7365 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7366
7367         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
7368         BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
7369
7370         * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
7371         macros.
7372         * fold-const.c (fold_mathfn_compare, fold): Likewise.
7373
7374 2004-03-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
7375
7376         PR target/14343
7377         * config/i386/i386.md (movv2di_internal): Conditionalize on
7378         TARGET_SSE, not TARGET_SSE2.
7379
7380 2004-03-05  Chris Demetriou  <cgd@broadcom.com>
7381
7382         * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
7383         duplicated line.
7384
7385 2004-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7386
7387         * builtins.c: Consistently use logN not log* in comments.
7388
7389 2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>
7390
7391         * rtl.h (mem_expr_equal_p): Function prototype added.
7392         * cfgcleanup.c (merge_memattrs): New function.
7393         (flow_find_cross_jump): Call merge_memattrs for matching insns.
7394         * emit-rtl.c (mem_expr_equal_p): New function.
7395
7396 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
7397
7398         * objc/objc-act.c (synth_module_prologue): Const-qualify
7399         objc_selector type if using the GNU runtime; fix generated
7400         signatures for objc_msg_lookup and objc_msg_lookup_super
7401         to match what GNU ObjC headers provide; reformat and clean up.
7402         (synth_self_and_ucmd_args): Use previously constructed (and
7403         hence possibly const-qualified) objc_selector type.
7404
7405 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
7406
7407         * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
7408
7409 2004-03-05  Jason Merrill  <jason@redhat.com>
7410
7411         * tree.h (TYPE_HASH): Use TYPE_UID.
7412         (TREE_HASH): New macro with old definition of TYPE_HASH.
7413         * tree.c (build_type_attribute_variant): Use iterative_hash_object.
7414         (build_array_type, build_function_type): Likewise.
7415         (build_method_type_directly): Likewise.
7416         (build_offset_type, build_complex_type): Likewise.
7417         (type_hash_list, attribute_hash_list): Likewise. Now static.
7418         * except.c: s/TYPE_HASH/TREE_HASH/.
7419
7420 2004-03-05  Bob Wilson  <bob.wilson@acm.org>
7421
7422         * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
7423         (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
7424         __va_ndx by 2 words when referencing an argument on the stack.
7425         (xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
7426         words when an arg on the stack is first seen.
7427
7428 2004-03-05  Paul Brook  <paul@codesourcery.com>
7429
7430         * arm.h (ARM_FLAG_VFP): Remove.
7431         (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
7432         * netbsd-elf.h (ARM_FLAG_VFP): Remove.
7433
7434 2004-03-05  Paul Brook  <paul@codesourcery.com>
7435
7436         * function.c (assign_parms): Include pretend alignment offset.
7437
7438 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7439
7440         * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
7441         FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
7442
7443 2004-03-05  Ian Lance Taylor  <ian@wasabisystems.com>
7444
7445         * configure.ac: When passing --enable-languages to subdir
7446         configure when host != build, make sure we don't pass an empty
7447         value.
7448         * configure: Regenerate.
7449
7450 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
7451
7452         PR 13577
7453         * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
7454         options.
7455
7456 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
7457
7458         * simplify-rtx.c (simplify_relational_operation): If
7459         flag_wrapv is set, do not move terms between the two
7460         side of a relational operator.
7461
7462 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
7463
7464         * rtlanal.c: Include target.h and output.h
7465         (rtx_cost, address_cost, default_address_cost): Move from...
7466         * cse.c (rtx_cost, address_cost, default_address_cost):
7467         ... this file.
7468         * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
7469         * Makefile.in: Adjust dependencies.
7470
7471 2004-03-05  Paolo Bonzini <bonzini@gnu.org>
7472
7473         * cse.c (cse_end_of_basic_block): Make static.
7474         * local-alloc.c (function_invariant_p): Move to
7475         reload1.c.
7476         * loop.c (libcall_other_reg, record_excess_regs):
7477         Make static.
7478         * reload1.c (function_invariant_p): Moved here
7479         from local-alloc.c, made static.
7480         * rtl.h (cse_end_of_basic_block, function_invariant_p,
7481         libcall_other_reg, record_excess_regs): Remove
7482         declarations.
7483
7484 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
7485
7486         * config/m32r/m32r.c (signed_comparison_operator): Add a
7487         missing parenthesis.
7488
7489 2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
7490
7491         * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
7492         going to call mmap again.  Read the file into the right place.
7493         Give a fatal error if we have to relocate.
7494
7495 2004-03-04  Bob Wilson  <bob.wilson@acm.org>
7496
7497         * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
7498         (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
7499
7500 2004-03-05  Hans-Peter Nilsson  <hp@axis.com>
7501
7502         PR other/14354
7503         * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
7504         round the same.  When rounding, clear bits that would cause a
7505         second rounding in pack_d.
7506         (_fpmul_parts): Ditto.  Remove #if 0:d code.
7507
7508 2004-03-04  Ziemowit Laski  <zlaski@apple.com>
7509
7510         PR c++/14425, c++/14426
7511         * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
7512         vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
7513         Change C++ definitions to accept a 'const int' argument;
7514         the prototypes already do.
7515         * config/rs6000/rs6000.c (rs6000_common_init_builtins):
7516         Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
7517         v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
7518         v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
7519         v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
7520         v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
7521         end in ..._int; change them to accept an int instead of a char
7522         as the last parameter.
7523
7524 2004-03-04  Phil Edwards  <phil@codesourcery.com>
7525
7526         * genmultilib:  Change '=' to '-' when translating option names
7527         to directory names.
7528
7529 2004-03-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7530
7531         * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
7532         stack slot for temp used for result of BLKmode but in integral mode.
7533
7534 2004-03-04  Jan Hubicka  <jh@suse.cz>
7535
7536         * reload.c (find_reloads): Reorganize if seqeunce to switch.
7537
7538         * cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
7539         (cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.
7540
7541 2004-03-04  Steve Ellcey  <sje@cup.hp.com>
7542
7543         * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
7544         * testsuite/gcc.dg/20040303-1.c: New test.
7545
7546 2004-03-04  Steven Bosscher  <stevenb@suse.de>
7547
7548         * ppro.md: Rewrite as a DFA pipeline description.
7549         * i386.md: Remove all uses of the ppro_uops attribute.
7550         * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
7551         ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
7552         ix86_sched_reorder, ix86_variable_issue,
7553         struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
7554         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
7555         (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
7556         (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
7557         * athlon.md (athlon_ssecmp_load): Fix comment
7558
7559 2004-03-04  Stuart Hastings  <stuart@apple.com>
7560
7561         * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
7562
7563 2004-03-04  Stuart Hastings  <stuart@apple.com>
7564
7565         * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
7566         686, tell Darwin assembler to allow prefetch insns, non-empty def
7567         of SUBTARGET_OPTION_TRANSLATE_TABLE.
7568
7569 2004-03-04  DJ Delorie  <dj@redhat.com>
7570
7571         PR optimization/14282
7572         * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
7573         between a call and the assignment of its return value.
7574
7575 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
7576
7577         * config/h8300/h8300.c: Put a comment for every function.
7578
7579 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
7580
7581         * config/h8300/h8300.md: Add comments about peephole2's.
7582
7583 2004-03-04  Steven Bosscher  <stevenb@suse.de>
7584
7585         * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
7586
7587 2004-03-04  Jan Hubicka  <jh@suse.cz>
7588
7589         * cfgcleanup.c (thread_jump): Update call of cselib_init.
7590         * cselib.c (cselib_record_memory): New static variable.
7591         (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
7592         Give up on memories when asked for.
7593         (cselib_init): Accept new argument.
7594         * cselib.h (cselib_init): Update prototype.
7595         * gcse.c (local_cprop_pass): Update call of cselib_init.
7596         * loop.c (load_mems): Update call of cselib_init.
7597         * postreload.c (reload_cse_regs_1): Update call of cselib_init.
7598         * sched-deps.c (sched_analyze): Update call of cselib_init.
7599
7600 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
7601             GP <gp@qnx.com>
7602
7603         * config/rs6000/rs6000.c (output_function_profiler): Append @plt
7604         when compiling PIC.
7605
7606 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
7607
7608         PR/14362
7609         * var-tracking.c (track_expr_p): Do not track variables which
7610         should be ignored for debugging purposes.
7611
7612 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
7613
7614         * real.c (encode_ibm_extended): Don't bother rounding low double.
7615         * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
7616         when fmt->pnan < fmt->p.
7617
7618 2004-03-04  Eric Christopher  <echristo@redhat.com>
7619
7620         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
7621         only range of valid arg registers and fixed_regs.
7622
7623 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
7624
7625         PR target/14406
7626         * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
7627         (abstf2, abstf2_internal): New define_expand.
7628
7629 2004-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
7630
7631         PR optimization/14235
7632         * expr.c (convert_move): Copy the source to a new pseudo
7633         when converting from a sub-word source to a larger-than-word
7634         register which conflicts with the source.
7635
7636 2004-03-03  Zack Weinberg  <zack@codesourcery.com>
7637
7638         PR 13728
7639         * c-decl.c (diagnose_mismatched_decls): Issue an error for two
7640         parameters with the same name, unless one is a forward decl.
7641         Do not issue a redundant-redeclaration warning for forward
7642         decls of parameters.
7643
7644 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
7645
7646         * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
7647         configuration.
7648
7649 2004-03-03  Ian Lance Taylor  <ian@wasabisystems.com>
7650
7651         * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
7652
7653 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
7654
7655         * target-def.h (TARGET_OPTF): Delete.
7656         * c-opts.c (TARGET_OPTF): Define.
7657
7658 2004-03-04  Jan Hubicka  <jh@suse.cz>
7659
7660         * cselib.c (cselib_finish): Fix another miss-application of my previous
7661         patch.
7662
7663 2004-03-03  Mike Stump  <mrs@apple.com>
7664
7665         Add framework support for darwin.
7666
7667         * c-incpath.c: Include target.h and machmode.h.
7668         (add_path): Use a consistent style for cpp_dir.  Initialize
7669         p->construct to 0.
7670         (add_cpp_dir_path): New.
7671         (register_include_chains): Add use of extra_includes callback.
7672         (hook_void_int): Add.
7673         (target_c_incpath): Add.
7674         * c-incpath.h (add_cpp_dir_path): New.
7675         (target_c_incpath_s): Add.
7676         (target_c_incpath): Add.
7677         (C_INCPATH_INIT): Add.
7678         * c-opts.c (c_common_missing_argument,
7679         c_common_handle_option): Add -F argument processing.
7680         * c.opt: Add -F argument processing.
7681         * gcc.c (trad_capable_cpp): Add -F argument processing.
7682         * cppfiles.c (find_file_in_dir): Update to use construct
7683         callback.
7684         (search_path_exhausted, cpp_get_path, cpp_get_buffer,
7685         cpp_get_prev): New.
7686         (_cpp_find_file): Use search_path_exhausted.
7687         (make_cpp_dir): Initialize construct to 0.
7688         * cpplib.h (missing_header_cb
7689         cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
7690         (cpp_callbacks): Add missing_header
7691         (cpp_dir): Add construct.
7692         * target-def.h: (TARGET_OPTF): New.
7693         * hooks.c (hook_void_int, hook_void_charptr): Add.
7694         * hooks.h (hook_void_int, hook_void_charptr): Add.
7695         * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
7696         $(MACHMODE_H) dependencies.
7697         * doc/invoke.texi (Darwin Options): Document -F.
7698         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
7699         (TARGET_OPTF): Add.
7700         * fix-header.c (target_c_incpath): Add.
7701
7702         * config/darwin-c.c: Add c-incpath.h include.
7703         (using_frameworks, find_subframework_file,
7704         find_subframework_header, add_system_framework_path,
7705         frameworks_in_use, num_frameworks, max_frameworks,
7706         add_framework, find_framework, struct framework_header,
7707         framework_header_dirs, framework_construct_pathname,
7708         find_subframework_file, add_system_framework_path,
7709         add_framework_path, framework_defaults,
7710         darwin_register_frameworks, find_subframework_header): Add.
7711         * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
7712         (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
7713         (CPP_SPEC): Add __APPLE_CC__ support.
7714         * t-darwin (darwin-c.o): Add c-incpath.h dependency.
7715
7716 2004-03-04  Jan Hubicka  <jh@suse.cz>
7717
7718         * cselib.c (cselib_finish): Fix miss-application of my previous
7719         patch.
7720
7721 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
7722
7723         * hooks.c (hook_tree_tree_identity): New.
7724         * hooks.h: Add a prototype for hook_tree_tree_identity.
7725         * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
7726         instead of MD_ASM_CLOBBERS.
7727         * system.h (MD_ASM_CLOBBERS): Poison.
7728         * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
7729         (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
7730         * target.h (gcc_target): Add md_asm_clobbers.
7731         * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
7732         (ix86_md_asm_clobbers): New.
7733         * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
7734         * doc/tm.texi (MD_ASM_CLOBBERS): Change to
7735         TARGET_MD_ASM_CLOBBERS.
7736
7737 2004-03-03  Stuart Hastings  <stuart@apple.com>
7738
7739         * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
7740
7741 2004-03-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
7742
7743         * config/sparc/sparc.c (noov_compare64_op): Fix typo.
7744
7745         * config/sparc/sparc.h (ASM_FLOAT): Delete.
7746         (ASM_DOUBLE): Likewise.
7747         (ASM_LONGDOUBLE): Likewise.
7748         * config/sparc/pbd.h (ASM_INT_OP): Delete.
7749
7750 2003-03-03  Richard Henderson  <rth@redhat.com>
7751
7752         PR opt/13862
7753         * cselib.c (cselib_record_sets): Don't record multiple sets in
7754         asm insns.
7755
7756 2004-03-03  Mostafa Hagog  <mustafa@il.ibm.com>
7757
7758         * common.opt: Add description of the new -fgcse-after-reload flag.
7759
7760         * flags.h (flag_gcse_after_reload): Declaration of global variable.
7761
7762         * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
7763         reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
7764         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
7765         get_bb_avail_insn, hash_scan_set_after_reload,
7766         compute_hash_table_after_reload, eliminate_partially_redundant_loads,
7767         gcse_after_reload, get_bb_avail_insn): New functions to implement
7768         gcse-after-reload.
7769         (gcse_after_reload_main): New function, the main entry point to
7770         gcse-after-reload.
7771
7772         * rtl.h (gcse_after_reload_main): Declaration of the new function.
7773
7774         * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
7775
7776         * toplev.c (flag_gcse_after_reload): Initialization.
7777
7778         * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
7779
7780         * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
7781         PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
7782         the gcse after reload optimization.
7783
7784         * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
7785         GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
7786         parameters.
7787
7788         * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
7789
7790 2004-03-03  Nicolas Pitre <nico@cam.org>
7791
7792         * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
7793         small negative values.
7794
7795 2004-03-03  Jan Hubicka  <jh@suse.cz>
7796
7797         * cselib.c (hash_table):  Remove GTY marker.
7798         (reg_values): Turn into array.
7799         (used_regs): Likewise.
7800         (n_used_regs): New static variable.
7801         (reg_values_old): Kill.
7802         (clear_table): Update uses of arrays.
7803         (cselib_lookup): Likewise.
7804         (cselib_record_set): Likewise.
7805         (cselib_init): Likewise.
7806         (cselib_finish): Likewise.
7807         (cselib_udpate_varray_sizes): Kill.
7808         * cselib.h (cselib_update_varray_sizes): Kill.
7809
7810 2004-03-03  Paul Brook  <paul@codesourcery.com>
7811
7812         * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
7813
7814 2004-03-03  Jan Hubicka  <jh@suse.cz>
7815
7816         * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
7817         Rename from ...; make statistics transparent.
7818         (ggc_alloc_cleared, ggc_realloc_stat): ... these.
7819         (loc_descriptor): New structure.
7820         (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
7821         add_statistics):
7822         New static function.
7823         (ggc_record_overhead, dump_statistics): New global function.
7824         * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
7825         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
7826         from ...; accept locations
7827         (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
7828         ggc_realloc, ggc_alloc_typed):  ... this one.
7829         from ...; accept locations
7830         * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
7831         ggc_alloc_stat): Rename from ... ; pass locations
7832         * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
7833         ... this one.
7834         (ggc_alloc_stat): Record overehead.
7835         * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
7836         ggc_realloc, ggc_alloc_typed):  Turn to macros
7837         (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
7838         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
7839         (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
7840         * langhooks.h (lhd_make_node): Declare.
7841         (LANG_HOOKS_MAKE_TYPE): Default to new function,
7842         * langhooks.c (lhd_make_node): New.
7843         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
7844         locations.
7845         (rtx_alloc, swallow_copy_rtx): ... this one.
7846         * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
7847         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
7848         * toplpev.c (finalize): Dump stats.
7849         * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
7850         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
7851         Rename from ... ; pass locators.
7852         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
7853         build?,  build_decl): Declare.
7854         * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
7855         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
7856         Declare.
7857         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
7858         build?,  build_decl): New macros.
7859         * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
7860         * statistics.h: New file.
7861
7862 2004-03-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7863             Richard Sandiford  <rsandifo@redhat.com>
7864
7865         * config/mips/mips.h (MASK_FIX_SB1): Bump.
7866         (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
7867         (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
7868         * config/mips/mips.c (mips_output_division): Fill the branch delay
7869         slot with a nop if TARGET_FIX_R4000.  Extend R4000 workarounds to
7870         TARGET_FIX_R4400.
7871         (mips_output_division): Adjust accordingly.
7872         (override_options): Make -march=r4400 imply -mfix-r4400 by default.
7873         * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
7874
7875 2004-03-03  Paolo Bonzini  <bonzini@gnu.org>
7876
7877         * alias.c (rtx_equal_for_memref_p): Use predicates
7878         to test rtx classes and new rtx class codes, possibly
7879         splitting conditionals that tested against '<' and 'o'.
7880         * caller-save.c (save_call_clobbered_regs): Likewise.
7881         * combine.c (contains_muldiv, find_split_point, subst,
7882         combine_simplify_rtx, simplify_if_then_else,
7883         simplify_set, simplify_logical, expand_compound_operation,
7884         make_compound_operation, if_then_else_cond, known_cond,
7885         apply_distributive_law, cached_nonzero_bits,
7886         cached_num_sign_bit_copies, simplify_shift_const,
7887         gen_binary, simplify_comparison, update_table_tick,
7888         record_value_for_reg, get_lsat_value_validate): Likewise.
7889         * cse.c (mention_regs, find_best_addr, find_comparison_args,
7890         fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
7891         Likewise.
7892         * emit-rtl.c (copy_insn_1): Likewise.
7893         * expr.c (force_operand): Likewise.
7894         * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
7895         * flow.c (notice_stack_pointer_modification_1,
7896         invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
7897         and_reg_cond, elim_reg_cond): Likewise.
7898         * function.c (update_epilogue_consts): Likewise.
7899         * genattrtab.c (attr_rtx_1): Likewise.
7900         * genopinit.c (gen_insn): Likewise.
7901         * integrate.c (subst_constants): Likewise.
7902         * jump.c (reversed_comparison_code_parts,
7903         reversed_comparison_code, delete_related_insns,
7904         rtx_renumbered_equal_p): Likewise.
7905         * local-alloc.c (block_alloc): Likewise.
7906         * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
7907         canonicalize_condition): Likewise.
7908         * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
7909         Likewise.
7910         * optabs.c (add_equal_node, expand_binop): Likewise.
7911         * predict.c (estimate_probability): Likewise.
7912         * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
7913         * recog.c (validate_replace_rtx_1, comparison_operator,
7914         offsettable_address_p, constrain_operands): Likewise.
7915         * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
7916         Likewise.
7917         * regclass.c (scan_one_insn): Likewise.
7918         * regmove.c (stable_and_no_regs_but_for_p): Likewise.
7919         * regrename.c (kill_autoinc_value): Likewise.
7920         * reload.c (find_reusable_reload, find_reloads,
7921         reg_overlap_mentioned_for_reload_p): Likewise.
7922         * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
7923         * rtl.c (copy_rtx): Likewise.
7924         * rtl.h (CONSTANT_P, INSN_P): Likewise.
7925         * rtlanal.c (commutative_operand_precedence): Likewise.
7926         * sched-deps.c (conditions_mutex_p): Likewise.
7927         * sched-rgn.c (is_cfg_nonregular): Likewise.
7928         * simplify-rtx.c (simplify_gen_binary,
7929         simplify_gen_relational, simplify_replace_rtx,
7930         simplify_unary_operation, simplify_binary_operation,
7931         simplify_ternary_operation, simplify_rtx): Likewise.
7932         * unroll.c (reg_dead_after_loop): Likewise.
7933         * config/alpha/alpha.c (alpha_swapped_comparison_operator,
7934         print_operand): Likewise.
7935         * config/arc/arc.c (proper_comparison_operator): Likewise.
7936         * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
7937         Likewise.
7938         * config/avr/avr.c (_reg_unused_after): Likewise.
7939         * config/frv/frv.c (frv_ifcvt_modify_tests,
7940         frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
7941         * config/i386/i386.c (ix86_comparison_operator,
7942         ix86_carry_flag_operator, fcmov_comparison_operator,
7943         arith_or_logical_operator, print_operand,
7944         ix86_expand_binary_operator, ix86_binary_operator_ok):
7945         Likewise.
7946         * config/i386/i386.md: Likewise.
7947         * config/ia64/ia64.c (not_postinc_memory_operand,
7948         ia64_print_operand, update_set_flags, errata_emit_nops):
7949         Likewise.
7950         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
7951         CONSTRAINT_OK_FOR_S): Likewise.
7952         * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
7953         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
7954         ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
7955         ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
7956         Likewise.
7957         * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
7958         eqne_comparison_operator, signed_comparison_operator):
7959         Likewise.
7960         * config/mips/mips.c (cmp_op, symbolic_expression_p):
7961         Likewise.
7962         * config/mmix/mmix (mmix_foldable_comparison_operator,
7963         mmix_comparison_operator): Likewise.
7964         * config/pa/pa.c (hppa_legitimize_address): Likewise.
7965         * config/rs6000/rs6000.c (stmw_operation,
7966         branch_comparison_operator, trap_comparison_operator,
7967         ccr_bit): Likewise.
7968         * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
7969         * config/s390/s390.c (s390_alc_comparison,
7970         s390_slb_comparison):L Likewise.
7971         * config/sh/sh.c (gen_block_redirect, reg_unused_after):
7972         Likewise.
7973         * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
7974         noov_compare_op, noov_compare64_op, v9_regcmp_op,
7975         emit_hard_tfmode_operation, reg_unused_after)
7976         * doc/md.texi, doc/rtl.texi: Likewise.
7977
7978         * ra-debug.c: Add 2004 to list of copyright years.
7979         * unroll.c: Likewise.
7980
7981         * combine.c (simplify_logical): Remove dummy test,
7982         (apply_distributive_law): Fix typo in comment.
7983         GET_CODE (x) == AND so x is a commutative binary op.
7984         * jump.c (delete_related_insns): simplify loop
7985         condition, move testing of RTX codes inside the loop.
7986         (rtx_renumbered_equal_p): do not use RTX_CODE.
7987         * rtl.c (rtx_class): Declare as enum rtx_class.
7988         * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
7989         Move to RTX_COMM_COMPARE class.
7990         (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
7991         Move to RTX_CONST_OBJ class.
7992         * rtl.h (enum rtx_class): New declaration,
7993         (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
7994         RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
7995         RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
7996         RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
7997         RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
7998         ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
7999         SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
8000         OBJECT_P): New macros.
8001         * config/sparc/sparc.c (noov_compare_op): Remove register
8002         from parameter.
8003
8004 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8005
8006         * target.h: Remove texi jargons in comments.
8007
8008 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8009
8010         * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
8011         threshold to 0x4f.
8012
8013         Revert:
8014         2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
8015         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
8016         as well.
8017         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
8018         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
8019
8020 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8021
8022         * doc/md.texi (cbranchmode4): New.
8023
8024 2004-03-02  Eric Christopher  <echristo@redhat.com>
8025
8026         * config/mips/mips16.S: Change fixsfsi and fixdfsi to
8027         fix_trunc.
8028         * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
8029         * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
8030         * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
8031         * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
8032
8033 2004-03-02  Richard Henderson  <rth@redhat.com>
8034
8035         PR middle-end/11767
8036         * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
8037         * optabs.c (prepare_cmp_insn): Force trapping memories to registers
8038         before the compare, if flag_non_call_exceptions.
8039
8040 2004-03-02  Richard Henderson  <rth@redhat.com>
8041
8042         PR middle-end/14327
8043         * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
8044         emitting the label, not after.
8045
8046 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
8047
8048         * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
8049         (m68hc11_mov_addr_mode): Likewise.
8050         (m68hc11_override_options): Initialize them based on target.
8051         (register_indirect_p): Allow a MEM for indirect addressing modes and
8052         use flags to control what is allowed.
8053         (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
8054         supported addressing modes.
8055         (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
8056         (go_if_legitimate_address_internal): Likewise.
8057         (m68hc11_indirect_p): Likewise and check the mode.
8058         (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
8059
8060 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8061
8062         * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
8063         (expand_builtin_setjmp_setup): Use
8064         targetm.builtin_setjmp_frame_value instead of
8065         BUILTIN_SETJMP_FRAME_VALUE.
8066         * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
8067         * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
8068         (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
8069         * target.h (gcc_target): Add builtin_setjmp_frame_value.
8070         * targhooks.c (default_builtin_setjmp_frame_value): New.
8071         * targhooks.h: Add a prototype for
8072         default_builtin_setjmp_frame_value.
8073         * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
8074         TARGET_BUILTIN_SETJMP_FRAME_VALUE.
8075
8076 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
8077
8078         * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
8079         sequences of moves.
8080         (add peepholes): New peepholes to optimize sequences adding small
8081         constants.
8082         (bset peepholes): New peepholes to transform an OR in a bset form
8083         (bclr peepholes): Likewise for bclr form.
8084         (cmp peepholes): New peepholes to avoid register copies when comparing.
8085
8086 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
8087
8088         * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
8089         to separate push from moves.
8090         ("*pushdf_internal"): Likewise.
8091         ("*pushsf_internal"): Likewise.
8092         ("*pushsi_internal"): Likewise.
8093         ("movdi_internal"): Use define_insn_and_split; non push operand.
8094         ("movdf_internal"): Likewise.
8095         ("movsf_internal"): Likewise.
8096         ("movsi_internal"): Likewise.
8097         ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
8098         ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
8099         ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
8100
8101 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
8102
8103         * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
8104         ("cmphi_z_used", "cmpqi_z_used"): Likewise.
8105         ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
8106         ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
8107         ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
8108         ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
8109         ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
8110         ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
8111         ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
8112         ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
8113         ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
8114
8115 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
8116
8117         * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
8118         (SOFT_XY_REGNUM): Define.
8119         (cmp split): Use the above instead of hard coded numbers.
8120         (8-bit op split): No need to check the mode; allow Q_REG.
8121         (ashift split): Adjust the first operand if it uses the SP and we
8122         are pushing the shifted value.
8123         (plus shift split): Fix when a source is in register D+X.
8124         ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
8125
8126 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
8127
8128         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
8129         comparing with Z register.
8130
8131 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8132
8133         * cfgloop.h (struct loop_desc): Removed.
8134         (struct loop): Fields simple, desc and has_desc removed.
8135         (simple_loop_p, count_loop_iterations): Declaration removed.
8136         * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
8137         (unmark_altered, blocks_invariant_registers, unmark_altered_insn
8138         blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
8139         invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
8140         simple_loop_exit_p, variable_initial_value, variable_initial_values,
8141         simple_condition_p, simple_increment, count_strange_loop_iterations,
8142         inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
8143         Removed.
8144         * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
8145
8146 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8147
8148         * genattrtab.c: Don't handle MATCH_INSN.
8149         * genrecog.c: Likewise.
8150         * gensupport.c: Likewise.
8151         * rtl.def (match_insn): Remove.
8152         * doc/md.texi (match_insn, match_insn2): Remove.
8153
8154 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
8155
8156         * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
8157         macro results in memory allocation.
8158
8159 2004-03-02  David O'Brien  <obrien@FreeBSD.org>
8160
8161         * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
8162         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
8163         %(fbsd_dynamic_linker),
8164         (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
8165         config/i386/freebsd.h
8166         * config/arm/freebsd.h: Ditto.
8167         * config/i386/freebsd.h: Ditto.
8168         * config/i386/freebsd64.h: Ditto.
8169         * config/ia64/freebsd.h: Ditto.
8170         * config/rs6000/sysv4.h: Ditto.
8171         * config/sparc/freebsd.h: Ditto.
8172
8173 2004-03-02  Loren James Rittle  <ljrittle@acm.org>
8174
8175         * gcc/doc/install.texi (*-*-freebsd*): Update target information.
8176
8177 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8178
8179         * rtl.def (define_combine): Remove.
8180
8181 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8182
8183         * config/h8300/h8300.md: Tweak formatting.
8184
8185 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8186
8187         * config/h8300/h8300.md (*cmphi_h8300): Rename to
8188         *cmphi_h8300_znvc.
8189         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
8190
8191 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
8192
8193         PR bootstrap/14356
8194         * gcc.c (process_command): Remove const-qualification from argv.
8195         (main): Likewise.
8196
8197 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8198
8199         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
8200         pushqi1_h8300hs_advanced.  Adjust its caller.
8201         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
8202         Adjust its caller.
8203
8204 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
8205
8206         * Makefile.in (install-libgcc, install-multilib): Pass
8207         mkinstalldirs var to libgcc.mk.
8208
8209 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
8210
8211         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
8212         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
8213
8214 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
8215
8216         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
8217         * config/h8300/h8300.md: Split several peephole2's, each into
8218         two.
8219
8220 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8221
8222         * dominance.c (recount_dominator): Handle postdominators.
8223
8224 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
8225
8226         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
8227         (NUM_SYMBOL_TYPES): Likewise.
8228         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
8229         (mips_unspec_address): Declare.
8230         (mips_gotoff_page, mips_gotoff_global): Delete.
8231         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
8232         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
8233         (mips_symbolic_constant_p, mips_symbolic_address_p)
8234         (mips_symbol_insns): Handle new symbol types.
8235         (general_symbolic_operand): New predicate.
8236         (mips_unspec_address): Make extern.
8237         (mips_gotoff_page, mips_gotoff_global): Delete.
8238         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
8239         Handle new symbol types.
8240         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
8241         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
8242         mips_unspec_address directly.
8243         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
8244         the documentation of -mexplicit-relocs.
8245
8246 2004-03-01  Jeff Law  <law@redhat.com>
8247
8248         * fold-const.c (fold): An equality comparison of a non-weak object
8249         against zero has a known result.  Similarly an equality comparison
8250         of the address of two non-weak, unaliased symbols has a known result.
8251
8252         * ggc-page.c (struct page_entry): New field PREV.
8253         (ggc_alloc): Update PREV field appropriately.
8254         (sweep_pages): Likewise.
8255         (ggc_free): Likewise.  Use PREV field rather than loop to
8256         improve ggc_free performance.
8257
8258 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
8259
8260         * config/mips/mips.c (mips_output_division): Use the division
8261         instruction to fill the delay slot of a zero check.
8262         (mips_idiv_insns): Adjust accordingly.
8263
8264 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8265
8266         * config.gcc: Create a default tmake_file for linux, and use
8267         it in all but two linux clauses.  Comment those two.
8268
8269 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
8270
8271         * combine.c (try_combine):  Do not refer to is_replaced.
8272         (gen_lowpart_for_combine):  Perverse subregs now have a
8273         more politically correct name.
8274         * cse.c (cse_insn): Likewise.
8275         * jump.c: Fix bogus reference to delete_insn.
8276
8277 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
8278
8279         PR debug/14328
8280         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
8281         constants as signed values.
8282
8283         PR middle-end/13448
8284         * c-tree.h (readonly_warning): Rename to ...
8285         (readonly_error): ... this.
8286         * c-typeck.c (build_unary_op): Adjust accordingly.
8287         (readonly_warning): Rename to ...
8288         (readonly_error): ... this and issue errors, not warnings.
8289         (build_modify_expr): Call readonly_error, not readonly_warning.
8290         (c_expand_asm_operands): Likewise.
8291         * tree-inline.c (optimize_inline_calls): Do not inline functions
8292         after errors have occurred.
8293
8294 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8295
8296         * configure.ac: Rearrange some threading code for clarity;
8297         add section comment.
8298         * configure: Regenerate.
8299
8300 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
8301
8302         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
8303         typos.
8304         * doc/cppopts.texi: Fix a typo.
8305
8306 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
8307
8308         * config/i386/i386.md: Fix formatting.
8309
8310 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8311
8312         * configure.ac: Add some comments delineating sections of code.
8313
8314         * doc/install.texi: Note that libada uses autoconf 2.57 also.
8315
8316         * doc/install.texi: Fix idiot typo in previous commit.
8317
8318         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
8319
8320 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
8321
8322         * config/h8300/h8300.md: Add comments about peephole2's.
8323
8324 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
8325
8326         * config/h8300/h8300.md: Tweak operand numbers of some
8327         peephole2's.
8328
8329 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
8330
8331         * config/h8300/h8300.md: Tweak comments about peephole2's.
8332
8333 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
8334
8335         PR middle-end/14203
8336         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
8337         instead of testing whether DECL_RTL is not NULL.
8338
8339 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
8340
8341         * config/sh/sh.c: Fix formatting.
8342
8343 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
8344
8345         * config/sh/sh.c: Convert to ISO-C.
8346
8347 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
8348
8349         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
8350         my previous patch.
8351
8352         * config/darwin.h (machopic_finish): Output stub even if the
8353         symbol is already defined.
8354
8355 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8356
8357         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
8358
8359 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
8360
8361         * genattr.c (main): Don't define
8362         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
8363         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
8364         (DFA_PIPELINE_INTERFACE): Likewise.
8365         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
8366         (DFA_PIPELINE_INTERFACE): Likewise.
8367
8368 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
8369
8370         * config/mips/mips.md (tstsi, tstdi): Delete.
8371
8372 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
8373
8374         * config/mips/mips.c (override_options): Remove an obsolete
8375         duplicate definition of the "e" constraint.
8376         * config/mips/mips.h: Update a comment accordingly.
8377
8378 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
8379
8380         * config/mips/mips.md: Complete the unfinished R4000
8381         multiply/shift errata workaround.  Improve documentation.
8382         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
8383         has a hilo hazard.
8384         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
8385         (muldi3, muldi3_internal): Likewise.
8386         (muldi3_internal2): Remove, replacing with...
8387         (muldi3_mult3, muldi3_r4000): ...these new patterns.
8388         (mulsidi3): Take the errata into account.
8389         (mulsidi3_32bit): Remove, replacing with...
8390         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
8391         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
8392         (umulsidi3): Take the errata into account.
8393         (umulsidi3_32bit): Remove, replacing with..
8394         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
8395         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
8396         TARGET_FIX_R4000.
8397         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
8398         (smuldi3_highpart, umuldi3_highpart): Likewise.
8399         * doc/invoke.texi: Document the errata workaround.
8400
8401 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
8402
8403         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
8404         * config/mips/mips.h (MASK_FIX_SB1): Bump.
8405         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
8406         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
8407         * config/mips/mips.c (mips_idiv_insns): New function.
8408         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
8409         (mips_output_division): Add a workaround for the R4000 divide/shift
8410         errata.
8411         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
8412         the length of an "idiv" instruction.
8413         * doc/invoke.texi: Document the new switches.
8414
8415 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
8416
8417         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
8418         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
8419
8420 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8421
8422         PR optimization/14229
8423         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
8424
8425 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
8426
8427         * fold-const.c (fold): Strip NOPs that change the signedness
8428         for RSHIFT too.  Expand comment.
8429
8430 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
8431
8432         PR optimization/7871
8433         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
8434         from or to call insns.
8435
8436 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
8437
8438         PR optimization/7871
8439         * flow.c (propagate_one_insn): Interpret calls as setting global
8440         registers, not merely clobbering them.
8441
8442 2004-02-27  Dale Johannesen  <dalej@apple.com>
8443
8444         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
8445         config/darwin-protos.h:  Ditto.
8446         config/darwin.h:  Remove call to it.
8447         * combine.c (distribute_notes): Do not place a REG_DEAD note
8448         when value is both set and used.
8449
8450 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
8451
8452         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
8453         as well.
8454         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
8455         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
8456
8457 2004-02-27  Andrew Pinski  <apinski@apple.com>
8458
8459         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
8460         Speedup common case of the type values being in the same order.
8461
8462 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
8463
8464         * config/ia64/ia64.h (no-inline-float-divide): New option.
8465         * config/ia64/ia64.h (no-inline-int-divide): New option.
8466         * config/ia64/ia64.h (no-inline-sqrt): New option.
8467         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
8468         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
8469         * config/ia64/ia64.c (ia64_override_options): Modify error
8470         checking for inlined division/sqrt.
8471
8472 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
8473
8474         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
8475         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
8476         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
8477         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
8478         copyright.
8479
8480 2004-02-27  Paul Brook  <paul@codesourcery.com>
8481
8482         * function.c (assign_parms): Don't count pretend args for alignment.
8483
8484 2004-02-27  Richard Henderson  <rth@redhat.com>
8485
8486         * passes.c: New file.
8487         * Makefile.in (OBJS-common): Add it.
8488         * diagnostic.c (rtl_dump_and_exit): Move decl ...
8489         * flags.h (rtl_dump_and_exit): ... here.
8490         * output.h (size_directive_output, last_assemble_variable_decl):
8491         Move from toplev.c.
8492         * rtl.h (reg_alloc): Move from toplev.c.
8493         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
8494         struct dump_file_info, enum dump_file_index, dump_file_tbl,
8495         open_dump_file, close_dump_file, rest_of_decl_compilation,
8496         rest_of_type_compilation, rest_of_handle_final,
8497         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
8498         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
8499         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
8500         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
8501         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
8502         rest_of_handle_tracer, rest_of_handle_if_conversion,
8503         rest_of_handle_if_after_combine, rest_of_handle_web,
8504         rest_of_handle_branch_prob,
8505         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
8506         rest_of_handle_addressof, rest_of_handle_sibling_calls,
8507         rest_of_handle_jump_bypass, rest_of_handle_inlining,
8508         rest_of_handle_null_pointer, rest_of_handle_combine,
8509         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
8510         rest_of_handle_gcse, rest_of_handle_loop_optimize,
8511         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
8512         (decode_d_option): Use enable_rtl_dump_file.
8513         (compile_file, finalize, do_compile): Move profile+combine+graph
8514         cleanup to finish_optimization_passes.
8515         * toplev.h (init_optimization_passes, finish_optimization_passes,
8516         enable_rtl_dump_file): Declare.
8517
8518 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
8519             Roger Sayle  <roger@eyesopen.com>
8520
8521         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
8522         operands to build a tree with swapped operands.
8523         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
8524         'unsignedp' predicate to specify the signedness.
8525
8526 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
8527
8528         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
8529         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
8530         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
8531         comment typos and formatting.  Follow spelling conventions.
8532
8533 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
8534
8535         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
8536         fix_truncsfsi2.
8537
8538         * config/rs6000/spe.md: Delete spe_efsctuiz.
8539         Add spe_fixuns_truncsfsi2.
8540         Add spe_fix_truncsfsi2.
8541
8542 2004-02-26  Eric Christopher  <echristo@redhat.com>
8543
8544         * c-lex.c (c_lex_string_translate): New variable.
8545         (lex_string): Use to determine string translation.
8546         * c-pragma.h: Prototype.
8547         * c-parse.in (start_string_translation): New. Set above.
8548         (stop_string_translation): Ditto.
8549         (attribute, attribute_list, asm_def, asm_stmt,
8550         asm_operand): Use above functions.
8551         * cp/parser.c (cp_parser_declaration): Translate strings
8552         unless token is RID_EXTERN. Set c_lex_string_translate
8553         for recursive use.
8554         (cp_parser_asm_definition): Only translate argument strings
8555         to asms.
8556         (cp_parser_asm_operand_list): Ditto.
8557         (cp_parser_attribute_list): Do not translate attribute strings.
8558
8559 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
8560
8561         * stmt.c (expand_start_case_dummy): Remove.
8562         * tree.h: Remove the corresponding prototype.
8563
8564 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
8565
8566         * builtins.c (apply_args_register_offset): Remove.
8567         * tree.h: Remove the corresponding prototype.
8568
8569 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
8570
8571         * stor-layout.c (is_pending_size): Remove.
8572         * tree.h: Remove the corresponding prototype.
8573
8574 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
8575
8576         * recog.c (validate_replace_src): Remove.
8577         * recog.h: Remove the corresponding prototype.
8578
8579 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
8580
8581         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
8582         MAYBE_REG_PARM_STACK_SPACE.
8583         * function.c: Likewise.
8584         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
8585         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
8586         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
8587         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
8588
8589 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
8590
8591         * c-decl.c (c_expand_deferred_function): Remove.
8592         * c-tree.h: Remove the corresponding prototype.
8593
8594 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
8595
8596         * postreload.c (reload_cse_move2add): Generate just a PLUS
8597         instead of an entire SET.
8598
8599 2004-02-26  Jan Hubicka  <jh@suse.cz>
8600
8601         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
8602         /pentium4m.
8603         * i386.c (override_options): Add support for new CPUs.
8604         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
8605         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
8606         constants.
8607         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
8608
8609 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
8610
8611         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
8612
8613 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
8614
8615         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
8616         (sparc_emit_fixunsdi): New prototype.
8617         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
8618         (sparc_emit_fixunsdi): New function.
8619         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
8620         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
8621         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
8622         to sparc_emit_floatunsdi.
8623         (fixuns_truncsfdi2): New expander.
8624         (fixuns_truncdfdi2): Likewise.
8625
8626 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
8627
8628         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
8629         unless HAVE_cc0.
8630
8631 2004-02-25  Richard Henderson  <rth@redhat.com>
8632
8633         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
8634         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
8635         use (op0-op1) == 0 if op0 is a pointer.
8636         * config/alpha/alpha.md (cmpdi): Use some_operand.
8637         (three comparison combine splits): Remove.
8638
8639 2004-02-25  Richard Henderson  <rth@redhat.com>
8640
8641         PR c/12794
8642         * c-common.c (handle_alias_attribute): Reject the attribute if
8643         current_function_decl is set.
8644
8645 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
8646
8647         * config.gcc: Add comment describing extra_gcc_objs.
8648         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
8649         * configure.ac (extra_gcc_objs): New substitution variable.
8650         (host_extra_gcc_objs): Don't substitute.
8651         * configure: Regenerate.
8652         * Makefile.in: Use extra_gcc_objs.
8653
8654 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
8655
8656         * doc/contrib.texi: Add an entry for myself.
8657
8658 2004-02-25  Jan Hubicka  <jh@suse.cz>
8659
8660         * basic-block.h (make_eh_edge, break_superblocks): Declare.
8661         * cfgbuild.c (make_eh_edge):  Make global.
8662         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
8663         * except.c (build_post_landing_pads, connect_post_landing_pads,
8664         dw2_build_landing_pads, sjlj_emit_function_enter,
8665         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8666         sjlj_build_landing_pads): Update CFG.
8667         (emit_to_new_bb_before): New function.
8668         (finish_eh_generation): Do not rebuild the CFG.
8669
8670 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8671
8672         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
8673         target_cpu_default defines.
8674         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
8675         * pa.h (TARGET_DEFAULT): Likewise.
8676
8677 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
8678
8679         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
8680         comparisons with regard to signedness.
8681
8682 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
8683
8684         * arm.c (thumb_legitimize_address): New function.
8685         * arm-protos.h: Prototype it.
8686         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
8687         (LEGITIMIZE_ADDRESS): Use it.
8688
8689 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
8690
8691         * reload1.c (reload): Only spill eliminable register with multiple
8692         adjacent elimination alternatives if all alternatives fail.
8693
8694 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
8695
8696         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
8697         is -4095...+4095 inclusive.
8698
8699 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
8700
8701         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
8702         the bootstrap failure with Sun CC 5.4 and 5.5.
8703
8704 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
8705
8706         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
8707         which modifies NEWREG.
8708         (cse_condition_code_reg): Update the mode of CC_REG in
8709         CC_SRC_INSN on our own.
8710
8711 2004-02-24  Michael Matz  <matz@suse.de>
8712
8713         * config/i386/i386.c (ix86_comp_type_attributes): Check for
8714         regparm attributes.
8715
8716 2004-02-24  Richard Henderson  <rth@redhat.com>
8717
8718         * toplev.c (dump_file_tbl): Rename from dump_file.
8719         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
8720         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
8721         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
8722         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
8723         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
8724         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
8725         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
8726         s/rtl_dump_file/dump_file/g.
8727
8728 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
8729
8730         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
8731         (spe_fixuns_truncsfsi2): Delete.
8732
8733         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
8734         (fixuns_truncsfsi2): Delete.
8735
8736 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
8737
8738         PR/14240
8739         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
8740
8741 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
8742
8743         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
8744
8745 2004-02-24  Jason Merrill  <jason@redhat.com>
8746
8747         * tree.c (check_qualified_type): New fn.
8748         (get_qualified_type): Use it.  If type already has the desired
8749         quals, just return it.
8750         * tree.h: Declare it.
8751
8752 2003-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
8753
8754         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
8755         TARGET_SCHED_FINISH_GLOBAL): New macros.
8756
8757         * target.h (md_init_global, md_finish_global): Function
8758         declarations corresponding to new target macros.
8759
8760         * haifa-sched.c (sched_init, sched_finish): Allow target to
8761         call the new schedular hooks.
8762
8763         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
8764         call to update_life_info.
8765
8766         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
8767         flag_schedule_insns for SH4.
8768
8769         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
8770         find_set_regmode_weight, find_insn_regmode_weight,
8771         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
8772         sh_variable_issue, high_pressure, ready_reorder,
8773         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
8774         functions used to throttle the insn movement in first
8775         scheduling pass for SH.
8776
8777         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
8778         TARGET_SCHED_FINISH_GLOBAL.
8779
8780 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
8781
8782         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
8783         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
8784         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
8785         symbols in sections named by the user.
8786         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
8787         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
8788         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
8789         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
8790         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
8791         the above.
8792         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
8793         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
8794         one more pseudo to further improve code generation.
8795         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
8796         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
8797         inside UNSPEC.
8798         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
8799         * config/frv/frv.c (frv_legitimate_address_p): Added
8800         allow_double_reg_p argument.  Adjust all callers.  Use it to
8801         decide whether to enable double-register indirect addressing.
8802         (frv_funcdesc_alias_set): Remove.
8803         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
8804         register.  Emit movdi_ldd.
8805         (ldd_address_operand): New.
8806         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
8807         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8808         (PREDICATE_CODES): Add ldd_address_operand.
8809         * config/frv/frv.md (movdi_ldd): New.
8810         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
8811         intermediate computations if possible.
8812         (symGOTOFF2reg_i): Fix harmless typo.
8813         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
8814         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
8815         relocated p_vaddr to vaddr type.
8816         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
8817         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
8818         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
8819         MEM, or use a funcdesc alias set.  Use regular move instead of
8820         ldd.
8821         (dbl_memory_one_insn_operand): Recognize function descriptors by
8822         type or by alias set, and don't split them.
8823         * config/frv/frv.md (call, call_value): Never use call_internal
8824         for fdpic.
8825         (call_internal, call_value_internal): Never match for FDPIC.
8826         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
8827         call_value_fdpicsi): Require FDPIC.
8828         (ldd): Removed.
8829         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
8830         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
8831         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
8832         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
8833         FDPIC.  Compute data base address.
8834         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
8835         before the other self-specs are processed.
8836         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
8837         Build with -fPIC.
8838         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
8839         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
8840         inhibit_libc is defined.
8841         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
8842         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
8843         __FRV_FDPIC__.
8844         (__RELOC_POINTER): Define.
8845         (_Unwind_IteratePhdrCallback): Use it.
8846         * config/frv/frv.h (Twrite): Define.
8847         (TRANSFER_FROM_TRAMPOLINE): Use it.
8848         * config/frv/linux.h (INVOKE__main): Undefine.
8849         (Twrite): Override.
8850         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
8851         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
8852         (-mlibrary-pic): Emphasize that this option generates EABI code.
8853         (-mcpu): Add fr550.
8854         (-mpack): Remove.
8855         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
8856         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
8857         and CONSTs in FDPIC mode.
8858         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
8859         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
8860         * config/frv/frv.c (move_source_operand): Don't accept symbolic
8861         constants.
8862         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
8863         rather than 'i' constraint for the 2-instruction alternative.
8864         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
8865         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
8866         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
8867         EXTRA_CONSTRAINT_FOR_Y.
8868         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
8869         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
8870         (addsi3): Change 'Y' constraint to 'Q'.
8871         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
8872         * reload.c (CONST_POOL_OK_P): New macro.
8873         (find_reloads): Use it to decide whether a constant can be forced
8874         into memory.
8875         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
8876         constant satisfies got12_operand.
8877         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
8878         (frv_legitimate_address_p): Check for valid unspec offsets using
8879         got12_operand rather than frv_legitimate_fdpic_operand_p.
8880         (frv_legitimate_fdpic_operand_p): Delete.
8881         (frv_emit_movsi): Abort if we try to use the FDPIC register during
8882         or after reload.
8883         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
8884         TARGET_FDPIC.
8885         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
8886         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
8887         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
8888         (frv_fdpic_fptr_operand): Don't declare here.
8889         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
8890         rather than fdpic_got12_operand.
8891         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
8892         got12_operand and const_unspec_operand.
8893         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
8894         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
8895         (symbolic_operand): Remove.
8896         (const_unspec_operand): New predicate.
8897         * config/frv/frv.md (*movsi_got): Use got12_operand.
8898         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
8899         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
8900         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
8901         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
8902         * config/frv/frv.c (frv_unspec): New structure.
8903         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
8904         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
8905         validate CONST indices.  Use frv_output_const_unspec to print them.
8906         (frv_print_operand): Update call to unspec_got_name.  Use
8907         frv_output_const_unspec to print constant unspecs.
8908         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
8909         Reject UNSPECs otherwise.
8910         (unspec_got_name): Take the relocation number as argument, not an
8911         rtx containing it.
8912         (frv_output_addr_const_extra): Remove, replacing with...
8913         (frv_output_const_unspec): ...this new function.
8914         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
8915         (gpr_or_int12_operand): Use fdpic_got12_operand.
8916         (dbl_memory_one_insn_operand): Likewise.
8917         (fdpic_got12_operand): Use frv_const_unspec_p.
8918         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
8919         are already legitimate.  Use frv_small_data_reloc_p when deciding
8920         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
8921         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
8922         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
8923         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
8924         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
8925         label, for real this time.
8926         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
8927         representation of visibility.
8928         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
8929         such.
8930         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
8931         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
8932         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
8933         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
8934         it was explicitly disabled.
8935         (frv_stack_info): There is no need to save the link register in every
8936         frame unless TARGET_LINKED_FP is true.
8937         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
8938         frame pointer if the stack pointer might change value.
8939         (frv_return_addr_rtx): Check and process "count" argument.
8940         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
8941         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
8942         (frv_find_base_term): Declare.
8943         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
8944         (FIND_BASE_TERM): Define.
8945         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
8946         small_data_register_operand, small_data_symbolic_operand.  Add
8947         symbolic_operand.
8948         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
8949         (frv_print_operand_memory_reference, output_move_single): Remove
8950         special handling for unlegitimized sdata addresses.
8951         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
8952         and symbolic addresses.
8953         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
8954         (frv_find_base_term): New function.
8955         (int_2word_operand): Check specifically for symbolic address constants.
8956         (pic_register_operand, pic_symbolic_operand): Delete.
8957         (small_data_register_operand, small_data_symbolic_operand): Delete.
8958         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
8959         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
8960         (move_source_operand): Only accept CONSTs if they're a two-insn
8961         symbolic constant.
8962         (fdpic_got12_operand): Don't require TARGET_FDPIC.
8963         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
8964         using gen_symGOTOFF2reg*.
8965         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
8966         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
8967         themselves a cost of 3 insns.
8968         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
8969         Change predicate to symbolic_operand.
8970         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
8971         (*movsi_lda_sdata): Delete.
8972         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
8973         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
8974         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
8975         frv-*-*linux*.
8976         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
8977         label.
8978         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
8979         -multilib-library-pic.
8980         (LINK_SPEC): Add -z text for -mfdpic.
8981         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
8982         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
8983         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
8984         Override.
8985         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
8986         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
8987         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
8988         crtstuff-generated files.
8989         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
8990         * config.gcc: Add frv-*-*linux*.
8991         * config/frv/linux.h, config/frv/t-linux: New.
8992         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
8993         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
8994         when -mfdpic even if a linker script is explicitly listed.
8995         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
8996         * config/frv/frv.c (frv_override_options): Clear asm_out
8997         unaligned_op for SImode on FDPIC.
8998         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
8999         argument passed to decl_readonly_section.
9000         (frv_assemble_integer): Revert 2003-09-30's change, but make the
9001         whole block run with FDPIC even with -fno-PIC.
9002         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
9003         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
9004         symbol or label plus offset to memory.
9005         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
9006         GOTOFF and GPREL for LABEL_REF.
9007         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
9008         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
9009         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
9010         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
9011         * doc/invoke.texi: Document them.
9012         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
9013         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
9014         (frv_splittable_got_operand): Removed.
9015         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
9016         LO_SUM.  Add comments.
9017         (frv_override_options): Moved enabling of FDPIC to
9018         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
9019         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
9020         (frv_legitimize_fdpic_address): Don't duplicate logic in
9021         frv_emit_movsi.
9022         (frv_gen_GPsym2reg): New.
9023         (unspec_got_name): Added gprel.
9024         (frv_expand_fdpic_call): Add support for inlining PLTs.
9025         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
9026         (gpr_or_int12_operand): Added GPREL12.
9027         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
9028         (small_data_symbolic_operand): Fail if FDPIC.
9029         (fdpic_splittable_got_operand): Removed.
9030         (fdpic_got12_operand): Added GPREL12.
9031         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
9032         when appropriate.  Fix sdata GOTOFF.
9033         (frv_legitimate_constant_p): Require legitimate PIC operand for
9034         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
9035         (frv_assemble_integer): Move FDPIC funcdesc handling out of
9036         flag_pic case.
9037         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
9038         frv_assemble_integer fails.
9039         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
9040         (SUBTARGET_DRIVER_SELF_SPECS): New.
9041         (ASM_SPEC): Don't pass -mno-fdpic.
9042         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
9043         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
9044         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
9045         -multilib-library-pic.
9046         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
9047         condexec_si_media_operator, condexec_sf_add_operator and
9048         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
9049         and condexec_sf_unary_operator.
9050         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
9051         New.
9052         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
9053         movsi_internal.  Give them internal names.  movsi_got has type
9054         int.
9055         (fdpic got splitters): Remove.
9056         (symGPREL2reg, symGPREL2reg_hilo): New.
9057         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
9058         to -mlibrary-pic.  Map -multilib-library-pic to it.
9059         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
9060         Document.
9061         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
9062         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
9063         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
9064         (frv_cannot_force_const_mem): New function.
9065         (const_small_data_p, plus_small_data_p): Update comments on sdata
9066         on FDPIC.
9067         (frv_override_options): Set flag_pie for FDPIC too.
9068         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
9069         call-saved registers on FDPIC.
9070         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
9071         don't force LR to be preserved.
9072         (frv_expand_prologue): Likewise.
9073         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
9074         (frv_frame_pointer_required): Don't force it just because the
9075         FDPIC register is used.
9076         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
9077         operand only if !condexec_p.
9078         (frv_legitimize_address): Return the FDPIC-legitimized address.
9079         Don't match small data here on FDPIC.
9080         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
9081         symbols.  Use TRUE/FALSE instead of 1/0.
9082         (frv_local_funcdesc_p): New.
9083         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
9084         immediates when possible.
9085         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
9086         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
9087         an UNSPEC_GOT.
9088         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
9089         12-bit immediates when possible.
9090         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
9091         are not legitimate pic operands.
9092         (frv_in_small_data_p): Re-enable for FDPIC.
9093         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
9094         (FRV_GLOBAL_P): Removed.
9095         * config/frv/frv.md: Add modes to CONSTs.
9096         (movsi_got): New.
9097         (movsi_lo_sum_got): Use separate matches instead of match_dup.
9098         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
9099         (fdpic splittable operations): Match on flag_pic != 1.
9100         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
9101         * config/frv/frv.c (frv_asm_out_constructor,
9102         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
9103         bytes, not bits.
9104         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
9105         * config/frv/frv.c (frv_assemble_integer): Reject complex
9106         expressions referencing function SYMBOL_REFs.
9107         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
9108         (move_source_operand): Reject CONSTs that reference function
9109         SYMBOL_REFs on FDPIC.
9110         (frv_emit_movsi): If we get such a CONST, break it up.
9111         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
9112         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
9113         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
9114         MEM.
9115         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
9116         (frv_trampoline_size): Increase for FDPIC.
9117         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
9118         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
9119         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
9120         Disable use of GOTOFF for now.
9121         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
9122         Disable use of small data in FDPIC for now.
9123         (frv_asm_output_mi_thunk): Implement for FDPIC.
9124         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
9125         * config/frv/frv.c (frv_asm_out_constructor): Use
9126         frv_assemble_integer for FDPIC pointers.
9127         (frv_asm_out_destructor): Likewise.
9128         * config/frv/frv.md (ldd): Fix order of operands.  Use
9129         address_operand for input.
9130         2003-09-18  DJ Delorie  <dj@redhat.com>
9131         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
9132         (unspec_got_name): Correct typo.
9133         (frv_emit_movsi): Pre-expand splittable GOTs.
9134         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
9135         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
9136         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
9137         * config/frv/t-frv: Add -mfdpic multilibs.
9138         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
9139         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
9140         * config/frv/frv.c (frv_override_options): -mfdpic assumes
9141         flag_pic, default to 32-bit pics, require DWORD ops.
9142         (frv_override_options): Add W and Z constraints.
9143         (frv_expand_prologue): No pic prologue for -mfdpic.
9144         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
9145         (frv_print_operand_memory_reference): Handle GOT constants.
9146         (frv_legitimate_address_p): Allow GOT constants.
9147         (frv_legitimize_address): Handle GOT addresses too.
9148         (frv_legitimate_fdpic_operand_p): New.
9149         (frv_legitimize_fdpic_address): New.
9150         (unspec_got_name): New.
9151         (frv_output_addr_const_extra): New.
9152         (frv_expand_fdpic_call): New.
9153         (frv_fdpic_fptr_operand): New.
9154         (gpr_or_int12_operand): Handle GOT operands.
9155         (int_2word_operand): Handle GOT operands.
9156         (fdpic_operand): New.
9157         (fdpic_splittable_got_operand): New.
9158         (fdpic_got12_operand): New.
9159         (frv_emit_movsi): Handle GOT operands.
9160         (frv_assemble_integer): -mfdpic doesn't use rofixups.
9161         (frv_print_operand): Support 'g' code for GOT operands.
9162         * config/frv/frv-protos.h: Add prototypes as needed.
9163         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
9164         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
9165         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
9166         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
9167         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
9168         R_FRV_GOTOFFLO): New.
9169         (movsi_high_got, movsi_lo_sum_got): New.
9170         (*movsi_pic): Don't use this splitter for -mfdpic.
9171         (addsi3): Allow GOT references also.
9172         (call, call_value): Handle -mfdpic separately.
9173         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
9174         call_value_fdpicsi): New.
9175         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
9176         symGOTOFF2reg_i): New.
9177         * config/frv/frv.h (MASK_FDPIC): New.
9178         (TARGET_FDPIC): New.
9179         (TARGET_SWITCHES): Add -mfdpic.
9180         (FDPIC_FPTR_REGNO): New.
9181         (FDPIC_REGNO): New.
9182         (OUR_FDPIC_REG): New.
9183         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
9184         FDPIC_CALL_REGS.
9185         (REG_CLASS_NAMES): Likewise.
9186         (REG_CLASS_CONTENTS): Likewise.
9187         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
9188         (EXTRA_CONSTRAINT): Add it here.
9189         (FRV_GLOBAL_P): New.
9190         (OUTPUT_ADDR_CONST_EXTRA): New.
9191
9192 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
9193
9194         * config/sparc/sparc.h: Remove commented-out definitions of
9195         TARGET_EDOM and GEN_ERRNO_RTX.
9196
9197 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
9198
9199         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
9200         df_analyse with df_analyze.
9201
9202 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
9203
9204         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
9205         beginning of block.
9206
9207 2004-02-23  James E Wilson  <wilson@specifixinc.com>
9208
9209         * calls.c (precompute_arguments): Update comment.
9210
9211 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
9212
9213         * et-forest.c: Replace et_occurences with et_occurrences.
9214
9215 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
9216
9217         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
9218         with iv_analyze.
9219
9220 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
9221
9222         * config/i386/i386.c: Rename pni to sse3.
9223         * config/i386/i386.h: Likewise.
9224         * config/i386/i386.md: Likewise.
9225         * config/i386/pmmintrin.h: Likewise.
9226         * doc/extend.texi: Likewise.
9227         * doc/invoke.texi: Likewise.
9228
9229 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
9230             Kazu Hirata  <kazu@cs.umass.edu>
9231
9232         Remove -fwritable-strings.
9233         * c-common.c (fix_string_type): Don't check
9234         flag_writable_strings.
9235         (fix_string_type): Likewise.
9236         * c-opts.c (set_std_c89): Don't initialize
9237         flag_writable_strings.
9238         (set_std_c99): Likewise.
9239         * common.opt (fwritable-strings): Remove.
9240         * flags.h: Remove the external declaration of
9241         flag_writable_strings.
9242         * opts.c (common_handle_option) <OPT_fwritable_strings>:
9243         Remove.
9244         * toplev.c (flag_writable_strings): Remove.
9245         (f_options): Remove an entry for writable-strings.
9246         * varasm.c (const_hash_1) <STRING_CST>: Don't check
9247         flag_writable_strings.
9248         (compare_constant) <STRING_CST>: Likewise.
9249         (build_constant_desc): Likewise.
9250         * config/darwin.c (machopic_select_section): Likewise.
9251         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
9252         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
9253         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
9254         * config/mips/mips.c (mips_select_section): Likewise.
9255         (mips_encode_section_info): Likewise.
9256         * config/pa/pa.c (pa_select_section): Likewise.
9257         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
9258         * config/v850/v850.c (v850_select_section): Likewise.
9259         * doc/invoke.texi (-fwritable-strings): Remove.
9260         (-fno-const-strings): Don't mention -fwritable-strings.
9261         * doc/trouble.texi: Don't mention -fwritable-strings.
9262
9263 2003-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
9264
9265         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
9266
9267 2004-02-23  Dale Johannesen  <dalej@apple.com>
9268
9269         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
9270         (movdf_hardfloat64):  Ditto.
9271         (movdf_softfloat64):  Ditto.
9272
9273 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
9274         * config/rs6000/rs6000.c (function_arg): call to
9275         rs6000_mixed_function_arg for DFmode moved to allow
9276         normal DFmode incoming register assignment.
9277
9278 2004-02-23  Dale Johannesen  <dalej@apple.com>
9279
9280         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
9281         (movdf_hardfloat64):  Ditto.
9282
9283 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
9284
9285         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
9286         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
9287         copyright.
9288
9289 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
9290
9291         PR c/14156
9292         * c-typeck.c (c_expand_return): Change check for VAR_DECL
9293         to use DECL_P instead.
9294
9295         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
9296         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
9297
9298 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
9299
9300         * Makefile.in (opts.o): Depend on target.h.
9301         * opts.c (decode_options): Use targetm.default_short_enums
9302         instead of DEFAULT_SHORT_ENUMS.
9303         * system.h (DEFAULT_SHORT_ENUMS): Poison.
9304         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
9305         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
9306         * target.h (gcc_target): Add default_short_enums.
9307         * config/cris/cris.h: Remove a comment about
9308         DEFAULT_SHORT_ENUMS.
9309         * config/ip2k/ip2k.h: Likewise.
9310         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
9311         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
9312
9313 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
9314             Falk Hueffner  <falk@debian.org>
9315
9316         PR c/14188
9317         * builtins.c (expand_builtin_va_arg): Emit an informative message
9318         if a trap is generated.
9319         * c-typeck.c (build_function_call): Likewise.
9320
9321 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
9322
9323         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
9324         fopen.
9325         * libgcov.c: Include sys/stat.h.
9326         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
9327         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
9328         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
9329         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
9330
9331 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
9332
9333         * reorg.c: Remove comments about dead ports.
9334
9335 2004-02-22  Christopher Faylor  <cgf@redhat.com>
9336
9337         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
9338         extra host object file when targetting cygwin rather than generic
9339         object files.
9340
9341 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
9342
9343         Merge from tree-ssa:
9344         2003-11-20  Richard Henderson  <rth@redhat.com>
9345
9346                 * tree-inline.c (insert_decl_map): New.
9347                 (remap_decl, remap_type, remap_block, copy_body_r,
9348                 initialize_inlined_parameters, declare_return_variable,
9349                 remap_save_expr): Use it.
9350
9351         * function.c (copy_body_r): Add mapping from id->ret_label to
9352         id->ret_label.  Revert test for ret_label.
9353
9354 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
9355
9356         * genoutput.c (process_template): Strip trailing whitespace in @
9357         templates and issue a warning if there was any.
9358
9359 2004-02-21  Christopher Faylor  <cgf@redhat.com>
9360
9361         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
9362         object file when targetting cygwin.
9363         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
9364         overridden by top-level Makefile.
9365
9366 2004-02-21  Roger Sayle  <roger@eyesopen.com>
9367
9368         * config/i386/i386.c (standard_80387_constant_p): Also prefer
9369         the x87's load constant instructions when optimizing for size.
9370
9371 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
9372
9373         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
9374         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
9375         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
9376         * fold-const.c: Likewise.
9377         * simplify-rtx.c: Likewise.
9378
9379 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
9380
9381         * combine.c (can_combine_p): Don't ignore SETs marked with
9382         REG_EH_REGION notes.
9383         (try_combine): When attemting to fix unrecognized insns, don't
9384         split a PARALLEL that contains the original i2.
9385
9386 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
9387
9388         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
9389         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
9390         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
9391         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
9392         (vector, pixel, bool): #define to __vector, __pixel and __bool.
9393         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
9394         portion of header.
9395         (__altivec_link_error_invalid_argument): Remove prototype; will use
9396         __builtin_altivec_compiletime_error("vec_*") instead.
9397         (vec_*): Fix/complete set of available operation overloads given the
9398         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
9399         cv-correctness of pointer arguments; in C, always check for correct
9400         argument types before macro expansion.
9401         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
9402         defining Darwin/PowerPC-specific '-f[no-]altivec' and
9403         '-W[no-]altivec-long-deprecated' switches.
9404         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
9405         '__vector', '__pixel' and '__bool' macros using
9406         '__attribute__((altivec(...)))' types.
9407         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
9408         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
9409         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
9410         New type nodes.
9411         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
9412         handling '-W[no-]altivec-long-deprecated'.
9413         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
9414         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
9415         altivec_expand_dst_builtin): Remove casts from integer literals.
9416         (altivec_expand_builtin): Likewise; handle expansion of new
9417         '__builtin_altivec_compiletime_error' function.
9418         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
9419         types, and make them distinct from other vector types; register
9420         '__builtin_altivec_compiletime_error' function.
9421         (print_operand): For 'P', print a full target register name instead of
9422         merely its number.
9423         (rs6000_attribute_table): Add "altivec" attribute.
9424         (rs6000_handle_altivec_attribute): New function.
9425         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
9426         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
9427         maps to).
9428         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
9429         declare.
9430         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
9431
9432 2004-02-20  James E Wilson  <wilson@specifixinc.com>
9433
9434         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
9435         check.
9436         (shift_mix4left+2): Delete redundant pattern.
9437
9438 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
9439
9440         * alias.c (OUTGOING_REGNO): Don't define the default.
9441         * builtins.c (OUTGOING_REGNO): Likewise.
9442         (INCOMING_REGNO): Likewise.
9443         (apply_args_register_offset): Always use OUTGOING_REGNO.
9444         * combine.c (OUTGOING_REGNO): Likewise.
9445         * sibcall.c (OUTGOING_REGNO): Likewise.
9446         * defaults.h (INCOMING_REGNO): Provide the default.
9447         (OUTGOING_REGNO): Likewise.
9448
9449 2004-02-21  Jan Hubicka  <jh@suse.cz>
9450
9451         * params.def (max-peeled-insns, max-completely-peeled-insns,
9452         max-once-peeled-insns): Set to 400.
9453
9454 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9455
9456         PR c++/12007
9457         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
9458         are set for parameters before outputing debugging information.
9459
9460 2004-02-20  Falk Hueffner  <falk@debian.org>
9461
9462         PR target/14201
9463         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
9464         numbers.
9465
9466 2004-02-20  Per Bothner  <per@bothner.com>
9467
9468         * input.h:  Don't #include line-map.h.  It may cause link problems
9469         with undefined linemap_line_start when line-map.h is included but
9470         line-map.o is not linked, as currently happens with gengtype on
9471         compilers that don't support inline.
9472         * toplev.c:  So we do have to explicitly #include line-map.h here.
9473
9474 2004-02-20  Richard Henderson  <rth@redhat.com>
9475
9476         * doc/invoke.texi: Add -Wvariadic-macros.
9477
9478 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
9479
9480         * haifa-sched.c (sched_emit_insn): Remove.
9481         * sched-int.h: Remove the corresponding prototype.
9482
9483 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
9484
9485         Revert:
9486         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9487         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
9488         * system.h (DEFAULT_SHORT_ENUMS): Poison.
9489         * config/cris/cris.h: Remove a comment about
9490         DEFAULT_SHORT_ENUMS.
9491         * config/ip2k/ip2k.h: Likewise.
9492         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
9493
9494 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
9495             Tom Tromey  <tromey@redhat.com>
9496
9497         * doc/install.texi: Moved --disable-libgcj and
9498         --with-system-zlib documentation to new section for
9499         Java-specific options.
9500         Added explicit Cross-Compiler-Specific Options subheading.
9501         Added section for Java-specific options.
9502
9503 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
9504
9505         * doc/install.texi (Building the Ada compiler): Remove
9506         example.
9507
9508 2004-02-20  James E Wilson  <wilson@specifixinc.com>
9509
9510         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
9511
9512 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
9513
9514         * gcc.c (process_command): Allow translation of the copyright
9515         symbol but not the rest of the copyright message.
9516         * gcov.c (print_version): Likewise.  Allow translation of the
9517         message about warranty.
9518
9519 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
9520
9521         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
9522         predicate.
9523         ("*andsi_clear"): Tweak constraints to not match postincrement.
9524         Adjust the predicate to exclude a volatile memory reference.
9525         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
9526         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
9527
9528 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
9529
9530         * move-if-change: Remove.
9531         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
9532         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
9533         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
9534         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
9535         (s-gtyp-gen, s-iov): Use the top level move-if-change.
9536         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
9537
9538 2004-02-19  James E Wilson  <wilson@specifixinc.com>
9539
9540         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
9541         for operand2.  Add condition that requires register_operand operand2
9542         before reload.
9543
9544 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
9545             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9546
9547         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
9548         * config/mips/mips.md: Expand comment above unaligned loads and stores.
9549
9550 2004-02-19  Richard Henderson  <rth@redhat.com>
9551
9552         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
9553         * tree.c (build0, build1, build2, build3, build4): Split out from...
9554         (build): ... here.  Call them.
9555         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
9556
9557         * convert.c (convert_to_integer): Remove extra build argument.
9558         * tree-inline.c (expand_call_inline): Likewise.
9559
9560 2004-02-19  Richard Henderson  <rth@redhat.com>
9561
9562         * c-opts.c (warn_variadic_macros): New.
9563         (c_common_handle_option): Set it.
9564         (sanitize_cpp_opts): Copy it to cpp_opts.
9565         * c.opt (Wvariadic-macros): New.
9566         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
9567         * cppinit.c (cpp_create_reader): Initialize it.
9568         * cppmacro.c (parse_params): Check it.
9569
9570 2004-02-19  David Daney <ddaney@avtrex.com>
9571
9572         PR preprocessor/14198
9573         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
9574         builtin_assert ("machine=mips")
9575
9576 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9577
9578         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
9579         * system.h (DEFAULT_SHORT_ENUMS): Poison.
9580         * config/cris/cris.h: Remove a comment about
9581         DEFAULT_SHORT_ENUMS.
9582         * config/ip2k/ip2k.h: Likewise.
9583         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
9584
9585 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
9586
9587         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
9588         when passing single SFmode quantities in general registers,
9589         put them in the high half.
9590
9591 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
9592
9593         * doc/md.texi (Standard Names): Document additional dependency on
9594         fix pattern.
9595
9596         * optabs.c (ftruncify): Remove.
9597         (expand_fix): Manually inline ftruncify above.
9598         (can_fix_p): Add FIXME note.
9599
9600 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
9601
9602         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
9603         spe_fixuns_truncsfsi2.
9604
9605         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
9606         fixuns_truncsfsi2.
9607
9608 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
9609
9610         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
9611         * testsuite/gcc.dg/20040219-1.c: New test.
9612
9613 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
9614
9615         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
9616         "*subsf3_cconly"): Subtraction is not commutative.
9617
9618 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
9619
9620         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
9621         (sdbout_symbol): If called before sdbout_init, queue DECL for
9622         later and return.
9623         (sdbout_init): Set sdbout_initialized true, process decls
9624         queued earlier by sdbout_symbol.
9625         (sdbout_finish): Use size_t for index variable.
9626
9627 2004-02-19  Jeff Law  <law@redhat.com>
9628
9629         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
9630         for unordered comparison codes.
9631
9632 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
9633
9634         * reload1.c (reload): Correct comment.
9635         (scan_paradoxical_subregs): Remove #if 0 and old comment.
9636         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
9637         register variables are not used by reload.
9638
9639 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
9640
9641         PR target/14209
9642         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
9643         constraints to not match postincrement.  Adjust the predicate to
9644         exclude a volatile memory reference.
9645
9646 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9647
9648         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
9649
9650 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9651
9652         * hooks.c (hook_void_tree_int): Remove.
9653         (hook_void_constcharptr): Likewise.
9654         (hook_int_void_0): Likewise.
9655         * hooks.h: Remove the prototypes for the above three
9656         functions.
9657         * targhooks.c (hook_bool_machine_mode_true): Remove.
9658         * targhooks.h: Remove the prototype for
9659         hook_bool_machine_mode_true.
9660
9661 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9662
9663         * emit-rtl.c (subreg_realpart_p): Remove.
9664         (reorder_insns_with_line_notes): Likewise.
9665         (end_full_sequence): Likewise.
9666         * rtl.h: Remove the prototype for the above functions.
9667
9668 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9669
9670         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
9671         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
9672         config/iq2000/iq2000.h, config/m32r/m32r.h,
9673         config/pdp11/pdp11.h, config/sparc/sparc.h,
9674         config/xtensa/xtensa.h: Remove commented-out or useless
9675         definitions of CASE_VECTOR_PC_RELATIVE.
9676
9677 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
9678
9679         * loop.c (all_sets_invariant_p): Remove.
9680
9681 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
9682
9683         PR target/12916
9684         * config/sparc/sparc.h (NPARM_REGS): Delete.
9685         (BASE_RETURN_VALUE_REG): Likewise.
9686         (BASE_OUTGOING_VALUE_REG): Likewise.
9687         (BASE_PASSING_ARG_REG): Likewise.
9688         (BASE_INCOMING_ARG_REG): Likewise.
9689         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
9690         TARGET_ARCH64, not TARGET_V9.
9691         (function_arg_slotno): Dispatch based on the mode class.
9692         Handle vector modes like floating-point modes.
9693         (function_arg_record_value_1): Handle vector types like
9694         floating-point types.
9695         (function_arg_record_value_2): Likewise.
9696         Calculate regno after mode transformation.
9697         (function_arg): Handle vector modes like floating-point modes.
9698         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
9699         If ARCH64, do not recheck alignment.
9700         (function_arg_pass_by_reference): Reorder the conditions.
9701         (sparc_return_in_memory): Move after function_arg_padding.
9702         Implement calling conventions for vector modes.
9703         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
9704         (function_value): Move scope of 'regbase'.
9705         Implement calling conventions for vector modes.
9706         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
9707         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
9708         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
9709         the argument is passed by reference.
9710         (sparc_type_code): Handle vector types.
9711
9712 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
9713
9714         * function.c (assign_parms): When building decl_rtl for
9715         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
9716
9717 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
9718
9719         * expr.c (is_aligning_offset): Check if we are aligning the
9720         expressions's address over BIGGEST_ALIGNMENT in bytes, not
9721         in bits.
9722
9723 2003-02-18  Matt Austern  <austern@apple.com>
9724
9725         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
9726         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
9727         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
9728         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
9729         spec string.
9730         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
9731
9732 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
9733
9734         * dwarf2out.c (loclabel_num): Move outside #ifdef
9735         DWARF2_DEBUGGING_INFO and mark with GTY(()).
9736         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
9737         Mark with GTY(()).
9738         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
9739         Allocate memory with ggc_alloc.  No need to copy anything.
9740         (ia64_hpux_file_end): Update to match.
9741
9742 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
9743
9744         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
9745         by default.
9746
9747 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9748
9749         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
9750         ("divmodtisi3"): Likewise.
9751         ("udivmoddi4", "udivmodtidi3"): Likewise.
9752         ("divmodsi4", "divmoddisi3"): Likewise.
9753         ("udivmodsi4", "udivmoddisi3"): Likewise.
9754         ("udivsi3", "umodsi3"): Likewise.
9755
9756 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9757
9758         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
9759         placeholder insn when chunkifying the pool.
9760
9761 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9762
9763         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
9764         generating PIC code.
9765
9766 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
9767
9768         * config/h8300/h8300-protos.h: Add a prototype for
9769         h8300_expand_branch.
9770         * config/h8300/h8300.c (h8300_expand_branch): New.
9771         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
9772         bgtu, beq, bne): Call h8300_expand_branch().
9773
9774 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
9775
9776         * config/h8300/h8300-protos.h: Add prototypes for
9777         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
9778         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
9779         (h8300_hard_regno_mode_ok): Likewise.
9780         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
9781         h8300_hard_regno_nregs().
9782         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
9783
9784 2004-02-18  Per Bothner  <per@bothner.com>
9785
9786         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
9787         partly reverts my 2003-10-01 change, because we're back to logically
9788         including <command line> inside the main line.
9789         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
9790         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
9791         Fixes PR preprocessor/14103.
9792
9793         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
9794         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
9795         (cpp_push_include):  Don't need to increment pfile's line field.
9796         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
9797
9798         * c-ppoutput.c (print struct):  New first_time field.
9799         (init_pp_output):  Set print.first_time.
9800         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
9801         which is set also for (say) <command line>.  Clear print.first_time.
9802
9803         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
9804         does not match the code, so fix both.
9805         (should_stack_file):  Inline include_pch_p function.
9806         (include_pch_p):  Remove pointless function.
9807
9808         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
9809
9810 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
9811
9812         * config/h8300/h8300.md (four define_peephole2's): Use
9813         h8300_regs_ok_for_stm().
9814
9815 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
9816
9817         * config/h8300/h8300-protos.h: Update the prototype for
9818         expand_a_rotate().
9819         * config/h8300/h8300.c (expand_a_rotate): Remove the first
9820         argument.
9821         * config/h8300/h8300.md: Update all callers.
9822
9823 2004-02-18  Jan Hubicka  <jh@suse.cz>
9824
9825         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
9826         floats.
9827         (simplify_binary_operation): Deal with logicals on floats.
9828
9829         * i386.md (SSE fabs splitters): Emit new patterns.
9830         (SSE cmov splitters): Likewise.
9831         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
9832         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
9833         subregs.
9834         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
9835         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
9836
9837 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
9838
9839         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
9840         by hand.
9841         (output_a_rotate): Tweak a comment.
9842         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
9843         (*rotlhi3_1): Change to rotlhi3_1.
9844         (*rotlsi3_1): Change to rotlsi3_1.
9845
9846 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
9847
9848         PR target/13866
9849         * arm.c (load_multiple_operation): Don't insist that the source reg
9850         of a post-increment component is the same as the destination.
9851         (store_multiple_operation): Likewise.
9852
9853 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
9854
9855         * config/h8300/h8300.md: Move movsf patterns into one section
9856         of the file.
9857
9858 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
9859
9860         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
9861         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
9862         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
9863         config/mips/linux64.h, config/pa/pa-64.h,
9864         config/rs6000/aix51.h, config/rs6000/aix52.h,
9865         config/rs6000/spe.md, config/sparc/linux.h,
9866         config/sparc/linux64.h: Update copyright.
9867
9868 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
9869
9870         * config/h8300/h8300.md: Move push patterns into one
9871         section of the file.
9872
9873 2004-02-18  Mark Mitchell <mark@codesourcery.com>
9874
9875         PR c++/11326
9876         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
9877         fntype.
9878
9879 2004-02-18  Paul Brook  <paul@codesourcery.com>
9880
9881         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
9882
9883 2004-02-18  Paul Brook  <paul@codesourcery.com>
9884
9885         PR debug/12934
9886         * dwarf2out.c (loc_descriptor_from_tree): Handle
9887         EXPR_WITH_FILE_LOCATION.
9888
9889 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
9890
9891         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
9892         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
9893         trailing whitespace from instructions.
9894
9895 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
9896
9897         * configure.ac: When generating auto-build.h, pass
9898         --enable-languages to the sub-configure.
9899         Put quotes around ${program_transform_name} when generating
9900         name of as, ld, nm, objdump.
9901         * configure: Regenerate.
9902
9903 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
9904
9905         * Makefile.in (s-check, s-config, s-conditions, s-flags)
9906         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
9907         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
9908         (s-preds, s-iov): Do not depend on move-if-change.
9909
9910 2004-02-17  James E Wilson  <wilson@specifixinc.com>
9911
9912         * caller-save.c (insert_restore): Pass mem through copy_rtx.
9913         (insert_save): Likewise.
9914
9915 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9916
9917         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
9918         warning.
9919
9920 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9921
9922         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
9923         *one_cmplsi2_h8300.
9924         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
9925
9926 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9927
9928         * config/h8300/h8300-protos.h: Update the prototype of
9929         fix_bit_operand().
9930         * config/h8300/h8300.c (fix_bit_operand): Remove the second
9931         argument "what".
9932         * config/h8300/h8300.md: Update all callers.
9933
9934 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9935
9936         * config/h8300/h8300.c (fix_bit_operand): Change the name of
9937         the last argument to "code" from "type".
9938
9939 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9940
9941         * config/h8300/h8300.c: Remove an extern declaration of
9942         rtx_equal_function_value_matters.
9943
9944 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9945
9946         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
9947         by hand.
9948         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
9949         (*iorqi3_1): Change to iorqi3_1.
9950         (*xorqi3_1): Change to xorqi3_1.
9951
9952 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9953
9954         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
9955         typos.
9956
9957 2004-02-17  Jan Hubicka  <jh@suse.cz>
9958
9959         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
9960
9961 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
9962
9963         PR optimization/14119
9964         * combine.c (try_combine): When attemting to fix unrecognized insns,
9965         don't delete SETs marked with REG_EH_REGION notes.
9966
9967 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
9968
9969         * combine.c (simplify_if_then_else): Do not replace
9970         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
9971         modes differ.
9972
9973 2004-02017  Steven Bosscher  <stevenb@suse.de>
9974
9975         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
9976         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
9977         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
9978         * ada/utils.c: Likewise.
9979         * cp/decl.c: Likewise.
9980         * f/com.c: Likewise.
9981         * java/class.c: Likewise.
9982
9983 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9984
9985         * config/h8300/h8300.md: Fix comment typos.
9986
9987 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9988
9989         * config/mips/t-iris6gld: Renamed to ...
9990         * config/mips/t-irix-gld: ... this.
9991         * config.gcc (mips-sgi-irix6*): Reflect this
9992         (mips-sgi-irix5*): Use it with GNU ld.
9993
9994         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
9995         to ...
9996         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
9997         * config/mips/t-irix-gld: Reflect this.
9998         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
9999
10000         * config/mips/iris5gld.h: New file.
10001         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
10002         Only use collect2 without gas.
10003
10004         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
10005         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
10006         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
10007         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
10008
10009         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
10010         * config/mips/iris5.h: ... here.
10011
10012         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
10013         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
10014         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
10015
10016         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
10017         using irix_startfile_spec, irix_endfile_spec.
10018
10019 2004-02-16  Gunther Nikl  <gni@gecko.de>
10020
10021         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
10022
10023 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
10024
10025         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
10026         insns by hand.
10027
10028 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10029
10030         * cfghooks.c (split_edge): Speed up updating of dominators.
10031
10032 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
10033
10034         PR c++/11326
10035         * c-common.c (flag_abi_version): Remove.
10036         * c-common.h (flag_abi_version): Likewise.
10037         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
10038         * c.opt (fabi-version): Remove.
10039         * calls.c (expand_call): Always pass a function type to
10040         struct_value_rtx.  Use convert_memory_address.
10041         * common.opt (fabi-version): Add it.
10042         * flags.h (flag_abi_version): Likewise.
10043         (abi_version_at_least): New macro.
10044         * opts.c (common_handle_option): Add OPT_fabi_version.
10045         * toplev.c (flag_abi_version): Define it.
10046         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
10047         New function.
10048         (ia64_output_mi_thunk): Use it.
10049         (ia64_struct_value_rtx): Likewise.
10050
10051 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
10052
10053         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
10054         Don't generate insns by hand.
10055
10056 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
10057
10058         PR c++/14178
10059         * doc/invoke.texi (fabi-version): The default is 2 now.
10060
10061 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10062
10063         * loop-iv.c: New file.
10064         * Makefile.in (loop-iv.o): New.
10065         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
10066         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
10067         num_loop_branches): New functions.
10068         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
10069         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
10070         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
10071         get_simple_loop_desc, free_simple_loop_desc): Declare.
10072         (simple_loop_desc): New inline function.
10073         (struct rtx_iv, struct niter_desc): New.
10074         * cfgloopmanip.c (loopify): Specify semantics more precisely.
10075         * expr.c (force_operand): Handle subregs of expressions created by
10076         loop unroller.
10077         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
10078         parts of the initialization to toplev.c
10079         * loop-unroll.c (loop_exit_at_end_p): New.
10080         (unroll_and_peel_loops): Call iv_analysis_done.
10081         (decide_peel_once_rolling, decide_peel_completely,
10082         decide_unroll_stupid, decide_unroll_constant_iterations,
10083         decide_unroll_runtime_iterations, decide_peel_simple,
10084         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
10085         unroll_loop_runtime_iterations): Use new simple loop analysis.
10086         * loop-unswitch.c (compare_and_jump_seq): New.
10087         (may_unswitch_on_p): Renamed to ...
10088         (may_unswitch_on): Use new iv analysis.
10089         (reversed_condition): Export.
10090         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
10091         * predict.c (estimate_probability): Use new simple loop analysis.
10092         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
10093         canon_condition, simplify_using_condition): Declare.
10094         * stor-layout.c (get_mode_bounds): New.
10095         * toplev.c (rest_of_handle_loop2): Some parts of
10096         initialization/finalization moved here from loop-init.c.
10097
10098 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
10099
10100         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
10101         pointer.
10102         (CALL_USED_REGISTERS): Likewise.
10103         (REG_ALLOC_ORDER): Likewise.
10104         (REG_CLASS) <GENERAL_REGS>: Likewise.
10105
10106 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
10107
10108         * doc/md.texi (Insn Canonicalizations): Document left-chaining
10109         in associative operators.
10110         * rtlanal.c (commutative_operand_precedence): Create some new
10111         variables.  Prefer a commutative operand on the left, then
10112         binary expressions, then NEG and NOT.
10113
10114 2004-02-16  Matthias Klose  <doko@debian.org>
10115
10116         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
10117         in terms of SHLIB_SOVERSION.
10118         * config/m68k/t-slibgcc-elf-ver: New file.
10119         * config/pa/t-slibgcc-elf-ver: New file.
10120         * config.gcc (m68k-linux, parisc-linux): Use them when not
10121         sjlj exceptions are not configured.
10122
10123 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
10124
10125         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
10126
10127 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
10128
10129         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
10130
10131 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
10132
10133         * doc/sourcebuild.texi: Mention backends.html.
10134
10135 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
10136
10137         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
10138         line-map.c, line-map.h, var-tracking.c: Fix comment
10139         formatting.
10140
10141 2004-02-16  Richard Henderson  <rth@redhat.com>
10142
10143         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
10144
10145         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
10146
10147 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
10148
10149         * config/h8300/h8300.md: Remove unnecessary parallels from
10150         all define_insn and define_split patterns.
10151
10152 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
10153
10154         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
10155         "clobber").
10156
10157 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
10158
10159         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
10160         '%#'.
10161
10162 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
10163
10164         * config/ia64/ia64.c, config/mips/mips.c,
10165         config/mmix/mmix-modes.def: Fix comment typos.
10166
10167 2004-02-15  Roger Sayle  <roger@eyesopen.com>
10168
10169         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
10170         (get_directive_line): Remove unused function prototype.
10171
10172 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
10173
10174         * tree-inline.c (copy_body_r): Do not replace ret_label.
10175
10176 2004-02-14  Jan Hubicka  <jh@suse.cz>
10177
10178         * i386.c (x86_four_jump_limit): New variable.
10179         (k8_avoid_jump_misspredicts): Rename to ...
10180         (ix86_avoid_jump_misspredicts): .. this one.
10181         (ix86_pad_returns): Break out from ...
10182         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
10183         to.
10184         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
10185
10186 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
10187
10188         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
10189         PARALLEL is NULL.
10190
10191 2004-02-14  Per Bothner  <per@bothner.com>
10192
10193         * fix-header.c (line_table):  Move local variable in main to global.
10194         * scan.h (line_table):  Use it.
10195         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
10196         line (recently renamed to src_loc) before calling recognized_function.
10197
10198 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
10199
10200         * Makefile.in: Fix comment typos.
10201
10202 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
10203
10204         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
10205         for start_value when it is directly moved into reg, and factorize
10206         the retrieval of GET_MODE (reg).
10207
10208 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
10209
10210         * config/mips/mips-protos.h (mips_load_got_page): Delete.
10211         (mips_load_got_global): Delete.
10212         (mips_gotoff_page): Declare.
10213         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
10214         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
10215         UNSPEC_LOAD_GOT pattern rather than a MEM.
10216         (*load_got[sd]i): New patterns.
10217         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
10218         (mips_load_got_page, mips_load_got_global): Delete.
10219         (mips_gotoff_page): New function.
10220         (override_options): Don't initialize mips_got_alias_set.
10221
10222 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
10223
10224         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
10225         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
10226         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
10227         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
10228         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
10229         * config/mips/mips.c: Fix some overly-long lines.
10230         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
10231         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
10232
10233 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10234
10235         * configure.ac: Search for as, ld below libexec/gcc.
10236         * configure: Regenerate.
10237
10238 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
10239
10240         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
10241         __builtin_arm_setwcx ().
10242         * config/arm/arm.c (arm_expand_builtin): Generate operands
10243         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
10244
10245 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
10246
10247         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
10248         and "wmuluh" to "wmulsm" and "wmulum", respectively.
10249         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
10250         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
10251         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
10252         (_mm_mulhi_pu16): Likewise.
10253
10254 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
10255
10256         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
10257         DECL_NAME != 0 before dereferencing.
10258
10259 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
10260
10261         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
10262         (s390_output_addr_const_extra): Declare.
10263         (s390_output_pool_entry): Remove FILE * argument.
10264         * config/s390/s390.c (s390_output_symbolic_const): Remove.
10265         (s390_output_addr_const_extra): New function.
10266         (print_operand_address): Call output_addr_const instead of
10267         s390_output_symbolic_const.
10268         (print_operand): Likewise.
10269         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
10270         Remove FILE * argument.
10271         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
10272         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
10273         call.
10274
10275 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10276
10277         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
10278         (struct edge, struct vertex, struct graph): New.
10279         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
10280         free_graph): New functions.
10281
10282 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
10283
10284         * config/mips/mips.md (casesi_internal, casesi_internal_di):
10285         Use ".set macro" to avoid warnings about multi-instruction
10286         macros, since they're intentional.
10287
10288 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
10289
10290         * config/darwin.h: Add include guards.  Remove old, now incorrect,
10291         comment about STANDARD_EXEC_PREFIX.
10292
10293         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
10294         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
10295         for installing .1 manpages.  Add rules for installing cpp
10296         and gcov manpages under their installed names.
10297
10298 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
10299
10300         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
10301         host, but try LD_FOR_TARGET first.
10302         * configure: Rebuilt.
10303
10304 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
10305
10306         * dbxout.c: Move declaration of dbxout_type_decl outside
10307         #ifdef DBX_DEBUGGING_INFO.
10308         * c-parse.in: Don't give the asmdef production a type.
10309
10310 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
10311
10312         * debug.h (struct gcc_debug_hooks): Add type_decl field.
10313         (debug_nothing_tree_int): Prototype.
10314         (dwarf_debug_hooks): Delete, unused.
10315         * debug.c (do_nothing_debug_hooks): Update.
10316         (debug_nothing_tree_int): New function.
10317         * langhooks.h (struct lang_hooks_for_decls):
10318         Remove builtin_type_decls field.
10319         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
10320         (LANG_HOOKS_DECLS): Update.
10321         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
10322         Use debug_hooks->type_decl.
10323         * dbxout.c (preinit_symbols): New static.
10324         (dbx_debug_hooks, xcoff_debug_hooks): Update.
10325         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
10326         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
10327         for symbols to output.
10328         (dbxout_type_decl): New function.
10329         (dbxout_symbol): If called before dbxout_init has run, queue
10330         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
10331         to TYPE_DECLs before emitting them.
10332         * xcoffout.c (assign_type_number): Delete.
10333         (xcoff_type_numbers): New static table.
10334         (xcoff_assign_fundamental_type_number): New function.
10335         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
10336         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
10337         * sdbout.c: Include varray.h.
10338         (deferred_global_decls): New static.
10339         (sdb_debug_hooks): Update.
10340         (sdbout_global_decl): If we can't emit something right now,
10341         remember it in deferred_global_decls.
10342         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
10343         (sdbout_init): Initialize deferred_global_decls.
10344         * Makefile.in: Update dependencies of sdbout.o.
10345         * dwarf2out.c (dwarf2out_type_decl): New function.
10346         (dwarf2_debug_hooks): Update.
10347         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
10348         * c-decl.c (getdecls): Just return 0.
10349         (check_for_loop_decls): Don't use getdecls.
10350         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
10351         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
10352
10353 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
10354
10355         * config/s390/s390.c (s390_sched_reorder2): Remove.
10356         (TARGET_SCHED_REORDER2): Do not redefine.
10357
10358 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
10359
10360         * c-parse.in (maybe_type_qual): Delete.
10361         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
10362         (asm_argument): New grammar rules.
10363         (extdef_1): Use asmdef.
10364         (maybeasm): Move down with other asm rules; use simple_asm_expr.
10365         (xexpr): Move up with other expression rules.
10366         (stmt): Use asm_stmt.
10367
10368         * c-typeck.c (build_asm_expr): New function - body mostly
10369         pulled from build_asm_stmt.
10370         (build_asm_stmt): Just handle tacking on the volatile qualifier.
10371         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
10372
10373 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
10374
10375         PR bootstrap/13617
10376         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
10377         (mips_declare_object): Make variadic.
10378         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
10379         mips_output_aligned_decl_common.
10380         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
10381         (mips_declare_object): Make variadic.
10382
10383 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10384
10385         * function.c (update_epilogue_consts): Teach about binary operations.
10386
10387         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
10388         previous MEM_VOLATILE in REF.
10389         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
10390         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
10391
10392 2004-02-12  Gunther Nikl  <gni@gecko.de>
10393
10394         * config.gcc: Restore support for m68k-openbsd.
10395
10396 2004-02-12  Jan Hubicka  <jh@suse.cz>
10397
10398         * tree-optimize.c (tree_rest_of_compilation): Do not release
10399         DECL_ARGUMENTS.
10400
10401 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
10402
10403         * doc/install.texi: Fix the spelling of "explicitly".
10404
10405 2004-02-11  Eric Christopher  <echristo@redhat.com>
10406
10407         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
10408         duplicate argument structure of cpp_interpret_string.
10409         * cpphash.h: Move prototype...
10410         * cpplib.h: Here.
10411         * cpplib.c: Fix calls to match new function signature.
10412
10413 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
10414
10415         PR c/456
10416         * cppexp.c (num_binary_op): Don't allow comma operators in #if
10417         constant expressions at all outside C99 mode if pedantic.
10418
10419 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
10420
10421         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
10422         (log10_optab, log2_optab): Define corresponding macros.
10423         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
10424         * genopinit.c (optabs): Implement log10_optab and log2_optab
10425         using log10?f2 and log2?f2 patterns.
10426         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
10427         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
10428         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
10429         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
10430
10431         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
10432         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
10433         log2, log2f and log2l built-ins as inline x87 intrinsics.
10434
10435 2004-02-11  Richard Henderson  <rth@redhat.com>
10436
10437         PR target/1532
10438         * flow.c (insn_dead_p): A clobber of a dead hard register is a
10439         dead insn after reload.
10440
10441 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
10442
10443         * tree.h (frame_base_decl): Add GTY marker.
10444         * var-tracking.c (frame_base_decl): Likewise.
10445
10446 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
10447
10448         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
10449         incorrect, hunk.
10450         (add_location_or_const_value_attribute): Use text_section_label,
10451         not TEXT_SECTION_NAME.
10452
10453 2004-02-11  Per Bothner  <per@bothner.com>
10454
10455         Represent column numbers using line-map's source_location.
10456         The "next available source_location" is now managed internally by
10457         line-maps.c rather than by clients.
10458         * line-map.h (struct line_map):  New field column_bits.
10459         <from_line>:  Rename field to start_location.
10460         (struct line_maps):  New fields highest_location and max_column_hint.
10461         (linemap_check_files_exited):  New declaration.
10462         (linemap_line_start):  New declaration.
10463         (linemap_add):  Remove from_line parameter; use highest_location field.
10464         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
10465         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
10466         (CURRENT_LINE_MAP):  Remove macro.
10467         (linemap_position_for_column):  New inline function.
10468         * line-map.c (linemap_init):  Clear new fields.
10469         (linemap_check_files_exited):  New function, extracted from ...
10470         (linemap_free):  Use linemap_check_files_exited.
10471         (linemap_add):  Remove from_line parameter.  Various updates.
10472         (linemap_line_start):  New function.
10473         (linemap_lookeup):  Update for new field names.
10474         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
10475         linemap_position_for_column may unpredictably change the current map,
10476         it is cleaner and simpler for us to not cache it in cpp_reader.
10477         (struct cpp_buffer):  New sysp field.
10478         Changed warned_cplusplus_comments and from_stage3 to bitfields.
10479         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
10480         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
10481         current map using linemap_lookup.
10482         (do_linemarker):  Also set buffer's sysp field.
10483         (destringize_and_run):  No longer need to decrement current line.
10484         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
10485         (search_path_head, open_file_failed):  Use buffer's sysp.
10486         (cpp_make_system_header):  Get current map using linemap_lookup.
10487         Also set buffer's sysp flag.
10488         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
10489         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
10490         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
10491         (struct cpp_reader):  ... and adding saved_line_base field.
10492         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
10493         Update accordingly.  Don't adjust line.
10494         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
10495         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
10496         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
10497         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
10498         * cpplex.c (_cpp_lex_direct):  Likewise.
10499         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
10500         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
10501         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
10502         Remove col field as it is now subsumed by src_loc.
10503         * cpperror.c:  Update various field, parameter, and macro names.
10504         (print_location):  If col==0, try SOURCE_COLUMN of line.
10505         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
10506         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
10507         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
10508         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
10509         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
10510         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
10511         (_cpp_lex_direct):  Use linemap_position_for_column.
10512         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
10513         parameter.  Instead get it from the line_table global.  Adjust callers.
10514         (print):  Remove map field.  Replace line field to src_line.
10515         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
10516         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
10517         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
10518         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
10519         * cpptrad.c (copy_comment):  Rename variable.
10520         * c-lex.c (map):  Remove static variable, for same reason we removed
10521         cpp_reader's map field.
10522         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
10523         to call linemap_lookup.
10524         (cb_line_change):  Token's line field replaced by src_loc.
10525         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
10526         Don't save new_map.
10527
10528         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
10529         source_location.
10530
10531 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
10532
10533         * config/rs6000/altivec.md (*movv4si_internal): At least one
10534         operand must be register_operand.
10535         (*movv8hi_internal1): Likewise.
10536         (*movv16qi_internal1): Likewise.
10537         (*movv4sf_internal1): Likewise.
10538
10539 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
10540
10541         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
10542         operand.
10543         (movv4hi_internal): Same.
10544         (movv2sf_internal): Same.
10545         (movv1di_internal): Same.
10546
10547 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
10548
10549         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
10550         TARGET_OLDABI consistently.
10551         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
10552         mips_va_arg,override_options,compute_frame_size,
10553         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
10554         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
10555         and TARGET_OLDABI consistently.
10556         * config/mips/mips.md (exception_receiver): Likewise.
10557         * config/mips/linux64.h: Likewise.
10558
10559 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
10560
10561         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
10562         Set AltiVec ABI and vrsave as default for ppc64 linux.
10563         (init_cumulative_args): Post error, if try to return
10564         value in AltiVec register without enable AltiVec.
10565         (function_arg_advance): Ditto for passing arguments.
10566
10567 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
10568
10569         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
10570         a label before updating its usage count.
10571
10572 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
10573
10574         * doc/install.texi: Remove extra cd.
10575
10576 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
10577
10578         * c-common.c (vector_size_helper): Remove; call
10579         reconstruct_complex_type() instead.
10580         * tree.c (reconstruct_complex_type): New function
10581         (formerly vector_size_helper() in c-common.c).
10582         (make_vector): Make externally visible.
10583         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
10584
10585 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10586
10587         * config/h8300/h8300-protos.h: Add a prototype for
10588         h8300_regs_ok_for_stm.
10589         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
10590         * config/h8300/h8300.md (stm_h8300s_2_advanced,
10591         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
10592         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
10593         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
10594         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
10595         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
10596         ldm_h8300s_4_normal, ldm_h8300s_4): Use
10597         h8300_regs_ok_for_stm().
10598
10599 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
10600
10601         PR c/14088
10602         * real.c (real_from_string): Look for 'X' as well as 'x' in
10603         hexfloat strings.
10604
10605 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10606
10607         * config/h8300/h8300.md: Remove an incorrect comment about
10608         peephole2.  Add comments.
10609
10610 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
10611
10612         PR/14058
10613         * emit-rtl.c (set_decl_incoming_rtl): New.
10614         * tree.h (set_decl_incoming_rtl): New.
10615         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
10616         DECL_INCOMING_RTL.
10617         * ada/misc.c (adjust_decl_rtl): Likewise.
10618
10619 2004-02-10  Per Bothner  <per@bothner.com>
10620
10621         * c-opts.c (c_common_post_options):   Don't emit working directory
10622         in cpp output if -P was specified.
10623
10624 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
10625
10626         PR c/14092
10627         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
10628         negate_expr back to the original type.
10629
10630 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
10631
10632         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
10633         bump retaddr here.
10634
10635 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
10636
10637         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
10638         gen_lowpart_SUBREG): Move under the file in which they
10639         are actually declared.
10640
10641 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
10642
10643         * doc/sourcebuild.texi: Add libada documentation.
10644
10645         * doc/install.texi: Update documentation on Ada build, now
10646         that the GNAT lib and tools are built automatically.
10647
10648 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
10649
10650         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
10651         && TARGET_IRIX.
10652
10653 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
10654
10655         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
10656         boundaries outside build_component_ref() call (a macro in ObjC++).
10657
10658 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
10659
10660         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
10661         (init_cumulative_args): Likewise.
10662         (a7_overlap_mentioned_p): Delete prototype.
10663         * config/xtensa/xtensa.c (struct machine_function): Replace
10664         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
10665         Add set_frame_ptr_insn field.
10666         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
10667         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
10668         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
10669         at the function entry and replace the operand with the pseudo.
10670         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
10671         argument and record this flag in CUMULATIVE_ARGS.
10672         (function_arg): Remove result_mode and special-case code to handle
10673         arguments in a7.  Instead, set need_a7_copy flag when there is an
10674         incoming argument in a7.
10675         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
10676         and use the value recorded in cfun->machine->set_frame_ptr_insn.
10677         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
10678         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
10679         special-case code.
10680         (a7_overlap_mentioned_p): Delete.
10681         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
10682         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
10683         arguments to init_cumulative_args and pass "incoming" flag instead.
10684         (BLOCK_REG_PADDING): Delete.
10685         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
10686         checks for reload_in_progress and reload_completed.  Update calls to
10687         xtensa_copy_incoming_a7.
10688         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
10689         to call xtensa_copy_incoming_a7.
10690
10691 2004-02-09  DJ Delorie  <dj@redhat.com>
10692
10693         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
10694         longer modify standard_exec_prefix, standard_bindir_prefix, or
10695         standard_startfile_prefix.
10696
10697 2004-02-09  James E Wilson  <wilson@specifixinc.com>
10698
10699         PR c++/11295
10700         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
10701         to expand_expr_real call, and pass in alt_rtl as last argument.
10702
10703         PR libstdc++/5625
10704         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
10705         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
10706         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
10707         * except.c (expand_builtin_extend_pointer): New.
10708         * except.h (expand_builtin_extend_pointer): Declare.
10709
10710 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
10711
10712         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
10713         unaligned loads and stores.
10714
10715 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10716
10717         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
10718         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
10719
10720         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
10721         * config/mips/iris5.h: ... here.
10722         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
10723
10724         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
10725         * config/mips/iris5.h: ... here.
10726
10727 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10728
10729         * configure.ac: Remove default executable files before AC_PROG_CC.
10730         * configure: Regenerate.
10731
10732 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
10733
10734         PR target/13721
10735         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
10736         print a operand other than a register.
10737
10738 2004-02-09  Roger Sayle  <roger@eyesopen.com>
10739
10740         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
10741         tree code rather than call fold_convert, which doesn't specify a
10742         default floating point to integer conversion.
10743
10744 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
10745
10746         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
10747         code to support SGS assembler.  Reformat adjacent code where possible.
10748         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
10749         definition.
10750         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
10751         for '%#'.
10752         * config/m68k/linux.h, config/m68k/m68k.c,
10753         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
10754         macros and asm_printf() format strings.
10755         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
10756         * config/m68k/linux.h: Update copyright.
10757         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
10758
10759 2004-02-08  Andreas Schwab  <schwab@suse.de>
10760             Bernardo Innocenti  <bernie@develer.com>
10761
10762         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
10763         REGISTER_PREFIX.
10764         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
10765         frame pointer register, overridable by OS targets.
10766         * (M68K_REGNAME): Macro to obtain register name for asm output,
10767         eventually replacing %a6 with M68K_FP_REG_NAME.
10768         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
10769         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
10770         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
10771         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
10772         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
10773
10774 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
10775
10776         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
10777         hook_rtx_tree_int_null.
10778         * targhooks.c (default_struct_value_rtx): Remove.
10779         * targhooks.h: Remove the prototype for
10780         default_struct_value_rtx.
10781         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
10782         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
10783         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
10784         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
10785         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
10786         config/rs6000/rs6000.c, config/s390/s390.c,
10787         config/stormy16/stormy16.c, config/v850/v850.c,
10788         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
10789         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
10790
10791 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
10792
10793         * README.Portability: Change "ISO C89" to "ISO C90".
10794         * c-parse.in (primary, initelt): Likewise.
10795
10796 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
10797
10798         * real.c (encode_ibm_extended): Normalize the input value before
10799         converting it to a double.  Handle the case where a normal value
10800         rounds to infinity.
10801
10802 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
10803
10804         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
10805         warning.
10806         * cse.c (preferrable): Change to preferable. Update all of its
10807         callers.
10808         * genautomata.c (ainsn): Change
10809         first_ainsn_with_given_equialence_num to
10810         first_ainsn_with_given_equivalence_num.  Update all of its
10811         references.
10812
10813 2004-02-08  Jan Hubicka  <jh@suse.cz>
10814
10815         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
10816
10817 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
10818
10819         * function.c (assign_parms): Fix formatting.
10820
10821 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
10822
10823         * default.h (PROMOTE_PROTOTYPES): Remove.
10824         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
10825         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
10826         EXPAND_BUILTIN_SAVEREGS): Poison.
10827         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
10828         hook_bool_tree_false.
10829         (TARGET_PROMOTE_PROTOTYPES): Likewise.
10830         * target.h: Replace SETUP_INCOMING_VARARGS with
10831         targetm.calls.setup_incoming_varargs().
10832         * targhooks.c (default_promote_function_return): Remove.
10833         (default_promote_prototypes): Likewise.
10834         (default_struct_value_rtx): Always abort().
10835         (default_expand_builtin_saveregs): Always print an error
10836         message.
10837         (default_setup_incoming_varargs): Do nothing.
10838         (default_pretend_outgoing_varargs_named): Don't depend on
10839         SETUP_INCOMING_VARARGS.
10840         * targhooks.h: Remove the prototype for
10841         default_promote_function_return and
10842         default_promote_prototypes.
10843
10844 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
10845
10846         * system.h (SHARED_SECTION_ASM_OP): Poison.
10847         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
10848         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
10849
10850 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
10851
10852         Bug 13856
10853         * c-decl.c (diagnose_mismatched_decls): Only give special
10854         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
10855         is also true.
10856         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
10857         DECL_FUNCTION_CODE when defining a built-in function.
10858         Don't update DECL_ESTIMATED_INSNS.
10859         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
10860         FUNCTION_DECLs.
10861         * tree.h: Delete DECL_ESTIMATED_INSNS.
10862         * tree-inline.c (struct inline_data): Delete inlined_insns field.
10863         (expand_call_inline, optimize_inline_calls): Don't update
10864         DECL_ESTIMATED_INSNS nor inlined_insns.
10865         * cgraphunit.c (cgraph_analyze_function): Don't update
10866         DECL_ESTIMATED_INSNS.
10867
10868 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
10869
10870         * c-common.c (shadow_warning): Delete.
10871         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
10872         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
10873         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
10874         * c-parse.in (free_parser_stacks): Delete.
10875
10876 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
10877
10878         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
10879         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
10880         Use the top level mkinstalldirs, not the one in the gcc subdir.
10881         * mkinstalldirs: Remove (from the gcc subdir).
10882
10883 2004-02-07  Roger Sayle  <roger@eyesopen.com>
10884
10885         PR middle-end/13696
10886         * fold-const.c (fold_convert): New function to provide type
10887         conversion to the middle-end without using convert.
10888         (negate_expr, associate_trees, size_diffop, omit_one_operand,
10889         operand_equal_for_comparison_p, pedantic_omit_one_operand,
10890         invert_truthvalue, optimize_bit_field_compare, range_binop,
10891         decode_field_reference, make_range, build_range_check, unextend,
10892         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
10893         fold_binary_op_with_conditional_arg, fold_inf_compare,
10894         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
10895         convert with calls to fold_convert.
10896
10897 2004-02-07  Jan Hubicka  <jh@suse.cz>
10898
10899         * genrecog.c (find_operand): add extra argument stop.
10900         (validate_pattern): Verify that mach_dup is duplicating operand
10901         defined lexically earlier.
10902
10903 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
10904
10905         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
10906         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
10907         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
10908         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
10909         config/ia64/ia64.h, config/ip2k/ip2k.h,
10910         config/iq2000/iq2000.h, config/mips/iris5.h,
10911         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
10912         config/rs6000/aix51.h, config/rs6000/aix52.h,
10913         config/rs6000/darwin.h, config/rs6000/rs6000.h,
10914         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
10915         config/sparc/linux.h, config/sparc/linux64.h,
10916         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
10917         config/xtensa/xtensa.h: Remove the definitions of
10918         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
10919         MAX_WCHAR_TYPE_SIZE.
10920         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
10921         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
10922
10923 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
10924
10925         PR bootstrap/13990
10926         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
10927         gen_rtx_NE.
10928
10929 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
10930
10931         * var-tracking.c (vt_add_function_parameters): Surround checkings by
10932         #ifdef ENABLE_CHECKING and #endif.
10933
10934 2004-02-07  Roger Sayle  <roger@eyesopen.com>
10935
10936         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
10937         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
10938         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
10939         integer types and floating point with unsafe_math_optimizations.
10940         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
10941         Optimize A - B as A + (-B), if B is easily negated.
10942
10943 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
10944
10945         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
10946         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
10947         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
10948         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
10949         Update copyright.
10950
10951 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
10952
10953         * c-ppoutput.c, var-tracking.c: Fix comment typos.
10954
10955 2004-02-06  James E Wilson  <wilson@specifixinc.com>
10956
10957         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
10958         glibc 2.3 or better.
10959
10960 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
10961
10962         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
10963         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
10964
10965 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
10966
10967         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
10968         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
10969         (SHLIB_MKMAP_OPTS): Delete.
10970         (TARGET_LIBGCC2_CFLAGS): Add -specs.
10971         (bispecs): Add rule.
10972         * config/rs6000/libgcc-ppc64.ver: New file.
10973         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
10974         (__floatdidf, __floatdisf): Optimize multiply.
10975         (__fixunstfdi): New function.
10976         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
10977         real and imag parts larger than one register.
10978         (function_arg): Correct type of reg used when fp arg split partially
10979         to stack.
10980         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
10981         and __MACH__ or __powerpc64__.
10982
10983 2004-02-06  Roger Sayle  <roger@eyesopen.com>
10984             Ulrich Weigand  <uweigand@de.ibm.com>
10985
10986         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
10987         of gen_highpart or gen_lowpart when the floating point format is
10988         wider than the result mode.
10989
10990 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
10991
10992         * dwarf2out.c (loclabel_num): Move into #ifdef
10993         DWARF2_DEBUGGING_INFO.
10994
10995 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
10996
10997         * objc/objc-act.c (build_super_template) the 'class' field of
10998         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
10999         (get_super_receiver): Likewise.
11000
11001 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
11002
11003         * reload1.c (check_eliminable_occurrences): Optimize the reset
11004         of can_eliminate.
11005         (eliminate_regs_in_insn): Likewise.
11006
11007 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
11008             Josef Zlomek  <zlomekj@suse.cz>
11009
11010         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
11011         at the beginning of function, call dwarf2out_var_location for
11012         NOTE_INSN_VAR_LOCATION note.
11013         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
11014         decl_loc_table): New.
11015         (lookup_decl_loc): New function.
11016         (add_var_loc_to_decl): New function.
11017         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
11018         only if can_use_fbreg.
11019         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
11020         functions.
11021         (loc_descriptor): Likewise. Process VAR_LOCATION.
11022         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
11023         (loc_descriptor_from_tree): Call mem_loc_descriptor with
11024         can_use_fbreg == true.
11025         (add_location_or_const_value_attribute): Added parameter enum
11026         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
11027         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
11028         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
11029         with attr == DW_AT_location.
11030         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
11031         if frame_base_decl is defined and has a location list.
11032         (gen_variable_die): Call add_location_or_const_value_attribute with
11033         attr == DW_AT_location.
11034         (dwarf2out_var_location): New function.
11035         (dwarf2out_begin_function): New function.
11036         (dwarf2out_init): Create decl_loc_table.
11037
11038 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11039
11040         * loop.c (force_movables): Transitively increase the priorities of
11041         all insns forces by an insn, not just the first one.
11042
11043 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
11044             Daniel Berlin <dberlin@dberlin.org>
11045
11046         Josef Zlomek  <zlomekj@suse.cz>
11047         * Makefile.in (var-tracking.o): New.
11048         * common.opt (fvar-tracking): New.
11049         * flags.h (flag_var_tracking): New.
11050         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
11051         * opts.c (common_handle_option): Add OPT_fvar_tracking.
11052         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
11053         * rtl.c (note_insn_name): Likewise.
11054         * rtl.def (VAR_LOCATION): New.
11055         * rtl.h (NOTE_VAR_LOCATION): New.
11056         (NOTE_VAR_LOCATION_DECL): New.
11057         (NOTE_VAR_LOCATION_LOC): New.
11058         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
11059         (variable_tracking_main): New exported function.
11060         * timevar.def (TV_VAR_TRACKING): New.
11061         * toplev.c (enum dump_file_index): Added DFI_vartrack.
11062         (dump_file): "vartrack" was added (-dV).
11063         (flag_var_tracking): New.
11064         (f_options): "var-tracking" was added.
11065         (rest_of_handle_variable_tracking): New function.
11066         (rest_of_compilation): Run variable tracking.
11067         (process_options): If user has not specified flag_var_tracking set it
11068         according to optimize, debug_info_level and debug_hooks.
11069         * tree.h (frame_base_decl): New.
11070         * var-tracking.c: New file.
11071         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
11072         (ia64_override_options): Set flags to run variable tracking in machine
11073         dependent reorg instead of toplev.c.
11074         (ia64_reorg): Run variable tracking if wanted.
11075         * doc/invoke.texi: Mention variable tracking in -dV,
11076         add and -fvar-tracking.
11077         * doc/passes.texi: Added variable tracking pass.
11078
11079         Daniel Berlin <dberlin@dberlin.org>
11080         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
11081         * dbxout.c (dbx_debug_hooks): Likewise.
11082         (xcoff_debug): Likewise.
11083         * debug.c (do_nothing_debug_hooks): Likewise.
11084         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
11085         * dwarfout.c (dwarf_debug_hooks): Likewise.
11086         * sdbout.c (sdb_debug_hooks): Likewise.
11087         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11088         * final.c (final_scan_insn): Call var_location debug hook for each
11089         NOTE_INSN_VAR_LOCATION.
11090
11091 2004-02-06  Jan Hubicka  <jh@suse.cz>
11092
11093         * flow.c (update_life_info): Allocate reg_deaths when called from
11094         scheudler.
11095         (attempt_auto_inc):  Update life ranges accordingly.
11096
11097 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11098
11099         PR debug/11816
11100         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
11101
11102 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11103
11104         * cfganal.c (flow_call_edges_add): Never split a libcall block.
11105
11106 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
11107
11108         * dwarf2out.c (output_loc_list): Don't use deltas if we have
11109         a separate line info table in use.
11110         Use the correct size for terminators.
11111         (output_die): Use offset, not delta.
11112
11113 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
11114
11115         * doc/invoke.texi: Remove the pni option from -mfpmath=.
11116
11117 2004-02-06  Jan Hubicka  <jh@suse.cz>
11118
11119         * recog.c (split_all_insns): Do not update reg info.
11120         * regrename.c (regrename_optimize): Likewise.
11121         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
11122         * flow.c (struct propagate_block_info): Add insn_num field.
11123         (reg_deaths): New array.
11124         (life_analysis): Free reg_deaths info.
11125         (allocate_reg_life_data): Allocate reg_deaths array.
11126         (propagate_one_insn): Use new array.
11127         (init_propagate_block): Initialize it.
11128         (free_propagate_block_info): Finish compuation of
11129         REG_LIVE_LENGTH
11130         (attempt_auto_inc): Sanity check that REG_INFO is not
11131         computed at same time.
11132         (mark_used_regs): Update new array.
11133
11134         * reg-stack.c (subst_stack_regs): Unshare clobbers before
11135         substitution.
11136
11137 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
11138
11139         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
11140         *extendqisi2_short_displ.
11141
11142 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
11143
11144         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
11145         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
11146         (emit_library_call_value_1): Likewise pass nargs.
11147         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
11148         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
11149         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
11150         parameter instead of scanning TYPE_ARGS_TYPES to count args.
11151         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
11152         prototype.
11153         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
11154         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
11155         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
11156         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
11157         INIT_CUMULATIVE_ARGS.
11158         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
11159         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
11160         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
11161         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
11162         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
11163         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
11164         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11165         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
11166         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
11167         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
11168         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
11169         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
11170
11171 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
11172
11173         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
11174         possible.
11175
11176 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
11177
11178         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
11179         note containing (plus (reg) (const_int)), where reg is an
11180         eliminable reg, then perform the register elimination without
11181         depending on eliminate_regs().
11182
11183 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
11184
11185         * config/arc/arc.c (arc_return_in_memory): Check the return
11186         value of int_size_in_bytes against -1.  Don't check
11187         TREE_ADDRESSABLE.
11188         * config/avr/avr.c (avr_return_in_memory): Check the return
11189         value of int_size_in_bytes against -1.
11190         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
11191         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
11192         Likewise.
11193         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
11194         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
11195         Likewise.
11196
11197 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
11198
11199         * config/frv/frv-protos.h: Remove the prototype for
11200         frv_setup_incoming_varargs.
11201         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
11202         (frv_setup_incoming_varargs): Make it static.
11203         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
11204
11205 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
11206
11207         * config/fr30/fr30-protos.h: Remove the prototype for
11208         fr30_setup_incoming_varargs.
11209         Update the prototypes for fr30_num_arg_regs and
11210         fr30_function_arg_partial_nregs.
11211         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
11212         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
11213         (fr30_setup_incoming_varargs): Make it static.
11214         Add argument second_time.  Don't do anything when second_time
11215         is nonzero.
11216         (fr30_num_arg_regs): Change the type of the first argument to
11217         enum machine_mode.
11218         (fr30_function_arg_partial_nregs): Change the type of the
11219         second argument to enum machine_mode.
11220         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
11221         (SETUP_INCOMING_VARARGS): Remove.
11222
11223 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
11224
11225         * config/arc/arc-protos.h: Remove the prototype for
11226         arc_setup_incoming_varargs.
11227         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
11228         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
11229         (arc_setup_incoming_varargs): Make it static.
11230         (arc_external_libcall): Likewise.
11231         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
11232         Remove the commented-out definition of
11233         ASM_OUTPUT_EXTERNAL_LIBCALL.
11234
11235 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11236
11237         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
11238         to $$(slibdir) in the installation commands.
11239
11240 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
11241
11242         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
11243         with inner_regno, not regno.
11244         * rtlanal.c (refers_to_regno_p): Same.
11245
11246 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
11247
11248         * config.gcc: Remove i370 support.
11249
11250 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
11251
11252         * doc/install.texi:  Update automake and autoconf version
11253         requirements.  Note where to find gcj automake version.
11254
11255 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
11256
11257         * Makefile.in (generate-manpages): Move dependencies to ...
11258         (man): here.
11259         * doc/makefile.texi: Document new targets.
11260         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
11261
11262 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
11263
11264         PR/13485
11265         Makefile.in (srcextra):  Add a level of indirection to ...
11266         (gcc.srcextra): ... here.
11267         (po-generated): Delete.
11268         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
11269         options.c.
11270         (start.encap): Remove superfluous lang.srcextra dependency.
11271         objc/Make-lang.in (po-generated):  Delete.
11272
11273 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
11274
11275         * config/ia64/ia64.c (REG_GP): Remove.
11276
11277 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11278
11279         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
11280
11281 2004-02-05  Devang Patel  <dpatel@apple.com>
11282
11283         * dwarf2out.c (force_type_die): Look up input type itself
11284         instead of root_type() of type.
11285
11286 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
11287
11288         * config/s390/s390.md ("*tmqidi_ext"): New insn.
11289         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
11290         pre-reload splitters are transformed to post-reload
11291         define_insn_and_split patterns.
11292         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
11293
11294 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
11295
11296         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
11297         TARGET_PROMOTE_PROTOTYPES.
11298
11299 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11300
11301         PR middle-end/13750
11302         Revert:
11303         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
11304         PR pch/13361
11305         * c-typeck.c (constructor_asmspec): Delete.
11306         (struct initializer_stack): Delete field 'asmspec'.
11307         (start_init): Delete saving of asmspec.
11308         (finish_init): Don't update constructor_asmspec.
11309         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
11310         * stmt.c (expand_asm): Duplicate strings from tree.
11311         (expand_asm_operands): Likewise.
11312         * tree.c (tree_size): Update computation of size of STRING_CST.
11313         (make_node): Don't make STRING_CST nodes.
11314         (build_string): Allocate string with tree node.
11315         * tree.def (STRING_CST): Update comment.
11316         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
11317         (tree_string): Place contents of string in tree node.
11318         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
11319         from tree.
11320
11321 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
11322
11323         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
11324         msgid.
11325
11326 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
11327
11328         * config/rs6000/altivec.md (*movv4si_internal): At least one
11329         operand must be altivec_register_operand.
11330         (*movv8hi_internal1): Likewise.
11331         (*movv16qi_internal1): Likewise.
11332         (*movv4sf_internal1): Likewise.
11333
11334 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
11335
11336         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
11337         * configure: Regenerate.
11338
11339 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
11340
11341         * doc/install.texi: Update description of --gxx-include-dir to
11342         give correct default value.
11343
11344 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
11345
11346         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
11347         8 with MAC_REG.
11348
11349 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
11350
11351         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
11352         gen_rtx_PARALLEL.
11353
11354 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
11355
11356         * emit-rtl.c: Update the comment about the file.
11357
11358 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
11359
11360         * sourcebuild.texi (Test Idioms): Update testcase naming
11361         conventions.
11362
11363 2004-02-04  Per Bothner  <per@bothner.com>
11364
11365         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
11366         * c-ppoutput.c (pp_dir_change):  New function.
11367         * c-common.h (pp_dir_change):  New declaration.
11368         * cpplib.h (struct cpp_options):  Remove working_directory field.
11369         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
11370         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
11371         Don't handle -fworking_directory here, but in c_common_post_options.
11372         (read_original_directory): Don't back up when done.
11373         Don't clear no-longer used working_directory flag.
11374         * cpplib.h:  Update declarations to match.
11375         * c-lex.c (cb_dir_change):  Move to c-opts.c.
11376         (init_c_lex):  Don't set dir_change callback here, since we want
11377         to set it even if flag_preprocess_only.
11378         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
11379         (c_common_post_options):  Set dir_change callback.
11380         Call pp_dir_change if approporiate.
11381         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
11382         unneeded parameter and result. Do LC_RENAME for <built-in>.
11383         (c_common_post_options):  Call cpp_read_main_file here instead.
11384         (c_common_init):  Update accordingly.
11385         (push_command_line_include):  Don't cpp_push_main_file.
11386         Do LC_RENAME rather than LC_LEASE to get back to main file.
11387         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
11388         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
11389         files, but call finish_options for all files.
11390         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
11391         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
11392         cpp_find_main_file + cpp_push_main_file.
11393         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
11394         * opts.c (handle_options):  Only set main_input_filename first time.
11395
11396 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
11397
11398         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
11399
11400 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
11401
11402         * reload.c (find_equiv_reg): When checking for register overlap,
11403         don't index hard_regno_nregs with a pseudo-reg.
11404
11405 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11406
11407         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
11408
11409 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
11410
11411         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
11412         against FIRST_PSEUDO_REGISTER.
11413
11414 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11415
11416         * Makefile.in: Move target, host overrides after per-language
11417         fragments.
11418
11419         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
11420         (GNATLIBCFLAGS): Remove -g.
11421
11422 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11423
11424         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
11425         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
11426         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
11427         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
11428         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
11429         config/sparc/sparc.c, config/vax/vax.c: Revert the
11430         replacements of "FALLTHRU" with "Fall through" done in the
11431         previous patch.
11432
11433 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11434
11435         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
11436         config/arm/arm.c, config/arm/arm.md,
11437         config/cris/cris-protos.h, config/fr30/fr30.c,
11438         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
11439         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
11440         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
11441         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
11442         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
11443         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
11444         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
11445         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
11446         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
11447         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
11448         config/s390/s390.md, config/sparc/netbsd-elf.h,
11449         config/sparc/openbsd.h, config/sparc/sparc.c,
11450         config/xtensa/lib2funcs.S: Fix comment formatting.
11451
11452 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11453
11454         * config/alpha/alpha.c, config/arc/arc.c,
11455         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
11456         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
11457         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
11458         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
11459         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
11460         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
11461         config/iq2000/iq2000.c, config/m32r/m32r.c,
11462         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
11463         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
11464         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
11465         config/rs6000/rs6000.h, config/sparc/sparc.c,
11466         config/vax/vax.c: Fix comment typos.  Follow spelling
11467         conventions.
11468
11469 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11470
11471         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
11472         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
11473         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
11474         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
11475         config/arm/fpa.md, config/arm/iwmmxt.md,
11476         config/arm/netbsd-elf.h, config/arm/netbsd.h,
11477         config/m68hc11/m68hc11.md, config/mips/iris5.h,
11478         config/mn10300/mn10300.md, config/rs6000/altivec.md,
11479         config/sparc/netbsd-elf.h: Update copyright.
11480
11481 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
11482
11483         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
11484         for all modes whose size is greater than 8 bytes if ARCH32.
11485         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
11486         by reference if ARCH32.
11487
11488 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
11489
11490         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
11491
11492 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11493
11494         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
11495         to before adddi3 insn patterns.
11496         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
11497         "reload_insi"): Move to before addsi3 insn patterns.
11498
11499 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
11500
11501         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
11502         parameter.  Use it instead of current_function_is_thunk.
11503         * function.h (struct function): Update documentation for is_thunk.
11504         * tree.h (CALL_FROM_THUNK_P): New macro.
11505         * config/alpha/alpha.c (alpha_sa_mask): Do not check
11506         no_new_pseudos when testing current_function_is_thunk.
11507         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
11508
11509 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11510
11511         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
11512         TARGET_SETUP_INCOMING_VARARGS.
11513
11514 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11515
11516         * emit-rtl.c (gen_rtx): Remove.
11517         * genattrtab.c: Don't mention gen_rtx in a comment.
11518         * rtl.h: Remove the prototype for gen_rtx.
11519         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
11520
11521 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11522
11523         * config/arc/arc.h, config/fr30/fr30.h
11524         (SETUP_INCOMING_VARARGS): Remove the target-independent
11525         comments.
11526         * doc/tm.texi: Don't mention deprecated target macros.
11527
11528 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11529
11530         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
11531         target-independent comment.
11532
11533 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11534
11535         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
11536         mention deprecated target macros.
11537
11538 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
11539
11540         * config.gcc: Remove obsolete ports and configurations.
11541         * config/linux-aout.h, config/netware.h,
11542         config/t-linux-gnulibc1, config/d30v/abi,
11543         config/d30v/d30v-protos.h, config/d30v/d30v.c,
11544         config/d30v/d30v.h, config/d30v/d30v.md,
11545         config/d30v/libgcc1.asm, config/d30v/t-d30v,
11546         config/dsp16xx/dsp16xx-modes.def,
11547         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
11548         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
11549         config/i370/README, config/i370/i370-c.c,
11550         config/i370/i370-protos.h, config/i370/i370.c,
11551         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
11552         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
11553         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
11554         config/i386/moss.h, config/i386/netware.h,
11555         config/i386/svr3.ifile, config/i386/svr3dbx.h,
11556         config/i386/svr3gas.h, config/i386/svr3z.ifile,
11557         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
11558         config/i960/i960-c.c, config/i960/i960-coff.h,
11559         config/i960/i960-modes.def, config/i960/i960-protos.h,
11560         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
11561         config/i960/rtems.h, config/i960/t-960bare,
11562         config/m68k/hp310.h, config/m68k/hp320.h,
11563         config/m68k/hp320base.h, config/m68k/m68kv4.h,
11564         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
11565         Remove.
11566         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
11567         doc/md.texi: Remove mentions of obsolete ports.
11568
11569 2004-02-04  Jan Hubicka  <jh@suse.cz>
11570
11571         * alias.c (find_base_term, get_addr):  Do not dereference NULL
11572         pointer when all VALUE's locations has been invalidated.
11573         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
11574
11575 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
11576
11577         * doc/invoke.texi (x86 options): Fix spelling/wording.
11578
11579 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
11580
11581         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
11582         put the original string in a comment.
11583         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
11584         * config/mips/mips.c (mips_output_ascii): Likewise.
11585         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
11586
11587 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
11588
11589         * system.h (GIV_SORT_CRITERION): Poison.
11590         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
11591         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
11592
11593 2004-02-03  Roger Sayle  <roger@eyesopen.com>
11594
11595         PR target/9348
11596         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
11597         multiplies with a multiplication of the wrong signedness, its the
11598         signedness of the multiplication that we've performed that needs to
11599         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
11600         if expand_mult_highpart_adjust places the result in target.
11601
11602 2004-02-03  Richard Henderson  <rth@redhat.com>
11603
11604         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
11605
11606 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
11607
11608         * config.gcc (sh[234]l): Use little endian fragments.
11609
11610 2004-02-03  Paul Koning  <pkoning@equallogic.com>
11611
11612         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
11613         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
11614         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
11615         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
11616         floating point format.
11617         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
11618         the above functions.
11619         (output_move_quad): Output float values in correct target format.
11620         (legitimate_const_double_p): New function.
11621         * config/pdp11/pdp11.h: Fix typos.
11622         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
11623         (TARGET_FLOAT_FORMAT): Ditto.
11624         (pdp11_f_format, pdp11_d_format): Add external declarations.
11625         (MAX_REGS_PER_ADDRESS): Corrected.
11626         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
11627         (PRINT_OPERAND): Output float literals in target format.
11628
11629 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
11630
11631         PR c++/13975
11632         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
11633         TI_PRIVATE.
11634         (access_public_node): Redefine.
11635         (access_protected_node): Likewise.
11636         (access_private_node): Likewise.
11637         * tree.c (build_common_tree_nodes): Create access_public_node,
11638         access_protected_node, and access_private_node.
11639
11640 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
11641
11642         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
11643         (MASK_INLINE_INT_DIV_THR): Ditto.
11644         (MASK_INLINE_SQRT_LAT): Ditto.
11645         (MASK_INLINE_SQRT_THR): Ditto.
11646         (MASK_DWARF2_ASM): Ditto.
11647         (MASK_EARLY_STOP_BITS): Ditto.
11648
11649 2004-02-02  Paul Brook  <paul@codesourcery.com>
11650
11651         Merge from csl-arm-branch.
11652
11653         2004-01-30  Paul Brook  <paul@codesourcery.com>
11654
11655         * aof.h (REGISTER_NAMES): Add vfp reg names
11656         (ADDITIONAL_REGISTER_NAMES): Ditto.
11657         * aout.h (REGISTER_NAMES): Ditto.
11658         (ADDITIONAL_REGISTER_NAMES): Ditto.
11659         * arm-protos.h: Update/Add Prototypes.
11660         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
11661         Only allow 0.0 for VFP.
11662         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
11663         (values_fp): Rename from values_fpa.  Update Users.
11664         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
11665         Update users.  Only check valid constants for this hardware.
11666         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
11667         Only allow consts for FPA.
11668         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
11669         Only allow consts for FPA.
11670         (use_return_insn): Check for saved VFP regs.
11671         (arm_legitimate_address_p): Handle VFP DFmode addressing.
11672         (arm_legitimize_address): Ditto.
11673         (arm_general_register_operand): New function.
11674         (vfp_mem_operand): New function.
11675         (vfp_compare_operand): New function.
11676         (vfp_secondary_reload_class): New function.
11677         (arm_float_compare_operand): New function.
11678         (vfp_print_multi): New function.
11679         (vfp_output_fstmx): New function.
11680         (vfp_emit_fstm): New function.
11681         (arm_output_epilogue): Output VPF reg restore code.
11682         (arm_expand_prologue): Output VFP reg save code.
11683         (arm_print_operand): Add 'P'.
11684         (arm_hard_regno_mode_ok): Return modes for VFP regs.
11685         (arm_regno_class): Return classes for VFP regs.
11686         (arm_compute_initial_elimination_offset): Include space for VFP regs.
11687         (arm_get_frame_size): Ditto.
11688         * arm.h (FIXED_REGISTERS): Add VFP regs.
11689         (CALL_USED_REGISTERS): Ditto.
11690         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
11691         (FIRST_VFP_REGNUM): Define.
11692         (LAST_VFP_REGNUM): Define.
11693         (IS_VFP_REGNUM): Define.
11694         (FIRST_PSEUDO_REGISTER): Include VFP regs.
11695         (HARD_REGNO_NREGS): Handle VFP regs.
11696         (REG_ALLOC_ORDER): Add VFP regs.
11697         (enum reg_class): Add VFP_REGS.
11698         (REG_CLASS_NAMES): Ditto.
11699         (REG_CLASS_CONTENTS): Ditto.
11700         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
11701         (REG_CLASS_FROM_LETTER): Add 'w'.
11702         (EXTRA_CONSTRAINT_ARM): Add 'U'.
11703         (EXTRA_MEMORY_CONSTRAINT): Define.
11704         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
11705         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
11706         (REGISTER_MOVE_COST): Ditto.
11707         (PREDICATE_CODES): Add arm_general_register_operand,
11708         arm_float_compare_operand and vfp_compare_operand.
11709         * arm.md (various): Rename as above.
11710         (divsf3): Enable when TARGET_VFP.
11711         (divdf3): Ditto.
11712         (movdfcc): Ditto.
11713         (sqrtsf2): Ditto.
11714         (sqrtdf2): Ditto.
11715         (arm_movdi): Disable when TARGET_VFP.
11716         (arm_movsi_insn): Ditto.
11717         (movsi): Only split with general regs.
11718         (cmpsf): Use arm_float_compare_operand.
11719         (push_fp_multi): Restrict to TARGET_FPA.
11720         (vfp.md): Include.
11721         * vfp.md: New file.
11722         * fpa.md (various): Rename as above.
11723         * doc/md.texi: Document ARM w and U constraints.
11724
11725         2004-01-15  Paul Brook  <paul@codesourcery.com>
11726
11727         * config.gcc: Add with_fpu.  Allow with-float=softfp.
11728         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
11729         Break out of loop when we find a float-abi.  Fix typo.
11730         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
11731         Set -mfloat-abi=.
11732         * doc/install.texi: Document --with-fpu.
11733
11734         2003-01-14  Paul Brook  <paul@codesourcery.com>
11735
11736         * config.gcc (with_arch): Add armv6.
11737         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
11738         * config/arm/arm.c (arm_overrride_options): Ditto.
11739
11740         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
11741
11742         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
11743         (FL_ARCH6): Renamed from FL_ARCH6J.
11744         (arm_arch3m): Renamed from arm_fast_multiply.
11745         (arm_arch6): Renamed from arm_arch6j.
11746         * arm.h: Update all uses of above.
11747         * arm-cores.def: Likewise.
11748         * arm.md: Likewise.
11749
11750         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
11751         not arm6j.  Add entry for arch armv6.
11752
11753         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
11754
11755         * arm.c (arm_emit_extendsi): Delete.
11756         * arm-protos.h (arm_emit_extendsi): Delete.
11757         * arm.md (zero_extendhisi2): Also handle zero-extension of
11758         non-subregs.
11759         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
11760         (thumb_zero_extendhisi2): Only match if not v6.
11761         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
11762         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
11763         (thumb_extendqisi2): Likewise.
11764         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
11765         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
11766         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
11767         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
11768         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
11769         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
11770         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
11771         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
11772         (arm_extendqisi2addsi): Likewise.
11773
11774         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
11775
11776         Revert this change:
11777         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
11778         + REG addressing modes.
11779
11780         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
11781         + REG addressing modes.
11782
11783         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
11784
11785         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
11786         CONSTANT_P_RTX.
11787
11788         2003-30-12  Paul Brook  <paul@codesourcery.com>
11789
11790         * longlong.h: protect arm inlines with !defined (__thumb__)
11791
11792         2003-30-12  Paul Brook  <paul@codesourcery.com>
11793
11794         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
11795
11796         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
11797
11798         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
11799         change.
11800
11801         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
11802
11803         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
11804         to the virtual incoming args pointer for downward stacks.
11805
11806         2003-12-29  Paul Brook  <paul@codesourcery.com>
11807
11808         * config/arm/arm-cores.def: Add cost function.
11809         * config/arm/arm.c (arm_*_rtx_costs): New functions.
11810         (arm_rtx_costs): Remove
11811         (struct processors): Add rtx_costs field.
11812         (all_cores, all_architectures): Ditto.
11813         (arm_override_options): Set targetm.rtx_costs.
11814         (thumb_rtx_costs): New function.
11815         (arm_rtx_costs_1): Remove cases handled elsewhere.
11816         * config/arm/arm.h (processor_type): Add COSTS parameter.
11817
11818         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
11819
11820         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
11821         (arm926ejs.md): Include it.
11822         * config/arm/arm926ejs.md: New pipeline description.
11823
11824         2003-12-24  Paul Brook  <paul@codesourcery.com>
11825
11826         * config/arm/arm.c (arm_arch6j): New variable.
11827         (arm_override_options): Set it.
11828         (arm_emit_extendsi): New function.
11829         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
11830         * config/arm/arm.h (arm_arch6j): Declare.
11831         * config/arm/arm.md: Add sign/zero extend insns.
11832
11833         2003-12-23  Paul Brook  <paul@codesourcery.com>
11834
11835         * config/arm/arm.c (all_architectures): Add armv6.
11836         * doc/invoke.texi: Document it.
11837
11838         2003-12-19  Paul Brook  <paul@codesourcery.com>
11839
11840         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
11841         insn patterns to match.
11842         * config/arm/arm-generic.md: Ditto.
11843         * config/arm/cirrus.md: Ditto.
11844         * config/arm/fpa.md: Ditto.
11845         * config/amm/iwmmxt.md: Ditto.
11846         * config/arm/arm1026ejs.md: Ditto.
11847         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
11848         for 11_loadb.
11849
11850         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
11851
11852         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
11853         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
11854         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
11855         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
11856         arm_no_early_mul_dep): Correctly deal with conditional execution,
11857         parallels and single shift operations.
11858         (arm_no_early_alu_shift_value_dep): Define.
11859         * arm.md (attr type): Replace 'normal' with 'alu',
11860         'alu_shift' and 'alu_shift_reg'.
11861         (attr core_cycles): Adjust.
11862         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
11863         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
11864         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
11865         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
11866         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
11867         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
11868         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
11869         attribute appropriately.
11870         * config/arm/arm1026ejs.md (alu_op): Adjust.
11871         (alu_shift_op, alu_shift_reg_op): New.
11872         * config/arm/arm1136.md: Add better bypasses for early
11873         registers. Remove load[234] and store[234] bypasses.
11874         (11_alu_op): Adjust.
11875         (11_alu_shift_op, 11_alu_shift_reg_op): New.
11876
11877         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
11878
11879         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
11880         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
11881         * config/arm/arm.c (arm_no_early_store_addr_dep,
11882         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
11883         * config/arm/arm1026ejs.md: Add load-store bypass.
11884         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
11885         Add bypasses between instructions.
11886
11887         2003-12-10  Paul Brook  <paul@codesourcery.com>
11888
11889         * config/arm/arm.c (arm_fpu_model): New variable.
11890         (arm_fload_abi): New variable.
11891         (target_fpe_name): Rename from target_fp_name.
11892         (target_fpu_name): New variable.
11893         (arm_is_cirrus): Remove.
11894         (fpu_desc): New struct.
11895         (all_fpus): Define.
11896         (pf_model_for_fpu): Define.
11897         (all_loat_abis): Define.
11898         (arm_override_options): Set fp arch flags based on -mfpu=
11899         and -float-abi=.
11900         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
11901         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
11902         (*): Use new TARGET_* flags.
11903         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
11904         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
11905         (TARGET_SOFT_FLOAT): Ditto.
11906         (TARGET_SOFT_FLOAT_ABI): New.
11907         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
11908         TARGET_HARD_FLOAT.
11909         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
11910         (TARGET_OPTIONS): Add -mfpu=.
11911         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
11912         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
11913         (arm_pf_model): Define.
11914         (arm_float_abi_type): Define.
11915         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
11916         * config/arm/arm.md: Use new TARGET_* flags.
11917         * config/arm/cirrus.md: Ditto.
11918         * config/arm/fpa.md: Ditto.
11919         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
11920         * config/arm/semi.h (ASM_SPEC): Ditto.
11921         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
11922         (FPUTYPE_DEFAULT): Set to VFP.
11923         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
11924
11925         2003-11-22  Phil Edwards  <phil@codesourcery.com>
11926
11927         PR target/12476
11928         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
11929         'bx' instead of 'b' to avoid branch range restrictions.  Output
11930         the thunk immediately before the thunked-to function.
11931         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
11932         .thumb_func if a thunk is being generated.  Emit .code 16 along
11933         with .thumb_func if a thunk is not being generated.
11934
11935         2003-11-15  Nicolas Pitre <nico@cam.org>
11936
11937         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
11938         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
11939         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
11940         (lshrdi3_iwmmxt): Renamed from lshrdi3.
11941         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
11942
11943         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
11944             Ian Lance Taylor  <ian@wasabisystems.com>
11945
11946         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
11947         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
11948
11949         2003-11-05  Phil Edwards  <phil@codesourcery.com>
11950
11951         * config/arm/arm.md (insn):  Add new V6 instruction names.
11952         (generic_sched):  New attr.
11953         * config/arm/arm-generic.md:  Use generic_sched here.
11954         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
11955         stages of pipeline.  Adjust latency counts accordingly.
11956         * config/arm/arm1136jfs.md:  New file.
11957
11958         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
11959
11960         * config/arm/arm.h (processor_type): New enumeration type.
11961         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
11962         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
11963         (CPP_CPU_ARCH_SPEC): Likewise.
11964         * config/arm/arm.c (arm_tune): New variable.
11965         (all_cores): Use cores.def.
11966         (all_architectures): Add representative processor.
11967         (arm_override_options): Restructure way in which tuning
11968         information is deduced.
11969         * arm.md: Update "insn" and "type" attributes throughout.
11970         (insn): New attribute.
11971         (type): Compute "mult" from "insn" attribute.  Add load2,
11972         load3, load4 alternatives.
11973         (arm automaton): Move to arm-generic.md.
11974         * config/arm/arm-cores.def: New file.
11975         * config/arm/arm-generic.md: Likewise.
11976         * config/arm/arm1026ejs.md: Likewise.
11977
11978 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
11979
11980         * doc/invoke.texi (SPARC options): Remove -mflat and
11981         all -mxxx (xxx:chip) options.
11982         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
11983         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
11984         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
11985         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
11986         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
11987         * config/sparc/sparc.c: Likewise.
11988         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
11989         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
11990         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
11991         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
11992         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
11993         (sparc_flat_must_save_register_p): Likewise.
11994         (sparc_flat_compute_frame_size): Likewise.
11995         (sparc_flat_save_restore): Likewise.
11996         (sparc_flat_function_prologue): Likewise.
11997         (sparc_flat_function_epilogue): Likewise.
11998         (sparc_flat_epilogue_delay_slots): Likewise.
11999         (sparc_flat_eligible_for_epilogue_delay): Likewise.
12000         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
12001         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
12002         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
12003         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
12004         (CONDITIONAL_REGISTER_USAGE): Likewise.
12005         (FRAME_POINTER_REQUIRED): Likewise.
12006         (INITIAL_ELIMINATION_OFFSET): Likewise.
12007         (BASE_RETURN_VALUE_REG): Likewise.
12008         (BASE_OUTGOING_VALUE_REG): Likewise.
12009         (BASE_PASSING_ARG_REG): Likewise.
12010         (BASE_INCOMING_ARG_REG): Likewise.
12011         (INCOMING_REGNO): Likewise.
12012         (OUTGOING_REGNO): Likewise.
12013         (LOCAL_REGNO): Likewise.
12014         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
12015         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
12016         (EPILOGUE_USES): Likewise.
12017         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
12018         ("flat" attribute): Delete.
12019         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
12020         handling.
12021         (call followed by jump define_peephole's): Delete.
12022         (exception_receiver): Likewise.
12023         (builtin_setjmp_receiver): Likewise.
12024         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
12025
12026 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
12027
12028         PR c/11658
12029         PR c/13994
12030         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
12031         on langhooks.h.
12032         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
12033         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
12034         Include langhooks.h.  Replace c_common_truthvalue_conversion
12035         with the truthvalue_conversion language hook throughout.
12036         (expr_no_commas): Call default_conversion before save_expr
12037         for the first term of the production 'x ? : y'.
12038         * c-common.c (c_common_truthvalue_conversion): Remove
12039         obsolete block.  Invoke recursively the hook instead
12040         of this function.
12041         * c-convert.c (convert): handle ERROR_MARK_NODE.
12042         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
12043         returned by the truthvalue_conversion language hook.
12044         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
12045         c_objc_common_truthvalue_conversion.
12046         * c-objc-common.c (c_objc_common_truthvalue_conversion):
12047         New function.
12048         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
12049         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
12050         c_objc_common_truthvalue_conversion.
12051
12052 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
12053
12054         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
12055         of gen_rtx.
12056         (LIBCALL_VALUE): Likewise.
12057         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
12058         gen_rtx_CC0 instead of gen_rtx.
12059         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
12060         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
12061         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
12062         gen_rtx.
12063         (m68hc11_emit_logical): Likewise.
12064
12065 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
12066
12067         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
12068         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
12069         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
12070         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
12071         config/mips/mips.md, config/mmix/mmix.c,
12072         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
12073         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
12074         config/rs6000/altivec.md, config/s390/s390.c,
12075         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
12076         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
12077         Use const0_rtx instead of GEN_INT (0).  Do the same for other
12078         constants that are readily available.
12079
12080 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
12081
12082         * doloop.c, optabs.c, regmove.c, sched-deps.c,
12083         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
12084         instead of GEN_INT (0).  Do the same for other constants that
12085         are readily available.
12086
12087 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
12088
12089         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
12090         gen_rtx.
12091         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
12092         instead of gen_rtx.
12093         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
12094         gen_rtx.
12095         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
12096         gen_rtx_ASHIFT instead of gen_rtx.
12097         (udivmodqi4): Likewise.
12098
12099 2004-02-02  Richard Henderson  <rth@redhat.com>
12100
12101         PR target/13789
12102         * expr.c (store_expr): Use force_operand before emit_move_insn.
12103
12104 2004-02-02  Jeff Law  <law@redhat.com>
12105             Roger Sayle  <roger@eyesopen.com>
12106
12107         * tree.c (commutative_tree_code, associative_tree_code): New
12108         functions.
12109         (iterative_hash_expr): Use commutative_tree_code.
12110         * tree.h (commutative_tree_code, associative_tree_code): Declare.
12111         * fold-const.c (operand_equal_p): Use commutative_tree_code
12112         rather than inlining the commutativity check.
12113         (fold): Likewise.
12114
12115 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
12116
12117         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
12118         * config/frv/frv-protos.h: Remove the prototype for
12119         frv_function_arg_keep_as_reference.
12120         * config/frv/frv.c (frv_function_arg_keep_as_reference):
12121         Remove.
12122         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
12123         * config/stormy16/stormy16.h: Remove the commented-out
12124         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
12125
12126 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
12127
12128         PR target/13914
12129         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
12130         for retaddr_column.
12131
12132 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
12133
12134         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
12135         gen_rtx.
12136
12137 2004-02-02  Eric Christopher  <echristo@redhat.com>
12138             Zack Weinberg  <zack@codesourcery.com>
12139
12140         * c-opts.c (c_common_handle_option): Add -finput-charset.
12141         * c.opt: Ditto.
12142         * cppcharset.c (one_iso88591_to_utf8): Remove.
12143         (convert_iso88591_utf8): Ditto.
12144         (conversion_tab): Remove 8859-1 converter.
12145         (_cpp_input_to_utf8): Remove.
12146         (_cpp_init_iconv_buffer): Ditto.
12147         (_cpp_close_iconv_buffer): Ditto.
12148         (_cpp_convert_input): New function.
12149         (_cpp_default_encoding): Ditto.
12150         * cpphash.h: Add/remove prototypes for above.
12151         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
12152         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
12153         for narrow execution and input character sets.
12154         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
12155         * doc/cppopts.texi: Document -finput-charset.
12156
12157 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
12158
12159         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
12160         against FIRST_PSEUDO_REGISTER.
12161
12162 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
12163
12164         * doc/invoke.texi (SPARC options): Further improve.
12165
12166 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
12167
12168         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
12169         config/h8300/h8300.c, config/ip2k/ip2k.md,
12170         config/iq2000/iq2000.c, config/mips/mips.c,
12171         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
12172         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
12173         config/v850/v850.md: Fix indentation.
12174
12175 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
12176
12177         * config/sparc/sparc.c (function_arg_slotno): Align TImode
12178         arguments on a 16-byte boundary in the parameter array if ARCH64.
12179         Split handling of TFmode.
12180
12181 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
12182
12183         * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
12184         Don't test CONSTANT_P (x).
12185         (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
12186         ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
12187         Fix misindentation.
12188
12189 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
12190
12191         * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
12192
12193 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
12194
12195         * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
12196         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
12197         config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
12198         config/iq2000/iq2000.c, config/m32r/m32r.c,
12199         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
12200         config/mn10300/mn10300.c, config/rs6000/rs6000.c,
12201         config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
12202         config/stormy16/stormy16.c, config/v850/v850.md,
12203         config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
12204
12205 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
12206
12207         * config/mcore/mcore.c (block_move_sequence): Replace
12208         gen_rtx_CONST_INT with GEN_INT.
12209
12210 2004-02-02  Jan Hubicka  <jh@suse.cz>
12211
12212         * alias.c (record_set): Use hard_regno_nregs.
12213         * bt-load.c (find_btr_reference, note_btr_set): Likewise.
12214         * builtins.c (apply_args_size): Likewise.
12215         * caller-save.c (setup_save_areas, save_call_clobbered_regs,
12216         mark_set_regs, add_stored_regs, mark_referenced_regs,
12217         insert_restore, insert_save, insert_one_insn): Likewise.
12218         * cfgcleanup.c: Include regs.h
12219         (mark_effect, mentions_nonequal_regs): Likewise.
12220         * cfgrtl.c (mark_killed_regs): Likewise
12221         * combine.c (update_table_tick, record_value_for_reg,
12222         record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
12223         reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
12224         reg_bitfield_target_p, distribute_notes): Likewise.
12225         * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
12226         exp_equiv_p, cse_insn): Likewise.
12227         * cselib.c (cselib_lookup): Likewise.
12228         (cselib_invalidate_regno, cselib_record_set): Likewise.
12229         * df.c (df_ref_record): Likewise.
12230         * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
12231         Likewise.
12232         * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
12233         count_or_remove_death_notes_bb): Likewise.
12234         * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
12235         * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
12236         mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
12237         * integrate.c (mark_stores): Likewise.
12238         * jump.c (delete_prior_computation): Likewise.
12239         * lcm.c (reg_dies, reg_becomes_live): Likewise.
12240         * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
12241         * loop.c (LOOP_REGNO_NREGS): Likewise.
12242         * postreload.c (reload_combine, reload_combine_note_store,
12243         reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
12244         * ra-colorize.c (combine, color_usable_p, get_free_reg,
12245         calculate_dont_begin, calculate_dont_begin, colorize_one_web,
12246         try_recolor_web, insert_coalesced_conflicts, check_colors,
12247         break_precolored_alias): Likewise.
12248         * ra-debug.c: Include regs.h
12249         (ra_print_rtx_object): Likewise.
12250         * ra-rewrite (choose_spill_colors): Likewise.
12251         (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
12252         * ra.c (init_ra): Likewise.
12253         * recog.c (reg_fits_class_p, peep2_reg_dead_p,
12254         peep2_find_free_register): Likewise.
12255         * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
12256         * regclass.c (hard_regno_nregs): New array.
12257         (init_reg_modes_once): Initialize it.
12258         (choose_hard_reg_mode): Use it.
12259         (record_reg_classes): Likewise.
12260         * regmove.c (mark_flags_life_zones): Likewise.
12261         * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
12262         scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
12263         copy_value, maybe_mode_change, find_oldest_value_reg,
12264         copyprop_hardreg_forward_1):
12265         * regs.h (hard_regno_nregs): Declare.
12266         * realod.c (reload_inner_reg_of_subreg): Use it.
12267         (push_reload, combine_reloads, find_dummy_reload,
12268         hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
12269         refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
12270         reload_adjust_reg_for_mode): Likewise.
12271         * reload1.c (compute_use_by_pseudos, count_pseudo,
12272         count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
12273         spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
12274         clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
12275         allocate_reload_reg, choose_reload_regs, emit_reload_insns,
12276         delete_output_reload): Likewise.
12277         * resource.c (update_live_status, mark_referenced_resources,
12278         mark_set_resources, mark_target_live_regs): Likewise.
12279         * rtlanal.c:  Include regs.h
12280         (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
12281         dead_or_set_regno_p, find_regno_note, find_reg_fusage,
12282         subreg_regno_offset, subreg_offset_representable_p,
12283         hoist_test_store): Likewise.
12284         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
12285         * sched-rgn.c (check_live_1, update_live_1): Likewise.
12286         * stmt.c: Include regs.h
12287         (decl_conflicts_with_clobbers_p): Likewise.
12288         * varasm.c (make_decl_rtl): Likewise.
12289         * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
12290
12291 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
12292
12293         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
12294         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
12295         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
12296         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
12297         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
12298         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
12299         config/iq2000/iq2000.h, config/m32r/m32r.c,
12300         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
12301         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
12302         config/mcore/mcore.c, config/mcore/mcore.h,
12303         config/mcore/mcore.md, config/mips/mips.c,
12304         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
12305         config/rs6000/rs6000.c, config/s390/s390.c,
12306         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
12307         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
12308         "gen_rtx (FOO, " with "gen_rtx_FOO (".
12309
12310 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
12311
12312         * config/h8300/h8300.md (two peephole2's): New.
12313
12314 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
12315
12316         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
12317         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
12318         (ASM_CPU_SPEC): Likewise
12319         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
12320         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
12321
12322 2004-02-01  Roger Sayle  <roger@eyesopen.com>
12323
12324         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
12325         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
12326         (expand_builtin): Always call expand_builtin_pow.
12327
12328 2004-02-01  Roger Sayle  <roger@eyesopen.com>
12329
12330         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
12331         BUILT_IN_SIGNBITL): New GCC builtins.
12332         * builtins.c (expand_builtin_signbit): New function to RTL expand
12333         calls to signbit, signbitf and signbitl as inline intrinsics.
12334         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
12335         (fold_builtin_signbit): New function to perform constant folding
12336         of signbit, signbitf and signbitl.
12337         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
12338
12339         * doc/extend.texi: Document new signbit{,f,l} builtins.
12340
12341 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
12342
12343         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
12344
12345 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
12346
12347         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
12348         "mips_const_double_ok" and "simple_memory_operand", which were
12349         removed from the MIPS port with the mips-3_4-rewrite branch merge.
12350         * config/mips/mips.c (mips16_lay_out_constants): Update comment
12351         for removal of simple_memory_operand.
12352
12353 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12354
12355         * config/c4x/c4x.md: Use GEN_INT instead of
12356         gen_rtx (CONST_INT, ...).
12357
12358 2004-01-31  Richard Henderson  <rth@redhat.com>
12359
12360         * varasm.c (output_constant_pool): Don't zap the pool.
12361
12362 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12363
12364         * genrecog.c (decision_type): Add DT_const_int.
12365         (write_cond) [DT_const_int]: Print a comparison against small
12366         constant.
12367         (write_node): Simplify comparisons against small constants
12368         before printing tests.
12369
12370 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12371
12372         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
12373         instead of gen_rtx_CONST_INT.
12374
12375 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12376
12377         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
12378         instead of gen_rtx_CONST_INT.
12379
12380 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12381
12382         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
12383         hook_bool_CUMULATIVE_ARGS_false.
12384         * targhooks.c (default_strict_argument_naming): Rename to
12385         hook_bool_CUMULATIVE_ARGS_false.
12386         * targhooks.h: Update the prototype for
12387         default_strict_argument_naming.
12388
12389 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12390
12391         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
12392         * config/sh/sh.h: Likewise.
12393         * config/sh/sh.md: Likewise.
12394
12395 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
12396
12397         * doc/invoke.texi (SPARC options): Restructure and update.
12398
12399 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12400
12401         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
12402         STRICT_ARGUMENT_NAMING): Poison.
12403         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
12404         hook_bool_tree_false.
12405         * targhooks.c (default_promote_function_args): Remove.
12406         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
12407         Don't check incoming.
12408         (default_strict_argument_naming): Don't use
12409         STRICT_ARGUMENT_NAMING.
12410         * targhooks.h: Remove the prototype for
12411         default_promote_function_args.
12412
12413 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12414
12415         * config/i386/i386-protos.h: Remove the prototype for
12416         ix86_setup_incoming_varargs.
12417         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
12418         (ix86_setup_incoming_varargs): Make it static.
12419         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
12420
12421 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12422
12423         * alloc-pool.c: Fix comment typos.
12424         * builtin-types.def: Likewise.
12425         * builtins.def: Likewise.
12426         * c-pretty-print.c: Likewise.
12427         * df.h: Likewise.
12428         * reload1.c: Likewise.
12429
12430 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12431
12432         * doc/invoke.texi: Follow spelling conventions.
12433         * doc/tm.texi: Likewise.
12434
12435 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12436
12437         * doc/install.texi: Fix typos.
12438         * doc/invoke.texi: Likewise.
12439
12440 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
12441
12442         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
12443         registers as pointers.
12444         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
12445
12446 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
12447
12448         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
12449         and restore it to gen_lowpart_general on exit.
12450         (gen_lowpart_for_combine): Adjust all callers to go through
12451         gen_lowpart.
12452         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
12453         and restore it to gen_lowpart_general on exit.
12454         (gen_lowpart_if_possible): Adjust all callers to go through
12455         gen_lowpart.
12456         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
12457         (gen_lowpart): Declare as pointer to function, initialized to
12458         gen_lowpart_general.
12459         * rtl.h (gen_lowpart): Declare as pointer to function.
12460
12461 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
12462
12463         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
12464         * calls.c: Likewise.
12465         * emit-rtl.c: Likewise.
12466         * function.c: Likewise.
12467         * reload1.c: Likewise.
12468         * config/i386/cygming.h: Likewise.
12469         * config/i386/i386.c: Likewise.
12470         * config/i386/winnt.c: Likewise.
12471
12472 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
12473
12474         PR bootstrap/9249
12475         * doc/install.texi: document --enable-__cxa_atexit option.
12476         * configure.ac: Disable __cxa_atexit if not supported.
12477         * configure: Regenerate.
12478
12479 2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
12480
12481         * ggc-zone.c (ggc_free): New function.
12482
12483 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12484
12485         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
12486         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
12487         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
12488         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
12489         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
12490         config/alpha/alpha.c, config/alpha/alpha.h,
12491         config/alpha/alpha.md, config/alpha/unicosmk.h,
12492         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
12493         config/c4x/c4x-protos.h, config/c4x/c4x.md,
12494         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
12495         config/frv/frvend.c, config/i386/cygming.h,
12496         config/i386/djgpp.h, config/i386/emmintrin.h,
12497         config/i386/gthr-win32.c, config/i386/i386-interix.h,
12498         config/i386/i386-protos.h, config/i386/openbsd.h,
12499         config/i386/winnt.c, config/i386/xm-mingw32.h,
12500         config/i386/xmmintrin.h, config/ia64/ia64.md,
12501         config/iq2000/iq2000.md, config/m32r/m32r.md,
12502         config/m68k/m68k.md, config/mcore/mcore-elf.h,
12503         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
12504         config/mips/iris5gas.h, config/mips/iris6.h,
12505         config/mips/iris6gas.h, config/mips/linux.h,
12506         config/mips/mips.md, config/mips/netbsd.h,
12507         config/mips/openbsd.h, config/mips/windiss.h,
12508         config/pa/fptr.c, config/rs6000/aix.h,
12509         config/rs6000/altivec.h, config/rs6000/darwin.h,
12510         config/rs6000/xcoff.h, config/s390/s390-protos.h,
12511         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
12512         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
12513         config/sparc/sol2.h: Update copyright.
12514
12515 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
12516
12517         * Makefile.in (abs_docdir, abs_srcdir): Define.
12518         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
12519
12520 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12521
12522         * genconfig.c (main): Have CC0_P check its operand even on a
12523         target without cc0.
12524
12525 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12526
12527         * config/alpha/alpha.c: Remove mentions of deprecates macros
12528         in comments, remove some target-independent comments about target
12529         macros, and/or add minimal function comments for target hook
12530         implementations.
12531         * config/avr/avr.c: Likewise.
12532         * config/ia64/ia64.h: Likewise.
12533         * config/ip2k/ip2k.c: Likewise.
12534         * config/iq2000/iq2000.c: Likewise.
12535         * config/m32r/m32r.h: Likewise.
12536         * config/m68hc11/m68hc11.c: Likewise.
12537         * config/mcore/mcore.c: Likewise.
12538         * config/mmix/mmix.c: Likewise.
12539         * config/mn10300/mn10300.c: Likewise.
12540         * config/pa/pa.c: Likewise.
12541         * config/pdp11/pdp11.c: Likewise.
12542         * config/rs6000/rs6000.h: Likewise.
12543         * config/sh/sh.c: Likewise.
12544         * config/sh/sh.h: Likewise.
12545         * config/sparc/sparc.c: Likewise.
12546         * config/sparc/sparc.h: Likewise.
12547         * config/stormy16/stormy16.c: Likewise.
12548         * config/xtensa/xtensa.c: Likewise.
12549
12550 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12551
12552         PR optimization/12147
12553         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
12554         RELOAD_FOR_OPADDR_ADDR.
12555         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
12556         might be reused as RELOAD_FOR_OPADDR_ADDR register.
12557
12558 2004-01-30  Jan Hubicka  <jh@suse.cz>
12559
12560         * reload.c (get_secondary_mem): Fix updating of
12561         secondary_memlocs_elim_used.
12562
12563 2004-01-30  Richard Henderson  <rth@redhat.com>
12564
12565         * varasm.c (struct rtx_const, struct pool_constant): Remove.
12566         (MAX_RTX_HASH_TABLE): Remove.
12567         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
12568         (first_pool, last_pool, pool_offset): Remove.
12569         (struct rtx_constant_pool): Split out from ...
12570         (struct varasm_status): ... here.  Reference one via pointer.
12571         (struct constant_descriptor_rtx): Merge struct pool_constant.
12572         (SYMHASH): Remove.
12573         (decode_rtx_const): Remove.
12574         (const_hash_rtx, compare_constant_rtx): Remove.
12575         (record_constant_rtx): Remove.
12576         (const_desc_rtx_hash, const_desc_rtx_eq): New.
12577         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
12578         (const_rtx_hash_1, const_rtx_hash): New.
12579         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
12580         (simplify_subtraction): Use simplify_rtx.
12581         (force_const_mem): Rewrite to use new data structures.
12582         (find_pool_constant): Likewise.
12583         (get_pool_constant, get_pool_constant_mark,
12584         get_pool_constant_for_function, get_pool_mode,
12585         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
12586         (output_constant_pool_2): Split out from output_constant_pool.
12587         (output_constant_pool_1): Likewise.  Use new pool datastructures.
12588         (output_constant_pool): Zap entire pool datastructure.
12589         (mark_constant): Use new pool datastructures.
12590         (mark_constants): Use for_each_rtx.
12591         (mark_constant_pool): Use new pool datastructures.
12592
12593 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
12594
12595         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
12596         Copy operands[1] to pseudo for simplify_gen_subreg.
12597
12598 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12599
12600         * gcse.c (bypass_block): Fix a typo in the previous check-in
12601         to the file.
12602
12603 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
12604
12605         * toplev.c: Include alloc-pool.h.
12606         * Makefile.in (toplev.c): Update dependencies.
12607
12608 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12609
12610         * combine.c (simplify_shift_const, case XOR): Be careful when
12611         commuting XOR with ASHIFTRT.
12612
12613 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12614             Eric Botcazou  <ebotcazou@libertysurf.fr>
12615
12616         * config/sparc/sparc-protos.h: Remove the prototype for
12617         sparc_builtin_saveregs.
12618         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
12619         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
12620         (TARGET_PROMOTE_PROTOTYPES): Likewise.
12621         (TARGET_STRUCT_VALUE_RTX): Likewise.
12622         (TARGET_RETURN_IN_MEMORY): Likewise.
12623         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
12624         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
12625         (sparc_builtin_saveregs): Make it static.
12626         (sparc_promote_prototypes): New.
12627         (sparc_struct_value_rtx): Likewise.
12628         (sparc_return_in_memory): Likewise.
12629         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
12630         (PROMOTE_FUNCTION_RETURN): Likewise.
12631         (RETURN_IN_MEMORY): Likewise.
12632         (STRUCT_VALUE): Likewise.
12633         (STRUCT_VALUE_INCOMING): Likewise.
12634         (EXPAND_BUILTIN_SAVEREGS): Likewise.
12635         (STRICT_ARGUMENT_NAMING): Likewise.
12636         (PROMOTE_PROTOTYPES): Likewise.
12637
12638         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
12639
12640 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
12641
12642         PR c/12818
12643         * varasm.c (const_hash_1) <STRING_CST>: Use the
12644         address to compute the hash value if flag_writable_strings.
12645         (compare_constant) <STRING_CST>: Compare the addresses
12646         if flag_writable_strings.
12647         (build_constant_desc): Do not copy the expression for a
12648         STRING_CST if flag_writable_strings.
12649
12650 2004-01-30  Jan Hubicka  <jh@suse.cz>
12651
12652         * alloc-pool.c: Include hashtab.h
12653         (alloc_pool_descriptor): New structure
12654         (alloc_pool_hash): New global variable.
12655         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
12656         (create_alloc_pool): Update statistics.
12657         (free_alloc_pool): Likewise.
12658         (pool_alloc): Likewise.
12659         (output_info): New structure
12660         (print_statistics, dump_alloc_pool_statistics): New function.
12661         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
12662         (dump_alloc_pool_statistics): Declare.
12663         * toplev.c (finalize):  Dump statistics.
12664
12665         * reload.c (secondary_memlocs_elim_used): New static variable.
12666         (get_secondary_mem): Update it.
12667         (find_reloads): Use it.
12668
12669 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
12670
12671         * toplev.c: Fix broken checkin of 2003-12-30, again.
12672
12673 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12674
12675         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
12676         s390*-*-* targets by specifying a 'nop' insn.
12677         * configure: Regenerate.
12678
12679 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
12680
12681         PR target/11475
12682         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
12683
12684 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
12685
12686         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
12687         of addr when creating MEM copy.
12688
12689 2004-01-29  Devang Patel  <dpatel@apple.com>
12690
12691         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
12692
12693 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
12694
12695         PR inline-asm/6162
12696         * reload.c (find_reloads): Only support one pair of commutative
12697         operands.
12698
12699 2004-01-29  Roger Sayle  <roger@eyesopen.com>
12700
12701         PR java/13824
12702         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
12703         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
12704         recursion.
12705
12706 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
12707
12708         * config/frv/frv.c: Don't mention deprecated macros in
12709         comments.  Remove some target-independent comments about
12710         target macros.
12711         * config/frv/frv.h: Likewise.
12712
12713 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12714
12715         * cfghooks.c (split_block): Set probability and count of the
12716         new edge.
12717
12718 2005-01-29  Josef Zlomek  <zlomekj@suse.cz>
12719
12720         * dwarf2out.c (struct die_struct): Added field decl_id.
12721         (decl_die_table): Changed to hash table.
12722         (decl_die_table_allocated): Deleted.
12723         (decl_die_table_in_use): Deleted.
12724         (DECL_DIE_TABLE_INCREMENT): Deleted.
12725         (decl_die_table_hash): New function.
12726         (decl_die_table_eq): New function.
12727         (lookup_decl_die): Lookup in a hash table.
12728         (equate_decl_number_to_die): Insert into a hash table.
12729         (dwarf2out_init): Init hash table decl_die_table.
12730
12731 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
12732
12733         PR optimization/13424
12734         * expr.c (store_constructor): Revert 2003-12-03 change.
12735
12736         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
12737         expected before returning early.  Avoid sharing RTL if they
12738         need to be changed.
12739
12740         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
12741         handling so that memory attributes are preserved.  Don't call
12742         ix86_set_move_mem_attrs.
12743         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
12744         (ix86_expand_clrstr): Rename src argument to
12745         dst.  Rework rep_stos and strset handling so that memory attributes
12746         are preserved.
12747         (ix86_expand_strlen): Pass src argument to
12748         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
12749         memory attributes are preserved.
12750         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
12751         change_address instead of gen_rtx_MEM.
12752         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
12753         expanders.
12754         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
12755         strmovqi, strmovqi_rex64): Remove.
12756         (rep_mov*, strmov*): Prefix insn names with *.
12757         (strset, strset_singleop, rep_stos): New expanders.
12758         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
12759         strsetqi, strsetqi_rex64): Remove.
12760         (rep_stos*, strset*): Prefix insn names with *.
12761         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
12762         to SImode.
12763         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
12764         are preserved.
12765         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
12766         Prefix insn names with *.
12767         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
12768         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
12769         (strlenqi_1): New expander.
12770         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
12771
12772 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12773
12774         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
12775         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
12776         verify_flow_info): Declaration removed.
12777         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
12778         (debug_bb, debug_bb_n): Add argument to dump_bb call.
12779         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
12780         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
12781         instead of delete_block.
12782         * cfghooks.c: Include timevar.h and toplev.h.
12783         (cfg_hooks): Define here.
12784         (verify_flow_info, dump_bb): Moved from cfg.c.
12785         (redirect_edge_and_branch, redirect_edge_and_branch_force,
12786         split_block, split_block_after_labels, move_block_after,
12787         delete_basic_block, split_edge, create_basic_block,
12788         create_empty_bb, can_merge_blocks_p, merge_blocks,
12789         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
12790         New functions.
12791         * cfghooks.h (struct cfg_hooks): Added fields name,
12792         make_forwarder_block, tidy_fallthru_edge and
12793         move_block_after. Changed type of verify_flow_info, dump_bb,
12794         split_block fields. Renamed cfgh_split_edge and delete_block
12795         fields.
12796         (redirect_edge_and_branch, redirect_edge_and_branch_force,
12797         split_block, delete_block, split_edge, create_basic_block,
12798         can_merge_blocks_p, merge_blocks): Macros removed.
12799         (cfg_hooks): Do not export.
12800         (verify_flow_info, dump_bb, redirect_edge_and_branch,
12801         redirect_edge_and_branch_force, split_block, split_block_after_labels,
12802         move_block_after, delete_basic_block, split_edge, create_basic_block,
12803         create_empty_bb, can_merge_blocks_p, merge_blocks,
12804         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
12805         Declare.
12806         (cfg_layout_rtl_cfg_hooks): Declare.
12807         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
12808         New functions.
12809         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
12810         (redirect_edge_with_latch_update): Removed.
12811         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
12812         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
12813         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
12814         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
12815         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
12816         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
12817         cfghooks.c.
12818         (rtl_create_basic_block): Coding style fix.
12819         (rtl_tidy_fallthru_edge, rtl_move_block_after,
12820         rtl_make_forwarder_block): New functions.
12821         (update_cfg_after_block_merging): Removed.
12822         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
12823         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
12824         to dump_bb.
12825         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
12826         find_if_case_2): Don't update dominators.
12827         * timevar.def (TV_CFG_VERIFY): New.
12828         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
12829         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
12830         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
12831         (remove_bbs): Don't call remove_bbs.
12832         (create_preheader): Use make_forwarder_block.
12833         (mfb_keep_just, mfb_update_loops): New static functions.
12834
12835 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
12836
12837         * config/avr/avr.h: Remove target-independent comments about
12838         target macros.
12839
12840 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
12841
12842         * timevar.c (timevar_print): Mention when checking is enabled.
12843
12844 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
12845
12846         * c-lex.c (c_lex): Rename to...
12847         (c_lex_with_flags): Add new parameter to get CPP flags.
12848         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
12849         * c-pragma.h (c_lex_with_flags): Declare.
12850
12851 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
12852
12853         * config/mcore/mcore.c (mcore_external_libcall): Add a
12854         comment.
12855         (mcore_return_in_memory): Likewise.
12856
12857 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
12858
12859         * config/mcore/mcore-protos.h: Remove the prototype for
12860         mcore_setup_incoming_varargs.
12861         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
12862         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
12863         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
12864         (TARGET_PROMOTE_PROTOTYPES): Likewise.
12865         (TARGET_STRUCT_VALUE_RTX): Likewise.
12866         (TARGET_RETURN_IN_MEMORY): Likewise.
12867         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
12868         (mcore_setup_incoming_varargs): Make it static.  Receive the
12869         first argument by reference.  Add argument second_time.
12870         (mcore_external_libcall): New.
12871         (mcore_return_in_memory): Likewise.
12872         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
12873         (PROMOTE_FUNCTION_RETURN): Likewise.
12874         (STRUCT_VALUE): Likewise.
12875         (RETURN_IN_MEMORY): Likewise.
12876         (SETUP_INCOMING_VARARGS): Likewise.
12877         (PROMOTE_PROTOTYPES): Likewise.
12878         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
12879
12880 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
12881
12882         * config/m32r/m32r-protos.h: Remove the prototype for
12883         m32r_setup_incoming_varargs.
12884         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
12885         (TARGET_STRUCT_VALUE_RTX): Likewise.
12886         (TARGET_RETURN_IN_MEMORY): Likewise.
12887         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
12888         (m32r_return_in_memory): New.
12889         (m32r_setup_incoming_varargs): Make it static.
12890         * config/m32r/m32r.h: Remove #undef of
12891         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
12892         definitions of PROMOTE_FUNCTION_ARGS and
12893         PROMOTE_FUNCTION_RETURN.
12894         (PROMOTE_PROTOTYPES): Remove.
12895         (RETURN_IN_MEMORY): Likewise.
12896         (STRUCT_VALUE): Likewise.
12897
12898 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
12899
12900         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
12901         (TARGET_STRUCT_VALUE_RTX): Likewise.
12902         (m68k_struct_value_rtx): Likewise.
12903         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
12904         STRUCT_VALUE_REGNUM.
12905         (PROMOTE_PROTOTYPES): Remove.
12906         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
12907         STRUCT_VALUE_REGNUM.
12908         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
12909         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
12910
12911 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
12912
12913         * config/stormy16/stormy16.c
12914         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
12915         TARGET_BUILD_BUILTIN_VA_LIST.
12916
12917 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
12918
12919         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
12920         (TARGET_STRUCT_VALUE_RTX): Likewise.
12921         (TARGET_RETURN_IN_MEMORY): Likewise.
12922         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
12923         (v850_return_in_memory): Likewise.
12924         (v850_setup_incoming_varargs): Likewise.
12925         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
12926         (SETUP_INCOMING_VARARGS): Likewise.
12927         (RETURN_IN_MEMORY): Likewise.
12928         (STRUCT_VALUE): Likewise.
12929
12930 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
12931
12932         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
12933         (fr30_setup_incoming_varargs): Don't use
12934         STRICT_ARGUMENT_NAMING.
12935         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
12936         (STRICT_ARGUMENT_NAMING): Likewise.
12937
12938 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
12939
12940         * config/frv/frv-protos.h: Remove the prototype for
12941         frv_expand_builtin_saveregs.
12942         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
12943         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
12944         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
12945         STRUCT_VALUE_REGNUM.
12946         (frv_expand_builtin_saveregs): Make it static.
12947         (frv_struct_value_rtx): New.
12948         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
12949
12950 2004-01-29  Jan Hubicka  <jh@suse.cz>
12951
12952         PR c++/12850
12953         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
12954         initial pointers.
12955         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
12956         for functions that will be only inlined.
12957         (cgraph_mark_function_to_output): Likewise.
12958         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
12959         do not clear function body.
12960         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
12961         (tree_rest_of_compilation): Reorganize the logic releasing function
12962         body to use callgraph datastructure.
12963
12964 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12965
12966         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
12967         to register_operand.
12968
12969 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
12970
12971         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
12972         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
12973         match_operand expressions so that all match_dups appear
12974         lexically after their corresponding match_operands.
12975
12976 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
12977
12978         * config/h8300/h8300.c (WORD_REG_USED): Use
12979         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
12980         (compute_saved_regs): Likewise.
12981         (h8300_expand_prologue): Likewise.  Allocate locals after
12982         saving registers.
12983         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
12984         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
12985         registers.
12986         (h8300_initial_elimination_offset): Adjust for the new frame
12987         layout, which swaps flips the order of locals and saved
12988         registers.
12989         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
12990         (HARD_FRAME_POINTER_REGNUM): New.
12991         (ELIMINABLE_REGS): Add an elimination rule from
12992         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
12993         (REGISTER_NAMES): Add fp.
12994         * config/h8300/h8300.md (FP_REG): Change to 11.
12995         (HFP_REG): New.
12996
12997 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
12998
12999         * genrecog.c (write_node): Remove a useless local variable.
13000
13001 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
13002
13003         * Makefile.in (options.c options.h): Use stamp file s-options to
13004         avoid unnecessary rebuilds.
13005         (options.o): New target listing dependencies.
13006         (gtyp-gen.h): Use stamp file s-gtyp-gen.
13007         (STAGESTUFF): Add s-gtyp-gen.
13008
13009 2004-01-28  Richard Henderson  <rth@redhat.com>
13010
13011         * ggc.h (ggc_free): Declare.
13012         * ggc-common.c (ggc_realloc): Use it.
13013         * ggc-page.c: Remove lots of inline markers.
13014         (globals): Add free_object_list.
13015         (ggc_alloc): Tidy.
13016         (ggc_free, validate_free_objects): New.
13017         (poison_pages): Provide default.
13018         (ggc_collect): Call validate_free_objects; emit markers to
13019         the debug file.
13020
13021 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
13022             Jim Wilson  <wilson@specifixinc.com>
13023
13024         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
13025         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
13026         scratch pointer.
13027         (ia64_secondary_reload_class): Delete case GR_REGS.
13028         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
13029         Do not allocate a scratch register.
13030         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
13031
13032 2004-01-28  Jan Hubicka  <jh@suse.cz>
13033
13034         * gcse.c (bypass_block): Prevent edges to be unified when we are
13035         about to emit compenstation code.
13036
13037 2004-01-28  Nick Clifton  <nickc@redhat.com>
13038
13039         * config/arm/arm.c (arm_expand_builtin): Force second argument of
13040         the setcwx insn into a register.
13041
13042 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
13043
13044         * config/fp-bit.c (pack_d): When using paired doubles to implement
13045         a long double, round the high part separately.
13046         (unpack_d): Fix the case in which the high part is a power of two
13047         and the low part is a nonzero value of the opposite sign.
13048
13049 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
13050
13051         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
13052         (TARGET_STRUCT_VALUE_RTX): Likewise.
13053         (c4x_external_libcall): Likewise.
13054         (c4x_struct_value_rtx): Likewise.
13055         * config/c4x/c4x.h: Remove.
13056         (STRUCT_VALUE_REGNUM): Likewise.
13057         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
13058
13059 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
13060
13061         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
13062         (TARGET_STRUCT_VALUE_RTX): Likewise.
13063         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
13064         (STRUCT_VALUE): Likewise.
13065         (PROMOTE_PROTOTYPES): Likewise.
13066
13067 2004-01-27  Roger Sayle  <roger@eyesopen.com>
13068
13069         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
13070         CONST_INT before using INTVAL.
13071
13072 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
13073
13074         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
13075         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
13076         frame if !TARGET_BACKCHAIN.
13077         * config/s390/s390.md ("allocate_stack"): Use pattern only if
13078         TARGET_BACKCHAIN.
13079         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
13080
13081 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
13082
13083         * ia64.c (ia64_function_arg): When placing HFAs in integer
13084         registers, do not special case the mode used for complex
13085         types.  Do not advance int_regs until the current register
13086         is full.
13087
13088 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
13089
13090         PR target/7297
13091         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
13092
13093 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
13094
13095         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
13096         slow, unaligned loads and stores while debugging.  Fix formatting.
13097
13098 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
13099
13100         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
13101         of computing wmode.
13102         (restore_stack_nonlocal): Same.
13103
13104 2004-01-27  Devang Patel <dpatel@apple.com>
13105
13106         * Makefile.in (dwarf2out.o): Depend on input.h
13107         * dbxout.c (dbx_debug_hooks): Add new empty hook for
13108         imported_module_or_decl.
13109         (xcoff_debug_hooks): Same.
13110         * sdbout.c (sdb_debug_hooks): Same.
13111         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
13112         * debug.c (do_nothing_debug_hooks): Same.
13113         (debug_nothing_tree_tree): New function.
13114         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
13115         * dwarf2out.c: Include input.h.
13116         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
13117         (remove_child_TAG): New function.
13118         (dwarf_tag_name): Handle DW_TAG_imported_module.
13119         (gen_subprogram_die): Equate decl number to declaration die. Do not
13120         remove all children dies while reusing declaration die for definition.
13121         Instead, selectively remove only formal parameters.
13122         (gen_variable_die): Equate variable decl to declaration die.
13123         (gen_field_die): Equate field decl to line number.
13124         (force_namespace_die): Replace it with ...
13125         (force_decl_die): ... this.
13126         (force_type_die): New function.
13127         (setup_namespace_context): Replace use of force_namespace_die() with
13128         force_decl_die().
13129         (gen_namespace_die): Same.
13130         (dwarf2out_imported_module_or_decl): New function.
13131
13132 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
13133
13134         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
13135         on CQImode and CHImode incoming arguments in register a7.
13136         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
13137         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
13138         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
13139         xtensa_copy_incoming_a7 before reload.
13140
13141 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
13142
13143         * coverage.c (get_coverage_counts): Give a different message
13144         if flag_guess_branch_prob is set.
13145         * predict.c (counts_to_freqs): Return an int.
13146         (estimate_bb_frequencies): If counts_to_freqs returns zero,
13147         calculate estimates.
13148
13149 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
13150
13151         * config/iq2000/iq2000-protos.h: Remove the prototype for
13152         iq2000_setup_incoming_varargs.
13153         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
13154         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
13155         (TARGET_PROMOTE_PROTOTYPES): Likewise.
13156         (TARGET_STRUCT_VALUE_RTX): Likewise.
13157         (TARGET_RETURN_IN_MEMORY): Likewise.
13158         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
13159         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
13160         (iq2000_return_in_memory): Likewise.
13161         (iq2000_setup_incoming_varargs): Make it static.  Receive the
13162         first argument by reference.
13163         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
13164         (PROMOTE_FUNCTION_RETURN): Likewise.
13165         (PROMOTE_PROTOTYPES): Likewise.
13166         (RETURN_IN_MEMORY): Likewise.
13167         (STRUCT_VALUE): Likewise.
13168         (SETUP_INCOMING_VARARGS): Likewise.
13169         (STRICT_ARGUMENT_NAMING): Likewise.
13170
13171 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
13172
13173         * fixinc/fixinc.c (test_test): Initialize res.
13174         (start_flexer): Initialize pz_cmd_save.
13175
13176 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
13177
13178         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
13179         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
13180
13181 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
13182
13183         PR 7198
13184         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
13185         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
13186         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
13187         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
13188         Possibly rename pattern for consistency.
13189         Remove ??? comments suggesting that this be done.
13190         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
13191         New patterns.
13192         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
13193         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
13194         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
13195         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
13196         Update to match.
13197
13198 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
13199
13200         * config/arm/arm.c (output_return_instruction): Only restore IP
13201         into SP if frame_pointer_needed.
13202
13203 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
13204
13205         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
13206         for SCmode and DCmode if ARCH32.
13207         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
13208         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
13209         if ARCH32.
13210         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
13211         if ARCH32.
13212         (BASE_OUTGOING_VALUE_REG): Likewise.
13213
13214 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
13215
13216         PR target/10904
13217         PR target/13058
13218         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
13219         Forbid mode changes from SImode for lower FP regs if ARCH64.
13220
13221 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
13222
13223         * Makefile.in (bt-load.o): Depend on except.h.
13224         * bt-load.c (except.h): #include.
13225         (compute_defs_uses_and_gen): If insn at end of BB can throw
13226         within this function, consider registers used by it unavailable for
13227         btr migration.
13228         (move_btr_def): If insn at end of BB can throw, insert before rather
13229         than after.
13230
13231         * flags.h (flag_btr_bb_exclusive): Declare.
13232         * toplev.c (flag_btr_bb_exclusive): New variable.
13233         (f_options): Add btr-bb-exclusive.
13234         * bt-load.c (augment_live_range): Restore old behaviour if
13235         flag_btr_bb_exclusive is set.
13236         * common.opt: Add entry for -fbtr-bb-exclusive.
13237         * opts.c (common_handle_options): Same.
13238         * doc/invoke.texi: Document -fbtr-bb-exclusive.
13239
13240         * bt-load.c (btrs_live_at_end): New variable.
13241         (compute_defs_uses_and_gen): Compute its pointed-to array.
13242         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
13243         (augment_live_range): When augmenting with a new dominator,
13244         use only its btrs_live_at_end set, but also add in the full set
13245         of the old dominator.
13246         (btr_def_live_range): Use btrs_live_at_end.
13247         (move_btr_def): Set other_btr_uses_before_def, and move new set
13248         to the end of the basic block, if appropriate.
13249         (migrate_btr_defs): Allocate and free btrs_live_at_end.
13250
13251         * bt-load.c (basic_block_freq): Remove outdated comment.
13252
13253 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
13254
13255         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
13256         (PREDICATE_CODES): Remove duplicate.
13257         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
13258         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
13259         (MASK_PROFILE_KERNEL): Adjust define.
13260
13261 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
13262
13263         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
13264         of long string literals from 32 bytes to sizeof (void *) when !-Os
13265         and to 1 with -Os.
13266
13267 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13268
13269         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
13270         constant addresses in the normal mode.
13271
13272 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13273
13274         * system.h (CHAR_BITFIELD): Delete.
13275         (BOOL_BITFIELD): New.
13276         * c-decl.c (c_scope): Use BOOL_BITFIELD.
13277         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
13278
13279 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13280
13281         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
13282         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
13283         (TARGET_PROMOTE_PROTOTYPES): Likewise.
13284         (TARGET_STRUCT_VALUE_RTX): Likewise.
13285         (TARGET_RETURN_IN_MEMORY): Likewise.
13286         (arc_return_in_memory): Likewise.
13287         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
13288         (PROMOTE_FUNCTION_RETURN): Likewise.
13289         (RETURN_IN_MEMORY): Likewise.
13290         (STRUCT_VALUE): Likewise.
13291
13292 2004-01-26  Richard Henderson  <rth@redhat.com>
13293
13294         * c-parse.in (extension): Use itype.
13295         (SAVE_EXT_FLAGS): Don't allocate a tree.
13296         (RESTORE_EXT_FLAGS): Don't read a tree.
13297
13298 2004-01-26  Jan Hubicka  <jh@suse.cz>
13299
13300         * cselib.c (discard_useless_values):  Clear out value pointer pointing
13301         to datastructure to be recycled.
13302
13303 2004-01-25  Jan Hubicka  <jh@suse.cz>
13304
13305         * genextract.c (main): Do not output the memset when not checking.
13306
13307 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13308
13309         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
13310         switch statement instead of a chain of if statements.
13311
13312 2004-01-26  Jeff Law  <law@redhat.com>
13313
13314         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
13315         acute accents for Petur Runolfsson's entry.
13316
13317 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13318
13319         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
13320         (TARGET_RETURN_IN_MEMORY): Likewise.
13321         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
13322         (RETURN_IN_MEMORY): Likewise.
13323
13324 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
13325
13326          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
13327          unaligned load/store into smaller loads and stores.
13328
13329 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
13330
13331         * function.c (assign_parms): Do not assign
13332         long long argument to memory in prologue if
13333         is it loaded into register.
13334
13335 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
13336
13337          PR middle-end/13779
13338          * expr.c (emit_group_load): split constant
13339          correctly into register components of PARALLEL insn.
13340
13341 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
13342
13343         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
13344         Use adjust_address_nv directly with appropriate mode.
13345         (restore_stack_nonlocal): Ditto.
13346
13347 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13348
13349         * config/xtensa/xtensa-protos.h: Remove the prototype for
13350         xtensa_builtin_saveregs.
13351         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
13352         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
13353         (TARGET_PROMOTE_PROTOTYPES): Likewise.
13354         (TARGET_STRUCT_VALUE_RTX): Likewise.
13355         (TARGET_RETURN_IN_MEMORY): Likewise.
13356         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
13357         (xtensa_builtin_saveregs): Make it static.
13358         (xtensa_return_in_memory): New.
13359         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
13360         (PROMOTE_FUNCTION_RETURN): Likewise.
13361         (PROMOTE_PROTOTYPES): Likewise.
13362         (STRUCT_VALUE): Likewise.
13363         (RETURN_IN_MEMORY): Likewise.
13364         (EXPAND_BUILTIN_SAVEREGS): Likewise.
13365
13366 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13367
13368         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
13369         (arm_setup_incoming_varargs): Likewise.
13370         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
13371
13372 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13373
13374         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
13375         (cris_setup_incoming_varargs): Likewise.
13376         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
13377
13378 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13379
13380         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
13381         (ns32k_struct_value_rtx): Likewise.
13382         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
13383         NS32K_STRUCT_VALUE_REGNUM.
13384
13385 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13386
13387         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
13388         (TARGET_PROMOTE_PROTOTYPES): Likewise.
13389         (TARGET_STRUCT_VALUE_RTX): Likewise.
13390         (arm_struct_value_rtx): Likewise.
13391         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
13392         (STRUCT_VALUE): Likewise.
13393         (STRUCT_VALUE_REGNUM): Likewise.
13394         (PROMOTE_PROTOTYPES): Likewise.
13395
13396 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13397
13398         * config/ia64/ia64-protos.h: Remove the prototype for
13399         ia64_setup_incoming_varargs and ia64_return_in_memory.
13400         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
13401         (TARGET_RETURN_IN_MEMORY): Likewise.
13402         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
13403         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
13404         (ia64_setup_incoming_varargs): Adjust the arguments to meet
13405         the requirement of TARGET_SETUP_INCOMING_VARARGS.
13406         (ia64_return_in_memory): Make it static.  Change the return
13407         type to bool from int.  Add an argument.
13408         (ia64_struct_value_rtx): New.
13409         * config/ia64/ia64.h: Remove commented-out definitions of
13410         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
13411         PROMOTE_PROTOTYPES.
13412         (RETURN_IN_MEMORY): Remove.
13413         (STRUCT_VALUE_REGNUM): Likewise.
13414         (STRICT_ARGUMENT_NAMING): Likewise.
13415
13416 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
13417
13418         PR target/13666
13419         * config/sparc/sparc.c (function_arg_union_value): New function.
13420         (function_arg): Use it to deal with unions.
13421         (function_value): Likewise.  Define 'regbase' only for ARCH64.
13422         Replace a conditional statement by a simpler one.
13423
13424 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
13425
13426         * config/mips/mips.c (mips16_optimize_gp): Delete.
13427         (mips_reorg): Don't call it.
13428
13429 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13430
13431         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
13432         (floatunsqihf2): Remove operand 6.
13433         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
13434         fix patterns.
13435         (ldi_conditional, ldf_conditional): Validate operands.
13436
13437 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13438
13439         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
13440         (HAVE_GAS_HIDDEN): Undefine as interim measure.
13441
13442 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13443
13444         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
13445         memory references if TARGET_EXPOSE_LDP nonzero.
13446
13447 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13448
13449         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
13450
13451 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13452
13453         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
13454         invalid operand combinations.
13455
13456 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13457
13458         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
13459         c4x_legitimate_address_p.  Fix post_modify check.
13460
13461         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
13462         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
13463
13464 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13465
13466         * config/pa/pa-protos.h: Remove the prototype for
13467         hppa_builtin_saveregs.  Add a prototype for
13468         pa_return_in_memory.
13469         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
13470         (TARGET_PROMOTE_PROTOTYPES): Likewise.
13471         (TARGET_STRUCT_VALUE_RTX): Likewise.
13472         (TARGET_RETURN_IN_MEMORY): Likewise.
13473         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
13474         (pa_struct_value_rtx): Likewise.
13475         (pa_return_in_memory): Likewise.
13476         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
13477         PA_STRUCT_VALUE_REGNUM.
13478         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
13479         (EXPAND_BUILTIN_SAVEREGS): Remove.
13480         (PROMOTE_PROTOTYPES): Likewise.
13481         (PROMOTE_FUNCTION_RETURN): Likewise.
13482
13483 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13484
13485         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
13486         (TARGET_STRUCT_VALUE_RTX): Likewise.
13487         (vax_struct_value_rtx): Likewise.
13488         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
13489         VAX_STRUCT_VALUE_REGNUM.
13490         (PROMOTE_PROTOTYPES): Remove.
13491
13492 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13493
13494         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
13495
13496 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
13497
13498         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
13499         and MIPS64 have HI/LO interlocks.  Update comment.
13500
13501 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13502
13503         * config/stormy16/stormy16-protos.h: Remove the prototype for
13504         xstormy16_setup_incoming_varargs.
13505         * config/stormy16/stormy16.c
13506         (xstormy16_setup_incoming_varargs): Remove.
13507         (xstormy16_return_in_memory): New.
13508         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
13509         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
13510         (TARGET_PROMOTE_PROTOTYPES): Likewise.
13511         (TARGET_STRUCT_VALUE_RTX): Likewise.
13512         (TARGET_RETURN_IN_MEMORY): Likewise.
13513         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
13514         (PROMOTE_FUNCTION_RETURN): Likewise
13515         (PROMOTE_PROTOTYPES): Likewise
13516         (RETURN_IN_MEMORY): Likewise
13517         (STRUCT_VALUE): Likewise
13518         (SETUP_INCOMING_VARARGS): Likewise
13519
13520 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
13521
13522         * config/mips/mips.c (mips_offset_within_object_p): New function.
13523         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
13524         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
13525         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
13526
13527 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13528
13529         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
13530         (PROMOTE_FUNCTION_RETURN): Likewise.
13531
13532 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13533
13534         * config/mn10300/mn10300-protos.h: Remove the prototype for
13535         mn10300_builtin_saveregs.
13536         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
13537         (TARGET_STRUCT_VALUE_RTX): Likewise.
13538         (TARGET_RETURN_IN_MEMORY): Likewise.
13539         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
13540         (mn10300_return_in_memory): Likewise.
13541         (mn10300_builtin_saveregs): Make it static.
13542         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
13543         (RETURN_IN_MEMORY): Likewise.
13544         (STRUCT_VALUE): Likewise.
13545         (EXPAND_BUILTIN_SAVEREGS): Likewise.
13546
13547 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
13548
13549         PR bootstrap/13853
13550         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
13551
13552 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13553
13554         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
13555         using ccr.
13556
13557 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13558
13559         * config/i860/i860-protos.h: Remove the prototype for
13560         i860_saveregs.
13561         * config/i860/i860.c (i860_saveregs): Make it static.
13562         (i860_struct_value_rtx): New.
13563         (TARGET_STRUCT_VALUE_RTX): Likewise.
13564         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
13565         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
13566         I860_STRUCT_VALUE_REGNUM.
13567         (EXPAND_BUILTIN_SAVEREGS): Remove.
13568
13569 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13570
13571         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
13572         (TARGET_RETURN_IN_MEMORY): Likewise.
13573         (m68hc11_struct_value_rtx): Likewise.
13574         (m68hc11_return_in_memory): Likewise.
13575         * config/m68hc11/m68hc11.h: Remove a commented-out definition
13576         of PROMOTE_PROTOTYPES.
13577         (RETURN_IN_MEMORY): Remove.
13578         (STRUCT_VALUE_REGNUM): Likewise.
13579
13580 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13581
13582         * config/mmix/mmix-protos.h: Remove the prototype for
13583         mmix_setup_incoming_varargs.
13584         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
13585         (TARGET_STRUCT_VALUE_RTX): Likewise.
13586         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
13587         (mmix_setup_incoming_varargs): Make it static.
13588         (mmix_struct_value_rtx): New.
13589         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
13590         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
13591         (STRUCT_VALUE_REGNUM): Remove.
13592         (SETUP_INCOMING_VARARGS): Likewise.
13593
13594 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13595
13596         * config/mips/mips-protos.h: Remove the prototypes for
13597         mips_setup_incoming_varargs and mips_return_in_memory.
13598         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
13599         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
13600         (TARGET_PROMOTE_PROTOTYPES): Likewise.
13601         (TARGET_STRUCT_VALUE_RTX): Likewise.
13602         (TARGET_RETURN_IN_MEMORY): Likewise.
13603         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
13604         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
13605         (mips_setup_incoming_varargs): Match the prototype for
13606         TARGET_SETUP_INCOMING_VARARGS.
13607         (mips_return_in_memory): Make it static.  Add argument fntype.
13608         (mips_strict_argument_naming): New.
13609         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
13610         (PROMOTE_FUNCTION_ARGS): Likewise.
13611         (PROMOTE_FUNCTION_RETURN): Likewise.
13612         (STRUCT_VALUE): Likewise.
13613         (RETURN_IN_MEMORY): Likewise.
13614         (SETUP_INCOMING_VARARGS): Likewise.
13615         (STRICT_ARGUMENT_NAMING): Likewise.
13616
13617 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13618
13619         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
13620         (TARGET_RETURN_IN_MEMORY): Likewise.
13621         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
13622         (ip2k_return_in_memory): Likewise.
13623         (ip2k_setup_incoming_varargs): Likewise.
13624         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
13625         (STRUCT_VALUE): Likewise.
13626         (STRUCT_VALUE_INCOMING): Likewise.
13627         (SETUP_INCOMING_VARARGS): Likewise.
13628
13629 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13630
13631         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
13632         (TARGET_RETURN_IN_MEMORY): Likewise.
13633         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
13634         (avr_return_in_memory): Remove.
13635         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
13636         (STRUCT_VALUE): Likewise.
13637         (STRUCT_VALUE_INCOMING): Likewise.
13638         (STRICT_ARGUMENT_NAMING): Likewise.
13639
13640 2004-01-25  Jan Hubicka  <jh@suse.cz>
13641
13642         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
13643
13644 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
13645
13646         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
13647         (mips_regno_mode_ok_for_base_p): Declare.
13648         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
13649         (FRAME_POINTER_REGNUM): Renumber to 78.
13650         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
13651         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
13652         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
13653         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
13654         (REG_MODE_OK_FOR_BASE_P): Likewise.
13655         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
13656         entry for 77 to "$arg" and entry for 78 to "$frame".
13657         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
13658         (mips_reg_mode_ok_for_base_p): Remove.
13659         (mips_regno_mode_ok_for_base_p): New function, derived from old
13660         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
13661         restrictions unless we're being strict.
13662         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
13663
13664 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13665
13666         * c-common.h: Fix comment typos.
13667         * c-decl.c: Likewise.
13668         * cgraphunit.c: Likewise.
13669         * combine.c: Likewise.
13670         * et-forest.c: Likewise.
13671         * flow.c: Likewise.
13672         * function.c: Likewise.
13673         * ifcvt.c: Likewise.
13674         * integrate.c: Likewise.
13675         * jump.c: Likewise.
13676         * postreload.c: Likewise.
13677         * varray.c: Likewise.
13678
13679 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13680
13681         * doc/frontends.texi: Update copyright.
13682         * doc/gcov.texi: Likewise.
13683         * doc/gty.texi: Likewise.
13684         * doc/sourcebuild.texi: Likewise.
13685         * doc/standards.texi: Likewise.
13686
13687 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
13688
13689         PR target/12978
13690         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
13691         Remove movstrqi_small because it conflicts with movstrqi_large.
13692
13693 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13694
13695         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
13696         (TARGET_STRUCT_VALUE_RTX): Likewise.
13697         (cris_struct_value_rtx): Likewise.
13698         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
13699         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
13700         STRUCT_VALUE_REGNUM.
13701         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
13702
13703 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
13704
13705         PR bootstrap/13848
13706         * cse.c (cse_cc_succs): Change the mode of the source expression
13707         as soon as decide we need a new mode.  Don't permit changing modes
13708         if we found a match in a successor block.
13709         (cse_condition_code_reg): Save original mode of source expression
13710         so that we know whether we have to change the mode in other
13711         insns.
13712
13713 2004-01-24  Jan Hubicka  <jh@suse.cz>
13714
13715         * emit-rtl.c (change_address, adjust_address_1, offset_address,
13716         widen_memory_access):  Return early when there is nothing to change.
13717
13718 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
13719
13720         * simplify-rtx.c (simplify_relational_operation): Don't
13721         simplify address == constant into address + -constant == 0.
13722
13723 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13724
13725         * gcc.c (process_command): Don't internationalize the
13726         Copyright message.
13727         * mips-tfile.c (main): Likewise.
13728
13729 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
13730
13731         * cse.c: (cse_cc_succs) Fix comparison warning.
13732
13733 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13734
13735         * config/h8300/h8300.md: Remove extraneous USE in expanders.
13736
13737 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13738
13739         * config/h8300/h8300-protos.h: Provide prototypes for
13740         h8300_legitimate_constant_p and h8300_legitimate_address_p.
13741         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
13742         (h8300_rtx_ok_for_base_p): Likewise.
13743         (h8300_legitimate_address_p): Likewise.
13744         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
13745         h8300_legitimate_constant_p.
13746         (RTX_OK_FOR_BASE_P): Remove.
13747         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
13748
13749 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13750
13751         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
13752         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
13753         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
13754         (REG_OK_FOR_BASE_STRICT_P): Likewise.
13755         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
13756         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
13757         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
13758         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
13759
13760 2004-01-24  Jan Hubicka  <jh@suse.cz>
13761
13762         * cselib.c (remove_useless_values):  Do not access discarded values.
13763
13764 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
13765
13766         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
13767         arrays.
13768
13769 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
13770
13771         * recog.c: Fix a typo in copyright.
13772
13773 2004-01-23  Andrew Pinski  <apinski@apple.com>
13774
13775         * config/rs6000/rs6000.md (call): Fix misappiled patch.
13776         (call_value): Likewise.
13777
13778 2004-01-23  Richard Henderson  <rth@redhat.com>
13779
13780         PR opt/12941
13781         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
13782         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
13783         if SHIFT_COUNT_TRUNCATED is set.
13784
13785 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
13786
13787         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
13788         separate real and imaginary parts.
13789         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
13790
13791 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
13792
13793         PR target/13674
13794         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
13795         loading into GPR.
13796
13797 2004-01-23  Jan Hubicka  <jh@suse.cz>
13798
13799         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
13800         change.
13801
13802         * alloc-pool.c (align_four): Kill.
13803         (create_alloc_pool): Align size to eight.
13804         (free_alloc_pool, free_pool): Invalidate deallocated data.
13805
13806 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
13807
13808         PR gcc/1532
13809         * cse.c (cse_change_cc_mode): New static function.
13810         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
13811         (cse_condition_code_reg): New function.
13812         * rtl.h (cse_condition_code_reg): Declare.
13813         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
13814         * target.h (struct gcc_target): Add fixed_condition_code_regs and
13815         cc_modes_compatible.
13816         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13817         (TARGET_CC_MODES_COMPATIBLE): Define.
13818         (TARGET_INITIALIZER): Add new initializers.
13819         * targhooks.c (default_cc_modes_compatible): New function.
13820         * targhooks.c (default_cc_modes_compatible): Declare.
13821         * hooks.c (hook_bool_intp_intp_false): New function.
13822         * hooks.h (hook_bool_intp_intp_false): Declare.
13823         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13824         (TARGET_CC_MODES_COMPATIBLE): Define.
13825         (ix86_fixed_condition_code_regs): New static function.
13826         (ix86_cc_modes_compatible): Likewise.
13827         * doc/tm.texi (Condition Code): Document new hooks.
13828
13829 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13830
13831         * fixinc/inclhack.def (bad_lval): Renamed to ...
13832         (alpha_bad_lval): ... this.
13833         Removed file list.
13834         Restrict to alpha*-dec-osf*.
13835         * fixinc/fixincl.x: Regenerate.
13836         * fixinc/tests/base/dirent.h: Remove, moving test ...
13837         * fixinc/tests/base/testing.h: ... here, reflecting new name.
13838
13839 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
13840
13841         PR c/13814
13842         * c-decl.c (diagnose_mismatched_decls): Also discard a
13843         built-in if we encounter an old-style definition with the
13844         same name.
13845
13846 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
13847
13848         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
13849         set to default{32,64}.
13850
13851 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
13852
13853         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
13854         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
13855
13856 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
13857             Olivier Hainque  <hainque@act-europe.fr>
13858
13859         * fold-const.c (fold_binary_op_with_conditional_arg): Only
13860         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
13861
13862 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
13863
13864         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
13865         size for minipool references.
13866
13867 2004-01-23  Roger Sayle  <roger@eyesopen.com>
13868
13869         * real.c (real_floor, real_ceil): Tweak to allow input and output
13870         arguments to overlap.
13871         (real_round): New function to implement round(3m) semantics.
13872         * real.h (real_round): Prototype here.
13873         * builtins.c (fold_builtin_round): New function to constant fold
13874         round, roundf and roundl.
13875         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
13876
13877 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
13878
13879         PR optimization/13819
13880         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
13881         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
13882         (sh_handle_sp_switch_attribute): Remove warning.
13883
13884 2003-11-30  Jan Hubicka  <jh@suse.cz>
13885
13886         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
13887
13888 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
13889
13890         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
13891         may or may not return non-NIL.
13892         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
13893         check CANNOT_CHANGE_MODE_CLASS
13894
13895 2004-01-23  Jan Hubicka  <jh@suse.cz>
13896
13897         * basic-block.h (PROP_POSTRELOAD): New macro.
13898         (CLEANUP_LOG_LINKS): New.
13899         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
13900         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
13901
13902         * cselib.c (value_pool): New.
13903         (new_cselib_val): Use pool.
13904         (cselib_init): Initialize value_pool
13905         (cselib_finish): Free pool.
13906
13907 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
13908
13909         * config/sparc/sparc.c (scan_record_type): New function.
13910         (function_arg_slotno): Use it to determine which kinds of
13911         registers the record can be passed in.
13912
13913 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
13914
13915         * config/pa/fptr.c: Fix old-style definition.
13916
13917 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
13918
13919         PR optimization/13724
13920         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
13921         represents the zero bits produced by a ZERO_EXTEND operation.
13922
13923 2004-01-22  Roger Sayle  <roger@eyesopen.com>
13924
13925         PR optimization/13821
13926         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
13927         correctly calculate the lowpart offset of the contracted subreg.
13928
13929 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
13930
13931         * doc/invoke.texi (Optimize Options): Note that --param arguments
13932         are subject to change without notice.
13933
13934 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13935
13936         * config.gcc (mips-sgi-irix6*o32): Removed.
13937         * config/mips/iris6-o32-as.h: Likewise.
13938         * config/mips/iris6-o32-gas.h: Likewise.
13939         * config/mips/iris6-o32.h: Likewise.
13940
13941 2004-01-22  Jan Hubicka  <jh@suse.cz>
13942
13943         * cfgcleanup.c (first_pass): New static variable.
13944         (try_forward_edges):  Add work limiting check for threading.
13945         (try_crossjump_bb):  Add work limiting check for crossjumping.
13946         (try_optimize_cfg):  Maintain first pass variable.
13947
13948 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
13949
13950         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
13951         handles complex and vector modes.
13952
13953 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
13954
13955         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
13956         (REG_OK_FOR_BASE_P_STRICT): Likewise.
13957         (STRICT): Likewise.
13958
13959 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
13960
13961         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
13962         (genrtl_for_stmt): Remove emit_nop calls.
13963
13964 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13965
13966         PR target/13713
13967         PR target/13324
13968         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
13969         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
13970         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
13971
13972 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
13973
13974         * config/arm/arm.c: Include "debug.h".
13975         (thumb_pushpop): Take two new arguments.  Add some commentary.
13976         Output frame information when pushing.
13977         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
13978         thumb_pushpop.
13979         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
13980         offset, and pass it to thumb_pushpop.  Output CFI information.
13981         (thumb_expand_prologue): Add some frame-related markers and notes.
13982
13983 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
13984
13985         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
13986         for TARGET_64BIT.
13987         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
13988         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
13989
13990 2004-01-22  Roger Sayle  <roger@eyesopen.com>
13991             Paolo Bonzini  <bonzini@gnu.org>
13992
13993         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
13994         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
13995         * rtl.h (subreg_lsb_1): Prototype here.
13996         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
13997         sign extensions.
13998
13999 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
14000
14001         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
14002         macro need not be defined if jump-tables should contain
14003         relative addresses only when -fPIC or -fPIC is in effect.
14004
14005 2004-01-22  Jan Hubicka  <jh@suse.cz>
14006
14007         * alias.c (reg_base_value): Turn into varray.
14008         (reg_base_value_size): Kill.
14009         (old_reg_base_value): New deletable varray.
14010         (alias_invariant_size): New variable.
14011         (REG_BASE_VALUE): Update to use varray.
14012         (find_base_value): Likewise.
14013         (record_set): Likewise.
14014         (record_base_value): Likewise.
14015         (memrefs_conflict_p): Likewise.
14016         (record_set): Likewise
14017         (record_base_value): Likewise.
14018         (memrefs_conflict_p): Use alias_invariant_size.
14019         (init_alias_analysis): Use varray; set alias_invariant_size;
14020         rescale other arrays to be sized by maxreg.
14021         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
14022
14023 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
14024
14025         * config/sparc/sparc.c (function_arg_slotno): Use
14026         FLOAT_TYPE_P to detect FP fields in structures.
14027         (function_arg_record_value_1): Likewise.
14028         (function_arg_record_value_2): Likewise.
14029
14030 2004-01-22  Jan Hubicka  <jh@suse.cz>
14031
14032         * function.c (allocate_struct_function): Do not initialize expr, emit
14033         and varasm.
14034         (prepare_function_start): Do it here.
14035         * c-parse.in (maybe_type_qual): Do not produce line number notes.
14036
14037 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
14038
14039         PR target/13559
14040         * config/sparc/sparc.c (function_arg_record_value_3): Revert
14041         to 'word_mode' once the first slot has been filled.
14042
14043 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
14044
14045         * config/sparc/sparc.c (function_arg_record_value_1): Fix
14046         computation of the number of integer registers required.
14047
14048 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
14049
14050         * config/i386/i386.md: Simplify certain comparisons of
14051         const_int.
14052
14053 2004-01-21  Andrew Pinski  <apinski@apple.com>
14054
14055         PR target/13785
14056         * config/rs6000/rs6000.md (call_value): Force operand
14057         1 not operand 0 into a register.
14058
14059 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
14060
14061         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
14062         unwind-dw2-fde.h: Update copyright.
14063
14064 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14065
14066         * pa-protos.h: Update copyright.
14067         * pa.h: Likewise.
14068         * pa.md: Likewise.
14069
14070 2004-01-21  Caroline Tice  <ctice@apple.com>
14071
14072         PR target/12308
14073         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
14074         flags register.
14075         (fix_truncdfdi2): Likewise.
14076         (fix_truncsfdi2): Likewise.
14077         (*fix_truncdi_1): Likewise.
14078         (fix_truncxfsi2): Likewise.
14079         (fix_truncdfsi2): Likewise.
14080         (fix_truncsfsi2): Likewise.
14081         (*fix_truncsi_1): Likewise.
14082         (fix_truncxfhi2): Likewise.
14083         (fix_truncdfhi2): Likewise.
14084         (fix_truncsfhi2): Likewise.
14085         (*fix_trunchi_1): Likewise.
14086
14087 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
14088
14089         * alias.c, basic-block.h, c-common.c, c-common.h,
14090         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
14091         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
14092         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
14093         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
14094         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
14095         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
14096         genautomata.c, genconditions.c, genemit.c, genflags.c,
14097         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
14098         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
14099         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
14100         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
14101         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
14102         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
14103         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
14104         unwind.h, varray.c, varray.h: Update copyright.
14105
14106 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
14107
14108         * config/h8300/coff.h: Update copyright.
14109         * config/h8300/elf.h: Likewise.
14110         * config/h8300/h8300-protos.h: Likewise.
14111         * config/h8300/h8300.c: Likewise.
14112         * config/h8300/h8300.h: Likewise.
14113         * config/h8300/h8300.md: Likewise.
14114
14115 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14116
14117         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
14118         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
14119         ultrix_unistd): New hacks.
14120         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
14121         ULTRIX_CONST2_CHECK): Add checks.
14122         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
14123         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
14124         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
14125         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
14126         * fixinc/tests/base/locale.h: New file.
14127         * fixinc/fixincl.x: Rebuilt.
14128
14129 2004-01-21  Andreas Jaeger  <aj@suse.de>
14130             Michael Matz  <matz@suse.de>
14131
14132         * doc/extend.texi (Extended Asm): Clarify memory clobber.
14133
14134 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
14135
14136         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
14137         _Jv_RegisterClasses through a function pointer.
14138
14139 2004-01-21  Falk Hueffner  <falk@debian.org>
14140
14141         PR target/12898
14142         * config/alpha/alpha.c (alpha_emit_set_const_1): If
14143         no_new_pseudos, use gen_rtx_SET directly for SImode constants
14144         which need multiple instructions to emit.
14145
14146 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
14147
14148         * config/m32r/m32r.h (CPP_SPEC): Define.
14149
14150 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
14151
14152         * c-decl.c (merge_decls): Kill different_binding_level and
14153         different_tu arguments; simplify throughout.
14154         (duplicate_decls): Likewise.
14155         (pushdecl, merge_translation_unit_decls): Update calls to
14156         duplicate_decls.
14157
14158 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14159
14160         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
14161         $(SYSTEM_H).
14162         (print-rtl1.o): Depend on $(SYSTEM_H).
14163
14164 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
14165
14166         PR bootstrap/12730
14167         * configure.ac: Delete definition and subsitution of docdir.
14168         Add info, man, srcman and srcinfo to target hooks. Create doc/
14169         directory.
14170         * configure: Regenerate.
14171         * Makefile.in: Don't substitute docdir and delete all references
14172         throughout.
14173         (MAKEINFOFLAGS): Define.
14174         (stmp-docobjdir): Delete.
14175         (INFOFILES, MANFILES): Define.
14176         (info): Call lang.info, srcinfo and lang.srcinfo.
14177         (generated-manpages): Call lang.man, srcman and lang.srcman.
14178         (srcinfo, srcman): New rules to copy back files to source directory.
14179         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
14180         (install-man): Revamp rule.
14181         (clean): Update dvi directory.
14182         (distclean): Delete TAGS from front end directorys.
14183         (maintainer-clean): Delete all document files in source directory.
14184
14185         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
14186         (objc.srcman, objc.srcinfo): Likewise.
14187
14188 2004-01-20  Bruce Korb  <bkorb@gnu.org>
14189
14190         * fixinc/inclhack.def(math_exception): bypass only for glibc.
14191         (matherr_decl): rename & relocate as exception_structure.
14192         This fix must precede the math_exception fix.
14193
14194 2004-01-20  Roger Sayle  <roger@eyesopen.com>
14195
14196         * fold-const.c (fold_convert): Rename to fold_convert_const.
14197         (fold_convert_const): Change arguments to take a tree_code,
14198         a type and the operand/expression to be converted.  Return
14199         NULL_TREE if no simplification is possible.  Add support for
14200         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
14201         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
14202         Adjust call to fold_convert to match new fold_convert_const.
14203         Avoid modifying the tree passed to fold in-place.
14204
14205 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
14206
14207         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
14208         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
14209         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
14210
14211 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14212
14213         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
14214         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
14215         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
14216         (emit_move_sequence): Check scratch_reg first in various if statements.
14217         Extend source simplification to handle all 64-bit CONST_INTs.
14218         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
14219         frame size.
14220         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
14221         frame offset calculations.
14222         * pa.h (NEW_HP_ASSEMBLER): Add comment.
14223         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
14224         LEGITIMATE_64BIT_CONST_INT_P): Define.
14225         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
14226         any CONST_INT as legitimate during and after reload.
14227         (VAL_32_BITS_P, INT_32_BITS): Define.
14228         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
14229
14230 2004-01-20  Jan Hubicka  <jh@suse.cz>
14231
14232         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
14233         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
14234         containing hard regs are shared.
14235         (gen_hard_reg_clobber): New function.
14236         (hard_reg_clobbers): New array.
14237         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
14238         (copy_rtx): Do not copy clobbers containing hard regs.
14239         * rtl.h (gen_hard_reg_clobber): Declare.
14240
14241 2004-01-20  Jan Hubicka  <jh@suse.cz>
14242
14243         * varray.c:  Include hashtab.h
14244         (varray_descriptor): New structure.
14245         (hash_descriptor, eq_descriptor, varray_descriptor,
14246         print_statistics): New static functions
14247         (varray_init, varray_grow): Update statistics
14248         (dump_varray_statistics): New function.
14249         * varray.h (dump_varray_statistics): Declare.
14250         * toplev.c (finalize): Call it.
14251         * Makefile.in (varray.o): Add dependency.
14252
14253 2004-01-20  Jan Hubicka  <jh@suse.cz>
14254
14255         * cselib.c: Include alloc-pool.h
14256         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
14257         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
14258         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
14259         unchain_one_elt_loc_list_pool, unchain_one_value,
14260         new_cselib_val): Simplify using allocpool.
14261         (cselib_init): Initialize allocpools.
14262         (cselib_finish): Finish allocpools.
14263         * Makefile.in (cselib.o): Depend on alloc-pool.h
14264
14265 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
14266
14267         * config/mips/mips.c (mips_load_call_address): Make the call insn
14268         use $gp if it could be calling a lazy binding stub.
14269
14270 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
14271
14272         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
14273         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
14274         (TARGET_STRUCT_VALUE_RTX): Likewise.
14275         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
14276         (PROMOTE_FUNCTION_RETURN): Remove.
14277         (STRUCT_VALUE): Remove.
14278
14279 2004-01-20  Denis Chertykov  <denisc@overta.ru>
14280
14281         PR bootstrap/13735
14282         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
14283         register as pointer after reload.
14284
14285 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14286
14287         PR optimization/12440
14288         * loop.c: Include ggc.h.
14289         (loop_optimize): Run garbage collector between optimization of loops.
14290         * Makefile.in (loop.o): Add GGC_H dependency.
14291
14292 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
14293
14294         * gcc/config/rs6000/rs6000.c (function_arg) Handle
14295         vector register special in function without prototype.
14296         (function_arg_advance): Vector parameters get always
14297         GPRs allocated for the linux64 target.
14298
14299 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
14300
14301         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
14302         not TARGET_M32RX_MASK.
14303
14304 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
14305
14306         PR target/13557
14307         * config/sparc/sparc.c (function_arg): Reorder the cases.
14308
14309 2004-01-19  Per Bothner  <per@bothner.com>
14310
14311         Move cpp_reader's line_maps field to a shared global.
14312         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
14313         and change the type to a pointer rather than a struct.
14314         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
14315         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
14316         Likewise.
14317         * cppfiles.c (validate_pch):  Likewise.
14318         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
14319         Likewise.
14320         * cpperror.c (print_location):  Likewise.
14321         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
14322         * cppinit.c (cpp_create_reader):  Handle new parameter.
14323         (cpp_destroy):  Don't free line_maps - that's no longer our job.
14324         * input.h (line_table):  New variable.
14325         * toplev.c (line_table):  Declare variable.
14326         (general_init):  Initialize line_table.
14327         * c-opts.c (c_common_init_options):  Pass line_table to
14328         cpp_create_reader.
14329         * fix-header.c (read_scan_file):  New local variable line_table.
14330         Initialize, and pass it to cpp_create_reader.
14331         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
14332         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
14333
14334 2004-01-19  Per Bothner  <per@bothner.com>
14335
14336         Implement a cache for linemap_lookup.
14337         * line-map.h (struct_line_maps):  Add cache field.
14338         * line-map.c (linemap_init):  Zero cache field.
14339         (linemap_add):  Set cache field to offset of newly allocated map.
14340         (linemap_lookup):  Use and set cache field.
14341
14342 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14343
14344         PR optimization/13567
14345         * cse.c (cse_basic_block): Call cse_insn with a non-null
14346         libcall_insn for the last SET insn of a no-confilict block.
14347
14348 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
14349
14350         * Makefile.in (target_noncanonical, program_transform_name): Use
14351         immediate define instead of deferred.
14352         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
14353         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
14354         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
14355         deferred backquote.
14356
14357 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
14358
14359         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
14360         true unconditionally.
14361         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
14362         Remove.
14363         (build_unary_op, build_modify_expr): Don't handle extended
14364         lvalues.
14365         (build_component_ref, build_conditional_expr): Call non_lvalue
14366         instead of pedantic_non_lvalue.
14367         (build_c_cast): Don't condition use of non_lvalue on pedantic.
14368         * fold-const.c (fold): Don't check pedantic directly for
14369         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
14370         passed to pedantic_non_lvalue.
14371         * doc/extend.texi: Remove documentation of extended lvalues.
14372
14373 2004-01-19  Roger Sayle  <roger@eyesopen.com>
14374
14375         PR optimization/5263
14376         * simplify-rtx.c (associative_constant_p): Delete.
14377         (simplify_associative_operation): Rewrite to linearize terms, and
14378         attempt to simplify new term against both left and right subterms.
14379         (simplify_binary_operation): Call swap_commutative_operands_p on
14380         op0 and op1, not trueop0 and trueop1.  Move the initialization of
14381         trueop0 and trueop1 down to where first needed.
14382         (simplify_relational_operation): Likewise.
14383         * rtlanal.c (commutative_operand_precedence): Also order constant
14384         operands using avoid_constant_pool_reference.
14385
14386 2004-01-19  Richard Henderson  <rth@redhat.com>
14387
14388         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
14389         don't check memory mode.
14390         (unaligned_memory_operand): Likewise.
14391         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
14392         abort for op0 not MEM.
14393
14394         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
14395         is not a reg, copy to a scratch first.
14396         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
14397         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
14398         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
14399         (reload_inqi, reload_inhi): Fix mode of op0.
14400         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
14401         reload_outhi_help): Likewise.  Use define_insn_and_split.
14402
14403         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
14404         as well as $29 dead.
14405
14406 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
14407
14408         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
14409         "tls_object" for thread-local objects.
14410         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
14411         "#tls" for thread-local sections.
14412         * configure.ac (thread-local checks): Specify --fatal-warnings in
14413         every binutils-specific checks.  For sparc*-*-*, test whether the
14414         OS is Solaris and the tools are native and act accordingly.
14415         * configure: Rebuild.
14416
14417 2004-01-19  Jeff Law  <law@redhat.com>
14418
14419         * contrib.texi: Update Paolo Carlini's entry.  New entries for
14420         Jerry Quinn and Petur Runolfsson.
14421
14422 2004-01-19  Roger Sayle  <roger@eyesopen.com>
14423
14424         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
14425         size, don't use the larger zero-extending loads.
14426
14427 2004-01-19  Richard Henderson  <rth@redhat.com>
14428
14429         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
14430         * alpha.md (UNSPEC_NT_LDA): Remove.
14431         (UNSPEC_CVTLQ, cvtlq): New.
14432         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
14433         (extendsidi2_fix): Remove.
14434         (extendsidi2 splitter): Use cvtlq.
14435         (extendsidi2 fp peepholes): Remove.
14436         (cvtql): Use SFmode instead of SImode.
14437         (fix_trunc?fsi): Update to match.
14438         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
14439         (movsi): Rename from movsi_nofix, remove f alternatives.
14440         (movsi_nt_vms): Similarly.
14441         (movsi_fix, movsi_nt_vms_fix): Remove.
14442         (nt_lda): Remove.
14443         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
14444
14445 2004-01-19  Jan Hubicka  <jh@suse.cz>
14446
14447         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
14448         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
14449         list.
14450         (cgraph_remove_unreachable_nodes): New function
14451         (cgraph_decide_inlining_of_small_function): Fix pasto.
14452         (cgraph_decide_inlining_incrementally): Fix pasto.
14453         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
14454
14455 2004-01-19  Steven Bosscher  <stevenb@suse.de>
14456
14457         * gengtype.c (header_file): Make it static.
14458         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
14459         * gengtype.h (header_file): No longer extern.
14460
14461 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
14462
14463         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
14464         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
14465         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
14466
14467 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
14468
14469         * stmt.c (HAVE_casesi): Define it not already defined.
14470         (HAVE_tablejump): Likewise.
14471         (expand_end_case_type): Resort to the binary tree method if
14472         neither casesi or tablejump is available.
14473
14474 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
14475
14476         * final.c (final_scan_insn): Make non-static again.
14477         * output.h (final_scan_insn): Re-add prototype.
14478         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
14479         to final_scan_insn call.
14480         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
14481         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
14482         * config/pa/pa.c (output_lbranch, output_call): Likewise.
14483         * config/sh/sh.c (print_slot): Likewise.
14484         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
14485         (output_sibcall, sparc_flat_function_epilogue): Likewise.
14486
14487 2004-01-18  Jan Hubicka  <jh@suse.cz>
14488
14489         * basic-block.h (try_redirect_by_replacing_jump): Declare.
14490         * cfgcleanup.c (try_optimize_cfg): Use it.
14491         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
14492         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
14493         Kill hack.
14494         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
14495
14496         Revert:
14497         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
14498
14499                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
14500                 even after reload, just don't remove the actual jump tables.
14501
14502 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
14503
14504         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
14505
14506 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
14507
14508         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
14509         the size of a pointer in bytes.
14510
14511 2004-01-18  Roger Sayle  <roger@eyesopen.com>
14512
14513         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
14514         live "next" variable, which could lead to an infinite loop.
14515
14516 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
14517
14518         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
14519         block.
14520
14521         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
14522         Check for NULL in the chain and remove repeated code.
14523
14524 2004-01-18  Jan Hubicka  <jh@suse.cz>
14525
14526         * coverage.c (checksum_string): Rename to ...
14527         (coverage_checksum_string): ... this one, Use crc32_string; recognize
14528         names containing random number and zero the number out in order to get
14529         match.
14530
14531 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
14532
14533         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
14534
14535 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
14536
14537         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
14538         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
14539         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
14540         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
14541         doc/trouble.texi: Remove trailing whitespace.
14542
14543 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
14544
14545         PR target/7618
14546         * config/mips/mips.c: Include cfglayout.h.
14547         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
14548         (mips_unspec_offset_high): Add temporary register argument.
14549         (mips_load_call_address): New function, split out from...
14550         (mips_expand_call): ...here.
14551         (mips_output_cplocal): New function.
14552         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
14553         (mips_emit_loadgp): New function, split out from...
14554         (mips_expand_prologue): ...here.
14555         (mips_output_mi_thunk): New function.
14556
14557 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
14558
14559         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
14560         mcpu32): Remove redundant checks for implied target predefines.
14561
14562 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
14563
14564         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
14565         Return type is unsigned int not int.
14566         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
14567         Likewise.
14568
14569 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
14570
14571         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
14572         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
14573         "GNU/Linux" and "Microsoft Windows" terminology.
14574
14575 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
14576
14577         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
14578         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
14579         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
14580         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
14581         @smallexample instead of @example.
14582
14583 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
14584
14585         * objc/objc-act.c (build_objc_method_call): Use target
14586         hooks instead of macros to determine if ..._stret
14587         dispatchers should be used (NeXT runtime only).
14588
14589 2004-01-17  Roger Sayle  <roger@eyesopen.com>
14590
14591         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
14592         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
14593
14594 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14595
14596         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
14597         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
14598         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
14599         macros.
14600         * reload1.c (emit_reload_insns): Use them.
14601         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
14602         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
14603         for NULL PATTERN.
14604
14605 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
14606
14607         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
14608         (final_scan_insn): Update to take an additional SEEN argument.  Emit
14609         a line note after the prologue.  Make static.
14610         (line_note_exists): Remove.
14611         (final): Don't initialize line_note_exists.  Update call to
14612         final_scan_insn.
14613         * output.h (final_scan_insn): Remove prologue.
14614         * function.c (set_insn_locators): Update comment.
14615         (thread_prologue_and_epilogue_insns): Add a comment.
14616
14617 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
14618
14619         PR target/10781
14620         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
14621         Prototype.
14622         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
14623         New function.
14624         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
14625         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
14626         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
14627
14628 2004-01-17  Jan Hubicka  <jh@suse.cz>
14629
14630         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
14631         commit.
14632
14633         * toplev.c (HAVE_conditional_execution): Provide default.
14634         (rest_of_handle_reorder_blocks): For conditional_execution target
14635         update liveness once after all transformations
14636         (rest_of_compilation): Do crossjumping before ce3.
14637
14638 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
14639
14640         * alias.c (new_alias_set): Mark last_alias_set for PCH.
14641         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
14642         for PCH.
14643         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
14644         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
14645         (get_TOC_alias_set): Mark 'set' for PCH.
14646
14647 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
14648
14649         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
14650         even after reload, just don't remove the actual jump tables.
14651
14652 2004-01-17  J. Brobecker  <brobecker@gnat.com>
14653
14654         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
14655         Remove checks for is_ada() and TREE_UNSIGNED.
14656         (subrange_type_die): Emit a byte_size attribute if the subrange
14657         type size is different from the base type size.
14658         (modified_type_die): Replace call to is_ada_subrange_type() by
14659         call to is_subrange_type().
14660
14661 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
14662
14663         * config/sh/sh.c: Include ggc.h.
14664
14665 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
14666
14667         * Makefile.in (MD5_H): New.
14668         (fold-const.o): Depend on md5.h.
14669         (dwarf2out.o): Likewise.
14670         (cppfiles.o): Likewise.
14671         * cppfiles.c: Include md5.h.
14672         (should_stack_file): Check against list read from PCH file.
14673         (struct pchf_data): New.
14674         (pchf): New variable.
14675         (struct pchf_adder_info): New.
14676         (pchf_adder): New.
14677         (pchf_save_compare): New.
14678         (_cpp_save_file_entries): New.
14679         (_cpp_read_file_entries): New.
14680         (struct pchf_compare_data): New.
14681         (pchf_compare): New.
14682         (check_file_against_entries): New.
14683         * cpphash.h (_cpp_save_file_entries): Prototype.
14684         (_cpp_read_file_entries): Prototype.
14685         * cpppch.c (cpp_write_pch_state): Write the list of headers.
14686         (cpp_read_state): Read the list of headers.
14687
14688 2004-01-17  Jan Hubicka  <jh@suse.cz>
14689
14690         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
14691         builtin_expect specially.
14692         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
14693         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
14694         * invoke.texi (max-inline-insns-single): Set to 100.
14695         (large-function-insns): Set to 3000.
14696
14697 2004-01-16  Eric Christopher  <echristo@redhat.com>
14698             Chandrakala Chavva <cchavva@redhat.com>
14699
14700         * cppcharset.c (one_iso88591_to_utf8): New function.
14701         (convert_iso88591_utf8): Ditto. Use.
14702         (conversion_tab): Use.
14703         (_cpp_input_to_utf8): New function.
14704         (_cpp_init_iconv_buffer): Ditto.
14705         (_cpp_close_iconv_buffer): Ditto.
14706         * cpphash.h: Prototype new functions.
14707         (cpp_buffer): Add input_cset_desc.
14708         * cppinit.c: Add input_charset default.
14709         * cpplib.c (cpp_push_buffer): Support init and
14710         close of iconv.
14711         * cpplib.h (cpp_options): Add input_charset.
14712
14713 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
14714
14715         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
14716         * config/alpha/unicosmk.h: Remove a commented-out definition
14717         of ASM_OUTPUT_SECTION_NAME.
14718         * config/stormy16/stormy16.h: Likewise.
14719
14720 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14721
14722         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
14723         (alpha___extern_prefix_sys_stat): ... this.
14724         Apply to <sys/mount.h>, too.
14725         Tweak to match more variations.
14726         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
14727
14728         * fixinc/inclhack.def (alpha___extern_prefix,
14729         alpha___extern_prefix_standards): New hacks to obey
14730         __PRAGMA_EXTERN_PREFIX.
14731         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
14732         test.
14733         * fixinc/tests/base/standards.h: Likewise.
14734
14735         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
14736         variations.
14737         New testcase.
14738         * fixinc/tests/base/pthread.h: Handle it.
14739
14740         * fixincl/inclhack.def (bad_lval): Sort file list.
14741         Add many missing files up to Tru64 UNIX V5.1B.
14742         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
14743         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
14744         order.
14745
14746         * fixinc/fixincl.x: Regenerate.
14747
14748 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
14749
14750         * version.c (version_string): Change to 3.5.0.
14751         * doc/include/gcc-common.texi (version-GCC): Likewise.
14752
14753 2004-01-16  Jan Hubicka  <jh@suse.cz>
14754
14755         * i386.md (load_tp_di): Fix pasto.
14756
14757         PR opt/13608
14758         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
14759
14760         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
14761         pp_c_character_constant, pp_c_floating_constant,
14762         pp_c_additive_expression, pp_c_shift_expression,
14763         pp_c_equality_expression, pp_c_and_expression,
14764         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
14765         pp_c_logical_and_expression): Remove inline modifier.
14766         * dwarf2out.c (get_AT): Likewise.
14767         * et-forest.c (et_splay): Likewise.
14768         * ra.h (ra_alloc, ra_calloc): Likewise
14769
14770 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
14771
14772         * config/frv/frv-protos.h: Fix comment formatting.
14773         * config/frv/frv.c: Likewise.
14774         * config/frv/frv.h: Likewise.
14775         * config/frv/frv.md: Likewise.
14776         * config/frv/frvbegin.c: Likewise.
14777         * config/frv/frvend.c: Likewise.
14778
14779 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
14780
14781         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
14782         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
14783         LINKER_DOES_NOT_WORK_WITH_DWARF2.
14784         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
14785
14786 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
14787
14788         PR 11864
14789         * postreload.c (reload_cse_simplify_operands): Don't remove
14790         implicit extension from LOAD_EXTEND_OP.
14791
14792 2004-01-16  Jan Hubicka  <jh@suse.cz>
14793
14794         PR opt/11350
14795         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
14796         after reload.
14797         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
14798         rtl_try_redirect_by_replacing_branch): Likewise.
14799
14800 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
14801
14802         PR pch/13689
14803         * alias.c (struct alias_set_entry): Mark for GC.
14804         (alias_sets): Make static, mark for GC.
14805         (record_alias_subset): Use GC to allocate alias structures.
14806         * varray.c (element): Make generic varrays GCed.
14807
14808         PR pch/13361
14809         * c-typeck.c (constructor_asmspec): Delete.
14810         (struct initializer_stack): Delete field 'asmspec'.
14811         (start_init): Delete saving of asmspec.
14812         (finish_init): Don't update constructor_asmspec.
14813         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
14814         * stmt.c (expand_asm): Duplicate strings from tree.
14815         (expand_asm_operands): Likewise.
14816         * tree.c (tree_size): Update computation of size of STRING_CST.
14817         (make_node): Don't make STRING_CST nodes.
14818         (build_string): Allocate string with tree node.
14819         * tree.def (STRING_CST): Update comment.
14820         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
14821         (tree_string): Place contents of string in tree node.
14822         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
14823         from tree.
14824
14825         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
14826         altivec operands.
14827
14828 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
14829
14830         * c-common.h: Fix comment formatting.
14831         * c-cppbuiltin.c: Likewise.
14832         * c-pragma.c: Likewise.
14833         * calls.c: Likewise.
14834         * collect2.c: Likewise.
14835         * cppcharset.c: Likewise.
14836         * cpptrad.c: Likewise.
14837         * dbxout.c: Likewise.
14838         * defaults.h: Likewise.
14839         * dwarf2out.c: Likewise.
14840         * fold-const.c: Likewise.
14841         * genautomata.c: Likewise.
14842         * genconditions.c: Likewise.
14843         * genflags.c: Likewise.
14844         * gengtype.c: Likewise.
14845         * integrate.c: Likewise.
14846         * loop.c: Likewise.
14847         * predict.c: Likewise.
14848         * sdbout.c: Likewise.
14849
14850 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
14851
14852         * config/ia64/ia64.md (*movti_internal): C output template
14853         extracted to ia64.c.
14854         (*movti_internal_reg): Delete.
14855         (reload_inti, reload_outti): Use the correct mode on operand 2
14856         in the first place, don't fix it up in the output template.
14857         (movtf, reload_ointf, reload_outtf): New expanders.
14858         (*movtf_internal): New define_insn_and_split.
14859         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
14860         make static; do not hand TFmode CONST_DOUBLEs to split_double.
14861         (ia64_split_tmode_move): New function, body mostly pulled
14862         from ia64.md:*movti_internal.
14863         (ia64_function_arg_words): New function, extracted common
14864         logic from ia64_function_arg et seq.
14865         (ia64_function_arg_offset): Likewise.  Handle correctly the
14866         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
14867         (ia64_function_arg, ia64_function_arg_partial_nregs)
14868         (ia64_function_arg_advance): Use ia64_function_arg_words and
14869         ia64_function_arg_offset.
14870         (ia64_function_value): TCmode does not go in float regs.
14871         (ia64_secondary_reload_class): Also handle TFmode.
14872         * config/ia64/ia64-protos.h: Remove prototype for
14873         ia64_split_timode; add prototype for ia64_split_tmode_move.
14874
14875 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
14876
14877         * Makefile.in (MAINT): Make it an immediate assignment.
14878
14879 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
14880
14881         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
14882
14883 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
14884
14885         * config/h8300/coff.h: Replace Hitachi with Renesas.
14886         * config/h8300/elf.h: Likewise.
14887         * config/h8300/h8300-protos.h: Likewise.
14888         * config/h8300/h8300.c: Likewise.
14889         * config/h8300/h8300.h: Likewise.
14890         * config/h8300/h8300.md: Likewise.
14891         * config/h8300/lib1funcs.asm: Likewise.
14892
14893 2004-01-15  Andrew Pinski  <apinski@apple.com>
14894
14895         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
14896         around it.
14897
14898 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
14899
14900         * config/h8300/h8300.c (h8300_return_in_memory): New.
14901         (TARGET_STRUCT_VALUE_RTX): Likewise.
14902         (TARGET_RETURN_IN_MEMORY): Likewise.
14903         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
14904         (RETURN_IN_MEMORY): Likewise.
14905
14906 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
14907
14908         PR optimization/13375
14909         * gcse.c (handle_avail_expr): Just return if the source is not a
14910         single set.
14911
14912 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
14913             Daniel Jacobowitz  <drow@mvista.com>
14914
14915         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
14916         (EQUIV): Define.
14917         (ARM_FUNC_ALIAS): New macro.
14918         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
14919         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
14920
14921 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14922
14923         PR optimization/12372
14924         * calls.c (expand_call): Add call_fusage data for stack arguments in
14925         constant calls.
14926
14927 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
14928
14929         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
14930         (rs6000_elf_declare_function_name): Formatting.
14931         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
14932
14933 2004-01-15  Jan Hubicka  <jh@suse.cz>
14934
14935         PR bootstrap/13692
14936         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
14937         previous patch.
14938
14939 2004-01-15  Richard Henderson  <rth@redhat.com>
14940
14941         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
14942         integer regs of the same call-savedness.
14943
14944 2004-01-15  Andreas Schwab  <schwab@suse.de>
14945
14946         PR bootstrap/13562
14947         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
14948         status for NOTB/NOTW/NEGW methods.
14949
14950 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
14951
14952         * doc/invoke.texi: Update dump file names.  Fix a typo.
14953
14954 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
14955
14956         * builtins.c (expand_builtin_va_end): Don't use
14957         EXPAND_BUILTIN_VA_END.
14958         * system.h (EXPAND_BUILTIN_VA_END): Poison.
14959         * config/d30v/d30v.h: Remove a commented-out definition of
14960         EXPAND_BUILTIN_VA_END.
14961         * config/stormy16/stormy16.h: Likewise.
14962
14963 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
14964
14965         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
14966         * targhooks.c (default_struct_value_rtx): Don't use
14967         STRUCT_VALUE_INCOMING_REGNUM.
14968
14969 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
14970
14971         PR bootstrap/12744
14972         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
14973         GENINSRC and not parsedir.  Define srcextra as a langhook.
14974         * configure: Regenerate.
14975         * Makefile.in: Suppress default .l.c rule.  Don't substitute
14976         parsedir and delete all references throughout.  Conditionally define
14977         rule for srcextra dependent on GENINSRC.
14978         (stmp-docobjdir): Delete.
14979         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
14980         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
14981         and gengtype-yacc.h back to source directory.
14982         (maintainer-clean): Delete all parse files in source directory.
14983         (distclean): Delete generated files.
14984
14985         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
14986         (objc-parse.c, objc-parse.y): Don't use parsedir.
14987         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
14988         directory if requested.
14989         (po-generated): Don't use parsedir.
14990         (objc.maintainer-clean): Delete above files from source directory.
14991
14992 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
14993
14994         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
14995
14996 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
14997
14998         * doc/tm.texi: Replace RETURN_IN_MEMORY with
14999         TARGET_RETURN_IN_MEMORY.
15000
15001 2004-01-15  Jan Hubicka  <jh@suse.cz>
15002
15003         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
15004         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
15005         functions accepting SSE arguments
15006         (function_arg): Warn only when asked to warn.
15007         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
15008
15009 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
15010
15011         * c-parse.in (stmts_and_decls): Make label at end of compound
15012         statement a hard error.
15013
15014 2004-01-14  Jan Hubicka  <jh@suse.cz>
15015
15016         * cgraph.c (create_edge): Use local.redefined_extern_inline.
15017         * cgraph.h (cgraph_local_info): Sort fields by size; add
15018         redefined_extern_inline
15019         (cgraph_global_info): Sort fields by size.
15020         (cgraph_node): Likewise.
15021         * cgraphunit.c (cgraph_finalize_function): Se
15022         local.redefined_extern_inline on redefinition.
15023         (cgraph_analyze_function): Use it; fix formating.
15024
15025 2004-01-14  Jan Hubicka  <jh@suse.cz>
15026
15027         PR c++/10776
15028         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
15029         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
15030         bitmaps
15031         (cache_size): New variable
15032         (add_dependence): Update use; canonize early memory locations
15033         (sched_analyze_1): Likewise.
15034         (sched_analyze_2): Likewise.
15035         (init_dependency_caches): Initialize bitmaps.
15036         (free_dependency_caches): Free bitmaps
15037
15038 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
15039
15040         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
15041         targetm.calls.strict_argument_naming().
15042         * target.h: Likewise.
15043
15044 2004-01-14  Richard Henderson  <rth@redhat.com>
15045
15046         PR debug/13231
15047         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
15048         instructions.
15049
15050 2004-01-14  Richard Henderson  <rth@redhat.com>
15051
15052         PR c++/12491
15053         * except.c (struct eh_region): Add u.fixup.resolved.
15054         (resolve_one_fixup_region): Split out from ...
15055         (resolve_fixup_regions): ... here.
15056
15057 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
15058
15059         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
15060
15061 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
15062
15063         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
15064         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
15065         (STRUCT_VALUE): Remove.
15066
15067 2004-01-14  Steven Bosscher  <stevenb@suse.de>
15068
15069         * system.h: Poison PROMOTED_MODE
15070         * integrate.c (expand_inline_function): Don't mention the
15071         PROMOTED_MODE.
15072         * loop.c (update_giv_derive): Same.
15073         * tree.h (DECL_RTL): Same.
15074
15075 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
15076
15077         PR target/9365
15078         * sh.c (gen_block_redirect): Add special handling of RETURN.
15079         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
15080         far branch target (i.e. it's a return).
15081
15082 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
15083
15084         * regrename.c (find_oldest_value_reg): Fix a warning.
15085
15086 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
15087
15088         PR bootstrap/12527
15089         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
15090         Move linux-gas.h and linux-elf.h before aout.h.
15091         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
15092         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
15093
15094 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
15095
15096         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
15097         (CONST_INT, VOIDmode, ...).
15098
15099 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
15100
15101         * regrename.c (find_oldest_value_reg): If the replacement uses
15102         multiple hard registers, check that all of them are in CLASS.
15103
15104 2004-01-14  Jan Hubicka  <jh@suse.cz>
15105
15106         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
15107         impossible.
15108
15109 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
15110
15111         * Makefile.in: Define MAINT from --enable-maintainer-mode.
15112
15113 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15114
15115         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
15116         Calculate always vrsave_mask if TARGET_ALTIVEC.
15117         (rs6000_emit_prologue): Emit code for vrsave
15118         only if TARGET_ALTIVEC_VRSAVE.
15119         (rs6000_emit_epilogue): Likewise.
15120
15121 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
15122
15123         * config/sparc/sparc.md (tie_add32): Fix pasto.
15124         (tie_add64): Likewise.
15125
15126 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15127
15128         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
15129
15130 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
15131
15132         * config/iq2000/iq2000-protos.h: Fix comment formatting.
15133         * config/iq2000/iq2000.c: Likewise.
15134         * config/iq2000/iq2000.md: Likewise.
15135
15136 2004-01-14  J. Brobecker  <brobecker@gnat.com>
15137
15138         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
15139         (subrange_type_die): Add handle for nameless subrange types.
15140
15141 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
15142
15143         * config/h8300/h8300-protos.h: Replace do_movsi with
15144         h8300_expand_movsi.
15145         * config/h8300/h8300.c (do_movsi): Change to
15146         h8300_expand_movsi.
15147         * config/h8300/h8300.md (movsi): Replace do_movsi with
15148         h8300_expand_movsi.
15149         (movsf): Likewise.
15150
15151 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
15152
15153         * config/h8300/h8300.c (dosize): Change to
15154         h8300_emit_stack_adjustment.  Update callers.
15155
15156 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
15157
15158         * config/h8300/h8300.md (movstrictqi): Add an alternative with
15159         the source being post_inc.  Tighten the predicate for the
15160         destination to register_operand.
15161         (movstricthi): Likewise.
15162
15163 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
15164
15165         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
15166         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
15167         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
15168
15169 2004-01-14  Jan Hubicka  <jh@suse.cz>
15170
15171         Partial fix PR c++/12850
15172         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
15173         at zero nest level.
15174
15175 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
15176
15177         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
15178         pseudo-register.
15179
15180 2004-01-13  Devang Patel <dpatel@apple.com
15181
15182         PR debug/7078
15183         * dbxout.c (dbxout_symbol_name): Emit mangled names for
15184         NAMESPACE_DECL memebers.
15185
15186 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
15187
15188         PR c++/12709
15189         * c-common.c (finish_fname_decls): Use the chain only if the
15190         tree is an expr_stmt.
15191
15192 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
15193
15194         * rtl.def: Add comment about new option in automata_option.
15195
15196         * genautomata.c (PROGRESS_OPTION): New macro.
15197         (progress_flag): New global variable.
15198         (gen_automata_option): Process `progress'.
15199         (transform_insn_regexps, check_unit_distributions_to_automata,
15200         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
15201         expand_automata, write_automata): Print about the progress only if
15202         progress_flag.  Remove fflush.
15203         (initiate_automaton_gen): Process command line flag `-progress'.
15204
15205         * doc/md.texi: Describe the new option.
15206
15207 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15208
15209         * cfg.c (dump_bb): Dump entry edges.
15210
15211 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
15212
15213         * arm.c (thumb_legitimate_address_p): Only allow constant pool
15214         references from SImode.
15215         * arm.md (thumb_movhi_insn): Don't allow minipool references.
15216
15217 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
15218
15219         * system.h (TEXT_SECTION): Poison.
15220         * varasm.c (text_section): Don't use TEXT_SECTION.
15221         * config/sh/sh.c (sh_file_start): Fix a comment typo.
15222         * doc/tm.texi (TEXT_SECTION): Remove.
15223
15224 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
15225
15226         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
15227
15228 2004-01-12  James E Wilson  <wilson@specifixinc.com>
15229
15230         * unwind-libunwind.c: Delete.
15231
15232 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
15233
15234         PR 13656
15235         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
15236         oldtype is set, set *newtypep or *oldtypep too.  Do not set
15237         them at the very end.
15238         (validate_proto_after_old_defn): Restructure for comprehensibility;
15239         make error messages clearer.
15240
15241 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
15242
15243         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
15244         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
15245         * varray.c: No need to prototype error.
15246         (varray_check_failed): Wrap long string onto two lines.
15247         (varray_underflow): New function.
15248
15249 2004-01-13  Steven Bosscher  <stevenb@suse.de>
15250
15251         PR c++/13376
15252         * function.h (struct function): Kill `name' field.
15253         (current_function_name): Make it an extern function.
15254         * function.c (current_function_name): New function.
15255         * graph.c: Update all uses of current_function_name.
15256         * gcse.c: Likewise.
15257         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
15258         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
15259         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
15260         instead of a strcmp with "main".
15261
15262 2004-01-13  Jan Hubicka  <jh@suse.cz>
15263
15264         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
15265
15266         * cgraphunit.c (cgraph_optimize_function):  Always do
15267         optimize_inline_calls when there is always_inline callee.
15268         (cgraph_decide_inlining): Fix formating.
15269         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
15270         functions.
15271         (expand_call_inline): Likewise.
15272         * toplev.h (sorry): Fix prototype.
15273
15274 2004-01-12  Roger Sayle  <roger@eyesopen.com>
15275
15276         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
15277         conditional jumps that drop through to unconditional jumps or the
15278         end of the sequence.
15279
15280 2004-01-13  Jan Hubicka  <jh@suse.cz>
15281
15282         * alias.c (new_alias_set): Construct the alias_set varray.
15283         (init_alias_once): Don't do it here.
15284
15285 2004-01-12  Marc Espie <espie@openbsd.org>
15286
15287         * system.h: handle YYBYACC like YYBISON.
15288
15289 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
15290
15291         PR target/10847
15292         * config.gcc: No longer includes conflicting header sparc/sol2.h when
15293         building on sparc64-*-openbsd*.
15294
15295 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
15296
15297         PR debug/13539
15298         * dbxout.c (dbxout_type): Protected inheritance is not
15299         private but protected.
15300
15301 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
15302
15303         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
15304
15305 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
15306
15307         PR optimization/12508.
15308         * combine.c (try_combine): Remove a dead set in a parallel
15309         even if its destination is a subreg.
15310
15311         Revert:
15312         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
15313         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
15314         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
15315
15316 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
15317
15318         * real.c: Update copyright date.
15319         * emit-rtl.c: Likewise.
15320         * rtl.h: Likewise.
15321         * dwarf2out.c: Likewise.
15322         * config/rs6000/darwin-ldouble.c: Likewise.
15323         * config/rs6000/rs6000.md: Likewise.
15324
15325 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
15326
15327         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
15328         TFmode to SImode libfuncs.
15329
15330 2004-01-12  Roger Sayle  <roger@eyesopen.com>
15331
15332         PR middle-end/11397
15333         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
15334
15335 2004-01-12  Jan Hubicka  <jh@suse.cz>
15336
15337         PR opt/12826
15338         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
15339         stored.
15340
15341         PR opt/12863
15342         * cfgcleanup.c (label_is_jump_target_p): Move to...
15343         * rtlanal.c (label_is_jump_target_p): ... here.
15344         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
15345         edges unified with branch edges.
15346
15347 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
15348
15349         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
15350         high word of an integral CONST_DOUBLE.
15351
15352 2004-01-12  Paul Brook  <paul@codesourcery.com>
15353
15354         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
15355
15356 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
15357
15358         PR target/13585
15359         * sh-protos.h (check_use_sfunc_addr): Declare.
15360         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
15361         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
15362
15363 2004-01-12  Jan Hubicka  <jh@suse.cz>
15364
15365         * alias.c:  Invlude varray.h
15366         (alias_sets): Turn into varray.
15367         (get_alias_set_entry): Use VARRAY; mark inline.
15368         (mems_in_disjoint_alias_sets_p): Mark inline.
15369         (record_alias_subset): Use varray.
15370         (init_alias_once): Initialize varray.
15371         (new_alias_set): Grow array.
15372         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
15373
15374 2004-01-12  Jan Hubicka  <jh@suse.cz>
15375
15376         Partial fix for PR opt/10776 II
15377         * cselib.c: Include params.h
15378         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
15379         locations.
15380         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
15381         * Makefile.in (cselib.o): Depend on params.h
15382
15383 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
15384
15385         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
15386         simplify_unary_operation if the operand has a known mode.
15387
15388 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
15389
15390         PR target/13534
15391         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
15392         predicate to handle 'ld' conform addresses.
15393         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
15394         contraint.
15395         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
15396         are memory contraints.
15397         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
15398         New prototype.
15399         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
15400         Change 'o' to 'Y' constraint.
15401         (*movdf_softfloat64): Ditto.
15402
15403 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
15404
15405         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
15406         brace-enclosed syntax in all C output statements.
15407
15408 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
15409
15410         PR target/13401
15411         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
15412         Objective-C language type value is 14.
15413
15414 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
15415
15416         PR c/12148
15417         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
15418         `int' in a number of places to make sure we always have a SImode
15419         and not a HImode.  Add a 'L' suffix to a number of constants.
15420
15421 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15422
15423         * pa.c: Don't include obstack.h.
15424
15425         * pa.md: Correct constraint in pattern for loading PIC label address.
15426
15427 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
15428
15429         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
15430          before defining.
15431
15432 2004-01-11  Steven Bosscher  <stevenb@suse.de>
15433
15434         PR fortran/9972
15435         * toplev.c (rest_of_handle_inline): Also consider functions
15436         for deferral if the language is GNU F77.
15437
15438 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
15439
15440         * c-decl.c (diagnose_arglist_conflict): Add missing space to
15441         diagnostic messages.
15442
15443 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
15444
15445         PR middle-end/13392
15446         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
15447         to drop through label.  Don't fall back to SCC even when conditional
15448         jump has not been found.
15449
15450 2004-01-11  Jan Hubicka  <jh@suse.cz>
15451
15452         * invoke.texi: Fix syntax error in previous patch.
15453
15454         Partial fix for PR opt/10776
15455         * Makefile.in (reload.o): Include param.h
15456         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
15457         * reload.c: Include params.h.
15458         (find_equiv_reg): Work limiting check.
15459         * invoke.texi: Document.
15460
15461 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
15462
15463         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
15464         out-of-bounds accesses to string constants.  Simplify mips16
15465         case accordingly.
15466
15467 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
15468
15469         PR optimization/13469
15470         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
15471         reload_cse_regs (-fnon-call-exceptions only).
15472
15473 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
15474
15475         * config/mcore/lib1.asm: Fix comment formatting.
15476         * config/mcore/mcore-elf.h: Likewise.
15477         * config/mcore/mcore.c: Likewise.
15478         * config/mcore/mcore.h: Likewise.
15479         * config/mcore/mcore.md: Likewise.
15480
15481 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
15482
15483         * c-decl.c (duplicate_decls): Break apart into...
15484         (diagnose_arglist_conflict, validate_proto_after_old_defn)
15485         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
15486         ... these new functions.  Restructure for comprehensibility.
15487         Remove various archaic special cases.  Always report the
15488         location of the previous declaration when a diagnostic is issued.
15489         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
15490         (match_builtin_function_types): Delete unnecessary forward declaration.
15491
15492 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
15493
15494         * genautomata.c (make_automaton, NDFA_to_DFA):
15495         Print progress bars with '.' characters instead of '*'.
15496         (build_automaton): Change notes to match.
15497
15498 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
15499
15500         * config/m32r/m32r.md: Use define_constants for unspec and
15501         unspec_volatile.
15502
15503 2004-01-10  Jan Hubicka  <jh@suse.cz>
15504
15505         PR opt/11635
15506         * expr.c (expand_expr_real):  More curefully expand union casts.
15507
15508 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
15509
15510         * config/m32r/m32r.md (flush_icache): Use 1 for
15511         unspec_volatile.
15512
15513 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
15514             James E Wilson  <wilson@specifixinc.com>
15515
15516         PR debug/12860
15517         * dbxout.c (dbxout_symbol): Remove initialization of
15518         current_sym_code, current_sym_value, and current_sym_addr.
15519         (dbxout_symbol_location): Same.
15520         (dbxout_prepare_symbol): Zero current_sym_code,
15521         current_sym_value, and current_sym_addr.
15522
15523 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
15524
15525         * tree.c (get_unwidened): Reorder conditions so that the null pointer
15526         check is done first.
15527
15528 2004-01-09  Eric Christopher  <echristo@redhat.com>
15529
15530         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
15531         if we're running mark_constant_function.
15532
15533 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
15534
15535         PR target/12561
15536         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
15537
15538 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
15539
15540         PR debug/11231
15541         * dbxout.c (dbxout_type_fields): Return if any item is
15542         error_mark_node or the type is error_mark_node.
15543
15544 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
15545
15546         * config/rs6000/darwin-ldouble.c: Add big comment explaining
15547         exactly what is expected as a 'long double'.
15548         (_xlqadd): When a value to be returned is representable as a
15549         'double', just return it directly, do not construct it using a union.
15550         Also, correct final fixup.
15551         (_xlqmul): Likewise.
15552         (_xlqdiv): Likewise.
15553         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
15554
15555         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
15556
15557 2004-01-09  Richard Henderson  <rth@redhat.com>
15558
15559         * recog.c (constrain_operands): Validate mem operands.
15560
15561 2004-01-09   James E Wilson  <wilson@specifixinc.com>
15562
15563         * gcc.c (init_spec): Remove -lunwind from shared case.
15564         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
15565
15566 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
15567
15568         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
15569         * configure: Regenerate
15570
15571 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
15572
15573         PR c/11234
15574         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
15575         between function and object pointers.
15576         (digest_init): When comparing a pointer to function type to the
15577         target type, only apply TREE_TYPE once to the pointer to function
15578         type.
15579         * except.c (for_each_eh_label_1): Treat data as a pointer to a
15580         function pointer rather than casting it to a function pointer.
15581         (for_each_eh_label): Update caller.
15582         * recog.h (struct insn_data): Use a struct or union for output.
15583         * genoutput.c (output_insn_data): Update.
15584         * final.c (get_insn_template): Update.
15585
15586 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
15587
15588         * expr.h (expand_expr): Make it a macro, not a function.
15589         (expand_expr_real): New function.
15590         * expr.c (store_expr): Adjust logic for deciding whether or not to
15591         copy the value returned by expand_expr.
15592         (expand_expr): Rename to ...
15593         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
15594         calls to language hooks.
15595         * c-common.h (c_expand_expr): Adjust prototype.
15596         * c-common.c (c_expand_expr): Add alt_rtl parameter.
15597         * langhooks-def.h (lhd_expand_expr): Change prototype.
15598         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
15599         * langhooks.h (lang_hooks): Change type of expand_expr.
15600         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
15601         (last_expr_alt_rtl): Likewise.
15602         (expand_expr_stmt_value): Set last_expr_alt_rtl.
15603         (clear_last_expr): Clear it.
15604         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
15605         (expand_end_bindings): Save and restor last_expr_alt_rtl.
15606         * tree.def (RTL_EXPR): Give it an additional operand.
15607         * tree.h (RTL_EXPR_ALT_RTL): New macro.
15608
15609 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
15610
15611         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
15612         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
15613
15614 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15615
15616         PR target/13380.
15617         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
15618         or (ne:SI (reg:CC 17) (const_int 0)).
15619         Be specific about modes wherever possible.
15620
15621 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15622
15623         * config/m32r/m32r.c (m32r_expand_block_move): Call
15624         gen_movestrsi_internal with two more arguments.
15625         (m32r_output_block_move): Adjust operand numbers.
15626         Properly update the source and destination pointers.
15627         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
15628         'r+'.  Change the set detinations to match_operand.
15629
15630 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15631
15632         * final.c (FIRST_INSN_ADDRESS): Remove.
15633         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
15634         * system.h (FIRST_INSN_ADDRESS): Poison.
15635         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
15636         * config/m32r/m32r-protos.h: Remove the prototype for
15637         m32r_first_insn_address.
15638         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
15639         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
15640         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
15641
15642 2004-01-09  J. Brobecker  <brobecker@gnat.com>
15643
15644         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
15645         we just created.
15646         (is_ada_subrange_type): DIEs for enumeration subtypes should be
15647         emitted as subrange types too.
15648         (subrange_type_die): Add handling of enumeration subtypes.
15649
15650 2004-01-08  Richard Henderson  <rth@redhat.com>
15651
15652         PR opt/12441
15653         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
15654         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
15655         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
15656         (ix86_address_cost): Be prepared for SUBREGed registers.
15657         (legitimate_address_p): Accept SUBREGed registers.
15658
15659 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
15660
15661         * Makefile.in: Rename configure.in to configure.ac
15662         * doc/sourcebuild.texi: Likewise.
15663         * configure: Regenerate.
15664         * config.in: Regenerate.
15665
15666 2004-01-08  Stuart Hastings  <stuart@apple.com>
15667
15668         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
15669
15670 2004-01-08  Jan Hubicka  <jh@suse.cz>
15671
15672         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
15673
15674 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
15675
15676         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
15677         (UNSPEC_FIX_TRUNC_TF): New constant.
15678         (movtf_internal): Make splitter active only when insn is active.
15679         (extenddftf2): Rewrite to properly load zero into low part.
15680         (extenddftf2_internal): New.
15681         (extendsftf2): Rewrite.
15682         (truncdftf2): Correct length.
15683         (floatditf2): Delete.
15684         (fix_trunc_helper): New.
15685         (fix_trunctfdi2): Use fix_trunc_helper.
15686         (fix_trunctfsi2): Likewise.fix_trunc
15687         (fix_trunctfsi2_internal): New.
15688
15689         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
15690         addresses are legitimate on Darwin even when flag_pic.
15691         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
15692         non-offsettable addresses for loads of TFmode constants.
15693
15694 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
15695
15696         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
15697         variables in the appropriate bss section.
15698
15699 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
15700
15701         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
15702         target_flags has MASK_POWERPC64 when -m64.
15703         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
15704         to 620, 630, power3, power4 and rs64a entries.
15705         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
15706
15707 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
15708
15709         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
15710         floating-point constants.
15711
15712 2004-01-08  J. Brobecker  <brobecker@gnat.com>
15713
15714         * dwarf2out.c (subrange_type_die): Add context_die parameter.
15715         Create the subrange_type DIE using the given context DIE.
15716         (modified_type_die): Update call to subrange_type_die.
15717
15718 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
15719
15720         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
15721         Add multiple-include guard.
15722
15723 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
15724
15725         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
15726         all vector constant loadable by vsplt*.
15727         (output_vec_const_move): Likewise.
15728
15729 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
15730
15731         PR c/6024
15732         * c-typeck.c (comptypes): Only treat enumerated types in the same
15733         translation unit as compatible with each other when they are the
15734         same type.
15735         * doc/extend.texi: Update.
15736
15737 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
15738
15739         PR c/12165
15740         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
15741         array type from the array element type.
15742
15743 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
15744
15745         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
15746         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
15747         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
15748         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
15749         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
15750
15751 2004-01-06  Eric Christopher  <echristo@redhat.com>
15752
15753         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
15754         (DWARF2_DEBUGGING_INFO): Define.
15755         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
15756         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
15757         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
15758         for irix as.
15759         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
15760         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
15761         * config/mips/iris5gas.h: Ditto.
15762         (DBX_DEBUGGING_INFO): Remove.
15763         (DWARF2_DEBUGGING_INFO): Ditto.
15764         (MIPS_DEBUGGING_INFO): Ditto.
15765         (PREFERRED_DEBUGGING_TYPE): Ditto.
15766         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
15767         (PREFERRED_DEBUGGING_TYPE): Ditto.
15768         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
15769         * config/mips/elf64.h: Ditto.
15770
15771 2004-01-06  Jan Hubicka  <jh@suse.cz>
15772
15773         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
15774         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
15775
15776 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
15777
15778         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
15779         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
15780         * config/rs6000/darwin-ldouble.c: New.
15781
15782         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
15783         for constants.
15784         (constant_subword): Delete.
15785         * rtl.h (constant_subword): Delete prototype.
15786         (immed_double_const): Is not in varasm.c.
15787         * simplify-rtx.c (simplify_immed_subreg): New.
15788         (simplify_subreg): Use simplify_immed_subreg.
15789
15790         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
15791         than trying to generate RTL directly.
15792         (fix_trunctfsi2): Use expand_fix rather than trying to generate
15793         RTL directly.
15794
15795         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
15796
15797 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
15798
15799         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
15800         function into a separate macro.
15801         (read_only_data_section): Add void argument.
15802         (private_data_section): Same.
15803         (read_only_private_data_section): Same.
15804         (toc_section): Same.
15805
15806 2004-01-06  Jan Hubicka  <jh@suse.cz>
15807
15808         * invoke.texi:  Remove typo in last change.
15809
15810         PR target/10301
15811         * config.gcc: Accept opteron and athlon-64 as variants
15812         of k8.
15813         * i386.c (override_options): Likewise.
15814         * invoke.texi (i386 -mtune): Expand documentation.
15815
15816 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
15817
15818         * alias.c: Fix comment typos.
15819         * builtins.c: Likewise.
15820         * cfg.c: Likewise.
15821         * df.c: Likewise.
15822         * dominance.c: Likewise.
15823         * dwarf2out.c: Likewise.
15824         * emit-rtl.c: Likewise.
15825         * expr.c: Likewise.
15826         * final.c: Likewise.
15827         * fold-const.c: Likewise.
15828         * gcse.c: Likewise.
15829         * genattrtab.c: Likewise.
15830         * genrecog.c: Likewise.
15831         * gensupport.c: Likewise.
15832         * ggc-zone.c: Likewise.
15833         * integrate.c: Likewise.
15834         * local-alloc.c: Likewise.
15835         * loop.c: Likewise.
15836         * recog.c: Likewise.
15837         * regmove.c: Likewise.
15838         * reg-stack.c: Likewise.
15839         * reorg.c: Likewise.
15840         * rtlanal.c: Likewise.
15841         * rtl.h: Likewise.
15842         * sched-ebb.c: Likewise.
15843         * simplify-rtx.c: Likewise.
15844         * toplev.c: Likewise.
15845         * varasm.c: Likewise.
15846
15847 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
15848
15849         * doc/install.texi: Fix typos.
15850         * doc/invoke.texi: Likewise.
15851         * doc/md.texi: Likewise.
15852
15853 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
15854
15855         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
15856
15857 2004-01-06  Jan Hubicka  <jh@suse.cz>
15858
15859         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
15860         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
15861         of MMX_REGPARM.
15862         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
15863         add MMX_REGPARM.
15864         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
15865         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
15866         (MMX_REGPARM_MAX): Similarly for -mmmx.
15867
15868 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15869
15870         * config/sh/linux.h: Fix comment formatting.
15871         * config/sh/netbsd-elf.h: Likewise.
15872         * config/sh/sh.c: Likewise.
15873         * config/sh/sh.h: Likewise.
15874         * config/sh/vxworks.h: Likewise.
15875
15876 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15877
15878         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
15879         * toplev.c (output_file_directive): Don't use
15880         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
15881
15882 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
15883
15884         * toplev.c: Fix broken checkin of 2003-12-30.
15885
15886 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
15887
15888         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
15889         (USING_MMAP): We don't support non-mmap.
15890         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
15891         large objects.
15892         (struct page_entry): Remove bytes_free.
15893         (struct page_table_chain): Remove.
15894         (struct globals): Remove page_table member.
15895         (loookup_page_table_entry): Function deleted.
15896         (set_page_table_entry): Ditto.
15897         (ggc_allocated_p): No longer need page table lookups.
15898         (ggc_marked_p): Ditto.
15899         (alloc_small_page): Don't care about bytes_free anymore.
15900         (alloc_large_page): Round up size.
15901         (ggc_alloc_zone_1): Mark large objects as such, and calculate
15902         their size the new way.
15903         Remove page table lookups and setting.
15904         (ggc_get_size): Calculate large object size the new way.
15905         (sweep_pages): Redo to account for fact that we no longer have
15906         bytes_free.
15907         (ggc_collect): No longer need to reincrement bytes_free.
15908         (ggc_pch_alloc_object): Handle new large objects properly.
15909         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
15910
15911 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15912
15913         * doc/invoke.texi: Remove a page break.
15914
15915 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15916
15917         * config/avr/avr.c (avr_output_function_prologue): Remove an
15918         extra pair of curly braces.
15919
15920 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15921
15922         * config/mn10300/mn10300.c: Fix comment formatting.
15923         * config/mn10300/mn10300.h: Likewise.
15924
15925 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15926
15927         * tree.h: Update documentation on nothrow_flag.
15928         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
15929         types.
15930
15931 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
15932
15933         * doc/invoke.texi: Remove traces of dead ports.
15934
15935 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
15936
15937         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
15938         option.
15939
15940 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
15941
15942         PR target/12945
15943         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
15944         counter labels.
15945         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
15946         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
15947         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
15948         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
15949         (mips_symbol_insns): Don't trust the local/global classification.
15950         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
15951         (override_options): Make -mabicalls -fno-unit-at-a-time imply
15952         -mno-explicit-relocs.
15953         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
15954         between local and global symbols.
15955
15956 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
15957
15958         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
15959         (mips_preferred_reload_class): Declare.
15960         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
15961         (EXTRA_CONSTRAINT): Update accordingly.
15962         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
15963         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
15964         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
15965         mips_dangerous_for_la25_p.
15966         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
15967         if mips_dangerous_for_la25_p.
15968
15969 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
15970
15971         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
15972         warning.
15973
15974 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
15975
15976         * configure.ac: Use AC_PROG_CPP_WERROR.
15977         * configure: Regenerate.
15978
15979 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
15980
15981         * .cvsignore: Add autom4te.cache.
15982
15983 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
15984
15985         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
15986         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
15987         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
15988         then architecture options, then ABI options.  General rewording.
15989
15990 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
15991
15992         PR c/3414
15993         * doc/extend.texi: Clarify definition of malloc attribute.
15994
15995 2004-01-04  Jan Hubicka  <jh@suse.cz>
15996
15997         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
15998         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
15999         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
16000         (cgraph_inline_p): Add extra argument reason.
16001         * cgraphunit.c: Minor formating fixes.
16002         cgraph_first_inlined_callee): New functions.
16003         (record_call_1): Record builtins too.
16004         (cgraph_analyze_function): Update inline_failed messages.
16005         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
16006         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
16007         (cgraph_check_inline_limits): Likewise; Add argument reason.
16008         (cgraph_set_inline_failed): New static function.
16009         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
16010         reasons.
16011         (cgraph_inline_p): Add new argument reason.
16012         * tree-inline.c (expand_call_inline):  Update warning.
16013
16014 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
16015
16016         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
16017         with modern equivalents.
16018         * configure: Regenerate.
16019
16020         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
16021         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
16022         * configure: Regenerate.
16023
16024         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
16025
16026         * configure.in: Rename to configure.ac.
16027         * configure.ac: Renamed from configure.in; make minimum necessary
16028         changes for autoconf 2.5x.
16029         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
16030         * configure: Regenerate with autoconf 2.57.
16031
16032 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
16033
16034         * config/mips/linux.h: Fix comment formatting.
16035         * config/mips/mips.c: Likewise.
16036         * config/mips/mips.h: Likewise.
16037         * config/mips/mips.md: Likewise.
16038         * config/mips/netbsd.h: Likewise.
16039         * config/mips/windiss.h: Likewise.
16040
16041 2004-01-02  Richard Henderson  <rth@redhat.com>
16042
16043         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
16044         for sse and 387; add suppression for mmx.
16045
16046 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
16047
16048         * loop.c (loop_optimize): Free all loops_info's mems.
16049
16050         * c-typeck.c (finish_init): Free spelling_base before
16051         setting it again.
16052
16053         * cfgloop.c (flow_loops_find): Always free the sbitmap
16054         headers.
16055
16056         * predict.c (estimate_probability): Free bbs after being
16057         done with it.
16058
16059 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
16060
16061         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
16062         const_8bit_operand and call_address_operand.
16063
16064 2004-01-02  Jan Hubicka  <jh@suse.cz>
16065
16066         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
16067         when there is nothing to inline but warnings are requested.
16068         (cgraph_decide_inlining):  Fix memory leak.
16069
16070 2004-01-02  Jan Hubicka  <jh@suse.cz>
16071
16072         * expr.c (store_constructor):  Fix pasto in previous patch.
16073
16074 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
16075
16076         * config/i386/cygming.h: Fix comment formatting.
16077         * config/i386/djgpp.h: Likewise.
16078         * config/i386/gthr-win32.c: Likewise.
16079         * config/i386/i386-interix.h: Likewise.
16080         * config/i386/i386.c: Likewise.
16081         * config/i386/i386.h: Likewise.
16082         * config/i386/openbsd.h: Likewise.
16083         * config/i386/winnt.c: Likewise.
16084         * config/i386/xm-mingw32.h: Likewise.
16085
16086 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
16087
16088         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
16089         copyright and last modification dates.
16090
16091 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
16092
16093         * doc/install.texi (Specific): Mention x86_64.
16094
16095 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
16096
16097         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
16098         Call force_operand on plus_constant result.
16099
16100 2004-01-01  Jan Hubicka  <jh@suse.cz>
16101
16102         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
16103         * expr.c (store_constructor): Use vec_init pattern.
16104         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
16105         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
16106         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
16107         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
16108         New patterns.
16109         (sse2_unpc?pd): Fix pattern.
16110         (sse2_movlpd): Kill.
16111         (sse2_movsd): Deal with movlpd too.
16112         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
16113         (ix86_expand_vector_init): New.
16114         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
16115         * md.texi (vec_set, vec_extract): Document
16116
16117 2003-12-31  Jan Hubicka  <jh@suse.cz>
16118
16119         PR opt/13473
16120         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
16121         ASM input operands
16122
16123         PR opt/12617
16124         * toplev.c (dump_file_index): Reorder ce3 and bbro.
16125         (dump_file): Likewise.
16126         (rest_of_compilation): Likewise.
16127
16128         PR debug/13367
16129         * cgraph.c (cgraph_function_possibly_inlined):  Even with
16130         flag_really_no_inline we inline always_inline functions.
16131         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
16132         for non-always_inline functions when there is flag_really_no_inline.
16133         (cgraph_decide_inlining): Limit work done when not inlining.
16134         (cgraph_decide_inlining_incrementally): Likewise.
16135         (cgraph_optimize_function): Check whether something got inlined.
16136         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
16137         extern inline functions when not inlining.
16138
16139         * opts.c (decode_options):  Disable crossjumping at -O1
16140         * invoke.texi (-O1): Document change.
16141
16142 See ChangeLog.10 for earlier changes.