netbsd-elf.h (LINK_SPEC): Rename to...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2
3         * config/netbsd-elf.h (LINK_SPEC): Rename to...
4         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
5         to specify program entry point.
6
7 2002-06-07  Jeff Law <law@redhat.com
8
9         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
10         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather       
11         than creating a new register.
12         (distribute_notes): Likewise.
13         * df.c (df_reg_use_gen): Likewise.
14         (df_reg_clobber_gen): Likewise.
15         (df_ref_record): Likewise.
16         * expr.c (use_regs): Likewise.
17         * flow.c (propagate_one_insn): Likewise.
18         (mark_set_1): Likewise.
19         (mark_used_reg): Likewise.
20         * reload.c (emit_reload_insns): Likewise.
21
22 2002-06-07  Roger Sayle  <roger@eyesopen.com>
23
24         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
25         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
26         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
27         comparison code comp can be reversed.
28
29 2002-06-07  Roger Sayle  <roger@eyesopen.com>
30
31         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
32         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
33         equivalent x > -1.0 when -ffast-math.
34
35 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
36
37         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
38         * config/mips/t-netbsd: New file.
39
40 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
41
42         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
43         options their own entries.
44         (parse_option): Clarify comment.
45         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
46         special case.  Replace if/strcmp chain for -W options with
47         use of new OPT_* entries for them.
48         (cpp_handle_options): Update to match.
49         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
50         * c-decl.c: Update call to cpp_handle_option.
51
52 2002-06-07  Akim Demaille  <akim@epita.fr>
53
54         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
55         Whitespace changes.
56
57 2002-06-07  Jeffrey Law  <law@redhat.com>
58
59         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
60         on empty lists.
61
62 2002-06-07  H.J. Lu  (hjl@gnu.org)
63
64         * configure.in: Add --enable-__cxa_atexit.
65         * configure: Regenerated.
66         * config.in: Likewise.
67
68         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
69         not defined.
70
71 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
72
73         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
74
75 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
76
77         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
78
79 2002-06-07  Jason Merrill  <jason@redhat.com>
80
81         * cppexp.c (num_equality_op): Use a temporary variable to work
82         around gcc 3.0.4 bug.
83
84 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
85
86         * diagnostic.c (diagnostic_build_prefix): Tidy.
87
88 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
89
90         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
91         scan_parameters, save_replacement_text, replacement_length): New.
92         (scan_out_logical_line): Take a macro and save parameters if
93         non-NULL.
94         (_cpp_logical_line_trad): Update.
95         (_cpp_create_trad_definition): Update to handle function-like
96         macros.
97         * cpplex.c (new_buff): Update.
98         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
99         * cpphash.h: ...here.
100         (CPP_ALIGN2, _cpp_save_parameter): New.
101         * cppmacro.c (save_parameter): Rename, export.
102         (parse_params): Update.
103
104 2002-06-07  Andreas Jaeger  <aj@suse.de>
105
106         * config/mmix/mmix.c: Remove extra broken prototype for
107         mmix_init_machine_status.
108
109 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
110
111         * gengtype.c: Add comments before all the routines.
112
113 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
114
115         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
116         from and add t-sh64 to ${tmake_file}.
117         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
118         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
119         * config/sh/t-netbsd-sh5-32: Remove.
120         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
121         MULTILIB_ENDIAN.
122         (MULTILIB_DIRNAMES): Define.
123
124 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
125
126         * i386.md (and promoting splitters): Disable QI to SImode promoting
127         when doing so changes immediate to be 32bit.
128
129         * rtl.h (emit_*_scope): Declare.
130         * emit-rtl.c (emit_*_scope): New global functions.
131         (try_split): Copy scope.
132         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
133         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
134         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
135         noce_process_if_block, find_cond_trap): Copy scopes.
136         * recog.c (peephole2_optimize): likewise.
137
138 2002-06-06  Jeffrey Law  <law@redhat.com>
139
140         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
141
142 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
143
144         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
145
146 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
147
148         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
149         ($(docdir)/gccinstall.info): New target.
150         (info): Depend on it.
151         (gccinstall.dvi): New target.
152         (dvi): Depend on it.
153         * doc/.cvsignore: Ignore new info files.
154         * doc/install.texi (@setfilename): Reflect new info filename.
155
156 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
157
158         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
159         on an UNSPEC.
160
161 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
162
163         PR objc/6834
164         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
165         c_common_get_alias_set.
166         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
167
168 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
169
170         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
171         functions.
172         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
173         * avr/avr.c (avr_output_function_epilogue): Use above to determine
174         function size.
175         * pa/pa.c (pa_output_function_prologue): Likewise.
176
177 2002-06-05  David S. Miller  <davem@redhat.com>
178
179         * integrate.c (subst_constants): Handle 'B' RTL format.
180
181 2002-06-05  Eric Christopher  <echristo@redhat.com>
182
183         * varasm.c (make_decl_rtl): Fix comment for removed
184         halfpic.c.
185
186 2002-06-05  Eric Christopher  <echristo@redhat.com>
187
188         * Makefile.in: Remove missed halfpic bits.
189
190 2002-06-05  Eric Christopher  <echristo@redhat.com>
191
192         * toplev.c: Remove half-pic.
193         * config/mips/mips.c: Ditto.
194         * config/mips/mips.h: Ditto. Remove unused defines.
195         * config/mips/openbsd.h: Update comment to reflect above.
196         * config/mips/mips.md: Remove half-pic constraints.
197         * halfpic.h: Delete.
198         * halfpic.c: Ditto.
199
200 2002-06-05  Jeffrey Law  <law@redhat.com>
201
202         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
203         rejects (mem (lo_sum (reg) (unspec))), but will allow
204         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
205
206 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
207
208         * cpphash.h (_cpp_create_definition): Update prototype.
209         (_cpp_push_text_context, _cpp_create_trad_definition): New.
210         ( cpp_lex_identifier_trad): New.
211         (_cpp_set_trad_context): New.
212         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
213         * cpplib.c (SEEN_EOL): Update.
214         (lex_macro_node): Update for -traditional.
215         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
216         * cppmacro.c (_cpp_create_definition): Split into
217         create_iso_definition() and _cpp_create_trad_definition().
218         (warn_of_redefinition): Update prototype; handle traditional
219         macros.
220         (_cpp_push_text_context): New.
221         * cpptrad.c (skip_whitespace, push_replacement_text): New.
222         (lex_identifier): Call ht_lookup with correct start.
223         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
224         _cpp_set_trad_context): New.
225         (scan_out_logical_line): Update to handle changing contexts.
226
227 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
228
229         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
230         (shl*-*-elf*): Add.
231         * config/sh/t-be (MULTILIB_ENDIAN): Set.
232         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
233         * t-sh (MULTILIB_ENDIAN): Set.
234         (MULTILIB_OPTIONS): Use it.
235         * t-sh64 (MULTILIB_OPTIONS): Likewise.
236         (MULTILIB_DIRNAMES): Likewise.
237
238 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
239
240         * toplev.h (report_error_function): Remove.
241
242         * diagnostic.h (location_t): New datatype.
243         (text_info): Likewise.
244         (diagnostic_info): Likewise.
245         (output_prefix): New macro.
246         (diagnostic_last_function_changed): Likewise.
247         (diagnostic_set_last_function): Likewise.
248         (diagnostic_last_module_changed): Likewise.
249         (diagnostic_set_last_module): Likewise.
250         (report_diagnostic): Now macro.
251         (diagnostic_set_info): Declare.
252
253         * diagnostic.c (report_problematic_module): Rename to
254         diagnostic_repor_current_module.
255         (set_diagnostic_context): Remove.
256         (count_error): Rename to diagnostic_error_count.
257         (error_function_changed): Remove.
258         (record_last_error_function): Likewise.
259         (error_module_changed): Likewise.
260         (record_last_error_module): Likewise.
261         (context_as_prefix): Rename to diagnostic_build_prefix.
262         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
263         (diagnostic_set_info): New function.
264
265         * objc/objc-act.c: #include diagnostic.h
266         (error_with_ivar): Adjust call to count_error.
267         (warn_with_method): Likewise.
268         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
269
270 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
271
272         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
273         lang_hooks.types.make_type instead of make_node; set up
274         __va_list_tag type decl.
275         (xtensa_builtin_saveregs): Remove broken use of
276         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
277         for saved registers; add varargs alias set.
278
279 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
280
281 config:
282         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
283         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
284         CPP_PREDEFINES and part of CPP_SPEC.
285         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
286         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
287
288 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
289
290         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
291
292 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
293
294         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
295
296 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
297
298         * gengtype-yacc.y: Make sure all rules end with a semicolon.
299
300 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
301
302         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
303         typo in function prototype and include "ggc.h" header.
304
305 2002-06-04  Richard Henderson  <rth@redhat.com>
306
307         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
308         (print_operand) ['U']: Likewise.
309         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
310         (alpha_expand_unaligned_store_words): Likewise.
311         (alpha_expand_builtin_vector_binop): Fix typo.
312         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
313         umulh, and cix insns.
314         (one_arg_builtins): Add cix builtins.
315         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
316         (alpha_expand_builtin): Fix typo in arity.
317         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
318         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
319         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
320         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
321         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
322         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
323         builtin_ctlz, builtin_ctpop): New.
324         * doc/extend.texi (Alpha Built-in Functions): Update.
325
326 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
327
328         * gengtype.c (write_gc_root): Don't unnecessarily prevent
329         global variable-length arrays being roots.
330
331         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
332         * configure.in (config_gtfiles): New variable.
333         (all_gtfiles): Initialise from config_gtfiles.
334         * configure: Regenerate.
335
336 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
337
338 config/i386:
339         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
340         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
341         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
342         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
343         win32.h (CPP_SPEC): Remove cpp_cpu.
344         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
345         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
346
347 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
348
349         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
350
351 2002-06-04  Jeff Law <law@redhat.com.
352             David Edelsohn <edelsohn@gnu.org>
353             Michael Matz <matz@kde.org>
354
355         * sched-int.h (struct deps): New field libcall_block_tail_insn.
356         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
357         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
358         is set, then mark the current insn as being part of a libcall
359         scheduling group.
360         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
361
362         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
363         insns against the issue rate.
364
365 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
366
367         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
368         * final.c (final_scan_insn): Likewise.
369         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
370         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
371         * haifa-sched.c (unlink_other_notes): Likeewise.
372         (reemit_notes): Likewise.
373         * print-rtl.c (print_rtx): Likewise.
374         * sched-deps (sched-analyze): Likewise.
375         * rtl.c (note_insn_name): Likewise.
376         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
377         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
378         (RANGE_*): Kill.
379
380 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
381
382         * varasm.c (mark_constants): Handle RTX format 'B'.
383
384 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
385
386         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
387         (struct cpp_context): Add traditional fields.
388         * cppmacro.c (paste_all_tokens, push_ptoken_context,
389         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
390         * cpptrad.c (skip_comment, lex_identifier,
391         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
392
393 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
394
395         * gbl-ctors.h: Fix formatting.
396         * gcc.c: Likewise.
397         * gccspec.c: Likewise.
398         * gcov.c: Likewise.
399         * gcov-io.h: Likewise.
400         * gcse.c: Likewise.
401         * ggc-common.c: Likewise.
402         * ggc.h: Likewise.
403         * ggc-page.c: Likewise.
404         * ggc-simple.c: Likewise.
405         * global.c: Likewise.
406         * graph.h: Likewise.
407         * gthr-dce.h: Likewise.
408         * gthr.h: Likewise.
409         * gthr-posix.h: Likewise.
410         * gthr-rtems.h: Likewise.
411         * gthr-solaris.h: Likewise.
412         * gthr-win32.h: Likewise.
413
414 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
415
416         Merge from pch-branch:
417
418         * gengtype.h (UNION_OR_STRUCT_P): New macro.
419         * gengtype.c (write_gc_structure_fields): Use it.
420         (write_gc_root): Use it here too.
421
422         * gengtype.c (write_gc_structure_fields): Assume that lengths
423         of typenames fit into an 'int'; don't pass a size_t to "%d" in
424         printf.
425         (write_gc_marker_routine_for_structure): Likewise.
426         (write_gc_types): Likewise.
427         (write_gc_root): Likewise.
428
429         * varray.h (VARRAY_CLEAR): New.
430         (varray_clear): Prototype.
431         * varray.c (varray_clear): New.
432         * cselib.c (reg_values_old): New.
433         (used_regs_old): New.
434         (cselib_init): Use cached varrays if available to avoid
435         generating large amounts of garbage.
436         (cselib_finish): Don't throw away old varrays.
437
438         * final.c (insn_addresses_): Move out of ifdef.
439
440         * varray.c (uses_ggc): Make more varray kinds GCable.
441         * varray.h (union varray_data_tag): Let gengtype see
442         fields 'generic' and 'te'.
443         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
444         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
445         (reg_to_stack): Don't call VARRAY_FREE.
446         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
447         (insn_addresses_): Use gengtype to mark.
448         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
449         pointers; handle generic pointers in unused union fields.
450         (get_output_file_with_visibility): Include cselib.h,
451         insn-addr.h in gtype-desc.c.
452         * function.c (prologue): Use gengtype to mark.
453         (epilogue): Likewise.
454         (sibcall_epilogue): Likewise.
455         * dependence.c: Include gt-dependence.h, ggc.h.
456         (struct def_use): Use gengtype to mark.
457         (struct loop): Likewise.
458         (struct induction): Likewise.
459         (struct dependence): Likewise.
460         (def_use_chain): Likewise.
461         (dep_chain): Likewise.
462         (loop_chain): Likewise.
463         (induction_chain): Likewise.
464         (init_dependence_analysis): Don't free anything, just clear pointers.
465         (build_def_use): Use GGC to allocate def_use.
466         (add_loop): Use GGC to allocate loop.
467         (find_induction_variable): Use GGC to allocate induction.
468         (check_node_dependence): Use GGC to allocate induction, dependence.
469         (dump_node_dependence): Don't free varrays.
470         (end_dependence_analysis): Likewise.
471         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
472         (struct elt_loc_list): Likewise.
473         (struct elt_list): Likewise.
474         * cselib.c: Don't include obstack.h.
475         (hash_table): Use gengtype to mark.
476         (reg_values): Use gengtype to mark.
477         (used_regs): Use gengtype to mark.
478         (cselib_obstack): Delete.
479         (cselib_startobj): Delete.
480         (empty_vals): Mark as deletable.
481         (empty_elt_lists): Mark as deletable.
482         (empty_elt_loc_lists): Mark as deletable.
483         (new_elt_list): Use GGC to allocate struct elt_list.
484         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
485         (clear_table): Don't delete obstack; don't unnecessarily clear
486         deletable variables.
487         (new_cselib_val): Use GGC to allocate struct cselib_val.
488         (cselib_init): Don't set up obstacks.  Use GGC to allocate
489         hash table.
490         (cselib_finish): Just clear variables, don't free anything.
491         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
492         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
493         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
494         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
495         (gt-reg-stack.h): New rule.
496         (gt-dependence.h): New rule.
497         (gtype-desc.o): Add cselib.h, insn-addr.h.
498
499         * varray.c: Use only necessary headers.
500         (element_size): New.
501         (uses_ggc): New.
502         (varray_init): Take type, not size.  Use GGC if appropriate.
503         (varray_grow): Update for change to struct varray_head_tag.
504         Use GGC if appropriate.
505         * varray.h (struct const_equiv_data): Use gengtype.
506         (enum varray_data_enum): New.
507         (union varray_data_tag): Use gengtype.
508         (struct varray_head_tag): Use gengtype.  Replace size field with
509         enum varray_data_enum.
510         (varray_init): Update prototype.
511         (VARRAY_SCHED_INIT): Delete.
512         (VARRAY_*_INIT): Update for change to varray_init.
513         (VARRAY_SCHED): Delete.
514         (VARRAY_PUSH_SCHED): Delete.
515         (VARRAY_TOP_SCHED): Delete.
516         * tree.h: Update for change to length specifier.
517         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
518         (clone_body): Likewise.
519         * ssa.h (ssa_definition): Use gengtype to mark.
520         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
521         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
522         * rtl.h (struct rtvec_def): Update for change to length specifier.
523         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
524         (struct initial_value_struct): Update for change to length specifier.
525         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
526         (ggc_add_tree_varray_root): Delete prototype.
527         (ggc_mark_rtx_varray): Delete prototype.
528         (ggc_mark_tree_varray): Delete prototype.
529         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
530         (ggc_add_tree_varray_root): Delete.
531         (ggc_mark_rtx_varray): Delete.
532         (ggc_mark_tree_varray): Delete.
533         (ggc_mark_rtx_varray_ptr): Delete.
534         (ggc_mark_tree_varray_ptr): Delete.
535         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
536         (create_varray): Delete prototype.
537         * gengtype.c (varrays): Delete.
538         (create_varray): Delete.
539         (adjust_field_type): Detect array of string pointers.
540         (process_gc_options): Remove code to handle varray_type option.
541         (set_gc_used_type): Remove TYPE_VARRAY case.
542         (output_escaped_param): New.
543         (write_gc_structure_fields): Use output_escaped_param on all
544         parameters.  Handle 'skip' with 'use_param' option.  Handle
545         arrays of strings.  Remove TYPE_VARRAY handling.
546         (write_gc_roots): Use boolean to detect 'length' option.
547         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
548         (struct_fields): Call adjust_field_type on array fields.
549         (type): Remove VARRAY_TYPE case.
550         (type_option): Likewise.
551         * gengtype-lex.l: Don't consider varray_type a keyword.
552         * function.h: Update for change to length specifier.
553         (free_eh_status): Delete prototype.
554         * function.c (free_after_compilation): Don't call free_eh_status.
555         (reorder_blocks): Don't use VARRAY_FREE.
556         * except.c (struct eh_status): Update for change to length specifier.
557         remove varray_type specifier.
558         (free_eh_status): Delete.
559         * dwarf2out.c: Include gt-dwarf2out.h.
560         (used_rtx_varray): Use gengtype to mark, move
561         outside ifdefs.
562         (incomplete_types): Likewise.
563         (decl_scope_table): Likewise.
564         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
565         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
566         * c-tree.h (struct lang_type): Update for change to length specifier.
567         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
568         * c-objc-common.c: Include gt-c-objc-common.h.
569         (deferred_fns): Mark for gengtype.
570         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
571         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
572         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
573         (gtype-desc.o): Update dependencies.
574         (dwarf2out.o): Add gt-dwarf2out.h.
575         (varray.o): Update dependencies.
576         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
577         (gt-c-objc-common.h): New rule.
578         (gt-dwarf2out.h): New rule.
579         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
580
581         * doc/gty.texi (GTY Options): Correct spelling.
582         (GGC Roots): Likewise.
583         * Makefile.in (TEXI_CPP_FILES): New.
584         (TEXI_GCC_FILES): New.
585         (TEXI_GCCINT_FILES): New.
586         (TEXI_CPPINT_FILES): New.
587         ($(docdir)/cpp.info): Use new macros.
588         ($(docdir)/gcc.info): Likewise.
589         ($(docdir)/gccint.info): Likewise.
590         ($(docdir)/cppinternals.info): Likewise.
591         (cpp.dvi): Likewise.
592         (gcc.dvi): Likewise.
593         (gccint.dvi): Likewise.
594         (cppinternals.dvi): Likewise.
595
596         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
597         * doc/gccint.texi (Top): Include gty.texi.
598         * doc/gty.texi: New file.
599
600         * bitmap.c: Include ggc.h, gt-bitmap.h.
601         (bitmap_ggc_free): New.
602         (bitmap_elem_to_freelist): New.
603         (bitmap_element_free): Use bitmap_elem_to_freelist.
604         (bitmap_element_allocate): Allow use of GGC.
605         (bitmap_clear): Use bitmap_elem_to_freelist.
606         (bitmap_copy): Update for change to bitmap_element_allocate.
607         (bitmap_set_bit): Likewise.
608         (bitmap_operation): Update for changes elsewhere.
609         (bitmap_initialize): Allow to create bitmaps that will use GGC.
610         * bitmap.h (struct bitmap_element_def): Use gengtype.
611         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
612         (bitmap_initialize): Add extra parameter.
613         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
614         (BITMAP_ALLOCA): Delete.
615         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
616         (BITMAP_GGC_ALLOC): New.
617         * Makefile.in (gtype-desc.o): Add bitmap.h.
618         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
619         (GTFILES): Add bitmap.c.
620         (gt-bitmap.h): New rule.
621         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
622         * basic-block.h: Update for changes to bitmap_initialize.
623         * except.c (exception_handler_label_map): Move into...
624         (struct eh_status): Here.
625         (struct eh_region): Make 'aka' GCable.
626         (free_eh_status): Don't need to specially handle
627         exception_handler_label_map.
628         (add_ehl_entry): Update for changes to exception_handler_label_map.
629         (find_exception_handler_labels): Likewise.
630         (remove_exception_handler_label): Likewise.
631         (maybe_remove_eh_handler): Likewise.
632         (for_each_eh_label): Likewise.
633         (remove_eh_handler): Allocate 'aka' using GGC.
634         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
635         to list of includes.
636
637         * gengtype.c (write_gc_marker_routine_for_structure): Name
638         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
639         (write_gc_types): Arrange for the tests with NULL to be inlined.
640         (write_gc_roots): Update uses of procedure pointers.
641         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
642
643         * Makefile.in (explow.o): Add dependency on gt-explow.h.
644         (sdbout.o): Add dependency on gt-sdbout.h.
645
646         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
647         (mem_attrs_htab): Likewise.
648         (init_emit_once): Don't call ggc_add_deletable_htab.
649         * fold-const.c (size_htab): Use gengtype to clear unused entries.
650         (size_int_type_wide): Don't call ggc_add_deletable_htab.
651         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
652         parameters, use them, change callers.
653         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
654         (write_gc_roots): Handle 'if_marked' option.
655         (main): Don't need to call set_gc_used_type any more.
656         * ggc.h (ggc_htab_marked_p): Delete.
657         (ggc_htab_mark): Delete.
658         (struct ggc_cache_tab): New.
659         (gt_ggc_cache_rtab): New declaration.
660         * ggc-common.c (struct d_htab_root): Delete.
661         (d_htab_roots): Delete.
662         (ggc_add_deletable_htab): Delete.
663         (ggc_htab_delete): Handle new htab-deleting mechanism.
664         (ggc_mark_roots): Use new htab-deleting mechanism.
665         * tree.c (type_hash_table): Use gengtype to clear unused entries.
666         Make static.
667         (init_obstacks): Don't call ggc_add_deletable_htab.
668
669         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
670         (struct hashed_entry): Likewise.
671         (nst_method_hash_list): Likewise.
672         (cls_method_hash_list): Likewise.
673         (HASH_ALLOC_LIST_SIZE): Delete.
674         (ATTR_ALLOC_LIST_SIZE): Delete.
675         * objc/objc-act.c (hash_init): Use ggc to allocate
676         nst_method_hash_list, cls_method_hash_list.
677         (hash_enter): Use ggc to allocate; allocate one entry at a time.
678         (hash_add_attr): Likewise.
679         (ggc_mark_hash_table): Delete.
680         (objc_act_parse_init): Delete.
681         (objc_init): Delete reference to objc_act_parse_init.
682         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
683         obstack.h.  Replace references to 'struct hash_table' with htab_t.
684         (struct symbol_hash_entry): Replace hash header with key field.
685         (struct file_hash_entry): Replace hash header with key field.
686         (struct demangled_hash_entry): Replace hash header with key field.
687         (hash_string_eq): New.
688         (hash_string_hash): New.
689         (symbol_hash_newfunc): Delete.
690         (symbol_hash_lookup): Modify to use htab_t.
691         (file_hash_newfunc): Delete.
692         (file_hash_lookup): Modify to use htab_t.
693         (demangled_hash_newfunc): Delete.
694         (demangled_hash_lookup): Modify to use htab_t.
695         (tlink_init): Modify to use htab_t.
696         * hash.h: Delete.
697         * hash.c: Delete.
698         * ggc.h: Delete forward structure declarations.
699         Delete prototypes for deleted functions.
700         * ggc-common.c: Don't include hash.h.
701         (ggc_add_tree_hash_table_root): Delete.
702         (ggc_mark_tree_hash_table_entry): Delete.
703         (ggc_mark_tree_hash_table): Delete.
704         (ggc_mark_tree_hash_table_ptr): Delete.
705         * gengtype.c (write_gc_structure_fields): Allow param_is option.
706         (write_gc_marker_routine_for_structure): Use visibility of
707         the parameter if there is one.
708         * function.c: Replace hash.h with hashtab.h.  Replace references
709         to 'struct hash_table *' with htab_t.
710         (struct insns_for_mem_entry): Include a plain key.
711         (fixup_var_refs_insns_with_hash): Update to use htab_t.
712         (insns_for_mem_newfunc): Delete.
713         (insns_for_mem_hash): Update to use htab_t.
714         (insns_for_mem_comp): Likewise.
715         (insns_for_mem_walk): Likewise.
716         * c-lang.c: Include ggc.h.
717         * Makefile.in (OBJS): Remove hash.o.
718         (c-lang.o): Add GGC_H.
719         (COLLECT2_OBJS): Remove hash.o.
720         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
721         (ggc-common.o): Remove hash.h.
722         (function.o): Remove hash.h, add HASHTAB_H.
723         (genautomata.o): Remove hash.h, add HASHTAB_H.
724
725         * varasm.c (mark_const_str_htab_1): Delete.
726         (mark_const_str_htab): Delete.
727         (const_str_htab_del): Delete.
728         (const_str_htab): Use gengtype to mark.
729         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
730         allocate them.
731         * tree.c (mark_tree_hashtable_entry): Delete.
732         (mark_tree_hashtable): Delete.
733         * tree.h (mark_tree_hashtable): Delete prototype.
734         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
735         (ggc_mark): Likewise.
736         (ggc_calloc): New.
737         (htab_create_ggc): New.
738         * ggc-common.c (ggc_calloc): New.
739         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
740         (struct type): Add param_struct structure.
741         * gengtype.c (param_structs): New.
742         (adjust_field_type): Handle param_is option.
743         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
744         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
745         (write_gc_structure_fields): Add new PARAM parameter.  Update
746         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
747         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
748         Use it to generate function name.  Update callers.
749         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
750         Process them.
751         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
752         option.
753         (main): Define PTR as pointer-to-scalar.  Don't specially
754         mark deferred_string or ehl_map_entry.
755         * gengtype-yacc.y (PARAM_IS): Add new token.
756         (externstatic): Use adjust_field_type.
757         (type_option): Add PARAM_IS.
758         * gengtype-lex.l: Add rule for typedef of function pointers.
759         Add rule for PARAM_IS.
760         (IWORD): Add size_t.
761         * except.c (exception_handler_label_map): Use gengtype to mark.
762         (type_to_runtime_map): Likewise.
763         (mark_ehl_map_entry): Delete.
764         (mark_ehl_map): Delete.
765         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
766         (t2r_mark_1): Delete.
767         (t2r_mark): Delete.
768         * Makefile.in (gtype-desc.o): Correct dependencies.
769         (GTFILES): Add hashtab.h.
770         (genautomata.o): Actually uses hashtab.h.
771
772         * Makefile.in (stringpool.o): Add $(GGC_H).
773         (dwarf2asm.o): Likewise.
774         (GTFILES): Add hashtable.h.
775         * c-common.h (struct c_common_identifier): Use gengtype.
776         * c-decl.h (c_mark_tree): Delete.
777         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
778         * c-tree.h (struct lang_identifier): Use gengtype.
779         (union lang_tree_node): New.
780         (c_mark_tree): Delete prototype.
781         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
782         dwarf2_debug_hooks.
783         * gengtype-lex.l (IWORD): Allow 'bool'.
784         (ptr_alias): Match.
785         * gengtype-yacc.y (ALIAS): New token.
786         (type_option): New rule.
787         (option): Use type_option.
788         * gengtype.c (process_gc_options): New.
789         (set_gc_used_type): Use it.
790         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
791         Add new variable 't' to hold the type of the field being processed.
792         Add more error checking.  Use UNION_P when looking at 'desc' option.
793         Handle language-specific structures containing other
794         language-specific structures.
795         (write_gc_types): Handle 'ptr_alias' option.
796         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
797         * ggc-common.c (ggc_pending_trees): Delete.
798         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
799         (ggc_mark_trees): Delete.
800         (gt_ggc_m_tree_node): Delete.
801         * ggc.h (ggc_pending_trees): Delete.
802         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
803         * hashtable.h (ht_identifier): Use gengtype.
804         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
805         * langhooks.h (struct lang_hooks): Delete mark_tree.
806         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
807         anyway.
808         * system.h: Poison LANG_HOOKS_MARK_TREE.
809         * tree.c (tree_node_structure): New.
810         * tree.h (struct tree_common): Use gengtype.
811         (struct tree_int_cst): Likewise.
812         (struct tree_real_cst): Likewise.
813         (struct tree_string): Likewise.
814         (struct tree_complex): Likewise.
815         (struct tree_vector): Likewise.
816         (struct tree_identifier): Likewise.
817         (struct tree_list): Likewise.
818         (struct tree_vec): Likewise.
819         (struct tree_exp): Likewise.
820         (struct tree_block): Likewise.
821         (struct tree_type): Likewise.
822         (struct tree_decl): Likewise.
823         (enum tree_structure_enum): New.
824         (union tree_node): Use gengtype, with an alias.
825         (tree_node_structure): Prototype.
826         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
827
828         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
829         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
830         to LANG_HOOKS_FUNCTION_FINAL.
831         * Makefile.in (GTFILES): Add bitmap.h.
832         * except.c (struct eh_region): Mark field 'aka' to be skipped.
833
834         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
835         (alpha_init_machine_status): Give proper type.
836         * Makefile.in (c-lang.o): Depend on gtype-c.h.
837         (optabs.o): Depend on gt-optabs.h.
838         (GTFILES): Add optabs.o.
839         (gt-optabs.h): Add rule.
840         * optabs.c: Include gt-optabs.h.
841
842         * gengtype.c (set_gc_used_type): Correct some errors in last change.
843         (write_gc_structure_fields): If a field which should be NULL is
844         not, abort.
845         * c-pragma.c: Move struct align_stack and variable alignment_stack
846         out from the ifdef.
847
848         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
849         * config/xtensa/xtensa.c: Include gt-cris.h.
850         (struct machine_function): Use gengtype to mark.
851         * config/mmix/mmix.h (struct machine_function): Use gengtype
852         to mark.
853         * config/cris/t-cris: Add dependencies for gt-cris.h.
854         * config/cris/cris.c: Include gt-cris.h.
855         (struct machine_function): Use gengtype to mark.
856         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
857         to mark.
858         * doc/tm.texi (Per-Function Data): Delete references to
859         mark_machine_status.
860         * config/ia64/ia64.c (ia64_override_options): Don't set
861         mark_machine_status.
862         * config/i386/i386.c (override_options): Likewise.
863         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
864         * config/arm/arm.c (arm_init_expanders): Likewise.
865         * config/alpha/alpha.c (override_options): Likewise.
866         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
867         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
868         (write_gc_structure_fields): Don't handle 'really' option.
869         Handle 'maybe_null' option.
870         (write_gc_types): Handle 'maybe_null' option.
871         * function.h (struct function): Don't use "really".
872         (mark_machine_status): Delete declaration.
873         (mark_lang_status): Delete declaration.
874         (gt_ggc_mr_machine_function): Delete prototype.
875         (gt_ggc_mr_language_function): Delete prototype.
876         * function.c (mark_machine_status): Delete.
877         (mark_lang_status): Delete.
878         (gt_ggc_mr_machine_function): Delete.
879         (gt_ggc_mr_language_function): Delete.
880         * c-tree.h (mark_c_function_context): Delete prototype.
881         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
882         * c-decl.c (struct language_function): Rename from struct
883         c_language_function.  Update uses.  Use gengtype to mark.
884         (mark_c_function_context): Delete.
885         * c-common.h (struct c_language_function): Rename from struct
886         language_function.
887         (mark_stmt_tree): Delete prototype.
888         (c_mark_lang_decl): Delete prototype.
889         (mark_c_language_function): Delete prototype.
890         * c-common.c (mark_stmt_tree): Delete.
891         (c_mark_lang_decl): Delete.
892         (mark_c_language_function): Delete.
893
894         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
895         (lang_bitmap): New typedef.  Use where appropriate.
896         (struct type): Add gc_used field, lang_struct field.
897         (UNION_P): New macro.
898         (new_structure): New prototype.
899         (find_structure): Remove 'pos' parameter.  Change all callers.
900         * gengtype-lex.l: Update for changes to find_structure.
901         * gengtype-yacc.y (typedef_struct): Use new_structure.
902         (yacc_ids): Suppress warning.
903         (type): Use new_structure.
904         * gengtype.c (string_type): Update for changes to struct type.
905         (find_structure): Just find a structure, don't worry about
906         creating one.
907         (new_structure): New.
908         (note_yacc_type): Use new_structure.
909         (set_gc_used_type): New.
910         (set_gc_used): New.
911         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
912         (write_gc_types): Handle TYPE_LANG_STRUCT.
913         (write_gc_marker_routine_for_structure): New.
914         (main): Call set_gc_used.  Add some calls to set_gc_used_type
915         for places where GCC doesn't use gengtype properly yet.
916         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
917         (gt_ggc_m_tree_node): Likewise.
918
919         * varasm.c (copy_constant): Call expand_constant if we hit
920         something we can't recognise.
921
922         * ggc-common.c (ggc_mark_rtvec_children): Delete.
923         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
924         (lang_mark_false_label_stack): Delete.
925         * rtl.h (struct rtvec_def): Use gengtype to mark.
926         * ggc.h (ggc_mark_rtvec): Delete.
927         (gt_ggc_m_rtvec_def): Delete.
928         (ggc_mark_nonnull_tree): Delete.
929         (ggc_mark_rtvec_children): Delete prototype.
930         (lang_mark_false_label_stack): Delete declaration.
931
932         * gengtype.h (note_yacc_type): Add prototype.
933         * gengtype.c (note_yacc_type): New function.
934         * gengtype-lex.l: Add lexer support for yacc files.
935         * gengtype-yacc.y (start): Extract union from yacc files.
936         (yacc_union): New rule.
937         (yacc_typematch): New rule.
938         (yacc_ids): New rule.
939         (enum_items): Tweak for efficiency.
940         (optionseq): Likewise.
941
942         * c-common.h (struct language_function): Use gengtype.
943         (struct c_lang_decl): Likewise.
944         * c-tree.h (struct lang_decl): Likewise.
945         (struct lang_type): Likewise.
946         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
947         tree language substructures.
948
949         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
950         ggc_mark_tree.
951         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
952
953         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
954
955         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
956         mark. Remove 'data.block.cleanup_ptr' field.
957         (struct stmt_status): Use usual technique to mark struct nesting.
958         (gt_ggc_mr_nesting_cond): Delete.
959         (gt_ggc_mr_nesting_loop): Delete.
960         (gt_ggc_mr_nesting_block): Delete.
961         (gt_ggc_mr_nesting_case_stmt): Delete.
962         (expand_start_cond): Set discriminator.
963         (expand_start_loop): Likewise.
964         (expand_start_null_loop): Likewise.
965         (expand_start_bindings_and_block): Set discriminator.  Don't set
966         deleted fields.
967         (expand_decl_cleanup): Replace 'cleanup_ptr' with
968         &thisblock->data.block.cleanups.
969         (expand_start_case): Set discriminator.
970         (expand_start_case_dummy): Set discriminator.
971
972         * ggc-callbacks.c: Remove.
973
974         * gengtype.h (struct type): Add 'u.s.bitmap' field.
975         (find_structure): Add 'pos' parameter.
976         * gengtype-lex.l: Update callers to find_structure.
977         * gengtype-yacc.y: Likewise.
978         * gengtype.c (find_structure): Allow for structures to be defined
979         in multiple language backends.
980         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
981         (counter): Rename to gc_counter.
982         (write_gc_structure_fields): Fail when writing out fields for
983         an incomplete structure.  Ignore arrays of scalars.  Handle
984         'tree_vec' special.
985         (write_gc_types): Reset counter for each procedure written.
986
987         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
988         (free_case_nodes): Delete.
989         (expand_end_case_type): Delete call to free_case_nodes.
990
991         * Makefile.in (cselib.o): Include gt-<filename>.h.
992         (gcse.o): Likewise.
993         (profile.o): Likewise.
994         (alias.o): Likewise.
995         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
996         alphabetize backend files.
997         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
998         * alias.c: Use gengtype for roots.
999         * c-common.h (struct stmt_tree_s): Use gengtype.
1000         * c-decl.c: Use gengtype for roots.
1001         * cselib.c: Use gengtype for roots.
1002         * expr.c: Use gengtype for roots.
1003         * fold-const.c: Use gengtype for roots.
1004         * gcse.c: Use gengtype for roots.
1005         * gengtype-lex.l: Handle typedefs of function types.
1006         Allow for empty array bounds.
1007         Allow processing to stop on initialisers.
1008         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
1009         (semiequal): New rule.
1010         * gengtype.c (create_file): Tidy output files.
1011         (get_output_file_with_visibility): Fix paren warning.  Fix bug
1012         involving multiple input files mapping to one output file.
1013         (write_gc_structure_fields): Skip arrays of scalars.
1014         (write_gc_types): Tidy output files.
1015         (write_gc_root): New function.
1016         (write_gc_roots): Fix bugs, add support for roots that are
1017         structures.
1018         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
1019         (ggc_mark_tree_ptr): Delete.
1020         (ggc_add_rtx_root): Delete.
1021         (ggc_add_tree_root): Delete.
1022         (ggc_del_root): Delete.
1023         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
1024         allocate struct initial_value_struct.
1025         * profile.c: Use gengtype for roots.
1026         * sdbout.c: Use gengtype for roots.
1027         * varasm.c (mark_weak_decls): Delete unused prototype.
1028         (mark_const_hash_entry): Delete unused function.
1029         * config/darwin-protos.h: Use gengtype for roots.
1030         (machopic_add_gc_roots): Delete.
1031         * config/arm/arm.c: Use gengtype for roots.
1032         * config/arm/arm.h: Use gengtype for roots.
1033         * config/c4x/c4x-protos.h: Use gengtype for roots.
1034         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
1035         * config/d30v/d30v-protos.h: Use gengtype for roots.
1036         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
1037         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
1038         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
1039         * config/ia64/ia64-protos.h: Use gengtype for roots.
1040         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
1041         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
1042         * config/m68hc11/m68hc11.c (z_reg): Make global.
1043         (z_reg_qi): Make global.
1044         (m68hc11_add_gc_roots): Delete.
1045         * config/mcore/mcore-protos.h: Use gengtype for roots.
1046         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
1047         * config/mips/mips.c (mips_add_gc_roots): Delete.
1048         * config/mips/mips.h: Use gengtype for roots.
1049         * config/mmix/mmix.c (override_options): Use gengtype for roots.
1050         * config/mmix/mmix.h: Use gengtype for roots.
1051         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
1052         * config/mn10200/mn10200.h: Use gengtype for roots.
1053         * config/pa/pa.c: Use gengtype for roots, marking.
1054         (struct deferred_plabel): Use GGC, gengtype.
1055         (pa_add_gc_roots): Delete.
1056         (mark_deferred_plabels): Delete.
1057         * config/pj/pj-protos.h: Use gengtype for roots.
1058         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
1059         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
1060         machopic_add_gc_roots.
1061         * config/rs6000/rs6000.h: Use gengtype for roots.
1062         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
1063         (gt-darwin.h): Add rule.
1064         * config/sh/sh.c: Use gengtype for roots.
1065         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
1066         (gt-sh.h): Add rule.
1067         * config/sparc/sparc.c: Use gengtype for roots.
1068         (sparc_add_gc_roots): Delete.
1069         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
1070         (mark_ultrasparc_pipeline_state): Delete.
1071         * config/sparc/sparc.h: Use gengtype for roots.
1072
1073         * Makefile.in (c-parse.o): Update dependencies.
1074         (c-common.o): Likewise.
1075         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
1076         Add dependencies for the files they generate.
1077         * c-common.c: Replace ggc_add_* uses with GTY annotations.
1078         * c-common.h: Likewise.
1079         * c-decl.c: Likewise.
1080         (gt_ggc_mp_binding_level): Delete.
1081         * c-lang.c: Include gtype-c.h.
1082         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
1083         gt-c-parse.h.
1084         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
1085         (gt_ggc_mp_align_stack): Delete.
1086         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
1087         * function.c: Replace ggc_add_* uses with GTY annotations.
1088         (gt_ggc_mp_function): Delete.
1089         * function.h: Replace ggc_add_* uses with GTY annotations.
1090         * gengtype.c (lang_names): New.
1091         (NUM_BASE_FILES): New.
1092         (open_base_files): Create language base files.
1093         (startswith): New.
1094         (get_file_basename): New.
1095         (get_base_file_bitmap): New.
1096         (get_output_file_with_visibility): Rename from get_output_file.
1097         Add more mappings for various C/Objc filenames.
1098         (finish_root_table): New.
1099         (write_gc_roots): Handle dependencies and scoping properly.
1100         * gengtype.h: Add prototypes for new functions.
1101         * ggc-common.c (struct deletable_root): Delete.
1102         (deletables): Delete.
1103         (ggc_add_deletable_root): Delete.
1104         (ggc_mark_roots): No need to deal with deleted functionality.
1105         * ggc.h (ggc_add_deletable_root): Delete prototype.
1106         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
1107         (gtype-objc.h): Add rule to create.
1108         * objc/config-lang.in (gtfiles): New.
1109         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
1110         ggc_add_* with GTY markers.  Include gtype-objc.h.
1111         (ggc_mark_imp_list): Delete.
1112         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1113         * objc/objc-lang.c: Random Whitespace Change.
1114
1115         * except.h (exception_handler_labels): Delete.
1116         (get_exception_handler_labels): New.
1117         * except.c (exception_handler_labels): Delete.
1118         (struct eh_status): Add exception_handler_labels field.
1119         (doing_eh): Don't add exception_handler_labels as root.
1120         (free_eh_status): Don't need to free exception_handler_labels.
1121         (get_exception_handler_labels): New.
1122         (find_exception_handler_labels): Update for move of
1123         exception_handler_labels.
1124         (remove_exception_handler_label): Likewise.
1125         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1126         * jump.c (rebuild_jump_labels): Likewise.
1127         * loop.c (find_and_verify_loops): Likewise.
1128         * sched-rgn.c (is_cfg_nonregular): Likewise.
1129
1130         * gengtype.c (write_gc_structure_fields): Handle variable-length
1131         TYPE_ARRAYs.
1132
1133         * varasm.c (struct weak_syms): Use GGC, gengtype.
1134         (mark_weak_decls): Delete.
1135         (weak_decls): Likewise.
1136         (add_weak): Likewise.
1137         (remove_from_pending_weak_list): Likewise.
1138         (init_varasm_once): Likewise.
1139
1140         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1141         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1142         stor-layout.c, regclass.c, and lists.c.
1143         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1144         gt-regclass.h and gt-lists.h on s-gtype.
1145         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
1146         * except.c: Use gengtype for roots.
1147         * explow.c: Use gengtype for roots.  Include gt-explow.h.
1148         * expr.h (init_stor_layout_once): Delete prototype.
1149         * function.c: Use gengtype for roots.
1150         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1151         * gengtype-yacc.y (start): Can also be an externstatic.
1152         (externstatic): New production.
1153         (struct_fields): Correct array bounds inversion for 2-d arrays.
1154         * gengtype.c (variables): New variable.
1155         (note_variable): New function.
1156         (get_output_file): Include libfuncs.h into gtype-desc.c.
1157         (get_output_file_name): New function.
1158         (write_gc_structure_fields): Suppress warnings.
1159         (write_gc_types): Make static.
1160         (put_mangled_filename): New function.
1161         (write_gc_roots): New function.
1162         (main): Call write_gc_roots.
1163         * gengtype.h (note_variable): Prototype.
1164         (get_output_file_name): Prototype.
1165         (write_gc_types): Delete prototype.
1166         * ggc.h: Clean up unnecessary structure predefinitions.
1167         (struct ggc_root_tab): Define.
1168         (gt_ggc_m_rtx_def): Make function, not macro.
1169         (gt_ggc_m_tree_node): Likewise.
1170         * libfuncs.h: Use gengtype for roots.
1171         * lists.c: Use gengtype for roots.  Include gt-lists.h.
1172         (init_EXPR_INSN_LIST_cache): Delete.
1173         * optabs.c: Use gengtype for roots.
1174         (gt_ggc_mp_optab): Delete.
1175         * optabs.h: Use gengtype for roots.
1176         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
1177         * rtl.h: Use gengtype for roots.
1178         (init_EXPR_INSN_LIST_cache): Delete prototype.
1179         * stor-layout.c: Use gengtype for roots.
1180         Include gt-stor-layout.h.
1181         (init_stor_layout_once): Delete.
1182         * toplev.c: Use gengtype for roots.  Delete calls to deleted
1183         routines.
1184         * tree.c: Use gengtype for roots.
1185         * tree.h: Use gengtype for roots.
1186         * varasm.c: Use gengtype for roots.
1187
1188         * Makefile.in (GTFILES): Add @all_gtfiles@.
1189         * configure: Regenerate.
1190         * configure.in: Construct all_gtfiles from the gtfiles definitions
1191         in config-lang.in.
1192         * gengtype-yacc.y (type): Warn about duplicate structure names.
1193         * gengtype.c (get_output_file): Handle .c files in language
1194         subdirectories.
1195
1196         * Makefile.in (GTFILES): Run gengtype on all the config files
1197         and on the target .c file.
1198         * except.c (mark_eh_region): Delete.
1199         (init_eh_for_function): Use GGC on struct eh_status.
1200         (mark_eh_status): Delete.
1201         (free_eh_status): Use GGC.
1202         (expand_eh_region_start): Use GGC to
1203         (collect_eh_region_array): Allocate last_region_number using GGC.
1204         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1205         (remove_eh_handler): Let GGC free struct eh_region.
1206         (add_call_site): Use GGC to reallocate call_site_record array.
1207         * function.c (init_machine_status): Update calling sequence.
1208         (mark_machine_status): Likewise.
1209         (mark_lang_status): Likewise.
1210         (prepare_function_start): Update init_machine_status call.
1211         (mark_function_status): Delete.
1212         (maybe_mark_struct_function): Delete.
1213         (ggc_mark_struct_function): Delete.
1214         (gt_ggc_mp_function): New.
1215         (gt_ggc_mr_machine_function): New.
1216         (gt_ggc_mr_language_function): New.
1217         (init_function_once): Use canonical names.
1218         * function.h (struct function): Use gengtype.
1219         (init_machine_status): Return the structure.
1220         (mark_machine_status): Take a 'void *'.
1221         (mark_lang_status): Likewise.
1222         * ggc-common.c (ggc_mark_trees): Use canonical name for
1223         ggc_mark_struct_function.
1224         * tree.h (ggc_mark_struct_function): Delete prototype.
1225         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1226         (alpha_init_machine_status): Likewise.
1227         (override_options): Use canonical name for alpha_mark_machine_status.
1228         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1229         * config/arm/arm.h (struct machine_function): Use gengtype.
1230         * config/arm/arm.c (arm_mark_machine_status): Delete.
1231         (arm_init_machine_status): Update calling sequence.
1232         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
1233         * config/cris/cris.c (cris_init_machine_status): Update
1234         calling sequence.
1235         * config/d30v/d30v.h (struct machine_function): Use gengtype.
1236         * config/d30v/d30v.c (d30v_init_machine_status): Update
1237         calling sequence.
1238         (d30v_mark_machine_status): Delete.
1239         * config/i386/i386.c: Include gt-i386.h.
1240         (struct machine_function): Use gengtype.
1241         (ix86_init_machine_status): Update calling sequence.
1242         (ix86_mark_machine_status): Delete.
1243         (override_options): Use canonical namke for ix86_mark_machine_status.
1244         * config/ia64/ia64.h (struct machine_function): Use gengtype.
1245         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
1246         sequence.
1247         (ia64_mark_machine_status): Delete.
1248         (ia64_override_options): Use canonical name for
1249         ia64_mark_machine_status.
1250         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
1251         sequence.
1252         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1253         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1254         * gengtype.c (get_output_file): Fix warning.
1255         (main): Add prototype to suppress warning.
1256         * tree.c: Remove tree_hash_mark prototype.
1257
1258         * tree.h (init_stmt): Delete prototype.
1259         * toplev.c (lang_independent_init): Don't call init_stmt.
1260         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1261         (stmt_obstack): Delete.
1262         (POPSTACK): No need to free 'struct nesting'.
1263         (gt_ggc_mr_nesting_cond): Use canonical names.
1264         (gt_ggc_mr_nesting_loop): Use canonical names.
1265         (gt_ggc_mr_nesting_block): Use canonical names.
1266         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1267         (mark_stmt_status): Delete.
1268         (init_stmt): Delete.
1269         (clear_last_expr): Clear both last_expr_type and last_expr_value.
1270         Use it everywhere that last_expr_type was cleared.
1271         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1272         (zap_lists): Delete.
1273         * ggc.h (ggc_add_deletable_root): Prototype.
1274         (mark_stmt_status): Remove prototype.
1275         * ggc-common.c (ggc_add_deletable_root): New.
1276         (ggc_mark_roots): Handle deletable roots.
1277         * function.c (ggc_mark_struct_function): Use canonical name
1278         for mark_stmt_status.
1279         * emit-rtl.c (free_sequence_stack): New.
1280         (start_sequence): Use a freelist for sequences.
1281         (end_sequence): Likewise.
1282         (init_emit_once): Add free_sequence_stack as a deleteable root.
1283         * c-pragma.c Include gt-c-pragma.h.
1284         (struct align_stack): Use gengtype.
1285         (push_alignment): Use GGC for struct align_stack.
1286         (mark_align_stack): Delete.
1287         (gt_ggc_mp_align_stack): New.
1288         (init_pragma): Use canonical name for mark_align_stack.
1289         * c-decl.c: Include gt-c-decl.h.
1290         (struct binding_level): Use gengtype.
1291         (make_binding_level): Use GGC; handle the freelist here.
1292         (pop_binding_level): New.
1293         (pushlevel): Move code into make_binding_level.
1294         (push_label_level): Likewise.
1295         (poplevel): Move code into pop_binding_level.
1296         (pop_label_level): Likewise.
1297         (mark_binding_level): Delete.
1298         (gt_ggc_mp_binding_level): New.
1299         (c_init_decl_processing): Use canonical name for mark_binding_level.
1300         Add free_binding_level as deletable root.
1301         (mark_c_function_context): Use canonical name for mark_binding_level.
1302         * Makefile.in (c-decl.o): Add gt-c-decl.h.
1303         (c-pragma.o): Add gt-c-pragma.h.
1304         (GTFILES): Add c-decl.c and c-pragma.c.
1305         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1306
1307         * tree.c (struct type_hash): Use gengtype.
1308         (init_obstacks): Use canonical name for type_hash_mark.
1309         (type_hash_mark): Delete.
1310         Include gt-tree.h.
1311         * rtl.h (struct mem_attrs): Use gengtype.
1312         * optabs.h (struct optab): Use gengtype.
1313         * optabs.c (expand_binop): Squish signed/unsigned warning.
1314         (mark_optab): Make local, use canonical name, use autogenerated
1315         marker procedure.
1316         (init_optabs): Use canonical name for mark_optab.
1317         (new_optab): Use GGC to allocate optabs.
1318         * ggc.h: Delete mark_optab prototype.
1319         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1320         mem_attrs marker procedure.
1321         * gengtype.c (get_output_file): Include headers in gtype-desc.c
1322         explicitly rather than deducing them from file names.
1323         (write_gc_structure_fields): Handle arrays of structures.
1324         (main): Return non-zero exit code if errors occur during output.
1325         * emit-rtl.c (mem_attrs_mark): Delete.
1326         (init_emit_once): Use canonical name for mem_attrs marker procedure.
1327         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1328         (tree.o): Depend on gt-tree.h.
1329         (GTFILES): Add rtl.h, optabs.h, tree.c.
1330         (gt-tree.h): Add it to s-gtype rule.
1331
1332         * .cvsignore: Ignore gengtype flex/bison generated files.
1333         * Makefile.in (GGC_H): Add gtype-desc.h.
1334         (OBJS): Add gtype-desc.o.
1335         (GEN): Add gengtype.
1336         (STAGESTUFF): Add gengtype.
1337         (varasm.o): Add gt-varasm.h.
1338         (stmt.o): Add gt-stmt.h.
1339         (except.o): Add gt-except.h.
1340         (integrate.o): Add gt-integrate.h.
1341         (GTFILES): New.
1342         Add new rules for new files.
1343         * configure: Regenerate.
1344         * configure.in: Correct defaults.h paths.
1345         * emit-rtl.c (mark_sequence_stack): Delete.
1346         (mark_emit_status): Delete.
1347         (start_sequence): Allocate sequence structures using GGC.
1348         (end_sequence): Allocate sequence structures using GGC.
1349         * except.c: Use gengtype for various structures.  Include
1350         gt-except.h.
1351         * expr.c (mark_expr_status): Delete.
1352         * function.c: Use gengtype for various structures.  Include
1353         gt-function.h.
1354         (mark_function_status): Use standard gt_ggc names for marker functions.
1355         (ggc_mark_struct_function): Likewise.
1356         * function.h: Use gengtype for various structures.
1357         * gengtype-lex.l: New file.
1358         * gengtype-yacc.y: New file.
1359         * gengtype.c: New file.
1360         * gengtype.h: New file.
1361         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
1362         the standard names.  Remove some now-unnecessary prototypes.
1363         * integrate.c: Use gengtype for various structures.  Include
1364         gt-integrate.h.
1365         (mark_hard_reg_initial_vals): Delete.
1366         * integrate.h (mark_hard_reg_initial_vals): Delete.
1367         * stmt.c: Use gengtype for various structures.  Include
1368         gt-stmt.h.
1369         (mark_case_node): Delete.
1370         (mark_goto_fixup): Delete.
1371         (mark_stmt_status): Use standard gt_ggc names for marker functions.
1372         * system.h: Define GTY to empty.   In flex/bison files,
1373         don't poison malloc or realloc, instead just define them to
1374         xmalloc and xrealloc.
1375         * varasm.c: Use gengtype for various structures.  Include
1376         gt-varasm.h.  Use standard gt_ggc names for marker functions.
1377         (mark_pool_constant): Delete.
1378         (mark_varasm_status): Delete.
1379         (decode_rtx_const): #if 0 out non-typesafe hack.
1380
1381         * function.h (free_lang_status): Mark as obsolete.
1382         * function.c (free_lang_status): Mark as obsolete.
1383         * c-decl.c (push_c_function_context): Use GC to allocate and free
1384         struct language_function.
1385         (pop_c_function_context): Likewise.
1386         * c-common.c (mark_c_language_function): Mark struct
1387         language_function.
1388
1389         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1390         Document that the machine_function structures must be allocated
1391         using GC.  Update mark_machine_status documentation.
1392         * function.h: Don't declare free_machine_status.
1393         * function.c (free_machine_status): Don't define.
1394         (free_after_compilation): Don't call free_machine_status.
1395         (ggc_mark_struct_function): Mark f->machine.  Call
1396         mark_machine_status only on non-NULL pointers.
1397         * system.h: Poison free_machine_status.
1398         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1399         struct machine_function.
1400         (xtensa_free_machine_status): Delete.
1401         (override_options): Don't set free_machine_status.
1402         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1403         free_machine_status.
1404         (rs6000_init_machine_status): Use GC on struct machine_function.
1405         (rs6000_free_machine_status): Delete.
1406         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1407         machine_function.
1408         (ia64_mark_machine_status): Likewise.
1409         (ia64_free_machine_status): Delete.
1410         (ia64_override_options): Don't set free_machine_status.
1411         * config/i386/i386.c (override_options): Don't set
1412         free_machine_status.
1413         (ix86_init_machine_status): Use GC on struct machine_function.
1414         (ix86_mark_machine_status): Likewise.
1415         (ix86_free_machine_status): Delete.
1416         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1417         machine_function.
1418         (d30v_mark_machine_status): Likewise.
1419         (d30v_free_machine_status): Delete.
1420         (d30v_init_expanders): Don't set free_machine_status.
1421         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1422         machine_function.
1423         (arm_init_machine_status): Likewise.
1424         (arm_free_machine_status): Delete.
1425         (arm_init_expanders): Don't set free_machine_status.
1426         * config/alpha/alpha.c (override_options): Don't set
1427         free_machine_status.
1428         (alpha_init_machine_status): Use GC on struct machine_function.
1429         (alpha_mark_machine_status): Likewise.
1430         (alpha_free_machine_status): Delete.
1431
1432         * varasm.c (compare_constant): Fix typo.
1433
1434         * varasm.c: Don't include obstack.h.
1435         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1436         (struct rtx_const): Give substructures names, improve formatting.
1437         (struct constant_descriptor): Delete.
1438         (struct constant_descriptor_tree): New, based on constant_descriptor.
1439         (const_hash_table): Is a hash table of trees.
1440         (mark_const_hash_entry): Is used for hashes of trees.  Mark
1441         constant_descriptor_tree structure.
1442         (mark_const_str_htab_1): Mark deferred_string structure.
1443         (compare_constant): Rewrite to compare trees.
1444         (compare_constant_1): Delete.
1445         (record_constant): Delete.
1446         (record_constant_1): Delete.
1447         (output_constant_def): Use struct constant_descriptor_tree.
1448         Don't duplicate trees twice.
1449         (struct constant_descriptor_rtx): New.
1450         (struct pool_constant): Used for rtx constants.
1451         (init_varasm_status): Update for change to struct varasm_status.
1452         (mark_varasm_status): Likewise.
1453         (free_varasm_status): Delete.
1454         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1455         (record_constant_rtx): Likewise.
1456         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1457         (force_const_mem): Likewise.
1458         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1459         * function.c (free_after_compilation): Don't use free_varasm_status.
1460         * function.h: Don't prototype free_varasm_status.
1461
1462         * ggc-common.c (ggc_realloc): Handle X being NULL.
1463
1464         * ggc-common.c (ggc_realloc): New function.
1465         * ggc.h: Prototype it.
1466         * emit-rtl.c (free_emit_status): Delete.
1467         (init_emit): Allocate emit subarrays using GC.
1468         (gen_reg_rtx): Reallocate subarrays using GC.
1469         (init_emit): Use GC to allocate 'struct emit_status' and its
1470         subarrays.
1471         (mark_emit_status): Mark structure and its subarrays.
1472         * stmt.c (free_stmt_status): Delete.
1473         * expr.c (free_expr_status): Delete.
1474         * function.h: Remove prototypes for deleted functions.
1475         * function.c (free_after_compilation): Don't use deleted functions.
1476         Don't call free() on x_parm_reg_stack_loc.
1477         (free_after_parsing): Don't use free_stmt_status.
1478         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1479         (mark_function_status): Mark x_parm_reg_stack_loc.
1480
1481         * varasm.c (init_varasm_status): Use GC to allocate
1482         'struct varasm_status' and its fields x_const_rtx_hash_table
1483         and x_const_rtx_sym_hash_table.
1484         (mark_varasm_status): Mark them.
1485         (free_varasm_status): Use GC to free them.
1486         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1487         (mark_expr_status): Mark the structure itself.
1488         (free_expr_status): Use GC to free the structure.
1489         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1490         (mark_stmt_status): Mark the 'struct stmt_status' itself.
1491         (init_stmt_for_function): Allocate the structure for GC.
1492
1493         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1494         (equate_type_number_to_die): Likewise.
1495         * tree.h (TYPE_SYMTAB_DIE): New macro.
1496         (struct die_struct): Predeclare.
1497         (struct tree_type): Add field symtab.die.   Add a tag
1498         to the union type of field symtab.
1499
1500         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1501         'struct rtvec_def *', not 'struct rtvec_def'.
1502
1503         * function.h (original_arg_vector): Make a real rtvec.
1504         * function.c (ggc_mark_struct_function): Adjust.
1505         * integrate.c (expand_inline_function): Adjust.
1506
1507 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1508
1509         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1510         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1511         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1512         (TARGET_VERSION_CPU): Define according to the
1513         default target.
1514         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1515         TARGET_VERSION_CPU.
1516         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1517         if TARGET_SHMEDIA64.
1518         (LINK_DEFAULT_CPU_EMUL): Define according to the
1519         default target.
1520         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1521         (SUBTARGET_LINK_SPEC): Define.
1522         (LINK_SPEC): Use SH_LINK_SPEC.
1523         (ASM_SPEC): Remove.
1524         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1525         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1526         and TARGET_SHMEDIA64 which abort, for now.
1527         * config/sh/t-netbsd-sh5: New file.
1528         * config/sh/t-netbsd-sh5-32: New file.
1529         * config/sh/t-netbsd-sh5-64: New file.
1530
1531 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1532             Richard Henderson  <rth@redhat.com>
1533
1534         * config/alpha/alpha.c (reg_or_const_int_operand): New.
1535         (some_operand, input_operand): Accept CONST_VECTOR.
1536         (alpha_extra_constraint): Add 'W'.
1537         (alpha_expand_zap_mask): New.
1538         (alpha_expand_builtin_vector_binop): New.
1539         (enum alpha_builtin): New.
1540         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1541         (alpha_init_builtins, alpha_expand_builtin): New.
1542         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1543         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1544         (PREDICATE_CODES): Update.
1545         * config/alpha/alpha-protos.h: Update.
1546         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1547         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1548         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1549         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1550         (movv2si, movv2si_fix, movv2si_nofix): New.
1551         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1552         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1553         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1554         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1555         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1556         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1557         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1558         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1559         builtin_unpkbw, unpkbw): New.
1560         * doc/extend.texi (Alpha Built-in Functions): New.
1561
1562 2002-06-03  Richard Henderson  <rth@redhat.com>
1563
1564         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1565         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1566
1567 2002-06-03  Richard Henderson  <rth@redhat.com>
1568
1569         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1570
1571         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1572         (const0_operand): New.
1573         (reg_or_fp0_operand, fp0_operand): Remove.
1574         * config/alpha/alpha.h (PREDICATE_CODES): Update.
1575         * config/alpha/alpha-protos.h: Update.
1576         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1577         and fp0_operand with reg_or_0_operand and const0_operand.
1578
1579 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
1580
1581         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1582
1583 2002-06-03  Roger Sayle  <roger@eyesopen.com>
1584
1585         * gcse.c (cprop_jump): Use single_set to get the pattern
1586         from the setcc argument.
1587
1588 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
1589
1590         * diagnostic.h (diagnostic_count): Move from output_buffer to
1591         diagnostic_context.
1592         (diagnostic_kind_count): Adjust definition.
1593
1594 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
1595
1596         * except.c (except.c): Do not rebuild CFG.
1597         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1598         optimization.
1599
1600 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
1601
1602         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1603         * toplev.c: Include cfglahout.h
1604         * Makefile.in (toplev.c): Add dependnecy.
1605
1606 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1607
1608         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1609         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1610         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1611
1612 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
1613
1614         * config/ns32k/netbsd.h: Update copyright years.
1615         (TARGET_OS_CPP_BUILTINS): Define.
1616         (CPP_PREDEFINES): Remove.
1617         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1618         (TARGET_CPU_CPP_BUILTINS): Define.
1619
1620 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
1621
1622         * emit-rtl.c: Fix formatting.
1623         * errors.h: Likewise.
1624         * except.c: Likewise.
1625         * explow.c: Likewise.
1626         * expmed.c: Likewise.
1627         * expr.c: Likewise.
1628         * expr.h: Likewise.
1629
1630 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
1631
1632         * config/h8300/elf.h: Fix formatting.
1633         * config/h8300/rtems.h: Likewise.
1634
1635 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
1636
1637         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1638
1639 2002-06-02  Tom Tromey  <tromey@redhat.com>
1640
1641         * fixinc/fixincl.x: Rebuilt.
1642         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1643
1644 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1645
1646 config/i370:
1647         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1648         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1649         * mvs.h: Similarly.
1650         * oe.h: Similarly.
1651
1652 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
1653
1654         * final.c (final):  Allow notes to not have computed addresses;
1655         kill no longer needed STACK_REGS ifdef.
1656
1657 2002-06-02  Richard Henderson  <rth@redhat.com>
1658
1659         * gcse.c (bypass_conditional_jumps): Fix typo last change.
1660
1661 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1662
1663         * loop.c (emit_prefetch_instructions): Properly place the address
1664         computation.
1665
1666 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
1667
1668         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1669         (set_block_for_insn): Turn into macro.
1670         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1671         * cfglayout.c (insn_scopes): Kill.
1672         (scope_to_insns_initialize): Do not use insn_scopes.
1673         (scope_to_insns_finalize): Likewise.
1674         (duplicate_insn_chain): Likewise.
1675         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1676         * cfgrtl.c (basic_block_for_insn): Kill.
1677         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1678         (create_basic_block_structure): Use reorder_insns.
1679         (compute_bb_for_insn): Do not use basic_block_for_insn.
1680         (merge_blocks_nomove): Likewise.
1681         (update_bb_for_insn): Likewise.
1682         (verify_flow_info): Likewise.
1683         (set_block_for_insn): Kill.
1684         * combine.c (try_combine): Update gen_rtx_INSN call.
1685         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1686         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1687         scopes and BBs.
1688         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1689         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1690         Clear BB.
1691         (emit_insns_after): Simplify.
1692         (emit_copy_of_insn_after): Copy scope.
1693         * final.c (final_start_function): Lower scopes.
1694         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1695         * integrate.c (copy_insn_list): Cope scopes.
1696         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1697         * loop.c (loop_optimize): Do not care block notes.
1698         * print-rtl.c (print_rtx): Print BB.
1699         * recog.c (apply_change_group): Simplify.
1700         * rtl.c (copy_rtx): Handle 'B'.
1701         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1702         * rtl.h (Field accessors): Update indexes.
1703         * sched-ebb.c (schedule_ebbs): Do not lower notes.
1704         * sched-rgn.c (schedule_insns): Likewise.
1705         * toplev.c (rest_of_compilation): Lower notes.
1706         * unroll.c (unroll_loop): Do not care scoping notes.
1707         (copy_loop_body): Copy scopes.
1708
1709 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1710
1711 config/h8300:
1712         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1713         SUBTARGET_SPEC.
1714         * rtems.h: Similarly.
1715         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1716         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1717         (TARGET_CPU_CPP_BUILTINS): Use.
1718
1719 2002-06-02  Richard Henderson  <rth@redhat.com>
1720
1721         * alias.c: Include target.h.
1722         (mark_constant_function): Use targetm.binds_local_p instead
1723         of checking TREE_PUBLIC ourselves.
1724         * Makefile.in (alias.o): Add TARGET_H.
1725
1726 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1727
1728         * c-lex.c: Update copyright and file description.
1729
1730 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1731
1732         * config/fr30/fr30.h: Update to new CPP macros.
1733
1734 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1735
1736         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
1737
1738 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1739             Zack Weinberg <zack@codesourcery.com>
1740
1741         * c-common.c (c_common_init): Override cpplib's default
1742         warn_long_long setting.
1743         * c-lex.c (lex_number): Replace with interpret_integer,
1744         interpret_float, narrowest_unsigned_type and
1745         narrowest_signed_type, taking advantage of the new
1746         cpplib functionality.
1747         * cpperror.c (_cpp_begin_message): If a warning is turned
1748         into an error, avoid printing "warning:".
1749         * cppexp.c (cpp_num_sign_extend): New.
1750         * cppinit.c: Update comment.
1751         * cpplib.h (cpp_num_sign_extend): New.
1752         * tree.h: Update comment.
1753
1754 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
1755
1756         * diagnostic.h (struct diagnostic_context):  Add new member
1757         internal_error.
1758         (internal_error_function): Remove declaration.
1759         * diagnostic.c (internal_error_function): Remove definition..
1760         (internal_error): Adjust use.
1761
1762 2002-06-02  Richard Henderson  <rth@redhat.com>
1763
1764         * rtl.h (CC0_P): New.
1765         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
1766         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
1767         (bypass_block): Save old dest block for dump text.
1768         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
1769         Allow only true SET insns, not single_set.
1770
1771 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
1772
1773         * diagnostic.c (diagnostic_finish): Rename to output_flush.
1774         (clear_disgnostic_info): Rename to output_clear_data.  Use false
1775         instead of 0 for boolean value.
1776         Adjust function call throughout.
1777
1778 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
1779
1780         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
1781         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
1782
1783 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1784
1785         * d30v.h (CPP_PREDEFINES): Replace with
1786         (TARGET_CPU_CPP_BUILTINS): New.
1787
1788 2002-06-02  Roger Sayle  <roger@eyesopen.com>
1789
1790         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
1791
1792 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
1793
1794         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
1795
1796 2002-06-02  Richard Henderson  <rth@redhat.com>
1797
1798         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
1799
1800 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1801
1802         Support for C++ constructors/destructors.
1803         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
1804         instead of looping if main() returns.
1805         (asm_file_start): Output global symbols that cause .data and .bss
1806         initialization code to be linked in, unconditionally for now.
1807         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
1808         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
1809         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1810         (LIBSTDCXX): New.
1811         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
1812         (__tablejump__): New.
1813         (__do_copy_data, __do_clear_bss): New.
1814         (__do_global_ctors, __do_global_dtors): New.
1815         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
1816         _ctors, _dtors.
1817
1818 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1819
1820         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
1821         (CPP_SPEC, CPP_PREDEFINES): Kill.
1822         * c4x/rtems.h (CPP_PREDEFINES): Kill.
1823         (TARGET_OS_CPP_BUILTINS): New.
1824
1825 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
1826
1827         * Makefile.in (tracer.o): New.
1828         * params.def (TRACER_*): New options.
1829         * rtl.h (tracer): Declare.
1830         * timevar.def (TV_TRACER): New.
1831         * toplev.c (dump_file_index): Add DFI_tracer.
1832         (dump_file_info): Add tracer.
1833         (flag_tracer): New.
1834         (lang_indepdenent_options): Add tracer.
1835         (rest_of_compilation): Call tracer.
1836         * tracer.c: New file.
1837         * invoke.texi (-ftracer): Document.
1838         (--param tracer-*): Document.
1839
1840 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
1841
1842         * tree-inline.c (expand_call_inline): Make the statement
1843         expression we generate have a COMPOUND_STMT.
1844
1845 2002-06-01  Roger Sayle  <roger@eyesopen.com>
1846
1847         * gcse.c (cprop_cc0_jump): Function deleted.
1848         (cprop_jump): Take an additional argument which is the possibly
1849         NULL cc setting insn immediately before the conditional jump.
1850         When a MODE_CC set is present, substitute it into the JUMP_INSN
1851         before attempting the constant propagation.
1852         (cprop_insn):  Recognize cc setters followed by conditional jumps
1853         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
1854         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
1855         (find_bypass_set): New function based upon find_avail_set used by
1856         cprop, but finds constant expressions available at the end of
1857         basic blocks.
1858         (bypass_block): New function.  Given a basic block that begins
1859         with a conditional jump and multiple incoming edges, perform
1860         the jump bypass optimization.
1861         (bypass_conditional_jumps): New function.  Call bypass_block with
1862         each suitable basic block in the CFG using a simple single pass.
1863
1864 2002-06-01  Roger Sayle  <roger@eyesopen.com>
1865
1866         * tree.c (real_minus_onep): New function to test for -1.0.
1867         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
1868
1869 2002-06-01  Roger Sayle  <roger@eyesopen.com>
1870
1871         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
1872         and "!p && !q" into "(p|q) == 0" under suitable conditions.
1873
1874 2002-06-01  Andreas Jaeger  <aj@suse.de>
1875
1876         * cppexp.c (cpp_classify_number): Cast precission to int for
1877         correct printf format.
1878
1879 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1880
1881         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
1882         expected, but don't really exist: atmega83, atmega85, attiny10.
1883         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
1884         emulations for all devices.
1885         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
1886         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
1887
1888 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
1889
1890         * config/h8300/h8300-protos.h: Add a prototype for
1891         h8300_shift_needs_scratch_p.
1892         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
1893         * config/h8300/h8300.h (OK_FOR_R): New.
1894         (OK_FOR_S): Likewise.
1895         (OK_FOR_T): Likewise.
1896         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
1897         * config/h8300/h8300.md (anonymous shift patterns): Use
1898         constraints R, S, and T.
1899
1900 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1901
1902         * basic-block.h (struct basic_block_def): New field loop_father.
1903         (BB_VISITED): New flag.
1904         (struct loop): New field pred, removed field shared.
1905         (struct loops): New field parray.
1906         (LOOP_EXITS_DOMS): Removed.
1907         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
1908         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
1909         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
1910         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
1911         verify_loop_structure): Declare.
1912         * cfg.c (entry_exit_blocks): Initialize loop_father field.
1913         * cfganal.c (dfs_enumerate_from): New function.
1914         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
1915         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1916         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
1917         flow_loop_dump, flow_loops_dump, flow_loops_free,
1918         flow_loop_tree_node_add, flow_loop_level_compute,
1919         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
1920         flow_loop_outside_edge_p): Modified for new infrastructure.
1921         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
1922         redirect_edge_with_latch_update, flow_loop_free): New static functions.
1923         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
1924         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
1925         find_common_loop, verify_loop_structure, loop_latch_edge,
1926         loop_preheader_edge): New functions.
1927         (flow_loops_cfg_dump): Do not show dominators, as this information
1928         does not remain up to date long.
1929         (flow_loops_find): Store results in new format.
1930         * predict.c (propagate_freq, estimate_probability,
1931         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
1932         infrastructure.
1933
1934 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
1935
1936         * except.c (nothrow_function_p): Walk epilogue delay list
1937         checking the insn, not the chain for potential throws.
1938
1939 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
1940
1941         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
1942         (install): Refer to install-cpp directly.
1943         (uninstall-cpp): Folded into uninstall rule.
1944         * configure.in: Delete all code relating to --disable-cpp.
1945         * configure: Regenerate.
1946         * config/t-install-cpp: Delete.
1947
1948 2002-05-31  Richard Henderson  <rth@redhat.com>
1949
1950         * configure.in (HAVE_AS_TLS): Add alpha tests.
1951         * configure: Rebuild.
1952         * config/alpha/alpha.c (TARGET_AS_TLS): New.
1953         (alpha_tls_size, alpha_tls_size_string): New.
1954         (overide_options): Set it.  Always install machine_status hooks.
1955         (input_operand): Accept got tls predicates.
1956         (local_symbol_p): Merge into ...
1957         (local_symbolic_operand): ... here.  Reject tls symbols.
1958         (global_symbolic_operand): Likewise.
1959         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
1960         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
1961         (tp16_symbolic_operand, tp32_symbolic_operand): New.
1962         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
1963         (alpha_encode_section_info): Handle TLS symbols.
1964         (alpha_strip_name_encoding): Likewise.
1965         (alpha_legitimate_address_p): Likewise.
1966         (alpha_legitimize_address): Likewise.
1967         (alpha_expand_mov): Early exit to avoid nop moves.
1968         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
1969         (alpha_init_machine_status, alpha_mark_machine_status,
1970         alpha_free_machine_status): Always define.
1971         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
1972         (print_operand, print_operand_address): Add TLS relocs.
1973         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
1974         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
1975         (TARGET_SWITCHES): Add -mtls-kernel.
1976         (alpha_tls_size, alpha_tls_size_string): New.
1977         (TARGET_OPTIONS): Add -mtls-size=.
1978         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
1979         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
1980         (ASM_OUTPUT_LABELREF): Skip %.
1981         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
1982         (PREDICATE_CODES): Update.
1983         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
1984         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
1985         UNSPEC_TP, UNSPECV_SET_TP): New.
1986         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
1987         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
1988         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
1989         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
1990         (call_value_osf_2_er): Accept anything as op4.
1991         * config/alpha/alpha-protos.h: Update.
1992         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
1993
1994 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
1995
1996         * cppinit.c (append_include_chain): Always pay attention to
1997         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
1998         marker on argument.
1999
2000 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
2001
2002         * target.h: Fix formatting.
2003         * timevar.h: Likewise.
2004         * tlink.c: Likewise.
2005         * toplev.c: Likewise.
2006         * toplev.h: Likewise.
2007         * tree.c: Likewise.
2008         * tree-dump.h: Likewise.
2009         * tree.h: Likewise.
2010         * tree-inline.h: Likewise.
2011         * unroll.c: Likewise.
2012         * unwind-dw2.c: Likewise.
2013         * unwind-dw2-fde.c: Likewise.
2014         * unwind-dw2-fde-glibc.c: Likewise.
2015         * unwind-dw2-fde.h: Likewise.
2016         * unwind.h: Likewise.
2017         * unwind-sjlj.c: Likewise.
2018         * varasm.c: Likewise.
2019         * varray.h: Likewise.
2020         * vmsdbg.h: Likewise.
2021         * vmsdbgout.c: Likewise.
2022         * xcoffout.h: Likewise.
2023
2024 2002-05-31  Igor Shevlyakov <igor@microunity.com>
2025
2026         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
2027         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
2028
2029 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
2030
2031         * gcc.c (cpp_unique_options): Remove "-d" options.
2032         (cpp_debug_options): New spec string.
2033         (default_compilers): Use it.
2034         * objc/lang-specs.h: Likewise.
2035
2036 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
2037
2038         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
2039         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
2040         * gcc/mklibgcc.in: Likewise.
2041         * gcc/config/arc/t-arc: Likewise.
2042         * gcc/configure.in: Likewise.
2043         * gcc/configure: Regenerate.
2044
2045 2002-05-31  Stan Shebs  <shebs@apple.com>
2046             Turly O'Connor  <turly@apple.com>
2047
2048         * c-decl.c (struct binding_level): Change int field n_incomplete
2049         to tree list incomplete_list.
2050         (clear_binding_level): Init field with NULL.
2051         (pushdecl): Add incomplete type to list.
2052         (mark_binding_level): Mark the incomplete list.
2053         (finish_struct): Scan the incomplete list for types instead
2054         of all decls in the current binding level.
2055
2056 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2057
2058         * pa.c (output_millicode_call): Add missing '%' characters.
2059         (output_call): Likewise.
2060
2061 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
2062
2063         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
2064         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2065
2066 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
2067
2068         * varasm.c (mark_constant_pool): Walk epilogue delay list
2069         checking the insn, not the chain for potential constants.
2070
2071 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
2072
2073         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
2074
2075 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
2076
2077         * i386.c (classify_argument): Properly handle base types.
2078
2079         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
2080         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
2081         registers.
2082
2083 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2084
2085         * gcse.c (gcse_emit_move_after): New.
2086         (pre_delete, hoist_store): Use it.
2087
2088         * reload1.c (emit_input_reload_insns): Use constrain_operands
2089         instead of constraint_accepts_reg_p to verify optimization.
2090         (constraint_accepts_reg_p): Kill
2091
2092         * reload1.c (reload_cse_delete_noop_set): Kill.
2093         (reload_cse_simplify): use delte_insn_and_edges.
2094
2095 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2096
2097         * cfgloop.c (flow_loops_find): Initialize first and last fields
2098         correctly.
2099
2100 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
2101
2102         * c-common.c (builtin_define_std): Correct logic.
2103
2104 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2105
2106         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
2107         (output_call): Likewise.
2108
2109 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2110
2111         * pa.c: Move output.h include after tree.h include.
2112         (pa_asm_output_mi_thunk): Constify identifier lab.
2113
2114 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
2115
2116         * config/ns32k/ns32k.h: Define named constants for the
2117         bits in target_flags and use them.
2118         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2119
2120 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2121
2122         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2123         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2124         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2125         default scheduling model.
2126         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2127         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2128         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2129         * doc/install.texi (hppa*-*-*): Document default scheduling.
2130
2131 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2132
2133         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2134
2135 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
2136
2137         * config.gcc (ns32k-*-netbsd*): Set tm_file to
2138         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2139         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2140         netbsd.h, or netbsd-aout.h.
2141
2142 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
2143
2144         * longlong.h (count_trailing_zeros): Add missing \, and clean up
2145         whitespace in __ns32000__ case.
2146
2147 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
2148
2149         * expr.c (expand_expr): Output partially zeroed out vectors with
2150         output_constant_def.
2151
2152 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
2153
2154         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2155         (sh-*-netbsdelf*)
2156         (shl*-*-netbsdelf*): New targets.
2157         * config/sh/netbsd-elf.h: New file.
2158         * config/sh/t-netbsd: New file.
2159
2160 2002-05-30  Richard Henderson  <rth@redhat.com>
2161             Eric Botcazou  <ebotcazou@multimania.com>
2162
2163         PR optimization/6822
2164         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2165         to unsigned int for op1 comparisons.  Use gen_int_mode.
2166
2167 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
2168
2169         * expmed.c (const_mult_add_overflow_p): New.
2170         * expr.h: Declare it.
2171         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2172         Don't eliminate the biv if the giv has a constant multiplier and
2173         the rhs argument of the comparison does satisfy the predicate.
2174         Use expand_mult_add to compute the replacement constant.
2175
2176 2002-05-30  Osku Salerma  <osku@iki.fi>
2177
2178         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2179         (c_common_get_alias_set): Handle it.
2180         * doc/extend.texi: Document it.
2181
2182 2002-05-30  Richard Henderson  <rth@redhat.com>
2183
2184         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2185         * toplev.c (process_options): Don't check it.
2186         * doc/tm.texi: Don't document it.
2187         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2188         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2189         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2190         frame pointer optimization if current_function_profile.
2191
2192 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
2193
2194         * langhooks.c: Fix formatting.
2195         * langhooks.h: Likewise.
2196         * lcm.c: Likewise.
2197         * libgcc2.c: Likewise.
2198         * lists.c: Likewise.
2199         * local-alloc.c: Likewise.
2200         * loop.c: Likewise.
2201         * loop.h: Likewise.
2202
2203 2002-05-30  Marc Espie <espie@openbsd.org>
2204
2205         * config.gcc (sparc64-*-openbsd*): New.
2206         * config/sparc/openbsd1-64.h: New.
2207         * config/sparc/openbsd64.h: New.
2208
2209 2002-05-30  Jeff Law <law@redhat.com>
2210
2211         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
2212         a dead insn with a REG_RETVAL note when the entire libcall is not
2213         dead and remove the associated REG_LIBCALL note at the same time.
2214
2215 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
2216
2217         * lcm.c (output.h): #include.
2218         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2219         as an ordinary block.
2220         (optimize_mode_switching): Don't pretend that the exit block is
2221         an ordinary block, or handle sucessors of entry block specially.
2222         Instead, split edges from entry block and to exit block, and
2223         put a computing definition on the thus gained post-entry-block,
2224         and a need on the pre-exit-block.
2225
2226 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
2227
2228         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2229         * rtl.texi: Document 'B'
2230
2231 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
2232
2233         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2234         at run-time.
2235         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2236
2237 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
2238
2239         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2240         const0_rtx instead of NULL_RTX when in error.
2241         (altivec_expand_abs_builtin): Same.
2242         (rs6000_expand_binop_builtin): Same.
2243         (altivec_expand_predicate_builtin): Same.
2244         (altivec_expand_stv_builtin): Same.
2245         (rs6000_expand_ternop_builtin): Same.
2246         (altivec_expand_builtin): Same.
2247
2248 2002-05-29  David S. Miller  <davem@redhat.com>
2249
2250         * rtl.h (clear_emit_caches): Delete.
2251         * integrate.c (output_inline_function): Don't call it.
2252         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2253         (clear_emit_caches): Delete definition.
2254         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2255
2256 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
2257
2258         * config/mmix/mmix.c: Include real.h.
2259         (mmix_constant_address_p): Remove redundant test before switch.
2260
2261 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2262
2263         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2264         only if not already defined.
2265
2266 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
2267
2268         * config/h8300/h8300-protos.h: Remove prototypes for
2269         ok_for_bclr and small_power_of_two.
2270         * config/h8300/h8300.c (small_power_of_two): Remove.
2271         (ok_for_blcr): Likewise.
2272         (fix_bit_operand): Make WHAT deal with an integer instead of a
2273         constraint character.
2274         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2275         (CONST_OK_FOR_P): Likewise.
2276         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2277         CONST_OK_FOR_P any more.
2278         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2279         of fix_bit_operand.
2280         (iorqi3): Likewise.
2281         (xorqi3): Likewise.
2282
2283 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2284
2285         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2286         (CPP_PREDEFINES): Make sure this is undefined.
2287         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2288         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
2289         or -U__MIPSEB__ before defining one or the other.  Instead,
2290         use %(subtarget_endian_default) if neither -EB nor -EL are
2291         specified.
2292         (SUBTARGET_EXTRA_SPECS): Define.
2293         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
2294         %(netbsd_cpp_spec).
2295
2296 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
2297
2298         * doc/md.texi (Patterns): Note pattern condition pitfall
2299         for unnamed insn.
2300
2301 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
2302
2303         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2304         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
2305         ternary operations from here...
2306         (rs6000_expand_builtin): ...to here.
2307         New argument expandedp.
2308         Change all instances of altivec_expand_binop_builtin to
2309         rs6000_expand_binop_builtin.
2310         (altivec_expand_unop_builtin): Rename to
2311         rs6000_expand_unop_builtin.
2312         (altivec_expand_binop_builtin): Rename to
2313         rs6000_expand_binop_builtin.
2314         (altivec_expand_ternop_builtin): Rename to
2315         rs6000_expand_ternop_builtin.
2316
2317 2002-05-29  Richard Henderson  <rth@redhat.com>
2318
2319         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2320         (TARGET_BI_ARCH): Likewise.
2321         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2322         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2323         (TARGET_64BIT_DEFAULT): Default to 0.
2324         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2325
2326 2002-05-29  Richard Henderson  <rth@redhat.com>
2327
2328         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2329         (get_pc_thunk_name): New.
2330         (output_set_got): Use it.
2331         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2332         into linkonce sections.
2333
2334 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2335
2336         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2337         (CPP_PREDEFINES): Make sure this is undefined.
2338         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2339         (CPP_SUBTARGET_SPEC): Don't provide different versions for
2340         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
2341         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2342         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
2343         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2344         (CPP_PREDEFINES): Make sure this is undefined.
2345         (SUBTARGET_EXTRA_SPECS): Define.
2346         (CPP_SPEC): Use %(netbsd_cpp_spec).
2347
2348 2002-05-29  Jeff Law <law@redhat.com>
2349
2350         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2351
2352         * flow.c (propagate_one_insn): Do not remove a dead insn if it
2353         contains a REG_RETVAL note.
2354
2355         * haifa-sched (sched_analyze): Remove another useless clearing
2356         of SCHED_GROUP_P I missed yesterday.
2357
2358         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2359         * pa.c (pa_asm_output_mi_thunk): New function.
2360         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2361
2362 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2363             Marek Michalkiewicz  <marekm@amelek.gda.pl>
2364
2365         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2366         (avr_asm_only_p): Make non-static.
2367         (enum avr_arch): Remove.
2368         (avr_arch_types): New.
2369         (avr_mcu_types): Update.
2370         (avr_override_options): Use avr_arch_types table instead of switch.
2371         * avr.h (CPP_PREDEFINES): Die.
2372         (avr_base_arch_macro, avr_extra_arch_macro): New.
2373         (TARGET_CPU_CPP_BUILTINS): New.
2374         (CPP_SPEC, EXTRA_SPECS): Simplify.
2375         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2376         CPP_AVR5_SPEC): Die.
2377
2378 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2379
2380         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2381         NETBSD_OS_CPP_BUILTINS_AOUT.
2382         (SUBTARGET_EXTRA_SPECS): Define.
2383         (CPP_SPEC): Use %(netbsd_cpp_spec).
2384
2385 2002-05-29  Richard Henderson  <rth@redhat.com>
2386
2387         * config/i386/i386.c (ix86_output_function_epilogue): New.
2388         (TARGET_ASM_FUNCTION_EPILOGUE): New.
2389         (pic_label_name): Remove.
2390         (pic_labels_used): New.
2391         (ix86_asm_file_end): Emit one pc load stub for each register used.
2392         (output_set_got): Generate deep pc load to any register.
2393         (ix86_select_alt_pic_regnum): New.
2394         (ix86_save_reg): Don't save pic register if we can find a valid
2395         call-clobbered replacement.
2396         (ix86_expand_prologue): If we found a valid replacement, renumber
2397         pic_offset_table_rtx.
2398         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2399         pic_offset_table_rtx after reload.
2400         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2401         * config/i386/i386.md (set_got): Make insn, not expander.
2402         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2403
2404 2002-05-29  Richard Henderson  <rth@redhat.com>
2405
2406         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2407         alignment for alloca.
2408
2409 2002-05-29  Richard Henderson  <rth@redhat.com>
2410
2411         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2412         (print_operand_address): Only add rip for symbolic addresses
2413         for which we do not have another relocation type.
2414
2415 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2416
2417         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2418         (EXTRA_SPECS): Add netbsd_cpp_spec.
2419         (CPP_SPEC): Use %(netbsd_cpp_spec).
2420         (CPP_PREDEFINES): Remove.
2421         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2422         (EXTRA_SPECS): Define.
2423         (CPP_SPEC): Use %(netbsd_cpp_spec).
2424         (CPP_PREDEFINES): Remove.
2425
2426 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2427
2428         PR preprocessor/6844
2429         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2430         NUL.
2431
2432 2002-05-29  Eric Christopher  <echristo@redhat.com>
2433
2434         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2435         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2436
2437 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
2438
2439         * config/fr30/fr30.md: Remove previous restriction on splits.
2440         Enforce conformance through gen_lowpart and cont_int_operand.
2441         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
2442         as the assembler does not support ".bss".
2443
2444 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2445
2446         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2447         (CPP_PREDEFINES): Remove.
2448         (SUBTARGET_EXTRA_SPECS): Define.
2449         (CPP_SPEC): Use %(netbsd_cpp_spec).
2450         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2451         (CPP_PREDEFINES): Remove.
2452         (SUBTARGET_EXTRA_SPECS): Define.
2453         (CPP_SPEC): Use %(netbsd_cpp_spec).
2454         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2455         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2456         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2457         Add netbsd_cpp_spec.
2458         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2459
2460 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2461             Zack Weinberg <zack@codesourcery.com>
2462
2463         * cppexp.c (cpp_num): Move to cpplib.h.
2464         (CPP_ERROR): Remove.
2465         (interpret_float_suffix, interpret_int_suffix): New.
2466         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2467         (cpp_classify_number, cpp_interpret_integer): New.
2468         (interpret_number): Remove.
2469         (eval_token): Update to use new routines.
2470         * cpphash.h (cpp_num_part): Move to cpplib.h.
2471         * cppinit.c (cpp_post_options): Set warn_long_long.
2472         * cpplib.h (struct cpp_options): Add warn_long_long.
2473         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2474         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2475         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2476         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2477         cpp_interpret_integer): New.
2478
2479 2002-05-29  Joel Sherrill <joel@OARcorp.com>
2480
2481         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2482
2483 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2484
2485         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2486         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2487         (CPP_SUBTARGET_SPEC): Define.
2488         (SUBTARGET_EXTRA_SPECS): Define.
2489         (CPP_SPEC): Remove.
2490
2491 2002-05-29  Chris Lattner  <sabre@nondot.org>
2492
2493         * ssa.c (rename_insn_1): Rename uses of undefined registers to
2494         prevent confusion if/when the register is defined.
2495
2496 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
2497
2498         PR target/6838
2499         * config/cris/cris.md: Fix typos and thinkos in comments.
2500         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2501         second alternative.
2502         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2503         ("*mov_sideqi_mem"): Similar, but for operand 3.
2504         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2505         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2506         Remove spurious mode specifier on operand 2.
2507
2508 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
2509
2510         * config/h8300/h8300-protos.h: Remove the prototype for
2511         o_operand.
2512         Add prototypes for single_one_operand and single_zero_operand.
2513         * config/h8300/h8300.c (o_operand): Remove.
2514         (single_one_operand): New.
2515         (single_zero_operand): Likewise.
2516         (print_operand): For 'V' operand, and the operand with 0xff.
2517         For 'V' and 'W' operands, do not and the bit position with 7.
2518         * config/h8300/h8300.md (various anonymous patterns): Replace
2519         use of exact_log2 with single_one_operand/single_zero_operand.
2520
2521 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
2522
2523         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2524
2525 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
2526
2527         * config/s390/s390.c (legitimate_pic_operand_p): Do not
2528         accept symbolic LARL operands.
2529         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
2530         epilogue insns.
2531
2532 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
2533
2534         * config/s390/s390.md (cmpstr_64/31): Mark whole
2535         input registers as used.
2536
2537 2002-05-28  Richard Henderson  <rth@redhat.com>
2538
2539         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2540         not current_function_uses_pic_offset_table and
2541         current_function_uses_const_pool; examine current_function_profile.
2542         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
2543         input to blockage if needed.
2544         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2545         (legitimize_pic_address): Likewise.  Set regs_ever_live for
2546         pic_offset_table_rtx when invoked during reload.
2547         * config/i386/i386.h (FINALIZE_PIC): Remove.
2548         * config/i386/i386.md (tablejump): Reformat.  Do not set
2549         current_function_uses_pic_offset_table.
2550         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2551         (blockage): Accept anything as operand 0.
2552
2553 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
2554
2555         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2556         common CPP built-ins for all NetBSD a.out targets.
2557         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2558         common CPP built-ins for all NetBSD ELF targets.
2559         * config/netbsd.h: Add missing notice.
2560         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2561         for all NetBSD targets.
2562         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2563         for all NetBSD targets using an LP64 code model.
2564         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2565         NetBSD targets.
2566
2567 2002-05-28  Richard Henderson  <rth@redhat.com>
2568
2569         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2570         update if UPDATE_LIFE_LOCAL.
2571
2572 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2573
2574         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2575
2576 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
2577                           Jason R. Thorpe <thorpej@wasabisystems.com>
2578
2579         config/sh reorganization to factor out endianness and coff:
2580
2581         * config/sh/little.h: New file.
2582         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2583         defined, define to 0 to select big-endian.
2584         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
2585         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2586         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2587         * config/sh/t-be: New file.
2588         * config/sh/t-le: New file.
2589
2590         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2591         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2592         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2593         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2594         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2595         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2596         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2597         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2598         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2599         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2600         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2601         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2602         (LINK_SPEC): Define to SH_LINK_SPEC.
2603         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2604         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2605         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2606         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2607         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2608         * config/sh/coff.h: New file.
2609         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2610         (TARGET_OBJFMT_CPP_BUILTINS): Define.
2611         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2612         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2613         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2614         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2615         (PTRDIFF_TYPE): Likewise.
2616         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2617         (CPP_PREDEFINES): Don't define.
2618         (TARGET_OBJFMT_CPP_BUILTINS): Define.
2619         (LINK_SPEC): Define to SH_LINK_SPEC.
2620         (LINK_EMUL_PREFIX): Redefine.
2621         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2622         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2623         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2624         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2625         (TARGET_OS_CPP_BUILTINS): Define.
2626         (TARGET_DEFAULT): Redefine.
2627         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2628         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2629         (LINK_SPEC): Don't redefine.
2630         (LINK_DEFAULT_CPU_EMUL): Redefine.
2631         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2632         * sh.c (sh_asm_named_section): Don't declare / define.
2633         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2634         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2635         (sh64-*-elf* tm_file): Likewise.
2636         (sh-*-rtemself* tm_file): Likewise.
2637         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
2638         (sh-*-linux* tmake_file): Add sh/t-le.
2639         (sh-*-rtems* tm_file): Add sh/coff.h
2640         (sh-*-* tm_file): Likewise.
2641
2642 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
2643
2644         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2645         CONSTANT_POOL_ADDRESS_P.
2646
2647         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2648
2649 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
2650             Jeff Law <law@redhat.com>
2651
2652         * optabs.c (expand_binop): Fix nwords sign warnings.
2653         generate pseudo for add_optab.
2654
2655         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2656         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2657
2658 2002-05-28      Marc Espie <espie@openbsd.org>
2659
2660         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
2661         inherited from gas.h.
2662         (ASM_QUAD):  Undef.  OpenBSD does not support it.
2663
2664 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
2665
2666         * doc/install.texi (binaries): Change mingw binaries
2667         link to www.mingw.org.
2668
2669 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2670
2671         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2672
2673 2002-05-28  Richard Henderson  <rth@redhat.com>
2674
2675         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2676         bottom alignment for leaf functions.
2677
2678 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
2679
2680         * config/pa/milli32.S, config/pa/lib1funcs.asm,
2681         config/sparc/sol2-g1.asm: Delete unused files.
2682
2683 2002-05-28  Richard Henderson  <rth@redhat.com>
2684
2685         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2686
2687         * flow.c (calculate_global_regs_live): Rename call_used to
2688         invalidated_by_call.  Initialize from regs_invalidated_by_call
2689         instead of call_used_regs.
2690
2691         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2692         DECL_EXTERNAL.
2693
2694 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
2695
2696         * tree.h: Don't include real.h.
2697         Forward-declare struct realvaluetype.
2698         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2699         contain it.
2700         (TREE_REAL_CST_PTR): New accessor.
2701         (TREE_REAL_CST): Update.
2702         * real.h: Include machmode.h.
2703         (realvaluetype): Make it struct realvaluetype, not a typedef.
2704         (build_real): Prototype here.
2705
2706         * tree.c: Include real.h.
2707         (build_real): Allocate the REAL_VALUE_TYPE as a separate
2708         object in GC memory, set TREE_REAL_CST_PTR to point to it.
2709         (build_real_from_int_cst): Use build_real.
2710         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2711         REAL_CST.
2712
2713         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2714         fold-const.c, print-tree.c, real.c: Include real.h.
2715         * Makefile.in: Update dependency lists.
2716
2717 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2718
2719         * basic-block.h (last_basic_block): Declare.
2720         (expunge_block_nocompact): Declaration removed.
2721         (compact_blocks): Declare.
2722         * cfg.c (last_basic_block): New variable.
2723         (expunge_block_nocompact): Removed.
2724         (expunge_block): Do not compact basic blocks.
2725         (compact_blocks): New.
2726         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
2727         longer change.
2728         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
2729         last_basic_block.
2730         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
2731         real positions of blocks.
2732         (delete_unreachable_blocks): Simplified -- quadratic behavior now
2733         cannot occur.
2734         (cleanup_cfg): Compact blocks.
2735         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
2736         basic_block_info varray.
2737         (flow_delete_block): Comment update.
2738         (back_edge_of_syntactic_loop_p): Modify position check code.
2739         (verify_flow_info): Update checking.
2740         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
2741         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2742         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
2743         indices no longer change.
2744         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
2745         last_basic_block.
2746         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
2747         * profile.c (branch_prob): Compact blocks.
2748         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
2749         last_basic_block.
2750
2751 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
2752
2753         * config/h8300/h8300.md (two anonymous patterns): New.
2754
2755 2002-05-28  David S. Miller  <davem@redhat.com>
2756
2757         * config/sparc/sparc.md (cpu): Tidy.
2758         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
2759         'trap'.
2760         (in_call_delay): Delete reference to 'return' type.
2761         (eligible_for_return_delay, in_return_delay, define_delay
2762         referencing those): Delete.
2763         (rest of file): Use new type attributes as appropriate.
2764         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
2765         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
2766         * config/sparc/ultra1_2.md (us1_single): New reservation.
2767         (us1_ialuX): Likewise.
2768         * config/sparc/ultra3.md (us3_single): Likewise.
2769         (us3_ialuX): Likewise.
2770         (us3_imul, us3_idiv): Tweak.
2771
2772 2002-05-28  Richard Henderson  <rth@redhat.com>
2773
2774         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
2775         STRING_CST.
2776
2777 2002-05-28  Richard Henderson  <rth@redhat.com>
2778
2779         * config.gcc: Obsolete mn10200.
2780
2781 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2782
2783         * cppexp.c (interpret_number): Optimize for single-digit
2784         and less-than-half-precision cases.
2785         (num_trim, num_positive, num_div_op): Cast constants.
2786
2787 2002-05-27  Bo Thorsen  <bo@suse.de>
2788
2789         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
2790         3.1 branch. The file was made by Jakub Jelinek.
2791         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
2792         support so multilib doesn't break. And don't define this at all
2793         when -Dinhibit_libc is used.
2794         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
2795         * config/i386/t-linux64: Implement full multilib support. Patch
2796         originally done by Andreas Jaeger and Jakub Jelinek.
2797
2798 2002-05-27  Roger Sayle  <roger@eyesopen.com>
2799
2800         * c-common.c: Add support for __attribute__((nothrow)) to specify
2801         that a function cannot throw an exception (using TREE_NOTHROW).
2802         (handle_nothrow_attribute): New function to process this attribute.
2803
2804         * doc/extend.texi: Document the new nothrow function attribute.
2805
2806 2002-05-27  H.J. Lu  (hjl@gnu.org)
2807
2808         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
2809         (num_positive): Likewise.
2810         (num_div_op): Likewise.
2811
2812 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2813
2814         * c-common.c (c_common_init): Always use intmax_t.
2815
2816 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2817
2818         * c-common.c (c_common_init): Use intmax_t for now.
2819
2820 2002-05-24  Andrew Haley  <aph@redhat.com>
2821
2822         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
2823         if T is a boolean type.
2824
2825 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2826
2827         * basic-block.h (last_basic_block): Defined as synonym for
2828         n_basic_blocks.
2829         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
2830         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2831         flow_dfs_compute_reverse_init): Replaced relevant occurences of
2832         n_basic_blocks with last_basic_block.
2833         * cfgbuild.c (make_edges): Likewise.
2834         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
2835         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
2836         * combine.c (combine_instructions): Likewise.
2837         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
2838         iterative_dataflow_bitmap): Likewise.
2839         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2840         calc_idoms, idoms_to_doms): Likewise.
2841         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
2842         Likewise.
2843         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
2844         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
2845         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
2846         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
2847         delete_null_pointer_checks, compute_code_hoist_vbeinout,
2848         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2849         compute_store_table, build_store_vectors): Likewise.
2850         * haifa-sched.c (sched_init): Likewise.
2851         * ifcvt.c (if_convert): Likewise.
2852         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
2853         pre_edge_lcm, compute_available, compute_nearerout,
2854         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
2855         Likewise.
2856         * predict.c (estimate_probability, process_note_prediction,
2857         note_prediction_to_br_prob): Likewise.
2858         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
2859         * recog.c (split_all_insns, peephole2_optimize): Likewise.
2860         * regrename.c (copyprop_hardreg_forward): Likewise.
2861         * resource.c (init_resource_info): Likewise.
2862         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
2863         init_regions, schedule_insns): Likewise.
2864         * ssa-ccp.c (ssa_const_prop): Likewise.
2865         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2866         * ssa.c (compute_dominance_frontiers,
2867         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
2868
2869         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
2870         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
2871         sizes consistently.
2872
2873 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
2874
2875         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
2876         new.
2877         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
2878         hoist_insn_after, hoist_insn_to_edge): New.
2879
2880 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
2881
2882         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
2883         (PROP_FINAL): Include.
2884         * flow.c (life_analysis, update_life_info,
2885         init_propagate_block_info, mark_set_1, mark_used_rgs):
2886         Support SCAN_DEAD_STORE.
2887
2888 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2889
2890         * c-common.c (c_common_init): Set CPP arithmetic precision.
2891         * cppexp.c (cpp_num_part): Move typedef ...
2892         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
2893         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
2894         (sanity_checks): Update.
2895
2896 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
2897
2898         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
2899         (mkheaders): New rule.
2900         (install-mkheaders): New rule.
2901         * configure.in (all_outputs): Add mkheaders.
2902         * configure: Regenerate.
2903         * mkheaders.in: New file.
2904
2905 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
2906
2907         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
2908
2909 2002-05-26  Andreas Jaeger  <aj@suse.de>
2910
2911         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
2912
2913 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2914
2915         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
2916         right_shift): Remove.
2917         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
2918         HIGH_PART): New.
2919         (struct op): Use cpp_num.
2920         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
2921         num_part_mul, num_unary_op, num_binary_op, num_negate,
2922         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
2923         num_div_op, num_lshift, num_rshift, append_digit): New.
2924         (interpret_number, parse_defined, eval_token, reduce): Update
2925         for two-integer arithmetic.
2926         (binary_handler): New typedef.
2927         (optab): Update.
2928         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
2929         (_cpp_parse_expr, reduce): Update to handle two-integers.
2930         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
2931
2932 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2933
2934         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
2935         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
2936         branch insn into account, do not assume 1.
2937         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
2938         over single word insn.  Handle upper half of I/O space too.
2939         * config/avr/avr.md (*sbrx_branch): Use it.
2940         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
2941         (*sbix_branch, *sbix_branch_bit7): Likewise.
2942         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
2943         Use RTL peepholes to optimize register operand sign tests.
2944
2945 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2946
2947         * config/avr/avr.c (avr_asm_only_p): New variable.
2948         (avr_override_options): Set it here if AVR1.
2949         (asm_file_start): Test it here, report an error if set.
2950
2951 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
2952
2953         * alias.c: Fix formatting.
2954         * attribs.c: Likewise.
2955         * bb-reorder.c: Likewise.
2956         * bitmap.c: Likewise.
2957         * bitmap.h: Likewise.
2958         * builtins.c: Likewise.
2959
2960 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
2961
2962         * reload.c (find_valid_class): Accept new argument DEST,
2963         choose class accordingly.
2964         (push_reload): Update callers.
2965
2966 2002-05-26  Andreas Jaeger  <aj@suse.de>
2967
2968         * combine.c (combine_instructions): Do not indent #if for
2969         traditional C.
2970
2971 2002-05-25  Richard Henderson  <rth@redhat.com>
2972
2973         * c-pragma.c (apply_pragma_weak): Convert value identifier to
2974         string for decl_attributes.
2975         (handle_pragma_weak): Call assemble_alias if we're modifying
2976         an existing decl.
2977
2978 2002-05-25  Richard Henderson  <rth@redhat.com>
2979
2980         PR target/6788
2981         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
2982         using rtl instead of fprintf.
2983         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
2984         * config/sparc/sparc-protos.h: Update.
2985
2986 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
2987
2988         * Makefile.in (C_COMMON_H): Fix.
2989         Update other targets.
2990         * c-common.c: Don't include c-lex.h.
2991         (builtin_define_with_value): Make static and prototype.
2992         (builtin_define_std): Move from c-lex.h.
2993         * c-common.h (init_c_lex): Move from c-lex.h.
2994         * c-decl.c: Don't include c-lex.h.
2995         (make_pointer_declarator): Move from c-parse.in.
2996         * c-lex.c: Don't include c-lex.h.
2997         * c-lex.h: Remove.
2998         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
2999         (make_pointer_declarator): Move to c-decl.c.
3000         * c-pragma.c: Don't include c-lex.h.
3001         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
3002         * c-tree.h (make_pointer_declarator): New.
3003 doc:
3004         * passes.texi, tm.texi: Update.
3005 objc:
3006         * Make-lang.in: Update and correct.
3007         * objc-act.c: Don't include c-lex.h or cpplib.h.
3008 treelang:
3009         * treetree.c: Don't include c-lex.h.
3010 config:
3011         * darwin-c.c: Don't include c-lex.h.
3012         * c4x/c4x-c.c: Don't include c-lex.h.
3013         * c4x/t-c4x: Update.
3014         * i370/i370-c.c: Don't include c-lex.h.
3015         * i370/t-i370: Update.
3016         * i960/i960-c.c: Don't include c-lex.h.
3017         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
3018         * i960/t-960bare: Update.
3019         * i960/t-vxworks: Update.
3020         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
3021         * rs6000/t-darwin: Update.
3022         * rs6000/t-rs6000-c-rule: Update.
3023         * v850/v850-c.c: Don't include c-lex.h.
3024         * v850/v850.c: Don't include c-lex.h or cpplib.h.
3025
3026
3027 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
3028
3029         * tree.def: Fix typos.
3030         * doc/install.texi: Likewise.
3031
3032 2002-05-25  Richard Henderson  <rth@redhat.com>
3033
3034         * configure.in (HAVE_AS_TLS): Add ia64 test.
3035         * configure: Rebuild.
3036         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
3037         (override_options): Set it.
3038         (TARGET_HAVE_TLS): New.
3039         (sdata_symbolic_operand): Look for 's'.
3040         (tls_symbolic_operand): New.
3041         (ia64_expand_load_address): Abort for tls symbols.
3042         (gen_tls_get_addr): New.
3043         (gen_thread_pointer): New.
3044         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
3045         (rtx_needs_barrier): Add new unspecs.
3046         (ia64_encode_section_info): Handle tls symbols.
3047         (ia64_strip_name_encoding): Strip two encoding chars.
3048         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
3049         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
3050         (TARGET_OPTIONS): Add tls-size.
3051         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
3052         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
3053         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
3054         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
3055         (movsf, movdf): Likewise.
3056         (movdi_symbolic): Use match_scratch.  Don't split if we won't
3057         have a scratch availiable.
3058         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
3059         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
3060         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
3061         * config/ia64/ia64-protos.h: Update.
3062         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3063         sdata_symbolic_operand.
3064         (ASM_OUTPUT_LABELREF): Strip two characters.
3065
3066 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
3067
3068         * combine.c (simplify_set): Remove an unnecessary subreg.
3069
3070 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3071
3072         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
3073
3074         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
3075
3076 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
3077
3078         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
3079
3080 2002-05-25  Roger Sayle  <roger@eyesopen.com>
3081
3082         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
3083         (cond (compare x y) 0) into the equivalent (cond x y).
3084
3085 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
3086
3087         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
3088
3089 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
3090
3091         * config.gcc: Remove all stanzas for previously obsoleted
3092         systems.  Where necessary, add explicit error stanzas to
3093         prevent removed systems from being misidentified as something
3094         else.  Begin a fresh obsoletions list, with the systems that
3095         were reprieved last round.
3096         * doc/install.texi: Remove all mention of dead targets.
3097         * fixinc/mkfixinc.sh: Likewise.
3098
3099         * config/arm/arm.h: Bit 31 of target_flags is no longer
3100         reserved.
3101
3102         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
3103         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
3104         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
3105         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
3106         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
3107         config/alpha/osf12.h, config/alpha/osf2or3.h,
3108         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
3109         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
3110         config/clipper/clipper-protos.h, config/clipper/clipper.c,
3111         config/clipper/clipper.h, config/clipper/clipper.md,
3112         config/clipper/clix.h, config/convex/convex-protos.h,
3113         config/convex/convex.c, config/convex/convex.h,
3114         config/convex/convex.md, config/convex/fixinc.convex,
3115         config/convex/proto.h, config/elxsi/elxsi-protos.h,
3116         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3117         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3118         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3119         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3120         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3121         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3122         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3123         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3124         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3125         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3126         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3127         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3128         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3129         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3130         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3131         config/m68k/altos3068.h, config/m68k/apollo68.h,
3132         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3133         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3134         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3135         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3136         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3137         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3138         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3139         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3140         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3141         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3142         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3143         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3144         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3145         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3146         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3147         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3148         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3149         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3150         config/mips/dec-osf1.h, config/mips/elflorion.h,
3151         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3152         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3153         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3154         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3155         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3156         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3157         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3158         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3159         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3160         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3161         config/ns32k/sequent.h, config/ns32k/tek6000.h,
3162         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3163         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3164         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3165         config/sparc/rtems.h, config/we32k/we32k-protos.h,
3166         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3167         Delete file.
3168
3169 2002-05-24  Richard Henderson  <rth@redhat.com>
3170
3171         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3172         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3173         * config/i386/i386.c (tls_model_chars): Add leading space.
3174         (tls_symbolic_operand): Don't bias by 1.
3175         (legitimize_address): Don't unbias by 1.
3176
3177 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3178
3179         * lcm.c (optimize_mode_switching): Change bb used as indices
3180         to bb->index.
3181
3182 2002-05-24  Richard Henderson  <rth@redhat.com>
3183
3184         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3185         of update_life_info_in_dirty_blocks.
3186
3187 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
3188
3189         PR other/6782
3190         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3191
3192 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3193
3194         PR preprocessor/6780
3195         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3196
3197 2002-05-24  Jim Blandy  <jimb@redhat.com>
3198
3199         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3200         entry with a type code of zero, marking the end of the compilation
3201         unit's macro info.
3202
3203 2002-05-24  Richard Henderson  <rth@redhat.com>
3204
3205         * varasm.c (asm_output_bss): Always output one byte.
3206         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3207
3208 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3209
3210         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3211         namespace.
3212
3213 2002-05-24  Andreas Jaeger  <aj@suse.de>
3214
3215         * ggc-page.c (alloc_page): Cast variables of type size_t to
3216         unsigned long, adjust printf format string.
3217         (ggc_alloc): Likewise.
3218         (ggc_print_statistics): Likewise.
3219         (ggc_print_statistics): Correct printf format string for SCALE to
3220         use unsigned long.
3221
3222 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
3223
3224         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3225
3226 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
3227             Zack Weinberg     <zack@codesourcery.com>
3228
3229         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3230         quoted strings.
3231         * dwarf2out.c (lookup_filename): Properly quote filename in .file
3232         directive in assembly file.
3233         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3234         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3235         * config/pj/pj.h (ASM_FILE_START): Likewise.
3236         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3237         * config/avr/avr.c (asm_file_end): Likewise.
3238         * toplev.c (output_quoted_string): Handle possibly signed plain
3239         char.
3240         * toplev.h (output_clean_symbol_name): Declare
3241         * toplev.c (output_clean_symbol_name): Define.
3242         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3243         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3244
3245 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
3246
3247         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3248
3249 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
3250
3251         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3252         of size of unsigned.
3253
3254 2002-05-23  Richard Henderson  <rth@redhat.com>
3255
3256         * configure.in (HAVE_AS_TLS): New test.
3257         * config.in, configure: Rebuild.
3258         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3259         (ix86_tls_dialect_string, ix86_tls_dialect): New.
3260         (override_options): Set it.
3261         (tls_model_chars, tls_symbolic_operand): New.
3262         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3263         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3264         (local_exec_symbolic_operand): New.
3265         (get_pic_label_name): Merge into output_set_got.
3266         (ix86_asm_file_end): Emit pic_label_name if defined.
3267         (legitimate_constant_p, constant_address_p): New.
3268         (legitimate_pic_operand_p): New.
3269         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3270         (legitimate_address_p): Likewise.
3271         (ix86_encode_section_info): Rename from i386_; handle tls decls.
3272         (ix86_strip_name_encoding): New.
3273         (get_thread_pointer): New.
3274         (legitimize_address): Handle tls symbols.
3275         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3276         Remove UNSPEC_PLT.
3277         (struct machine_function): Add some_ld_name.
3278         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3279         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
3280         (output_addr_const_extra): New.
3281         (maybe_get_pool_constant): New.
3282         (ix86_split_to_parts): Use it.
3283         (ix86_expand_move): Handle tls symbols.
3284         (ix86_tls_get_addr): New.
3285         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3286         (TARGET_OPTIONS): Add tls-dialect.
3287         (CONSTANT_ADDRESS_P): Use new out-of-line function.
3288         (LEGITIMATE_CONSTANT_P): Likewise.
3289         (LEGITIMATE_PIC_OPERAND_P): Likewise.
3290         (TARGET_STRIP_NAME_ENCODING): New.
3291         (ASM_OUTPUT_LABELREF): New.
3292         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3293         (OUTPUT_ADDR_CONST_EXTRA): New.
3294         (PREDICATE_CODES): Update.
3295         (ix86_tls_dialect, ix86_tls_dialect_string): New.
3296         * config/i386/i386.md: Regroup and renumber unspec constants.
3297         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3298         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3299         (tls_global_dynamic, tls_local_dynamic_base): New.
3300         (tls_local_dynamic_once): New.
3301         * config/i386/i386-protos.h: Update.
3302
3303 2002-05-23  Richard Henderson  <rth@redhat.com>
3304
3305         * genemit.c (gen_insn): Print file:lineno comment before function.
3306         (main): likewise.
3307         * gensupport.c (struct queue_elem): Add filename member.
3308         (queue_pattern): Initialize it; update all callers.
3309         (process_include): Don't free filename.
3310         (read_md_rtx): Set read_rtx_filename.
3311
3312 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
3313
3314         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
3315
3316 2002-05-23  Richard Henderson  <rth@redhat.com>
3317
3318         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3319
3320 2002-05-23  Richard Henderson  <rth@redhat.com>
3321
3322         * doc/extend.texi (C++98 Thread-Local Edits): Update with
3323         commentary from Mark.
3324
3325 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3326
3327         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3328         Use FOR_EACH_BB macros to iterate over basic block chain.
3329         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3330         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3331         Likewise.
3332         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3333         find_unreachable_blocks, create_edge_list, verify_edge_list,
3334         remove_fake_edges, add_noreturn_fake_exit_edges,
3335         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3336         Likewise.
3337         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3338         find_sub_basic_blocks): Likewise.
3339         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3340         Likewise.
3341         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3342         Likewise.
3343         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3344         Likewise.
3345         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3346         commit_edge_insertions, commit_edge_insertions_watch_calls,
3347         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3348         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3349         * conflict.c (conflict_graph_compute): Likewise.
3350         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3351         df_modified_p, df_refs_unlink, df_dump): Likewise.
3352         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3353         * final.c (compute_alignments): Likewise.
3354         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3355         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3356         count_or_remove_death_notes): Likewise.
3357         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3358         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3359         classic_gcse, compute_transp, cprop, compute_pre_data,
3360         compute_transpout, invalidate_nonnull_info,
3361         delete_null_pointer_checks_1, delete_null_pointer_checks,
3362         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3363         compute_store_table, build_store_vectors, store_motion): Likewise.
3364         * global.c (global_conflicts, mark_elimination): Likewise.
3365         * graph.c (print_rtl_graph_with_bb): Likewise.
3366         * haifa-sched.c (sched_init): Likewise.
3367         * ifcvt.c (if_convert): Likewise.
3368         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3369         compute_available, compute_nearerout, compute_rev_insert_delete,
3370         optimize_mode_switching): Likewise.
3371         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3372         * predict.c (estimate_probability, note_prediction_to_br_prob,
3373         propagate_freq, counts_to_freqs, expensive_function_p,
3374         estimate_bb_frequencies): Likewise.
3375         * profile.c (instrument_edges, get_exec_counts,
3376         compute_branch_probabilities, compute_checksum, branch_prob,
3377         find_spanning_tree): Likewise.
3378         * recog.c (split_all_insns, peephole2_optimize): Likewise.
3379         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3380         Likewise.
3381         * regclass.c (scan_one_insn, regclass): Likewise.
3382         * regmove.c (mark_flags_life_zones, regmove_optimize,
3383         record_stack_memrefs): Likewise.
3384         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3385         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3386         * resource.c (find_basic_block): Likewise.
3387         * sched-ebb.c (schedule_ebbs): Likewise.
3388         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3389         find_single_block_region, find_rgns, schedule_insns)
3390         * sibcall.c (optimize_sibling_and_tail_recursive_call)
3391         * ssa-ccp.c (optimize_unexecutable_edges,
3392         ssa_ccp_df_delete_unreachable_insns): Likewise.
3393         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3394         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3395         rename_block, convert_to_ssa, compute_conservative_reg_partition,
3396         compute_coalesced_reg_partition, rename_equivalent_regs,
3397         convert_from_ssa): Likewise.
3398         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3399         process_for_unwind_directive): Likewise.
3400
3401         * df.c (FOR_ALL_BBS): Removed.
3402         * gcse.c (struct null_pointer_info): Type of current_block field
3403         changed.
3404         (struct reg_avail_info): Type of last_bb field changed.
3405         * config/ia64/ia64.c (block_num): Removed.
3406         (need_copy_state): Type changed.
3407         (last_block): New.
3408
3409 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3410
3411         * cppinit.c (mark_named_operators): Split out from init_builtins.
3412         (cpp_finish_options): Call it from here instead.
3413
3414 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
3415
3416         * builtin-attrs.def: Update copyright years.
3417         (ATTR_NONNULL): New attribute identifier.
3418         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3419         attribute tree lists.
3420         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3421         format operand.
3422         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3423         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3424         attribute lists.  Chain the appropriate nonnull attribute.
3425         * c-format.c (check_format_arg): Remove null format string
3426         warning.
3427         * testsuite/gcc.dg/format/null-1.c: New test.
3428
3429 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3430
3431         * Makefile.in (ADAC): Define.
3432         (SYSLIBS): Define.
3433         (.SUFFIXES): Move before language makefile fragments.
3434         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3435
3436 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
3437
3438         * varasm.c (make_decl_rtl): Don't allow weak variables to be
3439         placed in common.
3440
3441 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
3442
3443         * cfg.c (dump_flow_info): Print results of
3444         maybe_hot/probably_never_executed predicates.
3445         * toplev.c (open_dump_file): Print function frequency.
3446
3447 2002-05-23  David S. Miller  <davem@redhat.com>
3448
3449         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3450         regsets.
3451
3452 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
3453
3454         * c-common.c (warn_nonnull): Declare.
3455         (c_common_attribute_table): Add "nonnull" attribute.
3456         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3457         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3458         check_function_arguments_recurse): New functions.
3459         * c-common.h (warn_nonnull): Declare extern.
3460         (check_function_arguments, check_function_arguments_recurse): New
3461         prototypes.
3462         * c-decl.c (c_decode_option): Add -Wnonnull option.
3463         * c-format.c (set_Wformat): Set warn_nonnull if enabling
3464         format checking.
3465         (format_check_context): New structure.
3466         (check_format_info_recurse): Remove recursion and rename to...
3467         (check_format_arg): ...this.  Update comment.
3468         (check_format_info): Use check_function_arguments_recurse.
3469         * c-typeck.c (build_function_call): Call check_function_arguments
3470         instead of check_function_format.
3471         * doc/extend.texi: Document "nonnull" attribute.
3472         * doc/invoke.texi: Docuemnt -Wnonnull option.
3473         * testsuite/gcc.dg/nonnull-1.c: New test.
3474         * testsuite/gcc.dg/nonnull-2.c: New test.
3475
3476 2002-05-23  David S. Miller  <davem@redhat.com>
3477
3478         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3479         * cfgcleanup.c (cleanup_cfg): If it is set do not
3480         attempt to delete trivially dead insns.
3481         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3482         * toplev.c (rest_of_compilation): Document non-trivial aspect
3483         the RTL before optimize_save_area_alloca is run.
3484
3485 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3486
3487         * c-lex.c (indent_level): Remove.
3488         (cb_file_change, c_lex): Remove indent level handling.
3489         * c-lex.h (indent_level): Remove.
3490         * input.h (struct file_stack): Remove indent_level.
3491         * toplev.c (push_srcloc): Remove indent_level handling.
3492
3493 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3494
3495         PR target/6753
3496         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3497         of x in constraints for clarity.
3498         (sse_mov?fcc split): abort if op2 == op3.
3499         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3500         sse_movsfcc_const0_4): Add earlyclobber.
3501         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3502         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
3503         Use Y instead of x in constraints.
3504
3505 2002-05-23  Richard Henderson  <rth@redhat.com>
3506
3507         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3508         (C++98 Thread-Local Edits): New subsection.
3509
3510         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3511         (ix86_arch): Set type to enum processor_type.
3512
3513         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
3514         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3515
3516 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3517
3518         * configure.in: Fix as version test for binutils 2.12.1 releases
3519         (without dates).
3520         * configure: Rebuilt.
3521
3522 2002-05-23  Richard Henderson  <rth@redhat.com>
3523
3524         * config/i386/i386.c (get_pic_label_name): New.
3525         (load_pic_register): Remove.
3526         (output_set_got): New.
3527         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3528         * config/i386/i386.md (UNSPEC_SET_GOT): New.
3529         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3530         (prologue_set_got, prologue_get_pc): Remove.
3531         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3532         (builtin_setjmp_receiver): Use gen_set_got.
3533         * config/i386/i386-protos.h: Update.
3534
3535 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
3536
3537         * gcse.c (hash_expr): Do not use alias set for hashing.
3538
3539 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
3540
3541         * dbxout.c (dbxout_class_name_qualifiers): New function.
3542         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3543
3544 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3545
3546         * cpperror.c (_cpp_begin_message): No special casing
3547         of CPP_FATAL_LIMIT.
3548         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3549         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3550         * cpplib.c (do_include_common): Use DL_ERROR.
3551         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3552         (DL_ICE): Renumber.
3553         * fix-header.c (read_scan_file): Update.
3554
3555 2002-05-22  Richard Henderson  <rth@redhat.com>
3556
3557         * config/i386/i386.c (ix86_expand_call): New function, extracted
3558         from md call patterns.  Add pic_offset_table_rtx to
3559         CALL_INSN_FUNCTION_USAGE when needed.
3560         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3561         (call_value_pop, call_value, untyped_call): Likewise.
3562         (call_exp, call_value_exp): Remove.
3563         * config/i386/i386-protos.h: Update.
3564
3565 2002-05-22  Richard Henderson  <rth@redhat.com>
3566
3567         * varasm.c (default_section_type_flags): Check for VAR_DECL
3568         before using DECL_THREAD_LOCAL.
3569
3570 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
3571
3572         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3573         (STARTFILE_SPEC): Delete PE crt0.o.
3574         * config/rs6000/aix51.h: Same.
3575         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3576         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3577         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
3578         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3579         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3580
3581 2002-05-22  Richard Henderson  <rth@redhat.com>
3582
3583         * varasm.c (default_section_type_flags): Handle tls data and
3584         default sections.
3585         (default_unique_section): Handle tls sections.
3586
3587 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
3588
3589         * configure.in (CROSS): Define NATIVE_CROSS.
3590         * configure: Regenerate.
3591         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3592         (startfile_prefix_spec): New var.
3593         (static_specs): Add startfile_prefix_spec.
3594         (do_spec_2): Split out from..
3595         (do_spec): ..here.
3596         (main): Process startfile_prefix_spec.
3597         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3598         dynamic linker.
3599         (STARTFILE_PREFIX_SPEC): Define.
3600         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
3601         absolute paths.
3602
3603 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
3604
3605         * cpperror.c: Fix formatting.
3606         * cppexp.c: Likewise.
3607         * cppfiles.c: Likewise.
3608         * cpphash.c: Likewise.
3609         * cpphash.h: Likewise.
3610         * cppinit.c: Likewise.
3611         * cpplex.c: Likewise.
3612         * cpplib.c: Likewise.
3613         * cppmacro.c: Likewise.
3614         * cppmain.c: Likewise.
3615         * cppspec.c: Likewise.
3616
3617 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
3618
3619         * combine.c (force_to_mode): Use gen_int_mode.
3620         Don't clear CONST_INT bits outside of mode.
3621
3622 2002-05-22  Richard Henderson  <rth@redhat.com>
3623
3624         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3625         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3626
3627 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
3628
3629         PR c/6643
3630         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3631         if DECL_SIZE_UNIT is INTEGER_CST.
3632
3633 2002-05-22  Richard Henderson  <rth@redhat.com>
3634
3635         * flow.c (life_analysis): Delete broken reg_label check.
3636
3637 2002-05-22  Richard Henderson  <rth@redhat.com>
3638
3639         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3640         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3641
3642 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
3643
3644         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3645         (embed-bb.c): New rule.
3646         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
3647         * config/sh/embed_bb.c: Delete.
3648
3649 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
3650
3651         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3652
3653 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
3654
3655         * config/h8300/h8300.md (*andorqi3): New.
3656
3657 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3658
3659         PR preprocessor/6517
3660         * Makefile.in: Update.
3661         * c-common.c (c_common_post_options): Add preprocessor
3662         errors to the error count.
3663         * c-lang.c (c_post_options): Kill.
3664         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3665         * hooks.h: Add header guards.
3666         * langhooks-def.h: Include hooks.h.
3667         (LANG_HOOKS_POST_OPTIONS): Update.
3668         * langhooks.h (struct lang_hooks): Update post_options.
3669         * toplev.c (parse_options_and_default_flags): Update.
3670 objc:
3671         * objc-lang.c (objc_post_options): Kill.
3672         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3673
3674 2002-05-21  Bruce Korb  <bkorb@gnu.org>
3675
3676         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
3677         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
3678         * fixinc/fixincl.x: regen.
3679
3680 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
3681
3682         * cfgbuild.c: Fix formatting.
3683         * cfg.c: Likewise.
3684         * cfgcleanup.c: Likewise.
3685         * cfglayout.c: Likewise.
3686         * cfgloop.c: Likewise.
3687         * cfgrtl.c: Likewise.
3688
3689 2002-05-21  Richard Henderson  <rth@redhat.com>
3690
3691         * c-common.h (enum rid): Add RID_THREAD.
3692         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
3693         (grokdeclarator): Grok __thread.
3694         * c-parse.in (reswords): Add __thread.
3695         (rid_to_yy): Add RID_THREAD.
3696
3697         * tree.h (DECL_THREAD_LOCAL): New.
3698         (struct tree_decl): Add thread_local_flag.
3699         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
3700         * tree.c (staticp): TLS variables are not static.
3701
3702         * target-def.h (TARGET_HAVE_TLS): New.
3703         * target.h (have_tls): New.
3704         * output.h (SECTION_TLS): New.
3705         * varasm.c (assemble_variable): TLS variables can't be common for now.
3706         (default_section_type_flags): Handle .tdata and .tbss.
3707         (default_elf_asm_named_section): Handle SECTION_TLS.
3708         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
3709
3710         * flags.h (flag_tls_default): Declare.
3711         * toplev.c (flag_tls_default): Define.
3712         (display_help): Display help for it.
3713         (decode_f_option): Set it.
3714
3715         * doc/extend.texi (Thread-Local): New node describing language-level
3716         thread-local storage.
3717         * doc/invoke.texi (-ftls-model): Document.
3718
3719         * fixinc/inclhack.def (thread_keyword): New.
3720         * fixinc/fixincl.x: Rebuild.
3721
3722 2002-05-21  Jeffrey A Law  <law@redhat.com>
3723
3724         * optabs.c (expand_binop): For double-word integer multiplies,
3725         do not compute intermediate results into something that is
3726         not a register (such as a SUBREG or MEM).
3727
3728         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
3729         (ix86_sched_reorder): Make sure to initialize scheduling
3730         data even when there's only one insn in the ready queue.
3731
3732 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
3733
3734         * genautomata.c (reserv_sets_hash_value): Fix a typo.
3735
3736 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
3737
3738         * genautomata.c (reserv_sets_hash_value): Define hash_value as
3739         set_el_t.  Transform the hash value into unsigned.
3740         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
3741         (transform_3): Add code to process `(A,B)+(D,E)'.
3742
3743 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
3744
3745         * reload1.c (do_output_reload): Run delete_output_reload
3746         only if optimizing.
3747
3748 2002-05-21  Roger Sayle  <roger@eyesopen.com>
3749
3750         PR middle-end/6600
3751         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
3752         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
3753         (can_store_by_pieces): ... and here to limit the largest mode used.
3754         Add a comment to document this function.
3755
3756 2002-05-21  Richard Henderson  <rth@redhat.com>
3757
3758         * flow.c (life_analysis): Fix test for deleted label.
3759
3760 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3761
3762         * doc/tm.texi: Fix typo.
3763
3764 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
3765
3766         * c-common.c (c_common_init): Set options->unsigned_char from
3767         flag_signed_char.
3768         (cb_register_builtins): Define __STRICT_ANSI__ and
3769         __CHAR_UNSIGNED__ here...
3770         * cppinit.c (init_builtins): Not here.
3771         (cpp_create_reader): unsigned_char option defaults to 0, not
3772         !DEFAULT_SIGNED_CHAR.
3773         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
3774         and -funsigned-char.
3775
3776         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
3777         * cpphash.c (_cpp_init_hashtable): Don't set it.
3778         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
3779         directly.  Clarify comment.
3780
3781 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3782
3783         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
3784         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
3785         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
3786         BASIC_BLOCK (n_basic_blocks - 1).
3787         * cfganal.c (can_fallthru, flow_call_edges_add,
3788         flow_preorder_transversal_compute): Too.
3789         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3790         find_sub_basic_blocks): Too.
3791         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
3792         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
3793         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
3794         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
3795         * combine.c (this_basic_block): Type changed to basic_block.
3796         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
3797         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3798         get_last_value, distribute_notes, distribute_links): Too.
3799         * final.c (compute_alignments): Too.
3800         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
3801         * function.c (thread_prologue_and_epilogue_insns): Too.
3802         * gcse.c (compute_code_hoist_vbeinout): Too.
3803         * global.c (build_insn_chain): Too.
3804         * ifcvt.c (find_if_block, find_cond_trap): Too.
3805         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
3806         * regmove.c (regmove_optimize): Too.
3807         * resource.c (find_basic_block): Too.
3808         * sched-ebb.c (schedule_ebbs): Too.
3809         * ssa-dce.c (find_control_dependence, find_pdom): Too.
3810
3811 2002-05-21  Andreas Jaeger  <aj@suse.de>
3812
3813         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
3814
3815 2002-05-21  Richard Henderson  <rth@redhat.com>
3816
3817         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
3818         unspec names, not numbers.
3819
3820 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
3821
3822         * doc/sourcebuild.texi: Mention snapshot-README and
3823         snapshot-index.html as needing updating for new front ends.
3824
3825 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3826
3827         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
3828         disabling checking, and avoid multiple evaluation of RTX.
3829
3830 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
3831
3832         * bitmap.c (bitmap_find_bit): Return early if we have the correct
3833         element cached.
3834
3835 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
3836
3837         * profile.c (gen_edge_profiler):  Set alias set before the memory is
3838         used.
3839
3840 2002-05-20  David S. Miller  <davem@redhat.com>
3841
3842         * cselib.c (max_value_regs): New.
3843         (cselib_lookup, cselib_invalidate_regno): Initialize it when
3844         adding new entries to the REG_VALUES table and we are dealing with
3845         a hard register.
3846         (clear_table): Initialize it.
3847         (cselib_invalidate_regno): Use it to determine which hard
3848         registers to scan when mode is not VOIDmode.
3849
3850 2002-05-20  Duraid Madina   <duraid@fl.net.au>
3851
3852         * tradcpp.c (fixup_newlines): Use old-style function header.
3853
3854 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
3855
3856         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
3857
3858 2002-05-20  H.J. Lu  (hjl@gnu.org)
3859
3860         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
3861
3862         * config/mips/mips.h (DFMODE_NAN): Defined.
3863         (SFMODE_NAN): Likewise.
3864
3865 2002-05-20  Dale Johannesen  <dalej@apple.com>
3866
3867         * combine.c (cant_combine_insn_p):  Back out my
3868         previous patch.
3869
3870 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
3871
3872         * params.c: Fix formatting.
3873         * params.h: Likewise.
3874         * predict.c: Likewise.
3875         * prefix.c: Likewise.
3876         * print-rtl.c: Likewise.
3877         * print-tree.c: Likewise.
3878         * profile.c: Likewise.
3879
3880 2002-05-20  H.J. Lu  (hjl@gnu.org)
3881
3882         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
3883
3884 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
3885
3886         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
3887         switches straight on to the assembler, do not abbreviate them.
3888         * config/arm/elf.h (ASM_SPEC): As above.
3889         * config/arm/semi.h (ASM_SPEC): As above.
3890         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
3891         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
3892         -mcpu=xscale on to the assembler by default.
3893         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
3894
3895 2002-05-20  Richard Henderson  <rth@redhat.com>
3896
3897         * cse.c (canon_hash): Reorder do_not_record test.  Always
3898         allow pic_offset_table_rtx.
3899
3900 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
3901
3902         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
3903         (expand_binop): Ditto (3 times).
3904
3905 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
3906
3907         * Makefile.in (distclean): Remove QMTest stuff.
3908         (QMTEST_PATH): New variable.
3909         (QMTESTFLAGS): Likewise.
3910         (QMTESTRUNFLAGS): Likewise.
3911         (QMTEST): Likewise.
3912         (QMTEST_GPP_TESTS): Likewise.
3913         (QMTEST_DIR): Likewise.
3914         (QMTEST_DIR/context): New target.
3915         (qmtest-g++): Likeise.
3916         (qmtest-gui): Likewise.
3917         (QMTEST_DIR/gpp-expected.qmr): Likewise.
3918
3919 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
3920
3921         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
3922         an altivec register if TARGET_ALTIVEC.
3923
3924         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
3925         to ALTIVEC_VECTOR_MODE.
3926         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
3927         (rs6000_va_arg): Vectors may go in registers if they are not
3928         altivec vectors.
3929
3930 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
3931
3932         * protoize.c: Fix formatting.
3933
3934 2002-05-19  Richard Henderson  <rth@redhat.com>
3935
3936         * gensupport.c (init_include_reader): Merge into ...
3937         (process_include): ... here.  Simplify composite path creation.
3938         Plug memory leaks.  Fix file/line number tracking.  Do not
3939         process_define_cond_exec.  Return void.
3940         (process_rtx): Don't check process_include return value.
3941
3942 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3943
3944         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
3945         fields.
3946         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3947         traversing basic block chain.
3948         (create_basic_block_structure, create_basic_block): Declaration changed.
3949         (link_block, unlink_block): Declare.
3950         * cfg.c (entry_exit_blocks): Initialize new fields.
3951         (link_block, unlink_block): New.
3952         (expunge_block_nocompact): Unlink basic block.
3953         (dump_flow_info): Print prev_bb/next_bb fields.
3954         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
3955         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
3956         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
3957         * cfgrtl.c (create_basic_block_structure, create_basic_block,
3958         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
3959         (verify_flow_info): Check that list agrees with numbering.
3960
3961 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
3962
3963         * c-common.c (preprocessing_asm): New macro.
3964         * c-lex.h (builtin_define, builtin_assert): Use pfile.
3965 doc:
3966         * tm.texi: Update.
3967 config/alpha:
3968         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
3969         (CPP_SPEC): Simplify.
3970         (TARGET_CPU_CPP_BUILTINS): Update.
3971         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
3972         (CPP_SPEC): Simplify.
3973         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
3974         (TARGET_OS_CPP_BUILTINS): Update.
3975         * osf.h (CPP_XFLOAT_SPEC): Kill.
3976         (TARGET_OS_CPP_BUILTINS): Update.
3977         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
3978         * osf5.h (CPP_XFLOAT_SPEC): Kill.
3979         * vms.h (CPP_SUBTARGET_SPEC): Kill.
3980         (TARGET_OS_CPP_BUILTINS): Update.
3981
3982 2002-05-19  Richard Henderson  <rth@redhat.com>
3983
3984         * varasm.c (default_binds_local_p): Fix typo.
3985
3986 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3987
3988         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
3989         CONST_INT operand to the correct mode after adding 1 to it.
3990
3991 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
3992
3993         * config.gcc (powerpc-wrs-windiss*): New target.
3994
3995 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3996
3997         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
3998         (ashrdi3): Use it.
3999
4000 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
4001
4002         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
4003         alphasort.
4004         * config.in: Regenerated.
4005         * configure: Regenerated.
4006
4007 2002-05-19  Richard Henderson  <rth@redhat.com>
4008
4009         * target-def.h (TARGET_BINDS_LOCAL_P): New.
4010         * target.h (struct gcc_target): Move boolean fields to the end.
4011         Add binds_local_p.
4012         * varasm.c (default_binds_local_p): New.
4013         * output.h: Declare it.
4014
4015         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
4016         * config/cris/cris.c (cris_encode_section_info): Likewise.
4017         * config/i386/i386.c (i386_encode_section_info): Likewise.
4018         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4019         * config/sh/sh.c (sh_encode_section_info): Likewise.
4020
4021         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
4022         (TARGET_BINDS_LOCAL_P): New.
4023
4024 2002-05-19  Richard Henderson  <rth@redhat.com>
4025
4026         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
4027         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
4028         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
4029
4030         * toplev.c (display_help): Kill -a -ax help.
4031
4032         * config/1750a/1750a.h, config/alpha/alpha.h,
4033         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
4034         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
4035         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
4036         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
4037
4038         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
4039         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
4040
4041         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
4042         (ix86_output_function_block_profiler): Kill.
4043         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
4044         (m68hc11_function_block_profiler): Kill.
4045         * config/m68hc11/m68hc11-protos.h: Update.
4046         * config/m88k/m88k.c (output_block_profiler): Kill.
4047         (output_function_block_profiler): Kill.
4048         * config/m88k/m88k-protos.h: Update.
4049
4050 2002-05-19  Richard Henderson  <rth@redhat.com>
4051
4052         * system.h (STRIP_NAME_ENCODING): Poison it.
4053         * output.h (STRIP_NAME_ENCODING): Remove.
4054         (default_strip_name_encoding): Declare.
4055         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
4056         * target.h (strip_name_encoding): New.
4057         * varasm.c (default_strip_name_encoding): New.
4058
4059         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
4060         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
4061         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
4062         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
4063         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
4064         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
4065         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
4066         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
4067         config/v850/v850.h: Use the hook, not the macro.
4068
4069         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4070         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
4071         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
4072         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
4073         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
4074         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
4075         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
4076         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
4077         config/v850/v850.c, config/v850/v850.h:
4078         Move STRIP_NAME_ENCODING to out-of-line function and add
4079         TARGET_STRIP_NAME_ENCODING.
4080
4081         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
4082         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
4083         with TARGET_STRIP_NAME_ENCODING referencing existing function;
4084         make function static.
4085
4086         * xcoffout.c: Include target.h
4087         * Makefile.in (xcoffout.o): Update.
4088
4089         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
4090         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
4091         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
4092         reloc argument unused.
4093         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
4094
4095         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
4096         STRIP_NAME_ENCODING docs.
4097
4098 2002-05-19  Andreas Jaeger  <aj@suse.de>
4099
4100         * gengenrtl.c: Add prototype for excluded_rtx.
4101
4102         * real.h: Add prototype for exact_real_truncate.
4103
4104 2002-05-18  Richard Henderson  <rth@redhat.com>
4105
4106         * system.h (ENCODE_SECTION_INFO): Poison it.
4107         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
4108         * target.h (encode_section_info): New.
4109         * varasm.c (make_decl_rtl, output_constant_def): Use it.
4110         * hooks.c (hook_tree_int_void): New.
4111         * hooks.h: Declare it.
4112
4113         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4114         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4115         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4116         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4117         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4118         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4119         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4120         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4121         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4122         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4123         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4124         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4125         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4126         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4127         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4128         referencing existing function.  Make function static.
4129
4130         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
4131         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
4132         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4133         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4134         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
4135         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
4136         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4137         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4138         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4139         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4140         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
4141         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4142         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4143         Move ENCODE_SECTION_INFO to out-of-line function and add
4144         TARGET_ENCODE_SECTION_INFO.
4145
4146         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4147         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4148
4149         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4150         from SUBTARGET_*
4151         (switch_to_section): Replace in_rdata case with in_readonly_data.
4152
4153         * config/h8300/h8300.c (h8300_encode_label): Make static.
4154         * config/h8300/h8300-protos.h: Update.
4155
4156         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4157         from rs6000_encode_section_info; make static.
4158         (rs6000_xcoff_encode_section_info): New.
4159
4160         * config/v850/v850.c (v850_encode_data_area): Make static.
4161         * config/v850/v850-protos.h: Update.
4162
4163         * config/vax/vax.c: Include flags.h.
4164         (vms_select_section): Fix typo.
4165
4166         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4167         ENCODE_SECTION_INFO docs.
4168
4169 2002-05-18  Richard Henderson  <rth@redhat.com>
4170
4171         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4172         REGISTER_TARGET_PRAGMAS.
4173         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4174
4175         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4176
4177 2002-05-18  Richard Henderson  <rth@redhat.com>
4178
4179         * system.h (SELECT_RTX_SECTION): Poison.
4180         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4181         * target.h (select_rtx_section): New.
4182         * varasm.c (output_constant_pool): Use it.
4183         (default_select_rtx_section, default_elf_select_rtx_section): New.
4184         * output.h: Declare them.
4185
4186         * config/darwin.h (SELECT_RTX_SECTION): Move ...
4187         * config/darwin.c (machopic_select_rtx_section): ... here.
4188         * config/darwin-protos.h: Update.
4189
4190         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4191         * config/nextstep.c (machopic_select_rtx_section): ... here.
4192         (nextstep_select_section): Rename variable to avoid macro clash.
4193         * config/nextstep-protos.h: Update.
4194
4195         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4196         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4197         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
4198         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
4199         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4200         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
4201         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
4202         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4203         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4204         (SELECT_RTX_SECTION): Remove.
4205
4206         * config/darwin.h, config/elfos.h, config/nextstep.h,
4207         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4208         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4209         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4210         config/sparc/lynx.h, config/xtensa/xtensa.c
4211         (TARGET_ASM_SELECT_RTX_SECTION): New.
4212
4213         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4214         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4215         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4216         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4217         (ia64_aix_select_rtx_section): New.
4218         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4219         redefining.
4220         * config/mips/mips.c (mips_select_rtx_section): Make static.
4221         Support ELF SHF_MERGE features.
4222         * config/mips/mips-protos.h: Update.
4223         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4224         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4225         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4226         make static, fall back to default_elf_select_rtx_section.
4227         * config/rs6000/rs6000-protos.h: Update.
4228         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4229         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4230         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4231         * config/romp/romp.c (romp_select_rtx_section): New.
4232         * config/s390/s390.c (s390_select_rtx_section): New.
4233         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
4234         declarations before target macro definition.
4235         (xtensa_emit_call): Use static buffer.
4236         (xtensa_select_rtx_section): New.
4237         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4238         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4239         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4240
4241         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4242         SELECT_RTX_SECTION docs.
4243
4244 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
4245
4246         * i386.md (movsi/movdi): Fix template.
4247         (sse2 patterns): Set attributes consistently.
4248
4249         * i386.md (pushqi2, ashrqi_*): Fix constraint.
4250
4251 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
4252
4253         * optabs.c (complex_part_zero_p): New.
4254         * (expand_cmplxdiv_straight): Use it.
4255         * (expand_cmplxdiv_wide): Ditto.
4256         * (expand_binop): Ditto.
4257
4258 2002-05-18  Richard Henderson  <rth@redhat.com>
4259
4260         * final.c (HAVE_READONLY_DATA_SECTION): New.
4261         (shorten_branches): Use it instead of ifdefs.
4262         * varasm.c (enum in_section): Add in_readonly_data.
4263         (text_section, data_section): Tidy.
4264         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4265
4266         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4267         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4268         (READONLY_DATA_SECTION): Don't undef.
4269
4270         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4271         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4272         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4273
4274         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4275         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4276         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4277         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4278
4279         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4280         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4281         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4282         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4283         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4284         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4285         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4286         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4287         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4288
4289         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4290         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4291         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4292         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4293         config/pa/pa64-hpux.h, config/sparc/litecoff.h
4294         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4295
4296         * config/elfos.h, config/netware.h, config/svr3.h,
4297         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4298         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4299         config/h8300/h8300.h, config/i386/i386-interix.h,
4300         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4301         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4302
4303         * config/elfos.h, config/netware.h, config/svr3.h,
4304         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4305         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4306         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4307         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4308
4309         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4310         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4311         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4312         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4313         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4314         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4315         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4316         config/rs6000/sysv4.h, config/v850/v850.h
4317         (EXTRA_SECTIONS): Remove in_const/in_rdata.
4318         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4319
4320         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4321         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4322         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4323         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4324         * config/alpha/alpha.c (alpha_start_function): Likewise.
4325         (alpha_write_linkage): Likewise.
4326         * config/m32r/m32r.c (m32r_select_section): Likewise.
4327         * config/m88k/m88k.c (m88k_select_section): Likewise.
4328         * config/mips/mips.c (mips_select_rtx_section): Likewise.
4329         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4330         (rs6000_elf_select_section): Likewise.
4331         * config/v850/v850.c (v850_select_section): Likewise.
4332
4333         * config/1750a/1750a.h, config/i860/sysv3.h
4334         (READONLY_DATA_SECTION_ASM_OP): New.
4335         READONLY_DATA_SECTION_ASM_OP.
4336         * config/i386/interix.c, config/i386/winnt.c
4337         (i386_pe_unique_section): Always use .rdata prefix.
4338         * config/pa/som.h (readonly_data): Always switch to read-only section.
4339         (READONLY_DATA_SECTION): Predicate on flag_pic.
4340         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4341         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4342         (READONLY_DATA_SECTION): Update.
4343
4344 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
4345
4346         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
4347         is used without -Wformat.
4348         * c-common.h (warn_format_zero_length): Declare extern.
4349         * c-decl.c (warn_options): Add "format-zero-length".
4350         * c-format.c (warn_format_zero_length): Declare.
4351         (set_Wformat): Set warn_format_zero_length for -Wformat.
4352         (check_format_info): Only warn about zero-length formats if
4353         warn_format_zero_length is true.  Include the format type
4354         name in the warning message.
4355         * doc/invoke.texi: Document -Wformat-zero-length.
4356         * testsuite/gcc.dg/format/zero-length-1.c: New test.
4357
4358 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
4359
4360         * timevar.c: Fix formatting.
4361         * tlink.c: Likewise.
4362         * toplev.c: Likewise.
4363         * tree-dump.c: Likewise.
4364         * tree-inline.c: Likewise.
4365
4366 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4367
4368         * cppinit.c (cpp_post_options): If preprocessed, turn off
4369         traditional.  If traditional, turn off column numbers.
4370         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4371         * cpptrad.c (handle_newline): Update line_base.
4372         (skip_comment): Handle -Wcomment.
4373
4374 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
4375
4376         * cppinit.c (struct builtin): Remove unused fields.
4377         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4378         (operator_array): New - was second half of builtin_array.
4379         (init_builtins): Simplify loop over builtin_array/operator_array.
4380
4381 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4382
4383         * defaults.h (UNIQUE_SECTION): Remove.
4384         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4385
4386 2002-05-17  Richard Henderson  <rth@redhat.com>
4387
4388         * expr.c (init_expr_once): Don't use start/end_sequence.
4389         Use rtx_alloc instead of emit_insn.
4390         * toplev.c (lang_dependent_init): Run init_expr_once here ...
4391         (lang_independent_init): ... not here.
4392
4393 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
4394
4395         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4396
4397 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4398
4399         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
4400         for fixed registers, possibly used for global register variables.
4401         (initial_elimination_offset, avr_output_function_prologue,
4402         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
4403
4404 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4405
4406         * Makefile.in: Update for cpptrad.c.
4407         * cpphash.h (struct cpp_buffer): New members for buffer
4408         overlays.
4409         (struct cpp_reader): New members for traditional output.
4410         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4411         * cppinit.c (cpp_create_reader): Set trad_line.
4412         (cpp_destroy): Free trad_out_base if used.
4413         (cpp_read_main_file): Overlay an empty buffer if traditional.
4414         (cpp_finish_options): Don't do builtins.
4415         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4416         (cpp_handle_option): Handle it.
4417         * cpplex.c (continue_after_nul): New.
4418         (_cpp_lex_direct): Use handle_nul.
4419         * cpplib.h (struct cpp_options): New traditional option.
4420         * cpptrad.c: New file.
4421
4422 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4423
4424         * c-common.c (c_common_init_options): Use C89 for Objective-C,
4425         and set the options flag.
4426         * cppinit.c (lang_flags): Remove objc.
4427         (lang_defaults): Remove OBJC and OBJCXX.
4428         (set_lang): Update.
4429         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4430         (cpp_handle_option): Remove -+ and -lang-objc++.
4431         For ObjC, just set a flag.
4432         (print_help): Update.
4433         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4434
4435 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4436
4437         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4438         bootstrap with -mips3.
4439
4440 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
4441
4442         * final.c: Fix formatting.
4443         * fix-header.c: Likewise.
4444         * flow.c: Likewise.
4445         * fold-const.c: Likewise.
4446         * function.c: Likewise.
4447
4448 2002-05-17  David S. Miller  <davem@redhat.com>
4449
4450         PR c/6689, PR optimization/6615
4451         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4452         and make it a pointer to rtx.  Update comments.
4453         (update_equiv_regs): When scanning for equivalences, record
4454         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
4455         it while making the equiv replacements.
4456
4457 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4458
4459         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4460
4461 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4462
4463         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4464         when encoding visibility into SYMBOL_REF_FLAG.
4465
4466 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
4467
4468         * expr.c (force_operand): Fix reversed move.
4469
4470 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
4471
4472         * doc/install.texi (Testing): Mention two common DejaGnu warnings
4473         that can be ignored.
4474
4475 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4476
4477         * doc/install.texi (Final install): Recommend to install into a
4478         "clean" target directory.
4479
4480 2002-05-17  Richard Henderson  <rth@redhat.com>
4481
4482         * config/ia64/ia64.md: Use braced strings instead of quoted strings
4483         for code blocks.  Tidy whitespace.
4484
4485 2002-05-17  Richard Henderson  <rth@redhat.com>
4486
4487         * hooks.c (hook_tree_bool_false): New.
4488         * hooks.h: Declare it.
4489         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4490         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4491         * target.h (select_section, unique_section): New.
4492         (in_small_data_p): New.
4493         * varasm.c (resolve_unique_section): Use hooks instead of macros.
4494         (variable_section, output_constant_def_contents): Likewise.
4495         (default_select_section, default_unique_section): New.
4496         (categorize_decl_for_section, default_elf_select_section): New.
4497         * output.h: Declare them.
4498
4499         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4500         (TARGET_ASM_SELECT_SECTION): New.
4501         (SELECT_SECTION): Move ...
4502         * config/darwin.c (machopic_select_section): ... here.
4503         * config/darwin-protos.h: Update.
4504
4505         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4506         (SELECT_SECTION): Move ...
4507         * config/nextstep.c (nextstep_select_section): ... here.
4508         * config/nextstep-protos.h: Update.
4509
4510         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4511         (TARGET_ASM_SELECT_SECTION): New.
4512         * config/svr3.h (SELECT_SECTION): Remove.
4513
4514         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4515         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4516         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4517         (alpha_encode_section_info): Use it.
4518         * config/alpha/alpha-protos.h: Update.
4519         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4520         (SELECT_SECTION, UNIQUE_SECTION): Remove.
4521         (TARGET_ASM_SELECT_SECTION): New.
4522         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4523
4524         * config/arm/pe.h (UNIQUE_SECTION): Remove.
4525         (TARGET_ASM_UNIQUE_SECTION): New.
4526
4527         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4528         (avr_unique_section): Rename from unique_section; make static.
4529         * config/avr/avr-protos.h: Update.
4530         * config/avr/avr.h (UNIQUE_SECTION): Remove.
4531
4532         * config/c4x/c4x.h (SELECT_SECTION): Remove.
4533
4534         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4535         (TARGET_ASM_UNIQUE_SECTION): New.
4536         * config/i386/i386-interix.h: Likewise.
4537         * config/i386/win32.h: Likewise.
4538         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4539         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4540         * config/i386/sco5.h (SELECT_SECTION): Remove.
4541         (TARGET_ASM_SELECT_SECTION): New.
4542         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4543
4544         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4545         instead of SELECT_SECTION.
4546         * config/m68k/dpx2.h: Likewise.
4547         * config/rs6000/lynx.h: Likewise.
4548
4549         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4550         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4551         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4552         (ia64_in_small_data_p): New.
4553         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
4554         (ia64_aix_select_section, ia64_aix_unique_section): New.
4555         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4556         (SELECT_SECTION, UNIQUE_SECTION): Remove.
4557
4558         * config/m32r/m32r.h (SELECT_SECTION): Remove.
4559         (TARGET_ASM_SELECT_SECTION): New.
4560         * config/m32r/m32r.c (m32r_select_section): Take align argument.
4561         * config/m32r/m32r-protos.h: Update.
4562
4563         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4564         (SELECT_SECTION): Move ...
4565         * config/m88k/m88k.c (m88k_select_section): ... here.
4566
4567         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4568         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4569         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4570         (mcore_unique_section): Make static.
4571         * config/mcore/mcore-protos.h: Update.
4572
4573         * config/mips/elf.h (UNIQUE_SECTION): Remove.
4574         (TARGET_ASM_UNIQUE_SECTION): New.
4575         * config/mips/elf64.h: Likewise.
4576         * config/mips/iris6gld.h: Likewise.
4577         * config/mips/linux.h: Likewise.
4578         * config/mips/mips-protos.h: Update.
4579         * config/mips/mips.c (mips_select_section): Add align argument.
4580         * config/mips/mips.h (SELECT_SECTION): Remove.
4581         (TARGET_ASM_SELECT_SECTION): New.
4582
4583         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4584         * config/mmix/mmix.c (mmix_select_section): Remove.
4585         (mmix_unique_section): Remove.
4586         * config/mmix/mmix-protos.h: Update.
4587
4588         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4589         (SELECT_SECTION): Move ...
4590         * config/pa/pa.c (pa_select_section): ... here.
4591         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4592
4593         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4594         from rs6000_select_section and make static.
4595         (rs6000_elf_unique_section): Similarly.
4596         (rs6000_xcoff_select_section): From xcoff.h.
4597         (rs6000_xcoff_unique_section): Likewise.
4598         * config/rs6000/rs6000-protos.h: Update.
4599         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4600         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4601         * config/rs6000/xcoff.h: Likewise.
4602
4603         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4604         (SELECT_SECTION): Move ...
4605         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4606
4607         * config/v850/v850.h (SELECT_SECTION): Move ...
4608         * config/v850/v850.c (v850_select_section): ... here.
4609         (TARGET_ASM_SELECT_SECTION): New.
4610
4611         * config/vax/vms.h (SELECT_SECTION): Move ...
4612         * config/vax/vax.c (vms_select_section): ... here.
4613         (TARGET_ASM_SELECT_SECTION): New.
4614
4615         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4616         for the target hooks.
4617
4618 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
4619
4620         * config/arm/arm.c (emit_multi_reg_push): Do not set
4621         RTX_FRAME_RELATED_P on the SEQUENCE.
4622
4623 2002-05-16  Richard Henderson  <rth@redhat.com>
4624
4625         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4626         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
4627
4628 2002-05-16  Richard Henderson  <rth@redhat.com>
4629
4630         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4631
4632         * config/ia64/ia64.c (saveable_obstack): Do not declare.
4633
4634 2002-05-16  Richard Henderson  <rth@redhat.com>
4635
4636         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4637         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4638         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4639         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4640         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4641         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4642         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4643         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4644         Revert "Basic block renumbering removal", and two followup patches.
4645
4646 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
4647
4648         * lcm.c (optimize_mode_switching): Revert previous change.
4649
4650 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4651
4652         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4653         with only extant block numbers.
4654
4655 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
4656
4657         * lcm.c (optimize_mode_switching): Fix typo.
4658
4659 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4660
4661         * flow.c (calculate_global_regs_live): Queue blocks in program order.
4662
4663 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4664
4665         * doc/install.texi (Configuration): Document PWDCMD.
4666
4667 2002-05-16  Dale Johannesen  <dalej@apple.com>
4668
4669         * combine.c (cant_combine_insn_p):  Reenable combinations
4670         involving hard regs unless CLASS_LIKELY_SPILLED_P.
4671
4672 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4673
4674         * c-common.c (cb_register_builtins): Handle more built-ins
4675         here rather than in gcc.c specs.
4676         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
4677         (cpp_options): Pass -O flags even when only preprocessing.
4678         * toplev.c (set_fast_math_flags): New prototype.
4679         (fast_math_flags_set_p): New.
4680         (set_no_fast_math_flags): Remove.
4681         (decode_f_option): Update.
4682         * toplev.h (set_fast_math_flags): Update.
4683         (fast_math_flags_set_p): New.
4684         (set_no_fast_math_flags): Remove.
4685 config:
4686         * c4x/c4x.c (c4x_override_options): Update.
4687
4688 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
4689
4690         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
4691         Default-define here.
4692         (builtin_define_with_value): Can now wrap the expansion in
4693         quotation marks if such is wanted.
4694         (cb_register_builtins): Update calls to builtin_define_with_value.
4695         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
4696         here.
4697         (c_common_init): Set options->stdc_0_in_system_headers.
4698         * c-lex.h: Update prototype of builtin_define_with_value.
4699         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
4700         and REGISTER_PREFIX.
4701
4702         * cppinit.c (VERS, ULP, C, X): Kill.
4703         (builtin_array): Remove entries for __VERSION__,
4704         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
4705         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
4706         a constant.
4707         (init_builtins): Kill off a bunch of now-dead code.
4708         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
4709         -fno-leading-underscore.
4710         (cpp_handle_option): Remove code to set user_label_prefix.
4711         (cpp_post_options): Likewise.
4712
4713         * cpplib.h (struct cpp_options): Remove user_label_prefix.
4714         (stdc_0_in_system_headers): New.
4715         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
4716         stdc_0_in_system_headers) too to decide the value of __STDC__.
4717
4718         * tradcpp.c (user_label_prefix): Kill.
4719         (main): Remove code handling -f(no-)leading-underscore.
4720         (initialize_builtins): Don't define __REGISTER_PREFIX__
4721         or __USER_LABEL_PREFIX__.
4722         (install_value): Wrap compound statement in dummy loop so the
4723         macro works properly in an if statement.
4724
4725
4726 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
4727
4728         * loop.h (struct loop_info): Add member has_prefetch.
4729         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
4730         (prescan_loop): Initialize has_prefetch.
4731         (struct prefetch_info): Change prefetch_in_loop and
4732         prefetch_before_loop from bit fields to ints.
4733         (emit_prefetch_instructions): Several small fixes.
4734         (check_dbra_loop): Don't reverse loop that uses prefetch.
4735
4736 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4737
4738         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
4739         * configure.in: Likewise.
4740         * fixinc/check.tpl: Likewise.
4741         * fixinc/fixinc.dgux: Likewise.
4742         * fixinc/fixinc.svr4: Likewise.
4743         * fixinc/fixinc.winnt: Likewise.
4744         * fixinc/fixincl.sh: Likewise.
4745         * fixproto: Likewise.
4746         * configure: Regenerate.
4747
4748 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4749
4750         Basic block renumbering removal:
4751         * basic_block.h (struct basic_block_def): Renamed index to sindex,
4752         added prev_bb and next_bb fields.
4753         (n_basic_blocks): Renamed to num_basic_blocks.
4754         (last_basic_block): New, index of last basic block.
4755         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4756         traversing basic block chain.
4757         (BLOCK_NUM): index -> sindex.
4758         (create_basic_block_structure, create_basic_block): Declaration changed.
4759         (debug_num2bb): Declare.
4760         (expunge_block_nocompact): Declaration removed.
4761         (link_block, unlink_block, compact_blocks): Declare.
4762         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
4763         * cfg.c (entry_exit_blocks): Initialize new fields.
4764         (clear_edges, alloc_block, expunge_block, cached_make_edge,
4765         redirect_edge_pred, dump_flow_info, dump_edge_info,
4766         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
4767         free_aux_for_edges): Modified.
4768         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
4769         (expunge_block_nocompact): Removed.
4770         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
4771         find_unreachable_blocks, create_edge_list, print_edge_list,
4772         verify_edge_list, flow_edge_list_print, remove_fake_successors,
4773         remove_fake_edges, flow_reverse_top_sort_order_compute,
4774         flow_depth_first_order_compute, flow_preorder_transversal_compute,
4775         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
4776         flow_dfs_compute_reverse_execute): Modified.
4777         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
4778         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
4779         Modified.
4780         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
4781         merge_blocks_move_predecessor_nojumps,
4782         merge_blocks_move_successor_nojumps, merge_blocks,
4783         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
4784         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
4785         * cfglayout.c (skip_insns_after_block, label_for_bb,
4786         record_effective_endpoints, scope_to_insns_finalize,
4787         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
4788         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
4789         cfg_layout_duplicate_bb): Modified.
4790         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
4791         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4792         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
4793         flow_loops_find, flow_loop_outside_edge_p): Modified.
4794         * cfgrtl.c (create_basic_block_structure, create_basic_block,
4795         flow_delete_block, compute_bb_for_insn, split_block,
4796         try_redirect_by_replacing_jump, redirect_edge_and_branch,
4797         force_nonfallthru_and_redirect, tidy_fallthru_edge,
4798         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
4799         commit_edge_insertions, commit_edge_insertions_watch_calls,
4800         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
4801         purge_all_dead_edges): Modified.
4802         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
4803         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4804         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
4805         Modified.
4806         * conflict.c (conflict_graph_compute): Modified.
4807         * df.c (FOR_ALL_BBS): Removed.
4808         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4809         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
4810         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
4811         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
4812         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4813         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
4814         * final.c (compute_alignments, final_scan_insn): Modified.
4815         * flow.c (verify_local_live_at_start, update_life_info,
4816         update_life_info_in_dirty_blocks, free_basic_block_vars,
4817         delete_noop_moves, calculate_global_regs_live,
4818         initialize_uninitialized_subregs, allocate_bb_life_data,
4819         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
4820         mark_used_reg, count_or_remove_death_notes): Modified.
4821         * function.c (thread_prologue_and_epilogue_insns): Modified.
4822         * gcse.c (struct null_pointer_info): Change typo of current_block
4823         to basic_block.
4824         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
4825         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
4826         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
4827         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
4828         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
4829         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
4830         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
4831         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
4832         pre_delete, one_pre_gcse_pass, compute_transpout,
4833         invalidate_nonnull_info, delete_null_pointer_checks_1,
4834         free_code_hoist_mem, compute_code_hoist_vbeinout,
4835         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4836         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
4837         compute_store_table, build_store_vectors, insert_insn_start_bb,
4838         insert_store, replace_store_insn, free_store_memory, store_motion):
4839         Modified.
4840         * global.c (global_alloc, global_conflicts, mark_elimination,
4841         build_insn_chain): Modified.
4842         * graph.c (print_rtl_graph_with_bb): Modified.
4843         * haifa-sched.c (sched_init): Modified.
4844         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4845         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
4846         if_convert): Modified.
4847         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
4848         compute_insert_delete, pre_edge_lcm, compute_available,
4849         compute_farthest, compute_nearerout, compute_rev_insert_delete,
4850         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
4851         Modified.
4852         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
4853         * loop.c (loop_dump_aux): Modified.
4854         * predict.c (combine_predictions_for_insn, estimate_probability,
4855         last_basic_block_p, process_note_prediction, process_note_predictions,
4856         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
4857         expensive_function_p, estimate_bb_frequencies,
4858         compute_function_frequency): Modified.
4859         * print-rtl.c (print_rtx): Modified.
4860         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
4861         get_exec_counts, compute_branch_probabilities, compute_checksum,
4862         branch_prob, find_spanning_tree): Modified.
4863         * recog.c (split_all_insns, peephole2_optimize): Modified.
4864         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
4865         convert_regs_1, convert_regs_2, convert_regs): Modified.
4866         * regclass.c (scan_one_insn, regclass): Modified.
4867         * regmove.c (mark_flags_life_zones, regmove_optimize,
4868         combine_stack_adjustments): Modified.
4869         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
4870         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
4871         * reorg.c (dbr_schedule): Modified.
4872         * resource.c (find_basic_block, init_resource_info): Modified.
4873         * sbitmap.c (sbitmap_intersection_of_succs,
4874         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
4875         sbitmap_union_of_preds): Modified.
4876         * sched-deps.c (init_dependency_caches): Modified.
4877         * sched-ebb.c (schedule_ebbs): Modified.
4878         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
4879         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
4880         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
4881         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
4882         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
4883         ssa_const_prop): Modified.
4884         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
4885         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
4886         * ssa.c (remove_phi_alternative, find_evaluations,
4887         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
4888         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
4889         make_regs_equivalent_over_bad_edges,
4890         make_equivalent_phi_alternatives_equival,
4891         compute_conservative_reg_partition,
4892         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
4893         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
4894         Modified.
4895
4896 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
4897
4898         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
4899
4900 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
4901
4902         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
4903         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4904         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
4905         calling CONSTANT_POOL_ADDRESS_P.
4906         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
4907         to decide whether to define __arm__ or __thumb.
4908         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
4909         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4910
4911 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4912
4913         * config/arc/arc.h (CPP_PREDEFINES): Remove.
4914         (CPP_SPEC): Update.
4915         (TARGET_CPU_CPP_BUILTINS): New.
4916
4917 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4918
4919         * cpphash.h (cpp_macro): Move here, and make expansion a union.
4920         * cppmacro.c (cpp_macro): Remove.
4921         (enter_macro_context, replace_args, warn_of_redefinition,
4922         _cpp_create_definition, cpp_macro_definition): Update.
4923
4924 2002-05-16  Jason Merrill  <jason@redhat.com>
4925
4926         * config/mips/mips.c (mips_output_external): Don't do sdata
4927         optimization for a variable with DECL_COMDAT set.
4928
4929 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
4930
4931         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
4932         Cleanups for accepting modifiers on pointers.
4933         Fix predicate typos.
4934         Allow long pointers as well as int pointers.
4935
4936 2002-05-15  Richard Henderson  <rth@redhat.com>
4937
4938         * varasm.c (merge_weak): Remove special case for extern and common.
4939
4940 2002-05-15  Matt Hiller  <hiller@redhat.com>
4941
4942         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
4943         XFAILing.
4944         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
4945         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
4946         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
4947         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
4948         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
4949         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
4950
4951 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
4952
4953         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
4954
4955 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
4956
4957         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
4958         ("altivec_mfvscr"): Read from VSCR.
4959
4960         Add vscr sets for the following insns: altivec_vctuxs,
4961         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
4962         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
4963         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
4964         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
4965         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
4966         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
4967         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
4968         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
4969         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
4970         altivec_vsum2sws, altivec_vsumsws.
4971
4972         * config/rs6000/rs6000.h: Add VSCR fixed register.
4973         (CALL_REALLY_USED_REGISTERS): Add vscr.
4974         (CALL_USED_REGISTERS): Same.
4975         (FIXED_REGISTERS): Same.
4976         (REG_ALLOC_ORDER): Same.
4977         (reg_class): Add VSCR_REGS.
4978         (REG_CLASS_NAMES): Same.
4979         (REG_CLASS_CONTENTS): Same.
4980         (VSCR_REGNO): New.
4981         (REGISTER_NAMES): Add vscr.
4982         (DEBUG_REGISTER_NAMES): Same.
4983         (ADDITIONAL_REGISTER_NAMES): Same.
4984         (FIRST_PSEUDO_REGISTER): Increment.
4985         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
4986
4987 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
4988
4989         * fold-const.c (fold): Fix a typo.
4990
4991 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
4992
4993         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
4994         comparison against the highest or lowest integer value before
4995         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
4996         transformation and that of an unsigned comparison against 0
4997         right after.
4998
4999 2002-05-15  Richard Henderson  <rth@redhat.com>
5000
5001         * varasm.c (merge_weak): Error for any weakening after definition.
5002         Adjust weakening after use warning to catch more cases.
5003         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
5004         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
5005
5006 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
5007
5008         * invoke.texi (-malign-double): Re-add lost warning.
5009
5010         * i386-protos.h (x86_output_mi_thunk): Declare.
5011         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
5012         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
5013
5014         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
5015         when flag_asynchronous_unwind_tables is set.
5016
5017         * flags.h (flag_reorder_functions): Declare.
5018         * function.c (prepare_function_start): Initialize frequnecy.
5019         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
5020         * Makefile.in (predict.o): Add dependency on target.h and params.h
5021         * defaults.h (HOT_TEXT_SECTION_NAME,
5022         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
5023         * predict.c (choose_function_section): New function.
5024         (estimate_bb_frequencies): Use it.
5025         * toplev.c (flag_reorder_functions): New global variable.
5026         (lang_independent_options): New.
5027         (parse_options_and_default_flags): Set.
5028         * varasm.c (assemble_start_function): Bypass functdion alignment
5029         for never executed functions.
5030         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
5031         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
5032         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5033         Document.
5034
5035         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
5036
5037         * predict.c: Inlude profile.h
5038         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
5039         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
5040         Use the information about maximal counter in the program.
5041
5042         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
5043
5044         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
5045         probably_never_executed_bb_p): New functions.
5046         * cfgcleanup.c (outgoing_edges_match): Use them.
5047         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
5048         (maybe_hot_bb_p, probably_cold_bb_p,
5049         probably_never_executed_bb_p): New functions.
5050
5051         * function.h (function): Add new field function_frequency.
5052         * predict.c (compute_function_frequency): New function.
5053         (estimate_probability): Call it.
5054
5055 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5056
5057         PR optimization/5172, optimization/5200
5058         * gcse.c (gcse_main): Disable store_motion.
5059
5060 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
5061
5062         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
5063         (c_common_nodes_and_builtins): Use it.
5064         (builtin_define_with_value): New function.
5065         (cb_register_builtins): Define __SIZE_TYPE__,
5066         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
5067         using builtin_define_with_value.  Use consistent notation when
5068         defining __GXX_WEAK__.
5069         (WCHAR_TYPE_SIZE): Don't redefine.
5070         (combine_strings): Don't use WCHAR_TYPE_SIZE.
5071
5072         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
5073         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
5074         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
5075         * tradcpp.c (initialize_builtins): Likewise.
5076         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
5077
5078         * c-lex.h (builtin_define_with_value): Prototype.
5079         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
5080         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
5081         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
5082
5083         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5084         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
5085         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
5086         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
5087         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
5088         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
5089         config/sparc/sol2-bi.h, config/sparc/sparc.h:
5090         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
5091         to __SIZE_TYPE__ etc from all spec strings. When this makes
5092         extra specs empty, delete them.
5093
5094 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5095
5096         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
5097         for PA8000 or generating dwarf2 call frame information.
5098         (output_call): Remove DO_FRAME_NOTES check from return pointer
5099         optimization.
5100         (following_call): Return 0 when scheduling for PA8000 or generating
5101         dwarf2 call frame information.  Revise comment.
5102
5103 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5104
5105 config/alpha:
5106         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
5107         and __IEEE_FP_INEXACT as appropriate.
5108         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
5109         (CPP_SPEC): Remove ieee defines.
5110         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5111
5112 2002-05-14  Richard Henderson  <rth@redhat.com>
5113
5114         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5115         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5116
5117 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5118
5119         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5120         (CPP_SPEC): Update.
5121         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5122         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5123         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5124         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5125         (EXTRA_SPECS): Update.
5126         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5127         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5128         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5129         define TARGET_OS_CPP_BUILTINS if necessary.
5130
5131 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5132
5133         * gcc.c (cpp_options): Must pass -m* and -f* options
5134         to the front end even when only preprocessing.
5135         (cc1_options): Remove redundant -lang-c.
5136         * tradcpp.c (main): Ignore -m options.
5137 objc:
5138         * lang-specs.h: Similarly.
5139
5140 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
5141
5142         * genautomata.c (transform_3): Add code for transformation
5143         `(A,B,...)+C -> A+C,B,...'.
5144
5145 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
5146
5147         * final.c (end_final): Do not output profile_arcs constructor, when
5148         no functions are instrumented.
5149
5150 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
5151
5152         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5153
5154 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5155
5156         * doc/install.texi: Remove special markup originally required for
5157         HTML generation with texi2html.
5158
5159 2002-05-14  Andreas Schwab  <schwab@suse.de>
5160
5161         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5162         SELECT_SECTION.
5163         (UNIQUE_SECTION): Define to get small data correctly.
5164
5165         * varasm.c (resolve_unique_section): Add third parameter
5166         flag_function_or_data_sections and use it instead of
5167         flag_function_sections.
5168         (assemble_start_function): Pass flag_function_sections.
5169         (asm_emit_uninitialised): Pass flag_data_sections.
5170         (assemble_variable): Likewise.
5171
5172 2002-05-14  Richard Henderson  <rth@redhat.com>
5173
5174         * config/i386/i386.md: Use define_constants for unspec numbers.
5175         * config/i386/i386.c: Likewise.
5176
5177 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5178
5179         * doc/contrib.texi: Update my entry.
5180
5181 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
5182
5183         * fixinc/inclhack.def (winidss_valist): Limit applicability.
5184         * fixinc/fixincl.x: Regenerated.
5185         * fixinc/tests/base/math.h: Update.
5186         * fixinc/tests/base/testing.h: Likewise.
5187
5188 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
5189
5190         * genattr.c (gen_attr): Don't emit a comma after the last
5191         enumerator.
5192
5193 2002-05-13  Richard Henderson  <rth@redhat.com>
5194
5195         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5196         by non-local gotos.
5197         * recog.c (peephole2_optimize): Likewise.
5198
5199 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
5200
5201         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5202         input to O_BINARY.
5203
5204 2002-05-13  Jeffrey A Law  (law@redhat.com)
5205
5206         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5207         Update prototype and callers.
5208         (propagate_one_insn): Stack pointer adjustments kill MEMs on
5209         the mem_set_list which reference the stack pointer, as do
5210         calls to constant functions as they may clobber outgoing
5211         argument space.
5212
5213         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5214
5215         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5216         (ia32_multipass_dfa_lookahead): New function.
5217
5218 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5219
5220         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5221         (translate_options): Remove 'V'.
5222         (process_command): Similarly.
5223 doc:
5224         * invoke.texi: Remove documentation of 'V'.
5225
5226 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
5227
5228         * config/s390/linux.h: Revert 2002-04-22 changes.
5229
5230 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
5231
5232         * config/fr30/fr30.md: Only allow splits of immediate loads
5233         if the destination is a register.
5234
5235 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5236
5237         * Makefile.in (c-common.o, cppinit.o): Update.
5238         * c-common.c: Include except.h.
5239         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5240         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5241         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5242         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5243         CPP_PREDEFINES): Handle here.
5244 config:
5245         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5246         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5247         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5248         TARGET_OS_CPP_BUILTINS.
5249         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5250         (CPP_SPEC, EXTRA_SPECS): Update.
5251         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5252         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5253         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5254         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5255         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5256 doc:
5257         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5258         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5259
5260 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
5261
5262         * emit-rtl.c (global_rtl): Update comment.
5263         (const_double_htab, const_double_htab_hash,
5264         const_double_htab_hash, lookup_const_double): New.
5265         (const_int_htab_hash, const_int_htab_eq): Remove const
5266         qualifiers, which cause tons of warnings with RTL checking on.
5267         (gen_rtx_CONST_DOUBLE): Deleted.
5268         (const_double_from_real_value): New function - bears some
5269         resemblance to the former immed_real_const_1.
5270         (immed_double_const): Moved here from varasm.c and
5271         simplified.
5272         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5273         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5274         (gen_rtx): Use immed_double_const.
5275         (init_emit_once): Initialize the const_double_htab.  Use
5276         REAL_VALUE_FROM_INT where possible.  Can now use
5277         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5278         * varasm.c (struct varasm_status): Remove x_const_double_chain.
5279         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5280         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5281         (init_varasm_status, mark_varasm_status): Don't touch
5282         x_const_double_chain.
5283
5284         * output.h: Delete prototype for clear_const_double_mem.
5285         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
5286         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
5287         const_double_from_real_value, not immed_real_const_1, and use
5288         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
5289         CONST_DOUBLE_ATOF.
5290         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5291         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5292         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5293         (gen_rtx_REG): Second arg is unsigned.
5294
5295         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5296         (excluded_rtx): New, return true for CONST_DOUBLE.
5297         (genmacro): Write nothing for excluded codes.
5298         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5299         * expr.c (expand_expr): Likewise.
5300         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5301         CONST_DOUBLE_CHAIN.
5302         * toplev.c (rest_of_compilation): Don't call
5303         clear_const_double_mem.
5304
5305         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5306         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5307         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5308         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5309         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5310         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5311         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5312         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5313
5314 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5315
5316         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5317
5318 2002-05-12  Tom Tromey  <tromey@redhat.com>
5319
5320         * tree.h (copy_node): Don't mention TREE_PERMANENT.
5321
5322 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
5323
5324         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5325         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
5326         * gensupport.h: Prototype new routines.
5327         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
5328         use of printf.
5329         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5330         (next_comma_elt): Use scan_comma_elt.
5331
5332         * config/i386/i386.md: Use new attribute notation to break up
5333         long lines in define_attr forms.
5334
5335 2002-05-12  Richard Henderson  <rth@redhat.com>
5336
5337         * expr.c (compress_float_constant): New.
5338         (emit_move_insn): Use it.
5339         (float_extend_from_mem): New.
5340         (init_expr_once): Initialize it.
5341         * real.c (exact_real_truncate): New.
5342
5343         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5344         dropped into memory; penalize for size.
5345         (RTX_COSTS): FLOAT_EXTEND is free.
5346         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5347         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5348
5349 2002-05-12  Richard Henderson  <rth@redhat.com>
5350
5351         * profile.h (profile_info): Add missing extern to declaration.
5352         * profile.c (profile_info): Define it.
5353
5354 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5355
5356         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5357         used for DImode and TImode.
5358
5359 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5360
5361         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5362         fake a newline.
5363
5364 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
5365
5366         * config/rs6000/rs6000.c (rs6000_default_long_calls,
5367         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5368         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5369         (rs6000_override_options): Handle -m(no-)longcall.
5370         (init_cumulative_args, output_mi_thunk): Check for both
5371         longcall and shortcall attributes on the function.
5372         (rs6000_attribute_table): Add "shortcall".
5373         (rs6000_handle_longcall_attribute): Update comment.
5374         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5375         altivec_expand_ternop_builtin): Add default clauses to switches
5376         to silence warnings.
5377
5378         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5379         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
5380         (TARGET_OPTIONS): Add longcall and no-longcall.
5381
5382         * config/rs6000/rs6000.md (call_nonlocal_sysv,
5383         call_value_nonlocal_sysv): Split by alternatives.  One pair
5384         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5385         the call cookie.  The other pair accepts only LR/CTR and has
5386         no restriction.
5387
5388         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5389         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5390         tmake_file.
5391         * config/rs6000/rs6000-c.c: New file.
5392         * config/rs6000/t-rs6000-c-rule: New file.
5393         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5394         Prototype rs6000_pragma_longcall.
5395
5396         * doc/extend.texi: Document shortcall attribute.
5397         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5398
5399 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5400
5401         * reorg.c (dbr_schedule): Remove unnecessary test.
5402
5403 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5404
5405         * i386.md (testsi to testqi spliters): New.
5406
5407         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
5408
5409         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5410
5411         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
5412
5413         * basic-block.h: New flag EDGE_CAN_FALLTHRU
5414         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5415         that can be made fallthru.
5416
5417         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
5418
5419         * cfglayout.c (cleanup_unconditional_jumps): New static function.
5420         (cfg_layout_initialize): Use it.
5421
5422 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5423
5424         * config/avr/avr.c (avr_mcu_types): Update supported devices.
5425         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5426         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5427
5428 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
5429
5430         * dbxout.c: Fix formatting.
5431         * dependence.c: Likewise.
5432         * df.c: Likewise.
5433         * diagnostic.c: Likewise.
5434         * doloop.c: Likewise.
5435         * dominance.c: Likewise.
5436         * doschk.c: Likewise.
5437         * dwarf2asm.c: Likewise.
5438         * dwarf2out.c: Likewise.
5439         * dwarfout.c: Likewise.
5440
5441 2002-05-10  Richard Henderson  <rth@redhat.com>
5442
5443         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
5444         Convert integers constants as needed.  Replace "nwords" field with
5445         "sizeof_bb".
5446         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5447         * function.h: Fix typo in comment.
5448         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5449
5450 2002-05-10  Roger Sayle  <roger@eyesopen.com>
5451
5452         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5453         into the equivalent (signed char)c > 0.
5454
5455 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
5456
5457         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5458         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5459         (struct prefetch_info): Fix spelling of member bytes_accessed.
5460         (emit_prefetch_instructions): Make dump messages more regular;
5461         restructure code to add more dump messages; use new macros for
5462         heuristics. (There are no code generation changes in any of this).
5463
5464 2002-05-10  David S. Miller  <davem@redhat.com>
5465
5466         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5467         (struct rtx_def): Update unchanging flag comment.
5468         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5469         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5470         to be handled to INSN too.
5471         (dbr_schedule): Likewise.
5472         * resource.c (next_insn_no_annul): Likewise.
5473
5474         * cse.c (rtx_cost): Remove multiplication by power of 2 special
5475         casing.
5476
5477 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5478
5479         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5480         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5481         (possibly) work around broken /bin/sh.
5482
5483 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5484
5485         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5486         . as N64/N32 libgcc_s.so subdirs.
5487
5488 2002-05-10  David S. Miller  <davem@redhat.com>
5489
5490         * config/sparc/sparc.md: Use define_constants for unspec numbers.
5491
5492         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5493         more accurately.
5494         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5495         comment.
5496         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5497         * doc/rtl.texi: Document these macros more accurately.
5498         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5499         JUMP_INSNs and CALL_INSNs.
5500         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5501         or INSN_FROM_TARGET_P if the code is appropriate.
5502
5503 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5504
5505         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5506         before using SYMBOL_REF_FLAG (addr).
5507
5508         * config/avr/avr-protos.h (avr_io_address_p): Declare.
5509         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5510         Make non-static.  Update all callers.
5511         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5512         New insns to clear/set/test a single bit in I/O address space.
5513
5514 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5515
5516         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5517
5518 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5519
5520         * Makefile.in: Update.
5521         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5522         builtin_define_std): New.
5523         (c_common_init): Register CPP builtins callback.
5524         * c-common.h (flag_iso, flag_undef): New.
5525         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5526         * c-lex.c: Don't include target.h.
5527         (cb_register_builtins): Move to c-common.c.
5528         (init_c_lex): Don't register hook here.
5529         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5530         (cpp_define, cpp_assert): Remove.
5531         * gcc.c (cc1_options): Pass -undef to front end.
5532         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5533         (TARGET_INITIALIZER): Update.
5534         * target.h (struct cpp_reader): Don't predeclare.
5535         (struct gcc_target): Remove cpp builtin hook.
5536         * tree.c (default_register_cpp_builtins): Remove.
5537 doc:
5538         * tm.texi: Update.
5539
5540 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5541
5542         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5543
5544 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5545
5546         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5547         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5548
5549 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
5550
5551         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5552         * config/sparc/libgcc-sparc-glibc.ver: New file.
5553         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5554         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5555
5556 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
5557
5558         PR target/6429
5559         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5560         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5561         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5562         base multilibs.
5563         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5564         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5565         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5566         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5567
5568 2002-05-09  Richard Henderson  <rth@redhat.com>
5569
5570         * config/ia64/ia64.md: Use define_constants for unspec numbers.
5571         * config/ia64/ia64.c: Likewise.
5572
5573 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
5574
5575         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5576         (save_restore_insns): Likewise.
5577         (mips_expand_prologue, mips_expand_epilogue): Update callers.
5578         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5579
5580 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
5581
5582         * athlon.md, k6.md, pentium.md, ppro.md): New files.
5583         * i386.md: Move scheduling information into new files.
5584
5585         * i386.md (type attribute): Add "rotate" for rotate insns.
5586         (rotate insns): Set type to "rotate".
5587         (various attributes and function units): Treat rotate like shift.
5588         (pent_pair attribute): Only rotates by one bit position are
5589         pairable.
5590         (sbb insns): Explicitly set pent_pair attribute on a couple
5591         that were missing it.
5592
5593 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
5594
5595         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5596         make sure that buffer starts on odd word address.
5597         (sh_va_arg): Skip odd fp registers when reading a double precision
5598         value.
5599
5600 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5601
5602         * tree.h (preserve_data, object_permanent_p, type_precision):
5603         Remove.
5604
5605 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5606
5607         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5608         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5609 doc:
5610         * cpp.texi: Update for removal of obsolete features.
5611
5612 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
5613                           Jeffrey A Law  (law@redhat.com)
5614
5615         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
5616         the DFA interface for Pentium processors.
5617         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5618         (attr_pent_pair, ix86_pent_find_pair): Remove.
5619         (ix86_sched_reorder_pentium): Remove.
5620         (ix86_sched_reorder): Remove reordering for Pentium.
5621         * i386.md (Pentium scheduling): Rewrite using DFA description.
5622
5623 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
5624
5625         * cfganal.c (can_fallthru): Fix fast path.
5626         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5627         with edges to the next block.
5628
5629 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
5630                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
5631
5632         * final.c (end_final): Use C trees to output data structures for profiling.
5633
5634         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5635         (profile.o): New dependency profile.h
5636         (final.o): New dependency profile.h
5637         * profile.h: New file. New global structure profile_info.
5638         * final.h (count_edges_instrumented_now): Declare.
5639         (current_function_cfg_checksum): Declare.
5640         (function_list): New structure.
5641         (functions_head, functions_tail): New static variables.
5642         (end_final): Emits more data, removed some -ax stuff.
5643         (final): Stores function names and chcksums.
5644         * gcov-io.h (__write_gcov_string): New function.
5645         (__read_gcov_string): New function.
5646         * gcov.c (read_profile): New function.
5647         (create_program_flow_graph): Uses read_profile instead of reading
5648         da_file.
5649         (read_files): Removed da_file checking, it's done by read_profile now.
5650         * libgcc2.c (bb_function_info): New structure.
5651         (bb): New field in structure, removed some -ax stuff.
5652         (__bb_exit_func): Changed structure of da_file.
5653         * profile.c (count_edges_instrumented_now): New global variable.
5654         (current_function_cfg_checksum): New global variable.
5655         (max_counter_in_program): New global variable.
5656         (get_exec_counts): New function.
5657         (compute_checksum): New function.
5658         (instrument_edges): Sets count_edges_instrumented_now.
5659         (compute_branch_probabilities): Uses get_exec_counts instead of
5660         reading da_file.
5661         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5662         (init_branch_prob): Removed da_file checking, done in get_exec_counts
5663         now.
5664         (end_branch_prob): Removed da_file checking, done in get_exec_counts
5665         now.
5666         * gcov.texi: Updated information about gcov file format.
5667
5668 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
5669
5670         * sbitmap.c: Fix formatting.
5671         * scan.c: Likewise.
5672         * scan-decls.c: Likewise.
5673         * sched-deps.c: Likewise.
5674         * sched-ebb.c: Likewise.
5675         * sched-rgn.c: Likewise.
5676         * sched-vis.c: Likewise.
5677         * sdbout.c: Likewise.
5678         * sibcall.c: Likewise.
5679         * simplify-rtx.c: Likewise.
5680         * ssa.c: Likewise.
5681         * ssa-ccp.c: Likewise.
5682         * ssa-dce.c: Likewise.
5683         * stmt.c: Likewise.
5684         * stor-layout.c: Likewise.
5685         * stringpool.c: Likewise.
5686
5687 2002-05-09  David S. Miller  <davem@redhat.com>
5688
5689         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
5690
5691 2002-05-07  David S. Miller  <davem@redhat.com>
5692
5693         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
5694         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
5695         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
5696         library implementation clobbers the output before the inputs
5697         are fully consumed, use stack temporary for the output.
5698
5699 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
5700
5701         * config/netbsd.h (CPP_SPEC): Remove.
5702         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
5703         * config/i386/netbsd.h (CPP_SPEC): Define.
5704         * config/ns32k/netbsd.h (CPP_SPEC): Define.
5705         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
5706         * config/sparc/netbsd.h (CPP_SPEC): Define.
5707         * config/vax/netbsd.h (CPP_SPEC): Define.
5708
5709 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
5710
5711         * read-rtl.c: Fix formatting.
5712         * real.c: Likewise.
5713         * recog.c: Likewise.
5714         * regclass.c: Likewise.
5715         * regmove.c: Likewise.
5716         * reg-stack.c: Likewise.
5717         * reload1.c: Likewise.
5718         * reload.c: Likewise.
5719         * resource.c: Likewise.
5720         * rtlanal.c: Likewise.
5721         * rtl.c: Likewise.
5722         * rtl-error.c: Likewise.
5723
5724 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5725
5726         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
5727         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
5728
5729 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
5730
5731         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
5732         use __SSE2__ macro instead.
5733         * config/i386/xmmintrin.h: Likewise.
5734
5735 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
5736
5737         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
5738         and use it in all invocations of these macros.  Clean up comments.
5739         * rtl.c (rtl_check_failed_flag): Add an argument for the name
5740         of the flag access macro whose check failed.
5741         * doc/rtl.texi (Flags): Document additional flag uses.
5742
5743 2002-05-08  Robert Spier <rspier@pobox.com>
5744             Neil Booth  <neil@daikokuya.demon.co.uk>
5745
5746         PR preprocessor/6521
5747         * cppfiles.c (handle_missing_header): Don't do anything
5748         different for <> includes.
5749 doc:
5750         * cppopts.texi: Update documentation for -MG.
5751
5752 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5753
5754         * cpplex.c (cpp_interpret_charconst): Truncate as well as
5755         sign-extend.
5756 doc:
5757         * cpp.texi: Clarify multichar charconst valuation.
5758
5759 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
5760
5761         * doc/invoke.texi: Document -mwindiss option.
5762
5763 2002-05-08  Jason Merrill  <jason@redhat.com>
5764
5765         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
5766
5767         * dwarf2out.c (gen_type_die): Abort on broken recursion.
5768
5769         PR c++/6381
5770         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
5771         REAL_CST.
5772
5773 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
5774
5775         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
5776         little-endian multilibs to override arm/thumb multilibs.
5777         Do not build hardware floating point multilibs, nor apcs-26
5778         multilibs for the Thumb.
5779
5780 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
5781
5782         PR c/6569.
5783         * varasm.c (mark_weak): New function.
5784         (merge_weak): Use it.  Do not call declare_weak.
5785         (declare_weak): Use merge_weak.
5786
5787 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
5788
5789         * cse.c (dead_libcall_p): Update counts.
5790         (delete_trivially_dead_insns): Update call of dead_libcall_p.
5791
5792 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5793
5794         * cfglayout.c (function_tail_eff_head): Rename to ...
5795         (function_footer): ... this one.
5796         (unlink_insn_chain): New functions.
5797         (label_for_bb): Only call block_label and emit debug message.
5798         (record_effective_endpoints): Actually unlink the headers and footers.
5799         (fixup_reorder_cahin): Re-insert the unlinked sequences.
5800         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
5801         * cfglayout.h (struct reorder_block_def): New fields footer/header;
5802         remove eff_head/eff_end.
5803         * rtl.h (set_first_insn): Declare.
5804         * emit-rtl.c (set_first_insn): New function.
5805
5806         * cfglayout.c (fixup_reorder_chain): Dump duplicated
5807         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5808         cfg_layout_duplicate_bb): New global function.
5809         (duplicate_insn_chain): New static function.
5810         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5811         cfg_layout_duplicate_bb): Declare.
5812         (struct reorder_block_def): Add "original" field.
5813         * emit-rtl.c (emit_copy_of_insn_after): New function.
5814         * rtl.h (emit_copy_of_insn_after): Declare.
5815
5816         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
5817         (fixup_reorder_chain): properly handle edges to exit block.
5818
5819 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5820                                Jan Hubicka  <jh@suse.cz>
5821
5822         * basic-block.h (note_prediction_to_br_prob): declare.
5823         * c-semantics.c: Inlucde predit.h
5824         (expand_stmt): predict GOTO_STMT as not taken.
5825         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
5826         (cleanup_cfg): Do not free tail_recursion_list.
5827         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
5828         (flow_delete_block): Kill predictions past end of basic block.
5829         * output.h (delete_unreachable_blocks): Declare.
5830         * predict.c (predicted_by_p, process_note_predictions,
5831         process_note_prediction, last_block_p): New function.
5832         (estimate_probability): Bypass loop on PRED_CONTINUE;
5833         do not handle noreturn heuristics; kill PRED_RETURN; add
5834         PRED_EARLY_RETURN.
5835         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
5836         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
5837         * predict.h (IS_TAKEN): New constant.
5838         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
5839         * rtl.c (NOTE_INSN_PREDICTION): New.
5840         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
5841         New macro.
5842         (insn_note): add NOTE_INSN_PREDICTION.
5843         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
5844         CFG; free tail_recursion_label_list.
5845         * stmt.c: Include predict.h;
5846         (return_prediction): New.
5847         (expand_value_return): Use it.
5848         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
5849
5850 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
5851
5852         * config/mips/mips.md: Name the unspecs with define_constant.
5853         (*HILO_delay): Rename to 'hilo_delay' (no star).
5854         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
5855         (reload_outdi, reload_outsi): Likewise.
5856
5857 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
5858
5859         * toplev.c: Fix formatting.
5860
5861 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
5862
5863         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
5864         * configure.in (ac_rtlflag_checking): New.
5865         * doc/install.texi (--enable-checking): Document RTL flag checking.
5866
5867 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
5868
5869         * c-common.c (c_common_init): Set options->unsigned_wchar.
5870         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
5871         group target dependencies.
5872         (init_builtins, cpp_handle_option): Update.
5873         * cpplex.c (cpp_interpret_charconst): Update.
5874         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
5875         signed_char to unsigned_char, group target dependencies.
5876         * defaults.h (WCHAR_UNSIGNED): Remove.
5877         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
5878 config:
5879         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
5880         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
5881         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
5882         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
5883         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
5884 doc:
5885         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
5886
5887 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
5888
5889         * fixinc/inclhack.def (windiss_math1): New fix.
5890         (windiss_math2): Likewise.
5891         (windiss_valist): Likewise.
5892         * fixinc/fixincl.x: Regenerated.
5893
5894 2002-05-07  Andreas Jaeger  <aj@suse.de>
5895
5896         * genautomata.c (output_internal_min_issue_delay_func): Add
5897         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
5898         (output_internal_trans_func): Likewise.
5899
5900 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
5901
5902         * pa.c (hppa_profile_hook): Use force_reg to get the address
5903         of the profile hook into an appropriate pseudo register.
5904
5905 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
5906
5907         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
5908         (LINK_START_SPEC): Handle it.
5909         (LINK_OS_SPEC): Likewise.
5910         (CPP_SPEC): Likewise.
5911         (STARTFILE_SPEC): Likewise.
5912         (LIB_SPEC): Likewise.
5913         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
5914         all platforms.
5915         (CRTSAVRES_DEFAULT_SPEC): New macro.
5916         (LIB_WINDISS_SPEC): New macro.
5917         (CPP_OS_WINDISS_SPEC): Likewise.
5918         (STARTFILE_WINDISS_SPEC): Likewise.
5919         (ENDFILE_WINDISS_SPEC): Likewise.
5920         (LINK_START_WINDISS_SPEC): Likewise.
5921         (LINK_OS_WINDISS_SPEC): Likewise.
5922         * config/rs6000/windiss.h: New file.
5923
5924 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
5925
5926         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
5927
5928 2002-05-06  David S. Miller  <davem@redhat.com>
5929
5930         * config/sparc/sparc.md (shift insns): Do not mask off
5931         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
5932         take care of it.
5933
5934 2002-05-06  Richard Henderson  <rth@redhat.com>
5935
5936         PR c++/6212
5937         * expr.c (highest_pow2_factor_for_type): New.
5938         (expand_assignment): Use it.
5939
5940 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
5941
5942         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
5943         unspec_volatile.
5944         ("altivec_mfvscr"): Same.
5945
5946 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
5947
5948         * rtl.h (struct rtx_def): Update comments.
5949         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
5950         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
5951         RTL_FLAG_CHECK macros with list of expected RTL codes.
5952         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
5953         (rtl_check_failed_flag): New.
5954         * reload1.c (reload): Use REG macro before changing rtx to MEM.
5955         (reload_cse_noop_set_p): Check rtx code before using access macro.
5956         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
5957         before using access macro.
5958
5959 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
5960
5961         * doc/rtl.texi (Flags): Update to reflect current usage.
5962
5963 2002-05-06  Roger Sayle  <roger@eyesopen.com>
5964
5965         PR opt/3995
5966         * fold-const.c (sign_bit_p): New function.
5967         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
5968         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
5969         Reapply fold when converting (A & C) == C into (A & C) != 0.
5970         (fold_binary_op_with_conditional_arg): Fix typo in comment.
5971
5972 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
5973
5974         * c-common.c (warn_multichar): New.
5975         (c_common_init): Set CPP's warn_multichar.
5976         * c-common.h (warn_multichar): New.
5977         * c-decl.c (warn_multichar): Remove.
5978         * c-lex.c (lex_charconst): Update.
5979         * c-tree.h (warn_multichar): Remove.
5980         * cppexp.c (eval_token): Sign-extend charconst value.
5981         * cppinit.c (cpp_create_reader): Set warn_multichar.
5982         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
5983         each character.  Update prototype.  Sign-extend the result.
5984         * cpplib.h: Fix conditions.
5985         (struct cpp_options): Add new warning flag.
5986         (cpp_interpret_charconst): Update prototype.
5987 doc:
5988         * cpp.texi: Update documentation.
5989
5990 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
5991
5992         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
5993         Fix typo in usage of allof instead of unit.
5994
5995 2002-05-06  Richard Henderson  <rth@redhat.com>
5996
5997         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
5998         and any jump or call for IN.
5999
6000 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
6001
6002         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
6003         -msse2.
6004         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
6005
6006 2002-05-06  Roger Sayle  <roger@eyesopen.com>
6007
6008         * fold-const.c (lshift-double): Cast the high word to an unsigned
6009         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
6010         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
6011         avoid compiler warning.  (fold): Remove redundant code from
6012         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
6013
6014 2002-05-06  Jeff Law  <law@redhat.com>
6015
6016         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
6017         * pa.c (pa_adjust_cost): Remove all true dependency cost
6018         adjustments.  Also remove support for non-DFA scheduling.
6019         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
6020         to adjust true dependency costs.  Update various comments.
6021         (7100lc, 7200, 7300 scheduling): Simplify by combining the
6022         FP ALU & MPY units into a single unit.
6023
6024 2002-05-06  Catherine Moore  <clm@redhat.com>
6025
6026         * config/v850/v850.c (compute_register_save_size): Make sure
6027         to count all of the registers that will be saved.
6028
6029 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
6030
6031         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
6032
6033 2002-05-06  David S. Miller  <davem@redhat.com>
6034
6035         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
6036         allow result to overlap input operands in memory.
6037
6038 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6039
6040 doc:
6041         * cpp.texi: Update multichar charconst docs.
6042
6043 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6044
6045         * cpplex.c (cpp_interpret_charconst): Sign-extend each
6046         character.  Don't ignore excess characters.  Treat
6047         multicharacter character constants as signed.
6048         (cpp_parse_escape): Clarify diagnostic.
6049
6050 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
6051
6052         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
6053         use add instead of shift.
6054         (ashldi3_sp64): Likewise.
6055         (ashlsi3_const1, ashldi3_const1): Remove.
6056         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
6057         * config/sparc/sparc.c (const1_operand): New.
6058
6059 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
6060
6061         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
6062
6063 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
6064
6065         PR target/6561
6066         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
6067
6068 2002-05-05  Richard Henderson  <rth@redhat.com>
6069
6070         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
6071         memory latency adjustments.
6072         (alpha_variable_issue): Remove.
6073         (alpha_use_dfa_pipeline_interface): New.
6074         (alpha_multipass_dfa_lookahead): New.
6075         * config/alpha/alpha.md: Remove define_function_unit scheduling;
6076         include new dfa scheduling.
6077         (attr type): Add none.
6078         (blockage): Use it.
6079         * config/alpha/ev4.md: New.
6080         * config/alpha/ev5.md: New.
6081         * config/alpha/ev6.md: New.
6082
6083 2002-05-05  David S. Miller  <davem@redhat.com>
6084
6085         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
6086
6087 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
6088
6089         * cse.c: Fix formatting.
6090         * emit-rtl.c: Likewise.
6091
6092 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
6093
6094         * genautomata.c (initiate_states): Add additional guard to
6095         initialize `units_array'.
6096
6097 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
6098
6099         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
6100         process_unit_to_form_the_same_automaton_unit_lists,
6101         form_the_same_automaton_unit_lists
6102         check_unit_distributions_to_automata): New prototypes and
6103         functions.
6104         (check_automata): Rename it into `check_automata_insn_issues'.
6105         (unit_decl): New fields `the_same_automaton_unit' and
6106         `the_same_automaton_message_reported_p'.
6107         (unit_decl_t): New typedef.
6108         (the_same_automaton_lists): New gloval variable.
6109         (unit_regexp, unit_set_el, units_array, units_cmp,
6110         output_get_cpu_unit_code_func): Use the typedef.
6111         (evaluate_max_reserv_cycles): Increment
6112         `description->max_insn_reserv_cycles'.
6113         (initiate_states): Don't increment `max_cycles_num'.
6114         (transform_insn_regexps): Move code around transformation of
6115         regexps from `generate'.
6116         (generate): Remove call of `transform_insn_regexps'.
6117         (expand_automata): Call `transform_insn_regexps' and
6118         `check_unit_distributions_to_automata'.  Check errors before
6119         `generate'.
6120
6121         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6122         automaton `ultrasparc3_1'.
6123
6124 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6125
6126         * c-common.c (c_common_init): Set up CPP arithmetic.
6127         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6128         something reasonable for the host.
6129         (sanity_checks): Add checks.
6130         (cpp_read_main_file): Call sanity_checks() from here...
6131         (cpp_post_options): ... not here.
6132         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6133         * cpplib.h (struct cpp_options): New member int_precision.
6134
6135 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6136
6137         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6138
6139 2002-05-04  David S. Miller  <davem@redhat.com>
6140
6141         * config/sparc/linux.h, config/sparc/linux64.h
6142         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6143
6144         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6145         more RTX codes.
6146         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6147
6148         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6149         of SETs.
6150
6151 2002-05-05  Tim Josling  <tej@melbpc.org.au>
6152
6153         * treelang; New directory for new sample language treelang.
6154
6155 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6156
6157         * Makefile.in (c-lex.o): Update.
6158         * c-lex.c: Include target.h.
6159         (cb_register_builtins): New.
6160         (init_c_lex): Set builtins callback.
6161         * c-lex.h (cpp_define, cpp_assert): New prototypes.
6162         * cppinit.c (init_builtins): Use callback, including for
6163         GXX_WEAK.
6164         * cpplib.h (struct cpp_callbacks): New member.
6165         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6166         (TARGET_INITIALIZER): Update.
6167         * target.h (struct gcc_target): New hook.
6168         * tree.c (default_register_cpp_builtins): New.
6169         * tree.h (default_register_cpp_builtins): New.
6170 doc:
6171         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6172
6173 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6174
6175         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6176         (cpp_post_options): Move sanity checks to...
6177         (sanity_checks): New.
6178         * cpplex.c (maybe_read_ucs): Fix prototype.
6179         (parse_string, cpp_parse_escape): Cast for %c format specifier.
6180         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6181         if necessary.
6182
6183 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
6184
6185         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6186         builtins.  Use V2DI patterns instead of TI for logical operations.
6187         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6188         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6189         (ix86_expand_builtins): Change the pattern used for movntdq.
6190         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6191         sse2_nandv2di3): New patterns.
6192         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6193         on operands.
6194         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6195         (cvtdq2pd): Correct mode on operand 1.
6196         (sse2_umulsidi3): Describe without unspec.
6197         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6198         machine modes.
6199         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6200         (ashlv2di3): Likewise, from sse2_ashlv2di3.
6201         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6202         ashlv4si3, ashlv2di3): Use SImode for shift count.
6203         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6204         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6205         New patterns.
6206         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6207         New typedefs.
6208         (__m128i, __m128d): New macros.
6209         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6210         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6211         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6212         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6213         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
6214         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
6215         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6216         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
6217         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
6218         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6219         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6220         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6221         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6222         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6223         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6224         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6225         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6226         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6227         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6228         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6229         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6230         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6231         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6232         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6233         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6234         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6235         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6236         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6237         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6238         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6239         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6240         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6241         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6242         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6243         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6244         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6245         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6246         functions.
6247         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
6248         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6249
6250 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
6251
6252         * dwarf2out.c: Fix formatting.
6253         * varasm.c: Likewise.
6254
6255 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
6256
6257         PR c/6543
6258         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6259         clobber and use result as temporary value.
6260
6261 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6262
6263         * expr.c (force_operand): Use expand_simple_* to handle more
6264         cases.
6265
6266 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6267
6268         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6269         and sign-extension.
6270         (lex_charconst): Update for change in prototype of
6271         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
6272         appropriately.
6273         * cpphash.h (BITS_PER_CPPCHAR_T): New.
6274         * cppinit.c (cpp_create_reader): Initialize them for no
6275         change in semantics.
6276         (cpp_post_options): Add sanity checks.
6277         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6278         and truncation issues.  Calculate in type cppchar_t.
6279         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6280         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
6281         run-time dependent precision correctly.  Return whether the
6282         result is signed or not.
6283         * cpplib.c (dequote_string): Use cppchar_t; update.
6284         * cpplib.h (cppchar_signed_t): New.
6285         struct cpp_options): New precision members.
6286         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
6287         * cppexp.c (eval_token): Update.
6288
6289 2002-05-03  David S. Miller  <davem@redhat.com>
6290
6291         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6292         * config/sparc/sparc.c (sparc_rtx_costs): New function
6293         implementing RTX_COSTS and CONST_COSTS.
6294         * config/sparc/sparc.h (CONST_COSTS): Delete.
6295         (RTX_COSTS_CASES): Define.
6296         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6297         the work.
6298
6299         * config/sparc/sparc.md (DFA schedulers): Split out...
6300         * config/sparc/cypress.md, config/sparc/hypersparc.md,
6301         config/sparc/sparclet.md, config/sparc/supersparc.md,
6302         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6303
6304         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6305         checks on it, always defined for Sparc.
6306
6307         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6308         Tweak, and add more detailed comments.
6309
6310 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
6311
6312         * Re-apply patch accidentally reverted with
6313         DFA scheduler merge: remove all rules and variables to slurp
6314         source files out of libiberty and rebuild them with HOST_CC.
6315         ($(HOST_PREFIX_1)varray.o): New rule.
6316         (genattrtab rule): Word wrap.
6317
6318 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
6319
6320         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6321         (CPP_SUBTARGET_SPEC): Define.
6322         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6323         cpp_subtarget specs.
6324         (CPP_SPEC): Redefine to include %(cpp_subtarget).
6325
6326 2002-05-03  David S. Miller  <davem@redhat.com>
6327
6328         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6329         * target.h (struct gcc_target): Delete cycle_display member.
6330
6331         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6332         (rtx_needs_barrier): Delete reference to cycle_display unspec.
6333         (ia64_sched_reorder2): Mention need for cycle display handling
6334         once such notes exist.
6335
6336 2002-05-03  Richard Henderson  <rth@redhat.com>
6337
6338         * real.c (etoasc): Strip most trailing zeros for clarity.
6339         * sched-vis.c: Include real.h.
6340         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6341         * Makefile.in (sched-vis.o): Add real.h.
6342
6343 2002-05-03  David S. Miller  <davem@redhat.com>
6344
6345         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6346         no longer needed.
6347
6348 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
6349
6350         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6351         when we get an out of range literal.
6352         (altivec_expand_ternop_builtin): Same.
6353         (altivec_expand_unop_builtin): Same.
6354         (altivec_expand_builtin): Same, for dss.
6355         (altivec_expand_builtin): Use trees instead of rtl when
6356         determining literal argument validity.
6357
6358 2002-05-03  David S. Miller  <davem@redhat.com>
6359
6360         Delete cycle display scheduling hook.
6361         * config/ia64/ia64.c (ia64_cycle_display,
6362         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6363         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6364         and use emit_insn_before instead of ia64_emit_insn_before.
6365         * config/ia64/ia64.md (unspec usage): Delete cycle display.
6366         (cycle_display): Delete insn pattern.
6367         * config/sparc/sparc.md (unspec usage): Delete cycle display.
6368         (cycle_display): Delete insn pattern.
6369         * config/sparc/sparc.c (sparc_cycle_display,
6370         TARGET_SCHED_CYCLE_DISPLAY): Delete.
6371         * doc/md.texi (cycle_display): Don't mention.
6372         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
6373
6374 2002-05-03  Richard Henderson  <rth@redhat.com>
6375
6376         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6377         * recog.h: Declare them.
6378
6379         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6380         * config/sparc/sparc.md: Use store_data_bypass_p instead.
6381         * config/sparc/sparc-protos.h: Update.
6382
6383 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
6384
6385         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6386         -D__arch64__.  Add -D_LP64.
6387         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6388         from sparc.h.
6389         (CPP_ARCH64_SPEC): Likewise.
6390         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6391         (NO_BUILTIN_SIZE_TYPE): Undef.
6392
6393 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
6394
6395         * genautomata.c (min_issue_delay_pass_states): Change return type
6396         in the prototype.
6397         (min_issue_delay_pass_states): Change the algorithm.
6398         (min_issue_delay): Set up min_insn_issue_delay for the state.
6399         (output_min_issue_delay_table): Interchange the nested loops and
6400         and initiate min_insn_issue_delay for states.
6401
6402 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
6403
6404         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
6405         jump is simplejump.
6406
6407 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
6408
6409         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
6410         sequence.
6411
6412 2002-05-03  Richard Henderson  <rth@redhat.com>
6413
6414         PR opt/6534
6415         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6416         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6417         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6418         code before JUMP, not EARLIEST.
6419
6420 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
6421
6422         * c-format.c (check_format_info_main): Don't check for presence of
6423         parameter for * width until after operand number has been read,
6424         and only check for it if format parameters are available.
6425         Fixes PR c/6547.
6426
6427 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
6428
6429         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6430         (LINK_SPEC): Undef before defining.
6431
6432 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
6433
6434         PR preprocessor/6489
6435         * tradcpp.c (fixup_newlines): New.
6436         (main, finclude): Use it.
6437
6438 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
6439
6440         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6441         * config/mips/mips.c (mips_unique_section): Strip encoding from
6442         decl name.
6443
6444 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
6445
6446         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6447         mode.
6448
6449 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6450
6451         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6452         (Specific): Removed buildstats references.
6453         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6454         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6455         Accomodate Solaris versions beyond 8.
6456         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6457         (Specific, *-*-solaris2.8): Removed, obsolete.
6458
6459 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
6460
6461         PR target/6542
6462         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6463         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6464         fill leaf_reg_remap with identity.
6465         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6466
6467 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
6468
6469         * config/h8300/crti.asm: Remove trailing spaces.
6470         * config/h8300/h8300.c: Likewise.
6471         * config/h8300/lib1funcs.asm: Likewise.
6472
6473 2002-05-02  Jason Merrill  <jason@redhat.com>
6474
6475         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6476         * c-decl.c (c_init_decl_processing): Use it.
6477         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6478         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6479         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6480
6481 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
6482
6483         * regrename.c: Fix formatting.
6484         * tree.c: Likewise.
6485
6486 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
6487
6488         * i386.md (attribute memory): Handle compares properly.
6489
6490 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
6491
6492         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
6493         to none.
6494
6495 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
6496
6497         * function.c: Fix formatting.
6498
6499 2002-05-02  Jan Hubicka  <jh@suse.cz>
6500
6501         * haifa-sched.c (schedule_insn): Print table of instructions and
6502         reservations.
6503         (sched_block): Do not print ready list at verbosity level 1.
6504         * sched-vis.c (print_insn): Make global.
6505         * sched-ebb.c (ebb_print_insn): Rename from...
6506         (print_insn): ... this one.
6507         * sched-int.h (print_insn): Declare
6508
6509 2002-05-02  Richard Henderson  <rth@redhat.com>
6510
6511         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6512         emitted by cycle_display.
6513
6514 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
6515
6516         * doc/install.texi (*-*-freebsd*): Update to latest status.
6517
6518 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6519
6520         PR target/6540
6521         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6522         * config/float-sparc.h: Assume 128-bit long double if
6523         __LONG_DOUBLE_128__ is defined.
6524
6525 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
6526
6527         * genattrtab.c (write_function_unit_info): Add a dummy element
6528         when num_units == 0.
6529
6530 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6531
6532         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6533         TYPE_MODE (double_type_node) instead of DFmode.
6534
6535 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
6536
6537         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6538         jumps post reload.
6539         * toplev.c (rest_of_compilation): Revert Richard's patch.
6540
6541 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6542
6543         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6544
6545 2002-05-02  Catherine Moore  <clm@redhat.com>
6546
6547         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6548
6549 2002-05-02  Kazu Hirata  <kazu@hxi.com>
6550
6551         * combine.c: Fix comment typos.
6552         * expr.c: Likewise.
6553         * genautomata.c: Likewise.
6554         * stmt.c: Likewise.
6555         * tree.h: Likewise.
6556
6557 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6558
6559         * doc/install.texi: State GNAT version requirements.
6560
6561 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
6562
6563         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6564         of the frame pointer or arg pointer register which strict register
6565         checking is not enabled.
6566
6567 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
6568
6569         * gcc.dg/altivec-8.c: New.
6570
6571         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6572         PRE_INC and PRE_DEC for altivec modes.
6573
6574 2002-05-01  Bruce Korb  <bkorb@gnu.org>
6575
6576         * fixinc/check.tpl(set-writable): make sure the function exists first
6577         * fixinc/inclhack.def(alpha_assert): fix test_text
6578         * fixinc/tests/base/assert.h: add in missing result
6579
6580 2002-05-01  Jeff Law  <law@redhat.com>
6581
6582         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6583         'T' constraint.
6584
6585 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
6586
6587         * dbxout.c (dbxout_type): Emit size information for range types,
6588         as well, but only when using GDB extensions.
6589
6590 2002-05-01  Richard Henderson  <rth@redhat.com>
6591
6592         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6593         target-independent gnu binutils date test.
6594
6595 2002-05-01  Richard Henderson  <rth@redhat.com>
6596
6597         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6598         info before expunging the block.
6599
6600 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
6601
6602         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6603         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
6604         -M -or -MM is in effect.
6605
6606 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
6607
6608         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
6609         A29k configurations.
6610         * doc/install.texi: Update to match.
6611
6612 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6613
6614         PR bootstrap/6514
6615         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6616         for duplicates. Always loop over whole list.
6617
6618 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6619
6620         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6621
6622 2002-05-01      Joel Sherrill <joel@OARcorp.com>
6623
6624         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6625         support routines.
6626
6627 2002-05-01      Joel Sherrill <joel@OARcorp.com>
6628
6629         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6630
6631 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
6632
6633         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6634         (nabs_nopower): Same.
6635         (floatdisf2): New pattern.
6636         (absdi2): Convert to define_insn_and_split.
6637         (nabsdi2): Same.
6638         (trunctfsf2): Same.
6639         (floatditf2): Same.
6640         (floatsitf2): Same.
6641         (fix_trunctfdi2): Same.
6642         (fix_trunctfsi2): Same.
6643
6644 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
6645
6646         * doc/install.texi: Update Texinfo version requirement
6647         documentation.
6648
6649 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
6650
6651         PR target/6512, PR target/5628
6652         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6653         when memory is not aligned.
6654         (movdf_insn_v9only_vis): Likewise.
6655         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6656         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6657         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6658
6659 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
6660
6661         * gcc.dg/altivec-7.c: New.
6662
6663         * config/rs6000/altivec.h: Cleanup.
6664
6665 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
6666
6667         * doc/invoke.texi (Option Summary): Add -mvrsave=.
6668         (RS/6000 and PowerPC Options): Document -mvrsave=.
6669
6670         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6671         (rs6000_altivec_vrsave_string): Same.
6672         (rs6000_override_options): Call rs6000_parse_vrsave_option.
6673         (rs6000_parse_vrsave_option): New.
6674         (rs6000_stack_info): Only generate vrsave instructions when
6675         TARGET_ALTIVEC_VRSAVE.
6676
6677         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
6678         (rs6000_altivec_vrsave_string): Define extern.
6679         (rs6000_altivec_vrsave): Same.
6680         (TARGET_ALTIVEC_VRSAVE): New.
6681
6682 2002-04-30  Richard Henderson  <rth@redhat.com>
6683
6684         PR opt/6516
6685         * toplev.c (rest_of_compilation): Don't run cross-jump before
6686         bb-reorder.
6687
6688 2002-04-30  Tom Rix  <trix@redhat.com>
6689
6690         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
6691         check which_alternative.
6692
6693 2002-04-30  Kazu Hirata  <kazu@hxi.com>
6694
6695         * cpplex.c: Fix comment formatting.
6696         * function.c: Likewise.
6697         * integrate.c: Likewise.
6698         * regrename.c: Likewise.
6699         * sibcall.c: Likewise.
6700         * simplify-rtx.c: Likewise.
6701         * tree-inline.c: Likewise.
6702
6703 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6704
6705         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
6706         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
6707         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
6708         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
6709         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
6710         * pa/x-ada: New file.  Define ADA_CFLAGS.
6711
6712 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
6713
6714         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
6715         from MMIX_LAST_REGISTER_FILE_REGNUM.
6716         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
6717         (struct machine_function): New member highest_saved_stack_register
6718         previously static variable in mmix.c.
6719         (MACHINE_DEPENDENT_REORG): Define.
6720         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
6721         (MMIX_OUTPUT_REGNO): New.
6722         (mmix_target_asm_function_prologue): Move calculation of last used
6723         saved-stack-register into...
6724         (mmix_machine_dependent_reorg): New function.  Update to also handle
6725         !TARGET_ABI_GNU.
6726         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
6727         register names, simplify somewhat by new variable regno.
6728         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
6729         register.
6730         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
6731         emitting register names.
6732         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
6733         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
6734         Remove fixed FIXME.
6735         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
6736         Declare.
6737
6738         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
6739
6740 2002-04-30  Richard Henderson  <rth@redhat.com>
6741
6742         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
6743         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
6744         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
6745         emit_tfmode_cvt): New.
6746         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
6747         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
6748         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
6749         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
6750         * config/sparc/sparc-protos.h: Update.
6751
6752 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
6753
6754         * install.texi (Final install): Add to the list of info to include
6755         in a report of a successful bootstrap, and add link to 3.1 list.
6756
6757 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
6758
6759         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
6760         (mode): Add vector modes
6761         (i387): Kill attribute.
6762         (unit): New attribute.
6763         (length_immediate): Grok new types.
6764         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
6765         (modrm): Use "unit".
6766         (memory): Handle MMX/SSE properly.
6767         (scheduling descriptions): Kill uses of fop1.
6768         (sse, mmx, fp patterns): Set type and mode properly.
6769
6770 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
6771
6772         * pa.c (override_options): Default to PA8000 scheduling.
6773         * doc/invoke.texi (HP-PA options): Mention newly added 7300
6774         scheduling parameter.
6775
6776         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
6777         handling of double precision multiplies.
6778
6779         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
6780         fpdiv and fpsqrt instructions.
6781         (7200 & 7300 scheduling): Fix typo in handling of
6782         store-load and store-store penalties.
6783
6784 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6785
6786         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
6787         mips.  Add two missing commas.
6788
6789 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
6790
6791         * doc/contrib.texi (Contributors): Update Paolo Carlini's
6792         and Benjamin Kosnik's entries.
6793
6794 2002-04-29  David S. Miller  <davem@redhat.com>
6795
6796         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
6797         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
6798         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
6799         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6800
6801 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6802
6803         * combine.c (find_split_point): Use gen_int_mode.
6804
6805 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
6806
6807         Merging code from dfa-branch:
6808
6809         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6810
6811         * genautomata.c (output_reserv_sets): Fix typo.
6812
6813         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
6814
6815         * genautomata.c (output_reserv_sets): Remove
6816         next_cycle_output_flag.
6817
6818         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
6819
6820         * sched-rgn.c (init_ready_list): Make the DFA code handle
6821         USE/CLOBBER insns in the same way as the traditional
6822         scheduler.
6823         (new_ready): Similarly..
6824
6825         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
6826
6827         * haifa-sched.c (schedule_block): Change the DFA state only after
6828         issuing insn.
6829
6830         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
6831
6832         * pa.c (hppa_use_dfa_pipeline_interface): New function.
6833         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6834         (override_options): Add PA7300 scheduling support.
6835         (pa_adjust_cost): Update various comments.  Properly
6836         handle anti and output dependencies when using the
6837         DFA scheduler.
6838         (pa_issue_rate): Add PA7300 scheduling support.
6839         (pa_can_combine_p): Call extract_insn before calling
6840         constrain_operands (taken from mainline tree).
6841         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
6842         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
6843         descriptions using DFA descriptions.  Add PA7300
6844         scheduling support.
6845
6846         2002-03-30  David S. Miller  <davem@redhat.com>
6847
6848         Add UltraSPARC-III DFA scheduling support.
6849         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
6850         Update FP conditional move on register insn patterns to use it, as
6851         appropriate.
6852         (define_attr cpu): Add ultrasparc3.
6853         (define_attr us3load_type): New, update integer load patterns to
6854         set it, as appropriate.
6855         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
6856         (rest): Add UltraSPARC3 scheduling description.
6857         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
6858         (PROCESSOR_ULTRASPARC3): New.
6859         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
6860         ({ASM,CPP}_CPU_SPEC): Likewise.
6861         (REGISTER_MOVE_COST): Likewise.
6862         (RTX_COSTS): Likewise.
6863         * config/sparc/sparc.c (sparc_override_options,
6864         sparc_initialize_trampoline, sparc64_initialize_trampoline,
6865         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6866         sparc_issue_rate): Likewise.
6867         * config/sparc/sol2.h: Likewise.
6868         * config/sparc/sol2-sld-64.h: Likewise.
6869         * config/sparc/linux64.h: Likewise.
6870
6871         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
6872
6873         * doc/md.texi: Add comments about usage the latency time for the
6874         different dependencies and about case when two or more conditions
6875         in different define_insn_reservations returns TRUE for an insn.
6876
6877         * doc/md.texi: Add reference for automaton based pipeline
6878         description.
6879
6880         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
6881
6882         * doc/passes.texi: Add missed information about genattrtab.
6883
6884         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
6885
6886         * genautomata.c (output_automata_list_transition_code): Check
6887         automata_list on NULL.
6888
6889         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
6890
6891         * genautomata.c (output_insn_code_cases,
6892         output_automata_list_min_issue_delay_code,
6893         output_automata_list_transition_code,
6894         output_automata_list_state_alts_code): Comment the functions.
6895
6896         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
6897
6898         * genautomata.c (automata_list_el_t): New typedef.
6899         (get_free_automata_list_el,free_automata_list_el,
6900         free_automata_list, automata_list_hash, automata_list_eq_p,
6901         initiate_automata_lists, automata_list_start, automata_list_add,
6902         automata_list_finish, finish_automata_lists,
6903         output_insn_code_cases, output_automata_list_min_issue_delay_code,
6904         output_automata_list_transition_code,
6905         output_automata_list_state_alts_code, add_automaton_state,
6906         form_important_insn_automata_lists): New functions and prototypes.
6907         (insn_reserv_decl): Add members important_automata_list and
6908         processed_p.
6909         (ainsn): Add members important_p.
6910         (automata_list_el): New structure.
6911         (first_free_automata_list_el, current_automata_list,
6912         automata_list_table): New global variables.
6913         (create_ainsns): Initiate member important_p.
6914         (output_internal_min_issue_delay_func): Generate the switch and
6915         call output_insn_code_cases.
6916         (output_internal_trans_func, output_internal_state_alts_func):
6917         Ditto.
6918         (generate): Call initiate_automata_lists.
6919         (automaton_states): New global variable.
6920         (expand_automata): Call form_important_insn_automata_lists.
6921         (write_automata): Call finish_automata_lists.
6922
6923         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
6924
6925         * genautomata.c (add_excls, add_presence_absence): Check that
6926         cpu units in the sets belong the same automaton.
6927
6928         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
6929         about that cpu units in the sets belong the same automaton.
6930
6931         * doc/md.texi: Ditto.
6932
6933         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
6934                     Nitin Gupta  <niting@noida.hcltech.com>
6935
6936         * config/sh/sh.c (sh_use_dfa_interface): New function.
6937
6938         (sh_issue_rate): New Function.
6939         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
6940         TARGET_SCHED_ISSUE_RATE: define.
6941
6942         * config/sh/sh.md: Add DFA based pipeline description for SH4.
6943
6944         (define_attr insn_class): New attribute used for DFA
6945          scheduling.
6946         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
6947         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
6948          cmpeqdi_t): Likewise.
6949
6950         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
6951          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
6952          ex_group.
6953         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
6954
6955         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
6956
6957         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
6958         break.
6959
6960         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
6961
6962         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
6963         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
6964         necessary.
6965         (output_dfa_start_func): Initiate new variable insn_codes_length,
6966         (write_automata): Output definition of the new variable.
6967
6968         2001-10-02  David S. Miller  <davem@redhat.com>
6969
6970         * haifa-sched.c (advance_one_cycle): New function.
6971         (schedule_block): Use it.
6972         (queue_to_ready): Use it, and also make sure to advance the DFA
6973         state on all stall cycles, not just those where insn_queue links
6974         are found.
6975
6976         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
6977
6978         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
6979         non-zero if the highest-priority instruction could be scheduled.
6980         (choose_ready): Remove last argument from max_issue call.
6981
6982         2001-09-28  David S. Miller  <davem@redhat.com>
6983
6984         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
6985         ultrasparc and 3 for other multi-issue sparcs.
6986
6987         2001-09-27  David S. Miller  <davem@redhat.com>
6988
6989         * config/sparc/sparc.md (cycle_display): New pattern.
6990         * config/sparc/sparc.c (sparc_cycle_display): New.
6991         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
6992
6993         2001-09-25  David S. Miller  <davem@redhat.com>
6994
6995         Convert all of Sparc scheduling to DFA
6996         * config/sparc/sparc.md: Kill all define_function_unit
6997         directives and replace with DFA equivalent.
6998         * config/sparc/sparc.c (ultrasparc_adjust_cost,
6999         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
7000         ultra_fpmode_conflict_exists, ultra_find_type,
7001         ultra_build_types_avail, ultra_flush_pipeline,
7002         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
7003         ultrasparc_variable_issue, ultrasparc_sched_init,
7004         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
7005         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
7006         ultra_cur_hist, ultra_cycles_elapsed): Kill.
7007         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7008         ultrasparc_store_bypass_p): New.
7009         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
7010         Declare.
7011
7012         2001-09-24  David S. Miller  <davem@redhat.com>
7013
7014         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
7015         ready->vec[foo] not ready[foo].
7016
7017         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
7018
7019         * doc/md.texi: Correct examples for define_insn_reservations
7020         `mult' and `div'.
7021
7022         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
7023
7024         * genautomata.c (create_automata): Print message about creation of
7025         each automaton.
7026         (generate): Remove printing meease about creation of
7027         automata.
7028
7029         2001-09-05  David S. Miller  <davem@redhat.com>
7030
7031         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7032         * config/sparc/linux64.h: Likewise.
7033
7034         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
7035
7036         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
7037         schedule_block, sched_init, sched_finish): Add missed calls of
7038         use_dfa_pipeline_interface.
7039
7040         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
7041         Ditto.
7042
7043         * sched-vis.c (get_visual_tbl_length): Ditto.
7044
7045         2001-08-27  Richard Henderson  <rth@redhat.com>
7046
7047         * genattr.c (main): Emit state_t even when not doing scheduling.
7048
7049         2001-08-27  Richard Henderson  <rth@redhat.com>
7050
7051         * genautomata.c (expand_automata): Always create a description.
7052
7053         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
7054
7055         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
7056         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
7057         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
7058         RTL constructions.
7059
7060         * genattr.c (main): New variable num_insn_reservations.  Increase
7061         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
7062         pipeline hazard recognizer interface.
7063
7064         * genattrtab.h: New file.
7065
7066         * genattrtab.c: Include genattrtab.h.
7067         (attr_printf, check_attr_test, make_internal_attr,
7068         make_numeric_value): Move protypes into genattrtab.h.  Define them
7069         as external.
7070         (num_dfa_decls): New global variable.
7071         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7072         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7073         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7074         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
7075
7076         * genautomata.c: New file.
7077
7078         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7079
7080         * sched-int.h: (curr_state): Add the external definition for
7081         automaton pipeline interface.
7082         (haifa_insn_data): Add comments for members blockage and units.
7083
7084         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7085         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7086         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7087         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7088         TARGET_SCHED_DFA_POST_CYCLE_INSN,
7089         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7090         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7091         macros.
7092         (TARGET_SCHED): Use the new macros.
7093
7094         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7095         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7096         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7097         dfa_bubble): New members in gcc_target.sched.
7098
7099         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
7100         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7101         (insn_queue): Redefine it as pointer to array.
7102         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7103         INSN_QUEUE_SIZE.
7104         (max_insn_queue_index_macro_value): New variable.
7105         (curr_state, dfa_state_size, ready_try): New varaibles for
7106         automaton interface.
7107         (ready_element, ready_remove, max_issue): New function prototypes
7108         for automaton interface.
7109         (choose_ready): New function prototype.
7110         (insn_unit, blockage_range): Add comments.
7111         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7112         FUNCTION_UNITS_SIZE == 0.
7113         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7114         actual_hazard, potential_hazard): Add comments.
7115         (insn_cost): Use cost -1 as undefined value.  Remove
7116         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
7117         pipeline interface.
7118         (ready_element, ready_remove): New functions for automaton
7119         interface.
7120         (schedule_insn): Add new code for automaton pipeline interface.
7121         (queue_to_ready): Add new code for automaton pipeline interface.
7122         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7123         (debug_ready_list): Print newline when the queue is empty.
7124         (max_issue): New function for automaton pipeline interface.
7125         (choose_ready): New function.
7126         (schedule_block): Add new code for automaton pipeline interface.
7127         Print ready list before scheduling each insn.
7128         (sched_init): Add new code for automaton pipeline interface.
7129         Initiate insn cost by -1.
7130         (sched_finish): Free the current automaton state and finalize
7131         automaton pipeline interface.
7132
7133         * sched-rgn.c: Include target.h.
7134         (init_ready_list, new_ready, debug_dependencies): Add new code for
7135         automaton pipeline interface.
7136
7137         * sched-vis.c: Include target.h.
7138         (get_visual_tbl_length): Add code for automaton interface.
7139         (target_units, print_block_visualization):  Add comments.
7140
7141         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
7142         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7143         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7144         (getruntime.o, genautomata.o): New entries.
7145         (genattrtab.o): Add new dependency file genattrtab.h.
7146         (genattrtab): Add new dependencies.  Link it with `libm.a'.
7147         (getruntime.o, hashtab.o): New entries for canadian cross.
7148
7149         * doc/md.texi: Description of automaton based model.
7150
7151         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7152         Add comments.
7153         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7154         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7155         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7156         TARGET_SCHED_DFA_POST_CYCLE_INSN,
7157         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7158         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7159         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7160         hook descriptions.
7161         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7162         MAX_DFA_ISSUE_RATE): New macro descriptions.
7163
7164         * doc/contrib.texi: Add dfa based scheduler contribution.
7165
7166         * doc/gcc.texi: Add more information about genattrtab.
7167
7168 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7169
7170         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7171         adjust_address_nv call.
7172
7173 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
7174
7175         * doc/install.texi (Testing): Provide additional information, and
7176         a stronger encouragement, for running the testsuites.
7177
7178 2002-04-29  DJ Delorie  <dj@redhat.com>
7179
7180         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7181         given in upper case.
7182
7183 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7184
7185         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7186         Solaris 2 <widec.h> if missing.
7187         * fixinc/fixincl.x: Regenerate.
7188         * fixinc/tests/base/widec.h: New file.
7189
7190 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
7191
7192         * toplev.c (f_options): Add "profile" switch so that
7193         -fno-profile can be used to disable -p.
7194
7195 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
7196
7197         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7198         UV2DImode.
7199         * tree.c (build_common_tree_nodes_2): Likewise.
7200         * tree.h (enum tree_index): Likewise.
7201         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7202
7203         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7204         entries.
7205         (init_mmx_sse_builtins): Initialize SSE2 builtins.
7206         (ix86_expand_builtin): Add support for SSE2 builtins.
7207         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7208         (VALID_SSE_REG_MODE): Use it.
7209         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7210         (enum ix86_builtins): Add SSE2 builtins.
7211         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7212         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7213         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7214         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7215         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7216         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7217         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7218         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7219         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7220         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7221         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7222         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7223         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7224         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7225         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7226         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7227         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7228         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7229         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7230         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7231         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7232         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7233         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7234         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7235         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7236         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7237         lfence_insn): New patterns.
7238         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7239         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7240
7241 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
7242
7243         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7244
7245 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7246
7247         * doc/contrib.texi (Contributors): Add Paolo Carlini and
7248         Janis Johnson.
7249         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7250         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7251         and CPU instead of cpu.
7252
7253 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
7254
7255         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7256         variables.
7257         (lang_independent_options): Add -fif-conversion, -fif-conversion2
7258         (rest_of_compilation): Do if conversion only when asked for.
7259         (parse_options_and_default_flags): Set new variables to 1 for -O1
7260         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7261
7262 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
7263
7264         * i386.c (dbx64_register_map): Fix typo.
7265
7266 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
7267
7268         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7269         real_one_half, real_bb_freq_max): New static variables.
7270         (debug_profile_bbauxs): Kill.
7271         (process_note_predictions): Kill unused variable.
7272         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7273         volatile double.
7274         (propagate_freq): Use REAL_ARITHMETICS.
7275         (estimate_bb_frequencies): Likevise; init new static variables.
7276         * Makefile.in (predict.o): Add dependency on real.h
7277
7278 2002-04-28  David S. Miller  <davem@redhat.com>
7279
7280         PR target/6500
7281         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7282         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
7283         several {reads,writes} instead.
7284         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7285         Define.
7286
7287 2002-04-27  David S. Miller  <davem@redhat.com>
7288
7289         PR target/6494
7290         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7291         of the stack bias.
7292
7293         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7294         including signal.h and sys/ucontext.h, not needed.
7295
7296 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
7297
7298         * varasm.c (output_constant_def): Correct test for not calling
7299         ENCODE_SECTION_INFO for INTEGER_CST.
7300
7301 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7302
7303         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7304         keep most cases as function eval_token.
7305         (eval_token): New function.
7306         (_cpp_parse_expr): Read token here for improved diagnostics.
7307         Don't use op_as_text.  Detect bad ':' here.
7308         (reduce): Don't detect bad ':' here.
7309         (op_as_text): Remove.
7310         * cpphash.h (_cpp_test_assertion): Change prototype.
7311         * cpplib.c (_cpp_test_assertion): Change prototype.
7312
7313 2002-04-28  Richard Henderson  <rth@redhat.com>
7314
7315         PR c/5154
7316         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
7317         (ggc_mark_rtx_children): New.
7318
7319 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
7320
7321         PR target/6496
7322         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7323         after call peepholes for UltraSPARC.
7324         (call + jump 64-bit peepholes): Remove.
7325
7326 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7327
7328         PR c/6497
7329         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7330         result as temporary value.
7331
7332 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
7333
7334         PR c++/6396
7335         * toplev.c (rest_of_compilation): Only run regrename and copy
7336         propagation if optimizing.
7337
7338 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
7339
7340         PR optimization/6475
7341         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7342         register of REGNO_DECL (i).
7343         * Makefile.in (reload1.o): Add $(TREE_H).
7344
7345 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7346
7347         * cppexp.c (lex): Update to use state.skip_eval.
7348         (struct op): Remove prio and flags members.
7349         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7350         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7351         (LEFT_ASSOC): New macro.
7352         (optab): New table of operator priorities and flags.
7353         (SHIFT): Update.
7354         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
7355         malloc-ed parser stack.
7356         (reduce): New; reduce the operator stack.
7357         (_cpp_expand_op_stack): Expand the operator stack as necessary.
7358         * cpphash.h (struct op): Predeclare.
7359         (struct cpp_reader): New members op_stack, op_limit.
7360         (struct lexer_state): New member skip_eval.
7361         (_cpp_parse_expr): Update.
7362         (_cpp_expand_op_stack): New.
7363         * cpplib.c (do_if): Update.
7364         * cppinit.c (cpp_create_reader): Create op stack.
7365         (cpp_destroy): And destroy it.
7366         * cpplib.h (CPP_LAST_CPP_OP): Correct.
7367         (TTYPE_TABLE): Correct.
7368
7369 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7370
7371         PR c/6343
7372         * c-decl.c (duplicate_decls): Call merge_weak.
7373         * c-pragma.c (apply_pragma_weak): Warn about misuse.
7374         * output.h (merge_weak): Prototype merge_weak.
7375         * varasm.c (merge_weak): New function.
7376         (declare_weak): Make sure we don't give an error on VAR_DECLs.
7377         Mark RTL with SYMBOL_REF_WEAK.
7378
7379 2002-04-27  Kurt Garloff <garloff@suse.de>
7380
7381         * tree-inline.c (inlinable_function_p): Improve heuristics
7382         by using a smoother function to cut down allowable inlinable size.
7383         * param.def: Add parameters max-inline-insns-single,
7384         max-inline-slope, min-inline-insns that determine the exact
7385         shape of the above function.
7386         * param.h: Likewise.
7387
7388 2002-04-26  Richard Henderson  <rth@redhat.com>
7389
7390         * c-parse.in (malloced_yyss, malloced_yyvs): New.
7391         (yyoverflow): Re-add.  Set them.
7392         (free_parser_stacks): New.
7393         * c-common.h: Declare it.
7394         * c-lex.c (c_common_parse_file): Call it.
7395
7396 2002-04-26  Richard Henderson  <rth@redhat.com>
7397
7398         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7399         for fallthru search.
7400
7401 2002-04-26  Eric Christopher  <echristo@redhat.com>
7402
7403         PR optimization/3700
7404         * config/mips/mips.c (mips_issue_rate): Define.  New function.
7405         (TARGET_SCHED_ISSUE_RATE): Use.
7406
7407 2002-04-25  David S. Miller  <davem@redhat.com>
7408
7409         PR target/6422
7410         * reorg.c (optimize_skip): Do not allow exception causing
7411         instructions to be considered for delay slots.
7412         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7413         (relax_delay_slots): Do not try to consider exception causing
7414         instructions as redundant.
7415
7416 2002-04-26  Richard Henderson  <rth@redhat.com>
7417
7418         PR c/5225
7419         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7420
7421 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
7422
7423         PR bootstrap/6445
7424         * config/i386/i386.md (untyped_call): Return the value in a float
7425         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7426         TARGET_80387.
7427
7428 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
7429
7430         * tree.c (tree_int_cst_lt): Compare constants whose types differ
7431         in unsigned-ness correctly.
7432
7433 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7434
7435         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7436         portable runtime model.
7437
7438 2002-04-26  Richard Henderson  <rth@redhat.com>
7439
7440         * c-parse.in (yyoverflow): Revert.
7441
7442 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
7443             Richard Henderson  <rth@redhat.com>
7444
7445         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7446         result as temporary value.
7447
7448 2002-04-26  Richard Henderson  <rth@redhat.com>
7449
7450         PR c/3581
7451         * c-common.c (fix_string_type): Split out of ...
7452         (combine_strings): ... here.  Take a varray, not a tree list.
7453         (c_expand_builtin_printf): Use fix_string_type.
7454         * c-common.h: Update decls.
7455         * c-parse.in (string): Remove.  Update all uses to use STRING
7456         instead, and not call combine_strings.
7457         (yylexstring): New.
7458         (_yylex): Use it.
7459         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7460         (build_asm_stmt): Likewise.
7461         * objc/objc-act.c (my_build_string): Use fix_string_type.
7462         (build_objc_string_object): Build varray for combine_strings.
7463
7464 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
7465
7466         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7467         x86-64.
7468
7469 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7470
7471         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7472         (HAVE_NO_R_OPERAND): Remove.
7473         (HAVE_VALUE): Remove.
7474         (op_to_prio): Update.
7475         (UNARY): Don't alter flags.
7476         (_cpp_parse_expr): want_value used to indicate whether
7477         a number or unary operator is expected next.  Distinguish
7478         unary and binary +/-.
7479         (op_as_text): Update for unary operators.
7480
7481 2002-04-25  Richard Henderson  <rth@redhat.com>
7482
7483         PR c/2161
7484         * c-parse.in (yyoverflow): New.
7485
7486 2002-04-25  Richard Henderson  <rth@redhat.com>
7487
7488         PR c/2098
7489         * c-common.c (shorten_compare): Simplfy conditions leading to
7490         the generation of a warning.
7491
7492 2002-04-25  Richard Henderson  <rth@redhat.com>
7493
7494         PR c/2035
7495         * expmed.c (extract_bit_field): Fall through to generic code rather
7496         than aborting on subreg special case.
7497
7498 2002-04-25  David S. Miller  <davem@redhat.com>
7499
7500         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7501         for DECL being NULL.
7502
7503 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
7504
7505         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7506
7507 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
7508
7509         * c-decl.c (grokdeclarator): Remove outdated ??? note
7510         on invalid declaration of flexible array members.
7511
7512 2002-04-25  Richard Henderson  <rth@redhat.com>
7513
7514         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7515
7516 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
7517
7518         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7519         needed by the compiler, even if they are used as global regs.
7520
7521 2002-04-25  Matt Hiller  <hiller@redhat.com>
7522
7523         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7524         functions.
7525         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7526         of the corresponding functions.
7527         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7528         New prototypes.
7529
7530 2002-04-25  Matt Hiller  <hiller@redhat.com>
7531
7532         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7533
7534         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7535         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7536         registers, adjust comment accordingly.
7537         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7538         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7539         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7540         for coprocessor registers.
7541         (ADDITIONAL_REGISTER_NAMES): Include
7542         ALL_COP_ADDITIONAL_REGISTER_NAMES.
7543
7544         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7545         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7546         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7547         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7548         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7549
7550         (mips_char_to_class): Adjust comment to include coprocessor
7551         constraint letters.
7552
7553         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7554         New functions.
7555         (mips_reg_names, mips_regno_to_class): Include coprocessor
7556         information.
7557         (mips_sw_reg_names): Ditto, make non-static.
7558         (mips_move_1word): Handle moves to and from coprocessor registers.
7559         (mips_move_2words): Handle moves to and from coprocessor
7560         registers.
7561         (mips_class_max_nregs, mips_register_move_cost): Handle
7562         coprocessor register classes.
7563         (override_options): Initialize mips_char_to_class and
7564         mips_hard_regno_mode_ok properly for coprocessor registers.
7565
7566         * config/mips/mips.md (movdi_internal, movdi_internal2,
7567         movsi_internal1, movsi_internal2): Add constraint-sets for
7568         coprocessor registers.
7569         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7570         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7571         isn't mips.
7572         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7573         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7574         isn't mips.
7575         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7576         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7577         isn't mips.
7578         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7579         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7580         isn't mips.
7581
7582         * doc/tm.texi: Document feature.
7583
7584 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
7585
7586         * integrate.c (function_attribute_inlinable_p): Simplify.
7587         Check the table pointer is not NULL.
7588
7589 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
7590
7591         * doc/c-tree.texi: Fix typo in introduction.
7592
7593 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
7594
7595         * c-common.h (c_common_parse_file): Update.
7596         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7597         * c-lex.c (YYDEBUG): Get from c-lex.h.
7598         (c_common_parse_file): Update.
7599         * c-lex.h (YYDEBUG, yydebug): New.
7600         * c-parse.in (YYDEBUG): Get from c-lex.h.
7601         (c_set_yydebug): Remove.
7602         * c-tree.h (c_set_yydebug): Remove.
7603         * langhooks-def.h (lhd_do_nothing_i): New.
7604         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7605         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7606         * langhooks.c  (lhd_do_nothing_i): New.
7607         (lhd_set_yydebug): Remove.
7608         * langhooks.h (struct lang_hooks): Update.
7609         * toplev.c (set_yydebug): New.
7610         (compile_file): Update call to parse_file hook.
7611         (decode_d_option): Update.
7612 objc:
7613         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7614
7615 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
7616
7617         * loop.c (load_mems): Don't change the interface of called functions.
7618
7619         * calls.c (expand_call): Take current_function_pretend_args_size
7620         into account when setting argblock for sibcalls.
7621
7622 2002-04-24  Matt Hiller  <hiller@redhat.com>
7623
7624         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7625         * c-lex.c: Ditto.
7626
7627         * cpplex.c (skip_line_comment): Process comment one multibyte
7628         character at a time rather than one char at a time, if
7629         appropriate.
7630         (parse_string): Process string one multibyte character at a time
7631         rather than one char at a time, if appropriate.
7632         * c-lex.c (lex_string): Lex and copy multibyte strings
7633         appropriately.
7634         * cpplib.h (cppchar_t): Change to unsigned.
7635
7636 2002-04-24  Richard Henderson  <rth@redhat.com>
7637
7638         PR c/3467
7639         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7640         for c99.
7641
7642 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
7643
7644         * sh.c (sh_va_arg): If argument was passed by reference,
7645         dereference the pointer.
7646
7647         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7648
7649         * sh.md (divsi3_i4_media): Use match_operand for input values
7650         rather than hard registers.
7651         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7652         unnecessarily through hard registers.  Keep copies of pseudo
7653         registers outside of the libcall sequence.
7654
7655         * sh.md (casesi_shift_media): Add modes.
7656
7657         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7658         values in memory.
7659
7660 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
7661
7662         * attribs.c (c_common_attribute_table): Move table and handlers
7663         to c-common.c.
7664         (format_attribute_table, lang_attribute_table,
7665         lang_attribute_common): Remove.
7666         (init_attributes): Replace NULL pointers with pointers to the
7667         empty table.
7668         (handle_packed_attribute, handle_nocommon_attribute,
7669         handle_common_attribute, handle_noreturn_attribute,
7670         handle_noinline_attribute, handle_always_inline_attribute,
7671         handle_used_attribute, handle_unused_attribute,
7672         handle_const_attribute, handle_transparent_union_attribute,
7673         handle_constructor_attribute, handle_destructor_attribute,
7674         handle_mode_attribute, handle_section_attribute,
7675         handle_aligned_attribute, handle_weak_attribute,
7676         handle_alias_attribute, handle_visibility_attribute,
7677         handle_no_instrument_function_attribute, handle_malloc_attribute,
7678         handle_no_limit_stack_attribute, handle_pure_attribute,
7679         handle_deprecated_attribute, handle_vector_size_attribute,
7680         vector_size_helper): Move to c-common.c.
7681         * c-common.c (c_common_attribute_table,
7682         handle_packed_attribute, handle_nocommon_attribute,
7683         handle_common_attribute, handle_noreturn_attribute,
7684         handle_noinline_attribute, handle_always_inline_attribute,
7685         handle_used_attribute, handle_unused_attribute,
7686         handle_const_attribute, handle_transparent_union_attribute,
7687         handle_constructor_attribute, handle_destructor_attribute,
7688         handle_mode_attribute, handle_section_attribute,
7689         handle_aligned_attribute, handle_weak_attribute,
7690         handle_alias_attribute, handle_visibility_attribute,
7691         handle_no_instrument_function_attribute, handle_malloc_attribute,
7692         handle_no_limit_stack_attribute, handle_pure_attribute,
7693         handle_deprecated_attribute, handle_vector_size_attribute,
7694         vector_size_helper): Move from attribs.c.
7695         * c-common.h (c_common_attribute_table,
7696         c_common_format_attribute_table): New.
7697         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7698         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7699         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7700         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
7701         (LANG_HOOKS_INITIALIZER): Update.
7702         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
7703         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
7704         * target.h: Update comment.
7705         * tree.c (default_target_attribute_table): Remove.
7706         * tree.h (default_target_attribute_table, format_attribute_table,
7707         lang_attribute_table, lang_attribute_common): Remove.
7708 objc:
7709         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7710         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7711
7712 2002-04-24  Jason Merrill  <jason@redhat.com>
7713
7714         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
7715         * dwarf2out.c (dwarf_attr_name): Support it.
7716         (gen_array_type_die): Emit it.
7717         (lookup_type_die): No special handling for VECTOR_TYPE.
7718         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
7719
7720 2002-04-24  Richard Henderson  <rth@redhat.com>
7721
7722         * config/mips/mips.md (movdi_usd): Renumber.
7723
7724 2002-04-24  David S. Miller  <davem@redhat.com>
7725
7726         PR target/6420
7727         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
7728         32-bit Sparc and current_function_returns_struct is true.
7729
7730 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
7731
7732         * loop.c (canonicalize_condition): Use gen_int_mode.
7733
7734 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
7735
7736         * config/rs6000/altivec.h: Cleanup file.  Add non individual
7737         variants.
7738         (vec_vaddubm): New.
7739         (vec_vadduhm): New.
7740         (vec_vadduwm): New.
7741         (vec_vaddfp): New.
7742         (vec_vaddcuw): New.
7743         (vec_vaddubs): New.
7744         (vec_vaddsbs): New.
7745         (vec_vadduhs): New.
7746         (vec_vadduws): New.
7747         (vec_vaddsws): New.
7748         (vec_vand): New.
7749         (vec_vandc): New.
7750         (vec_vavgub): New.
7751         (vec_vavgsb): New.
7752         (vec_vavguh): New.
7753         (vec_vavgsh): New.
7754         (vec_vavguw): New.
7755         (vec_vavgsw): New.
7756         (vec_vrfip): New.
7757         (vec_vcmpbfp): New.
7758         (vec_vcmpequb): New.
7759         (vec_vcmpequh): New.
7760         (vec_vcmpequw): New.
7761         (vec_vcmpeqfp): New.
7762         (vec_vcmpgefp): New.
7763         (vec_vcmpgtub): New.
7764         (vec_vcmpgtsb): New.
7765         (vec_vcmpgtuh): New.
7766         (vec_vcmpgtsh): New.
7767         (vec_vcmpgtuw): New.
7768         (vec_vcmpgtsw): New.
7769         (vec_vcmpgtfp): New.
7770         (vec_vcmpgefp): New.
7771         (vec_vcfux): New.
7772         (vec_vcfsx): New.
7773         (vec_vctsxs): New.
7774         (vec_vctuxs): New.
7775         (vec_vexptefp): New.
7776         (vec_vrfim): New.
7777         (vec_lvx): New.
7778         (vec_lvebx): New.
7779         (vec_lvehx): New.
7780         (vec_lde): Add vector float variant.
7781         (vec_lvewx): New.
7782         (vec_lvxl): New.
7783         (vec_vlogefp): New.
7784         (vec_vmaddfp): New.
7785         (vec_vmhaddshs): New.
7786         (vec_vmaxub): New.
7787         (vec_vmaxsb): New.
7788         (vec_vmaxuh): New.
7789         (vec_vmaxsh): New.
7790         (vec_vmaxuw): New.
7791         (vec_vmaxsw): New.
7792         (vec_vmaxsw): New.
7793         (vec_vmaxfp): New.
7794         (vec_vmrghb): New.
7795         (vec_vmrghh): New.
7796         (vec_vmrghw): New.
7797         (vec_vmrglb): New.
7798         (vec_vmrglh): New.
7799         (vec_vmrglw): New.
7800         (vec_vminub): New.
7801         (vec_vminsb): New.
7802         (vec_vminuh): New.
7803         (vec_vminsh): New.
7804         (vec_vminuw): New.
7805         (vec_vminsw): New.
7806         (vec_vminfp): New.
7807         (vec_vmladduhm): New.
7808         (vec_vmhraddshs): New.
7809         (vec_msumubm): New.
7810         (vec_vmsummbm): New.
7811         (vec_vmsumuhm): New.
7812         (vec_vmsumshm): New.
7813         (vec_vmsumuhs): New.
7814         (vec_vmsumshs): New.
7815         (vec_vmuleub): New.
7816         (vec_vmulesb): New.
7817         (vec_vmuleuh): New.
7818         (vec_vmulesh): New.
7819         (vec_vmuloub): New.
7820         (vec_mulosb): New.
7821         (vec_vmulouh): New.
7822         (vec_vmulosh): New.
7823         (vec_vnmsubfp): New.
7824         (vec_vnor): New.
7825         (vec_vor): New.
7826         (vec_vpkuhum): New.
7827         (vec_vpkuwum): New.
7828         (vec_vpkpx): New.
7829         (vec_vpkuhus): New.
7830         (vec_vpkshss): New.
7831         (vec_vpkuwus): New.
7832         (vec_vpkswss): New.
7833         (vec_vpkshus): New.
7834         (vec_vpkswus): New.
7835         (vec_vperm): New.
7836         (vec_vrefp): New.
7837         (vec_vrlb): New.
7838         (vec_vrlh): New.
7839         (vec_vrlw): New.
7840         (vec_vrfin): New.
7841         (vec_vrsqrtefp): New.
7842         (vec_vsel): New.
7843         (vec_vslb): New.
7844         (vec_vslh): New.
7845         (vec_vslw): New.
7846         (vec_vsldoi): New.
7847         (vec_vsl): New.
7848         (vec_vslo): New.
7849         (vec_vspltb): New.
7850         (vec_vsplth): New.
7851         (vec_vspltw): New.
7852         (vec_vspltisb): New.
7853         (vec_vspltish): New.
7854         (vec_vspltisw): New.
7855         (vec_vsrb): New.
7856         (vec_vsrh): New.
7857         (vec_vsrw): New.
7858         (vec_vsrab): New.
7859         (vec_vsrah): New.
7860         (vec_vsraw): New.
7861         (vec_vsr): New.
7862         (vec_vsro): New.
7863         (vec_stvx): New.
7864         (vec_stvebx): New.
7865         (vec_stvehx): New.
7866         (vec_stvewx): New.
7867         (vec_stvxl): New.
7868         (vec_vsububm): New.
7869         (vec_vsubuhm): New.
7870         (vec_vsubuwm): New.
7871         (vec_vsubfp): New.
7872         (vec_vsubcuw): New.
7873         (vec_vsububs): New.
7874         (vec_vsubsbs): New.
7875         (vec_vsubuhs): New.
7876         (vec_vsubshs): New.
7877         (vec_vsubuws): New.
7878         (vec_vsubsws): New.
7879         (vec_vsum4ubs): New.
7880         (vec_vsum4sbs): New.
7881         (vec_vsum4shs): New.
7882         (vec_vsum2sws): New.
7883         (vec_vsumsws): New.
7884         (vec_vrfiz): New.
7885         (vec_vupkhsb): New.
7886         (vec_vupkhpx): New.
7887         (vec_vupkhsh): New.
7888         (vec_vupklsb): New.
7889         (vec_vupklpx): New.
7890         (vec_vupklsh): New.
7891         (vec_vxor): New.
7892
7893 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
7894
7895         PR c/5430
7896         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
7897         added literals from substracted literals.
7898         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
7899         (fold) [associate]: Preserve MINUS_EXPR if needed.
7900
7901 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
7902
7903         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
7904         are obsoleted.
7905
7906 2002-04-23  Tom Tromey  <tromey@redhat.com>
7907
7908         * gcc.c: Added --resource.  For PR java/6314.
7909
7910 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
7911
7912         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
7913         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
7914         these libraries.
7915
7916 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
7917
7918         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
7919
7920 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
7921
7922         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
7923         workaround.
7924         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
7925         (ix86_expand_clrstr): Fix typo.
7926         * loop.c (gen_load_of_final_value): New.
7927         (loop_givs_rescan, strength_reduce, check_dbra_loop):
7928         Use it.
7929
7930 2002-04-23  Roger Sayle  <roger@eyesopen.com>
7931
7932         * builtins.c (builtin_memset_gen_str): New function.
7933         (expand_builtin_memset): Optimize the case of constant length, but
7934         unknown value.
7935
7936 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
7937
7938         * config/rs6000/altivec.h (vec_step): Remove extraneous
7939         parentheses.
7940         (vec_ctu): Cast return.
7941
7942 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
7943
7944         PR target/6413
7945         * function.h: (struct function): Add profile_label_no field.
7946         (current_function_profile_label_no): Define.
7947         * function.c: (profile_label_no): New static var.
7948         (expand_function_start): Increment it, and copy to
7949         current_function_profile_label_no.
7950         * output.h (profile_label_no): Delete.
7951         * final.c (profile_label_no): Delete.
7952         (profile_function): Use current_function_profile_label_no.
7953         (final_end_function): Don't increment profile_label_no here.
7954         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
7955         profile_label_no with current_function_profile_label_no.
7956         * config/pa/pa.c (current_function_number): Delete.
7957         (pa_output_function_prologue): Don't output profile label here.
7958         (hppa_profile_hook): Use label_no param rather than
7959         current_function_number.
7960         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
7961         * config/pa/pa.h: .. here.
7962         (FUNCTION_PROFILER): Output profile label here.
7963
7964 2002-04-22  Eric Christopher  <echristo@redhat.com>
7965
7966         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
7967         patch of 2002-04-09 due to binutils issues.
7968         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
7969
7970 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
7971
7972         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
7973         constraint to 'o' for m=r and r=m alternatives.
7974         ("*movv8hi_internal1"): Same.
7975         ("*movv16qi_internal1"): Same.
7976         ("*movv4sf_internal1"): Same.
7977
7978 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
7979
7980         * rtl.h (RTX_FLAG): New macro.
7981         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
7982         * final.c (alter_subreg): Use macro to access rtx flag.
7983         * integrate.c (copy_rtx_and_substitute): Use new access macro.
7984         * print-rtl.c (print_rtx): Use new access macro.
7985
7986         * cse.c (insert): Check rtx code before accessing flag.
7987
7988         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
7989         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
7990         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
7991         convert_const_symbol_ref, make_canonical, make_alternative_compare,
7992         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
7993         simplify_test_exp, optimize_attrs, simplify_by_exploding,
7994         find_and_mark_used_attributes, unmark_used_attributes,
7995         add_values_to_cover, simplify_with_current_value,
7996         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
7997         copy_rtx_unchanging, main): Use new access macros.
7998
7999 2002-04-22  Tom Rix  <trix@redhat.com>
8000
8001         * expmed.c (init_expmed): Generate shifted constant once.
8002
8003 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
8004
8005         * c-lex.c (lex_charconst): Call convert to get constant in
8006         proper type; don't just smash the type field.
8007         Fixes PR c/6300.
8008
8009         * config.gcc: Add list of obsolete configurations.  Disallow
8010         building these without --enable-obsolete.
8011         * doc/install.texi: Document --enable-obsolete and obsoletion
8012         policy.  Mention obsoletion of individual targets in
8013         appropriate places.
8014
8015 2002-04-22  Richard Henderson  <rth@redhat.com>
8016
8017         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
8018
8019 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
8020
8021         PR f/6138.
8022         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
8023         (walk_fixup_memory_subreg): Likewise.
8024         (fixup_var_refs_insn): Adjust accordingly.
8025         (fixup_var_refs_1): Likewise.
8026
8027 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
8028
8029         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
8030         LIBPATH_ARCH64_SPEC): Define.
8031         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
8032         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
8033         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
8034         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
8035
8036 2002-04-22      Joel Sherrill <joel@OARcorp.com>
8037
8038         * gthr-rtems.h: Correct prototypes to remove warnings.
8039
8040 2002-04-22  Richard Henderson  <rth@redhat.com>
8041
8042         PR c/6344
8043         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
8044
8045         * gcse.c (free_insn_expr_list_list): New.
8046         (clear_modify_mem_tables): Use it.  Fix bit set usage.
8047         (canon_list_insert): Use EXPR_LISTs for expressions.
8048         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
8049
8050 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8051
8052         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
8053         file change and include code to _cpp_pop_buffer.
8054         * cpphash.h (struct pending_option): Predeclare.
8055         (struct cpp_reader): New member next_include_file.
8056         (_cpp_pop_file_buffer): Update.
8057         (_cpp_push_next_buffer): Update, rename.
8058         * cppinit.c (cpp_destroy): Free include chain and pending here.
8059         (cpp_finish_options): Simplify.
8060         (_cpp_push_next_buffer): Rename and clean up.
8061         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
8062         Clarify.
8063         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
8064
8065 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
8066
8067         * config/rs6000/altivec.h (vec_xor): Add variant for both args
8068         being vector signed int.
8069         (vec_andc): Same.
8070         (vec_xor): Add variant for both args being vector signed char.
8071         Remove redundant variant.
8072         (vec_andc): Same.
8073
8074 2002-04-21  David S. Miller  <davem@redhat.com>
8075
8076         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
8077         compare mode in output RTL.
8078
8079 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
8080
8081         * config/rs6000/rs6000.c (rs6000_override_options): Correct
8082         style and formatting of previous patch.
8083
8084 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
8085
8086         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
8087         flag_pic for ABI_AIX.
8088
8089 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8090
8091         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
8092         * cppfiles.c (read_include_file): Similarly.
8093         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
8094         uxstrdup ustrchr, ufputs): Similarly.
8095         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8096         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
8097         cpp_ideq, parse_identifier, parse_number): Similarly.
8098         * cpplib.c (struct directive, dequote_string, D, run_directive,
8099         cpp_push_buffer): Similarly.
8100         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
8101         _cpp_create_definition, check_trad_stringification,
8102         cpp_macro_definition): Similarly.
8103
8104 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8105
8106         * cppmacro.c (funlike_invocation_p): Don't step back
8107         over CPP_EOF.
8108
8109 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
8110
8111         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8112         labelno.
8113
8114 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
8115
8116         * doc/invoke.texi: Remove Chill references.
8117         * doc/gcc.texi: Update last modified date.
8118
8119 2002-04-20  Kazu Hirata  <kazu@hxi.com>
8120
8121         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8122         push and pop.  Replace add.l with add.w.
8123
8124 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
8125
8126         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8127         multiply instructions for H8/300H case.
8128
8129 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
8130
8131         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8132         Bum three instructions from each routine.
8133
8134 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
8135
8136         * Makefile.in: Update.
8137         * decl.c (push_c_function_context, pop_c_function_context,
8138         mark_c_function_context): Rename for consistency.
8139         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8140         * c-tree.h (push_c_function_context, pop_c_function_context,
8141         mark_c_function_context): Rename for consistency.
8142         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8143         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8144         * function.c (init_lang_status, save_lang_status,
8145         restore_lang_status, mark_lang_status, free_lang_status):
8146         Move to langhooks.h.
8147         (push_function_context_to, pop_function_context_from,
8148         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8149         Update.
8150         * function.h (init_lang_status, save_lang_status,
8151         restore_lang_status, mark_lang_status, free_lang_status):
8152         Move to langhooks.h.
8153         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8154         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8155         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8156         LANG_HOOKS_FUNCTION_INITIALIZER): New.
8157         (LANG_HOOKS_INITIALIZER): Update.
8158         (lhd_do_nothing_f): New.
8159         * langhooks.h (struct lang_hooks_for_functions): New.
8160         (struct lang_hooks): New hooks.
8161         * langhooks.c (lhd_do_nothing_f): New.
8162 objc:
8163         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8164         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8165
8166 2002-04-19  David S. Miller  <davem@redhat.com>
8167
8168         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8169         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8170
8171 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
8172
8173         PR optimization/3756
8174         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8175         x = ((int) y < 0) ? cst1 : cst2.
8176
8177 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
8178
8179         PR c/6358
8180         * function.c: Reapply patch for c/6358.
8181         (expand_function_end): Copy decl_rtl's mode, not
8182         current_function_return_rtx mode.
8183
8184 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
8185
8186         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8187         targets.
8188
8189 2002-04-19  Tom Tromey  <tromey@redhat.com>
8190
8191         * doc/install.texi (Specific): Update status of Solaris 2.8.
8192         For PR libgcj/6158.
8193
8194 2002-04-19  Andreas Schwab  <schwab@suse.de>
8195
8196         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8197         (PUT_REAL): Restore old definition.
8198
8199 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
8200             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8201
8202         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8203         binutils 2.11.2 and higher generate smaller binaries than Sun's
8204         native tools.
8205
8206 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
8207
8208         PR c++/6352
8209         * toplev.c (rest_of_compilation): Do not defer functions for which
8210         TREE_SYMBOL_REFERENCED has already been set.
8211
8212 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
8213
8214         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8215         alternative.
8216
8217 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8218
8219         * builtins.c: Include langhooks.h.
8220         (lang_type_promotes_to): Remove.
8221         (expand_builtin_va_arg): Use new hook.
8222         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8223         (simple_type_promotes_to): Move to c-typeck.c.
8224         * c-common.h (simple_type_promotes_to): Remove.
8225         * c-decl.c (duplicate_decls, grokdeclarator): Update.
8226         * c-format.c: Include langhooks.h.
8227         (check_format_types): Update.
8228         * c-tree.h (c_type_promotes_to): New.
8229         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8230         (type_lists_compatible_p): Update.
8231         * langhooks-def.h (lhd_type_promotes_to): New.
8232         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8233         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8234         * langhooks.c (lhd_type_promotes_to): New.
8235         * langhooks.h (struct lang_hooks_for_types): New hook.
8236         * tree.h (lang_type_promotes_to): Remove.
8237 objc:
8238         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8239
8240 2002-04-18  Richard Henderson  <rth@redhat.com>
8241
8242         * function.c: Revert patch for c/6358.
8243
8244 2002-04-18  Richard Henderson  <rth@redhat.com>
8245
8246         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8247         blocks.  Handle multiple references to the TRAP block.  Handle
8248         non-adjacent THEN and OTHER blocks.
8249
8250 2002-04-18  Richard Henderson  <rth@redhat.com>
8251
8252         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8253         crash with no type for by-mode libcalls.
8254
8255         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
8256
8257 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
8258
8259         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8260         __xtensa_nonlocal_goto): Use a syscall instructions to flush
8261         the register windows.
8262
8263 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
8264
8265         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8266         appropriate.  Document need for extended precision even when
8267         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
8268         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
8269         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
8270         instead of relying on later syntax error when REAL_WIDTH > 5.
8271         * real.c: Define NE based only on whether or not we have a
8272         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8273         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
8274         define GET_REAL and PUT_REAL as simple memcpy operations; no
8275         need to byteswap or round.
8276         Use #error instead of #ifdef-ing out the entire file, for
8277         prompt error detection.
8278
8279         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8280
8281 2002-04-18  David S. Miller  <davem@redhat.com>
8282
8283         * config/sparc/sparc.h (BRANCH_COST): Define.
8284
8285         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8286         does it.
8287
8288 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
8289
8290         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8291         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8292         propagate_block calls after relaxation loop using new variable
8293         stabilized_prop_flags.
8294
8295 2002-04-18  Richard Henderson  <rth@redhat.com>
8296
8297         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8298         (ia64_va_arg): Expect variable sized types by reference.
8299         * config/ia64/ia64-protos.h: Update.
8300         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
8301         ia64_function_arg_pass_by_reference.
8302
8303 2002-04-18  Richard Henderson  <rth@redhat.com>
8304
8305         * ifcvt.c: Include except.h.
8306         (block_has_only_trap): Break out from find_cond_trap.
8307         (find_cond_trap): Use it.  Always delete the trap block.
8308         (merge_if_block): Allow then block null.  Be less simplistic about
8309         what insns can end a block.
8310         * Makefile.in (ifcvt.o): Depend on except.h.
8311
8312         * config/ia64/ia64.md (trap, conditional_trap): New.
8313
8314 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
8315
8316         PR c/6358
8317         * function.c (assign_parms): Assign hard current_function_return_rtx
8318         register here...
8319         (expand_function_end): ...not here.
8320
8321 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8322
8323         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8324         * c-tree.h (c_incomplete_type_error): New.
8325         * c-typeck.c (require_complete_type, build_component_ref): Update.
8326         (incomplete_type_error): Rename.
8327         * langhooks-def.h (lhd_incomplete_type_error): New.
8328         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8329         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8330         * langhooks.c (lhd_incomplete_type_error): New.
8331         * langhooks.h (struct lang_hooks_for_types): New hook.
8332         * tree.c (size_in_bytes): Use new hook.
8333         * tree.h (incomplete_type_error): Remove.
8334 objc:
8335         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8336
8337 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
8338
8339         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8340         TARGET_FLOAT_FORMAT blocks.
8341
8342 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8343
8344         * doc/install.texi (Downloading the source): Do not mention Chill
8345         any longer, but mention Ada.
8346         (Configuration): Do not mention Chill any longer.
8347
8348 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
8349
8350         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8351
8352 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
8353
8354         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8355         in last patch.
8356
8357 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
8358
8359         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8360         instead of unsigned_type.
8361
8362 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
8363
8364         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8365         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8366         later.
8367
8368 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
8369
8370         * attribs.c (vector_type_node_list): New static variable.
8371         (handle_vector_size_attribute): Use it to avoid generating a
8372         new type node each time we are called.
8373
8374         * combine.c (subst): Avoid trying to make a vector mode subreg of
8375         an integer constant.
8376         (gen_lowpart_for_combine): Likewise.
8377
8378 2002-04-18  Roger Sayle  <roger@eyesopen.com>
8379             Jakub Jelinek  <jakub@redhat.com>
8380
8381         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8382         for integer constant c (if x has unsigned type or sign bit is not
8383         set in c).  This folds the zero/sign extension into the bit-wise and
8384         operation.
8385
8386 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
8387
8388         PR middle-end/6205
8389         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8390         otherwise xorps.
8391
8392 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
8393
8394         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8395
8396 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
8397
8398         * gcc.c (read_specs): Detect and fail if an attempt is made to
8399         rename a spec string to an already existing string.
8400
8401 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8402
8403         * config/s390/s390.c (legitimize_pic_address): Do not generate
8404         illegal address constant without CONST.
8405
8406 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8407
8408         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8409         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8410
8411 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8412
8413         PR optimization/6305
8414         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8415         to make sure previous reloads are taken into account.  Generate
8416         better code if one operand is an in-range immediate constant.
8417
8418 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
8419
8420         * doc/install.texi (Building): libgcj requires GNU make.
8421
8422 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
8423
8424         PR bootstrap/6315
8425         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8426         even if hard quad and register is not floating.
8427         (movtf reg<-mem split): Disallow splitting if hard quad and
8428         register is floating.
8429         (movtf mem<-reg split): Likewise.
8430         * config/sparc/sparc.c (fp_register_operand): New predicate.
8431         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8432
8433 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
8434
8435         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8436         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8437         (unprotoize.o): Ditto.  Build from protoize.c.  Define
8438         UNPROTOIZE on command line.
8439         * protoize.c: Include cppdefault.h.  Delete include_defaults.
8440         (in_system_include_dir): Use cpp_include_defaults (defined in
8441         cppdefault.o).
8442         * unprotoize.c: Delete file.
8443
8444 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
8445
8446         * config/rs6000/altivec.h (vec_ld): Add array variants.
8447         (vec_lde): Same.
8448         (vec_ldl): Same.
8449
8450 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
8451             Aldy Hernandez <aldyh@redhat.com>
8452
8453         * config/rs6000/altivec.h: Define __ALTIVEC__.
8454         (bool): New.
8455         (__pixel): New.
8456         (pixel): New.
8457         (vec_cfux): New.
8458         (vec_vmaddfp): New.
8459         (vec_vsldoi): New.
8460         Add parentheses to all macro arguments.
8461
8462 2002-04-16  Richard Henderson  <rth@redhat.com>
8463
8464         PR c++/6320
8465         * except.c (remove_eh_handler): Insert inner regions at beginning
8466         of sibling chain.  Refactor expressions.
8467
8468 2002-04-16  Richard Henderson  <rth@redhat.com>
8469
8470         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8471         * config/sparc/sol2-gas-bi.h: New file.
8472         * config.gcc (sparc*-solaris): Add it as needed.
8473         * configure.in (AS_SPARC64_FLAG): Remove check.
8474         * config.in, configure: Regenerate.
8475
8476         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8477
8478 2002-04-16  Richard Henderson  <rth@redhat.com>
8479
8480         * config/mips/mips.c (override_options): Don't override N32 for
8481         a 64-bit ISA.
8482
8483         PR 6202
8484         * config/mips/mips.md (can_delay): Split out of existing define_delays.
8485         (HILO_delay): Set can_delay false.
8486
8487 2002-04-16  Dale Johannesen <dalej@apple.com>
8488
8489         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8490         instruction addresses.
8491         (rs6000_output_function_epilogue): Likewise.
8492
8493 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
8494
8495         * c-parse.in (poplevel, compstmt_start,
8496         compstmt_primary_start): Add ending ';', in accordance
8497         with POSIX.
8498
8499 2002-04-16  Richard Henderson  <rth@redhat.com>
8500
8501         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8502         Adjust tm_file order to get TARGET_DEFAULT set properly.
8503         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8504         * doc/install.texi (sparc-solaris): Update.
8505
8506 2002-04-16  Dale Johannesen <dalej@apple.com>
8507
8508         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8509         comparison operands do not match each other or if modes of
8510         conditions do not match result.
8511
8512 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
8513
8514         PR target/6305
8515         * config/s390/s390.md (mulsidi3): Set both subregs of the
8516         multiword register.
8517
8518 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
8519
8520         * config/rs6000/altivec.h (vec_addc): Type check.
8521
8522 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
8523
8524         PR middle-end/6279
8525         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8526
8527         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8528
8529 2002-04-15  Richard Henderson  <rth@redhat.com>
8530
8531         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8532         call_really_used_regs too.
8533
8534 2002-04-15  Richard Henderson  <rth@redhat.com>
8535
8536         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8537
8538 2002-04-15  David S. Miller  <davem@redhat.com>
8539
8540         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8541         as being CLOBBERed.
8542
8543 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
8544
8545         PR c/6290
8546         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8547         CONST_VECTOR is { 0, ... 0 }.
8548
8549 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
8550
8551         * doc/install.texi (Installing GCC: Configuration): Clarify
8552         the only supported ways to configure gcc.
8553
8554 2002-04-15  Roland McGrath  <roland@frob.com>
8555
8556         * config.gcc (alpha*-*-gnu*): New target configuration.
8557         * config/alpha/gnu.h: New file for it.
8558         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8559
8560 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
8561
8562         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8563         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8564         * tree.h (expand_start_stmt_expr): Update prototype.
8565         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8566         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8567         on the STMT_EXPR created for the inline function.
8568
8569 2002-04-15  Richard Henderson  <rth@redhat.com>
8570
8571         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8572         config/i386/linux-aout.h, config/i386/linux-oldld.h,
8573         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8574         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8575         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8576         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8577         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8578         Define __gnu_linux__, not gnu_linux.
8579         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8580
8581 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
8582
8583         Remove Chill front end.
8584         * gcc.c (default_compilers): Remove Chill entries.
8585         * ch: Remove directory.
8586         * doc/frontends.texi: Remove information about Chill.
8587         * doc/sourcebuild.texi: Likewise.
8588         * doc/standards.texi: Likewise.
8589
8590 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
8591
8592         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8593         (LONGLONG_STANDALONE): Define.
8594
8595 2002-04-15  David S. Miller  <davem@redhat.com>
8596
8597         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8598         Call emit_library_call with LCT_NORMAL.
8599         (sparc_initialize_trampoline): Use LCT_foo instead of
8600         magic constant in emit_library_call invocations.
8601         (sparc64_initialize_trampoline): Likewise.
8602         (sparc_profile_hook): Likewise.
8603         * config/sparc/sparc.md: Likewise.
8604
8605         * config/sparc/sparc.c (sparc_extra_constraint_check):
8606         Fix type of argument 'c'.
8607         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8608         Likewise.
8609
8610 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
8611
8612         * diagnostic.h (output_buffer_state): Redefine.
8613         (output_format_decoder): New macro.
8614         (output_prefixing_rule): Likewise.
8615         (output_line_cutoff): Likewise.
8616         (diagnostic_format_decoder): Adjust.
8617         (diagnostic_prefixing_rule): Likewise.
8618         (diagnostic_line_cutoff): Likewise.
8619         (diagnostic_state): Likewise.
8620         (diagnostic_kind_count): Likewise.
8621         (diagnostic_buffer): Now a macro.
8622
8623         * diagnostic.c (diagnostic_buffer): Remove definition.
8624         (output_is_line_wrapping): Adjust.
8625         (set_real_maximum_length): Likewise.
8626         (output_set_maximum_length): Likewise.
8627         (init_output_buffer): Likewise.
8628         (lhd_print_error_function): Likewise.
8629         (output_do_verbatim): Likewise.
8630
8631 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8632
8633         * cpperror.c (print_location): Don't print include chain
8634         if line == 0.
8635         (cpp_begin_message): Update to use DL_ macros.
8636         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8637         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8638         cpp_notice, cpp_notice_from_errno): Remove.
8639         (cpp_error, cpp_error_with_line): Update to take a diagnostic
8640         level.
8641         (cpp_errno): New.
8642         * cppexp.c (CPP_ICE): Remove.
8643         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8644         lex, integer_overflow, _cpp_parse_expr): Update.
8645         * cppfiles.c (read_include_file, find_include_file,
8646         handle_missing_header, _cpp_read_file, remap_filename): Update.
8647         * cpphash.h (enum error_type): Remove.
8648         (_cpp_begin_message): Update.
8649         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8650         cpp_handle_option, cpp_post_options): Update.
8651         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8652         skip_whitespace, parse_identifier, parse_slow, parse_string,
8653         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8654         cpp_interpret_charconst): Update.
8655         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8656         lex_macro_node, do_undef, glue_header_name, parse_include,
8657         do_include_common, read_flag, do_line, do_linemarker, do_ident,
8658         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8659         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8660         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8661         _cpp_pop_buffer, do_diagnostic): Update.
8662         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8663         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8664         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8665         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8666         cpp_notice, cpp_notice_from_errno): Remove.
8667         (cpp_error, cpp_error_with_line): Update to take a diagnostic
8668         level.
8669         (cpp_errno): New.
8670         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8671         collect_args, enter_macro_context, save_parameter, parse_params,
8672         _cpp_create_definition, check_trad_stringification,
8673         cpp_macro_definition): Update.
8674         * cppmain.c (cpp_preprocess_file): Update.
8675         * fix-header.c (read_scan_file): Update.
8676
8677 2002-04-14  Andreas Schwab  <schwab@suse.de>
8678
8679         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
8680
8681 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
8682
8683         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
8684
8685 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
8686
8687         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
8688         not gnu_hurd.
8689
8690 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
8691
8692         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
8693
8694 2002-04-13      Joel Sherrill <joel@OARcorp.com>
8695
8696         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
8697         sparc-elf and sparc-rtems targets.
8698
8699 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
8700
8701         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
8702         defined, and __gnu_hurd__ wherever __GNU__ is defined.
8703         * arm/linux-elf.h: Likewise.
8704         * cris/aout.h: Likewise.
8705         * cris/linux.h: Likewise.
8706         * i370/linux.h: Likewise.
8707         * i386/gnu.h: Likewise.
8708         * i386/linux-aout.h: Likewise.
8709         * i386/linux-oldld.h: Likewise.
8710         * i386/linux.h: Likewise.
8711         * i386/linux64.h: Likewise.
8712         * ia64/linux.h: Likewise.
8713         * m68k/linux-aout.h: Likewise.
8714         * m68k/linux.h: Likewise.
8715         * mips/linux.h: Likewise.
8716         * pa/pa-linux.h: Likewise.
8717         * pj/linux.h: Likewise.
8718         * rs6000/sysv4.h: Likewise.
8719         * s390/linux.h: Likewise.
8720         * sh/linux.h: Likewise.
8721         * sparc/linux-aout.h: Likewise.
8722         * sparc/linux.h: Likewise.
8723         * sparc/linux64.h: Likewise.
8724         * xtensa/linux.h: Likewise.
8725
8726 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
8727
8728         * stmt.c (check_unique_operand_names): Expect operand names to
8729         be strings rather than identifiers.  Use simple_cst_equal to
8730         compare them.
8731         (resolve_operand_name_1): Make same identifier to string change here.
8732         * c-parse.in (asm_operand): Convert a named operand into a string.
8733         * cp/parse.y (asm_operand): Likewise.
8734
8735 2002-04-13  Andreas Schwab  <schwab@suse.de>
8736
8737         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
8738
8739 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
8740
8741         Revert these changes:
8742
8743         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
8744
8745         PR c++/5571
8746         * stor-layout.c (layout_decl): Reset the RTL for the decl.
8747
8748 2002-04-12  Richard Henderson  <rth@redhat.com>
8749
8750         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
8751         (sparc*-*-solaris): Clean up header files.
8752         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
8753         and plan on generating 64-bit code.
8754         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
8755         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
8756         * config/sparc/sol2-sld-64.h: Rename ...
8757         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
8758         for AS_SPARC64_FLAG not defined.
8759         * config/sparc/sol2-gld-bi.h: New.
8760         * config/sparc/sol2-sld.h: Remove.
8761         * config/sparc/sol26-sld.h: New.
8762         * config/sparc/sol2.h: Tidy comments.
8763         * doc/install.texi: Document sparc-solaris configury changes.
8764
8765 2002-04-12  Richard Henderson  <rth@redhat.com>
8766
8767         * recog.c (offsettable_address_p): Match the logic in adjust_address.
8768
8769         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
8770         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
8771
8772 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8773
8774         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
8775
8776 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
8777
8778         * pa.c (pa_can_combine_p): Call extract_insn before calling
8779         constrain_operands.
8780
8781 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
8782
8783         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
8784         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
8785         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8786         (CPP_PREDEFINES): Handle __declspec.
8787         * config/i386/t-interix (USER_H): Remove.
8788
8789 2002-04-12  DJ Delorie  <dj@redhat.com>
8790
8791         * integrate.c (compare_blocks): Make comparisons safe for when
8792         sizeof(int) < sizeof(char *).
8793         (find_block): Likewise.
8794
8795 2002-04-12  Jan Hubicka  <jh@suse.cz>
8796             David Edelsohn  <edelsohn@gnu.org>
8797
8798         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
8799         registers.
8800         (symbol_ref_operand): New.
8801         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
8802         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
8803
8804 2002-04-12  Andreas Schwab  <schwab@suse.de>
8805
8806         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
8807         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
8808         overrides the definition in config/svr4.h.
8809
8810 2002-04-12      Eric Norum <eric.norum@usask.ca>
8811
8812         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
8813         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
8814         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
8815         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
8816         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
8817         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
8818         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
8819         definitions to config/rtems.h and make the targets more similar.
8820
8821 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8822
8823         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
8824         POINTERS_EXTEND_UNSIGNED.
8825         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
8826         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
8827
8828         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
8829         not specified.
8830
8831 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
8832
8833         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
8834         depends on TARGET_SHMEDIA, not TARGET_SH5.
8835
8836 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
8837
8838         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
8839         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
8840
8841 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
8842
8843         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
8844         no r0 clobber.
8845
8846 2002-04-12  Andreas Schwab  <schwab@suse.de>
8847
8848         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
8849
8850 2002-04-12  Richard Henderson  <rth@redhat.com>
8851
8852         PR bootstrap/4191
8853         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
8854
8855         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
8856         modes spanning multiple hard regs.
8857
8858         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
8859
8860 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8861
8862         * pa.c (pa_output_function_prologue): Don't accumulate the total
8863         number of code bytes when using TARGET_64BIT, or gas, SOM and not
8864         the portable runtime.
8865         (output_deferred_plabels): Handle 64bit plabels.
8866         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
8867         generating pic code using the GAS assembler for object formats that
8868         are not SOM (ie., ELF32 and ELF64).
8869         (output_millicode_call): Check attribute type if attribute length is 28.
8870         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
8871         dbr_sequence_length once.
8872         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
8873         dbr_sequence_length once.
8874         * pa.h (TARGET_SOM): Define if not defined.
8875         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
8876         with GAS and not SOM.
8877         (jump, call_internal_reg, call_value_internal_reg): Likewise.
8878         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
8879
8880 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
8881
8882         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
8883         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
8884         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
8885         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
8886         elfos.h and dbxelf.h values are fine now.
8887         * config/i386/freebsd.h, config/alpha/freebsd.h
8888         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
8889
8890 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
8891
8892         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
8893         or set Acpu or Amachine.  Reformat.
8894         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8895         define.
8896         (LINK_SPEC): Do not need to undef.
8897         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
8898         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
8899         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8900         define.
8901         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
8902         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
8903         (LINK_SPEC): Do not need to undef.
8904         (DONT_USE_BUILTIN_SETJMP): Do not define.
8905         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
8906         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
8907         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
8908         Remove trailing spaces.
8909         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
8910         __ELF__, or set Acpu or Amachine.  Reformat.
8911         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8912         define.
8913
8914 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
8915
8916         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
8917         all other *-*-freebsd* targets.
8918
8919 2002-04-11  Richard Henderson  <rth@redhat.com>
8920
8921         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
8922
8923 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
8924
8925         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
8926         Include {cpu}/{cpu}.h thru tm_file.
8927         (alpha*-*-linux*ecoff): Remove target.
8928         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
8929         (LINK_SPEC): Remove, is not OS independent.
8930         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
8931         (LINK_SPEC): Do not need to #undef any longer.
8932         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
8933         any longer.
8934         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
8935         __ELF__.
8936         (LINK_SPEC): Moved here from alpha/elf.h.
8937         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
8938         SUB_CPP_PREDEFINES.
8939         * config/alpha/linux-ecoff.h: Remove.
8940         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
8941         (CPP_SPEC): Define _POSIX_SOURCE as needed.
8942         (CPP_SUBTARGET_SPEC): Do not define.
8943         (LINK_SPEC): Do not need to #undef any longer.
8944         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
8945         * config/alpha/vms.h: Likewise.
8946
8947 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
8948
8949         * doc/extend.texi: Remove old claim that typedefs cannot have
8950         an alignment attribute.
8951
8952 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
8953
8954         PR optimization/6177
8955         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
8956         bitpos is 0 and bitsize CONCAT size.
8957
8958 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
8959
8960         PR c/6223
8961         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
8962
8963 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
8964
8965         * config/alpha/freebsd.h: Minor reformatting.
8966         (CPP_SPEC): Define ELF and add cpp_subtarget.
8967         (ASM_SPEC): No longer needed.
8968
8969 2002-04-11  Richard Henderson  <rth@redhat.com>
8970
8971         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
8972         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
8973         (dimode mem/zero splitter): New.
8974
8975 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
8976
8977         * config/cris/cris.c (cris_override_options): Tweak error message
8978         for PIC not implemented.
8979
8980         * config/cris/cris.h: Tweak comments related to parameter-passing.
8981
8982         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
8983
8984 2002-04-10  Richard Henderson  <rth@redhat.com>
8985
8986         * except.c (add_ehl_entry): Allow duplicates after landing pad
8987         creation.
8988
8989 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
8990
8991         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
8992
8993 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
8994
8995         * c-decl.c (c_init_decl_processing): Move generation of
8996         decls for g77_integer_type_node and friends from here ...
8997         * c-common.c (c_common_nodes_and_builtins): ... to here.
8998
8999 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
9000
9001         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
9002         is only used as frame pointer when frame_pointer_needed is true.
9003
9004 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
9005
9006         PR target/817
9007         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
9008         for the fact that the pool entry uses two words.
9009         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
9010         1k bytes.
9011         (movdf_soft_insn): Similarly.
9012         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
9013         for the fact that the pool entry uses three words.
9014
9015 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
9016
9017         * config/mips/mips.c (mips_va_arg): When using the struct version
9018         of the EABI va_list, allow arguments in the register save area to
9019         take up less room than a stack argument.
9020
9021 2002-04-10  Richard Henderson  <rth@redhat.com>
9022
9023         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
9024         if EXPAND_INITIALIZER.
9025
9026 2002-04-09  Richard Henderson  <rth@redhat.com>
9027
9028         * config/alpha/alpha.md (movdi_er_maybe_g): New.
9029         * config/alpha/alpha.c (alpha_expand_mov): Use it.
9030
9031 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
9032
9033         PR optimization/6233
9034         * rtlanal.c (pure_call_p): New function.
9035         * rtl.h (pure_call_p): Declare.
9036         * loop.c (prescan_loop): Use it to set has_nonconst_call.
9037         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
9038
9039 2002-04-09  Eric Christopher  <echristo@redhat.com>
9040
9041         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
9042         information to .comm directive.
9043
9044 2002-04-09  Richard Henderson  <rth@redhat.com>
9045
9046         PR c/5078
9047         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
9048
9049 2002-04-09  Richard Henderson  <rth@redhat.com>
9050
9051         * basic-block.h (flow_delete_block_noexpunge): Declare.
9052         (expunge_block_nocompact): Declare.
9053         * cfg.c (expunge_block_nocompact): Split out from ...
9054         (expunge_block): ... here.
9055         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
9056         (flow_delete_block_noexpunge): Split out from ...
9057         (flow_delete_block): ... here.
9058         * cfgcleanup.c (delete_unreachable_blocks): Compact while
9059         removing dead blocks.
9060         * except.c (exception_handler_labels): Remove.
9061         (exception_handler_label_map): New.
9062         (struct eh_region): Add aka member.
9063         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
9064         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
9065         (for_each_eh_label, for_each_eh_label_1): New.
9066         (init_eh): Register exception_handler_label_map.
9067         (free_eh_status): Use free_region.
9068         (find_exception_handler_labels): Use the map, not the list.
9069         (remove_exception_handler_label): Likewise.
9070         (maybe_remove_eh_handler): Likewise.
9071         (remove_eh_handler): Use the region aka bitmap.
9072         * except.h (exception_handler_labels): Remove.
9073         (for_each_eh_label): Declare.
9074         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
9075         * loop.c (invalidate_loops_containing_label): New.
9076         (find_and_verify_loops): Use it.  Use for_each_eh_label.
9077         * sched-rgn.c (is_cfg_nonregular): Use
9078         current_function_has_exception_handlers.
9079
9080 2002-04-09  Richard Henderson  <rth@redhat.com>
9081
9082         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
9083         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
9084         Do not return changed status.
9085         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
9086         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
9087         New functions that do return changed status.
9088         * sbitmap.h: Update decls.
9089         * gcse.c, lcm.c: Use _cg functions as needed.
9090
9091 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
9092
9093         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
9094         (sh64-*-elf*, sh-*-rtemself*): Likewise.
9095         * config/sh/embed_bb.c: New file.
9096         * config/sh/embed-elf.h: New file.
9097         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
9098         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
9099         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9100         __PTRDIFF_TYPE__ .
9101         (SUBTARGET_CPP_PTR_SPEC): Don't define.
9102         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
9103         Add subtarget_asm_endian_spec.
9104         (ASM_SPEC): Use subtarget_asm_endian_spec.
9105         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
9106         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
9107         (WCHAR_UNSIGNED): Define.
9108         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
9109         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9110         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9111         Fix value.
9112         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9113         (sh_adjust_cost): Likewise.
9114         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9115         __PTRDIFF_TYPE__ .
9116         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9117         (WCHAR_TYPE_SIZE): Likewise.
9118         (ASM_SPEC): Use subtarget_asm_endian_spec.
9119         (SH_ELF_WCHAR_TYPE): #undef/ #define.
9120         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9121         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9122         (MAX_WCHAR_TYPE_SIZE): Don't #define .
9123         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9124         (USER_LABEL_PREFIX): Don't #undef /#define .
9125         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9126         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9127         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9128         (ASM_SPEC): Likewise.
9129         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9130         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9131         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9132         (LIB2FUNCS_EXTRA): Define.
9133         * t-sh64 (LIB2FUNCS_EXTRA): Define.
9134         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9135         (LIB1ASMFUNCS_CACHE): Define.
9136         (LIB2FUNCS_EXTRA): Redefine empty.
9137
9138 2002-04-08  Richard Henderson  <rth@redhat.com>
9139
9140         * reorg.c (get_branch_condition): Use reversed_comparison_code.
9141
9142 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9143
9144         * config/m68hc11/larith.asm (__map_data_section): Fix condition
9145         and optimize for size.
9146         (__do_global_ctors): Fix pointer comparison.
9147         (__do_global_dtors): Likewise.
9148
9149 2002-04-09  David S. Miller  <davem@redhat.com>
9150
9151         * config/sparc/sparc.c (sparc_extra_constraint_check): New
9152         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
9153         allow reloading pseudos.
9154         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9155         * config/sparc/sparc-protos.h: Declare it.
9156
9157         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9158         unsigned comparison warning.
9159         (output_restore_regs): Mark leaf_function as unused.
9160
9161 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9162
9163         * expr.c (is_aligning_offset): New function.
9164         (expand_expr, case COMPONENT_EXPR): Call it.
9165
9166 2002-04-08  David S. Miller  <davem@redhat.com>
9167
9168         PR target/6082
9169         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9170
9171         Make init_priority work on Sparc when using GNU ld.
9172         * config/sparc/linux.h, config/sparc/linux64.h,
9173         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9174         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9175         * config/sparc/sol2-gld.h: New file to do the same.
9176         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9177         sparc/sol2-gld.h to tm_file.
9178
9179         PR optimization/4328
9180         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9181         * doc/md.texi: Document it.
9182         * config/sparc/sparc.md (movdi_insn_sp64_novis,
9183         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9184         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9185         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9186         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9187
9188 2002-04-08  Andreas Jaeger  <aj@suse.de>
9189
9190         * stmt.c (expand_asm_operands): Revert last patch from Richard
9191         Henderson.
9192
9193 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9194
9195         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9196         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
9197
9198 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9199
9200         * doc/contrib.texi (Contributors): Add David O'Brien.
9201
9202 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
9203
9204         * configure.in (auto-build.h): Use target_alias and build_alias
9205         when running configure.
9206         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9207         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9208         * configure: Regenerate.
9209
9210 2002-04-07  David S. Miller  <davem@redhat.com>
9211
9212         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9213
9214 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9215
9216         PR 5933
9217         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9218         generating 32-bit pic code.
9219
9220 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
9221
9222         * cppinit.c (cpp_create_reader): Initialize
9223         discard_comments_in_macro_exp.
9224         (COMMAND_LINE_OPTIONS): Add "-CC" option.
9225         (cpp_handle_option): Handle "-CC" option.
9226         * cpplex.c (save_comment): If saving a C++ comment in
9227         a directive, convert it to a C comment.
9228         (_cpp_lex_direct): Pass second comment start character to
9229         save_comment to indicate comment type.
9230         * cpplib.c (_cpp_handle_directive): If processing
9231         a "#define" directive and discard_comments_in_macro_exp
9232         is false,  re-enable saving of comments.
9233         (lex_macro_node): If discard_comments_in_macro_exp is false,
9234         discard any comments before the macro identifier.
9235         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9236         member.
9237         * cppmacro.c (cpp_get_token): If expanding a macro while
9238         processing a directive, discard any comments we might encounter.
9239         (parse_params): If discard_comments_in_macro_exp is false,
9240         ignore comments in the macro parameter list.
9241         * gcc.c (cpp_unique_options): Add "-CC" option.
9242         (option_map): Map "--comments-in-macros" to "-CC".
9243         * doc/cppopts.texi: Document "-CC" option.
9244         * f/lang-specs.h: Add "-CC" option.
9245         * testsuite/gcc.dg/cpp/maccom1.c: New test.
9246         * testsuite/gcc.dg/cpp/maccom2.c: New test.
9247         * testsuite/gcc.dg/cpp/maccom3.c: New test.
9248         * testsuite/gcc.dg/cpp/maccom4.c: New test.
9249         * testsuite/gcc.dg/cpp/maccom5.c: New test.
9250         * testsuite/gcc.dg/cpp/maccom6.c: New test.
9251
9252 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9253
9254         PR middle-end/6180
9255         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9256
9257 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
9258
9259         PR c++/5571
9260         * stor-layout.c (layout_decl): Reset the RTL for the decl.
9261
9262         PR opt/5120
9263         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9264         RTX_UNCHANGING_P for the functions arguments when a tail call
9265         is made.
9266
9267 2002-04-06  Jason Merrill  <jason@redhat.com>
9268
9269         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9270         (parse_options_and_default_flags): Set them appropriately.
9271         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9272
9273 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
9274
9275         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9276         here.
9277
9278         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9279         semicolon.
9280
9281         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9282         types come in by-reference.  Fix typo in comment.
9283
9284 2002-04-05  David S. Miller  <davem@redhat.com>
9285
9286         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9287         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9288         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9289         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9290
9291 2002-04-05  David S. Miller  <davem@redhat.com>
9292
9293         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9294         are not going to emit return instructions, emit at least a nop
9295         for the sake of sane backtraces.
9296
9297 2002-04-05  Richard Henderson  <rth@redhat.com>
9298
9299         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9300
9301 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
9302
9303         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9304
9305 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
9306
9307         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9308         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9309         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9310
9311 2002-04-05  Andreas Schwab  <schwab@suse.de>
9312
9313         * c-convert.c: Include c-common.h.
9314         * Makefile.in (c-convert.o): Updated.
9315
9316 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
9317
9318         * mklibgcc.in: Use separate libgcc.map for each multilib.
9319         * Makefile.in (distclean): Don't remove libgcc.map here.
9320
9321 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
9322
9323         * Makefile.in (s-mlib): Handle --disable-multilib by separate
9324         genmultilib invocation.
9325
9326 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
9327
9328         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9329         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
9330         to num_gprs for symmetry.
9331         * config/mips/mips.c: Adjust accordingly.
9332
9333 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9334
9335         * c-common.c (truthvalue_conversion): Rename, update.
9336         * c-common.h (c_common_truthvalue_conversion): New.
9337         * c-convert.c (convert): Update.
9338         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9339         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9340         * c-typeck.c (build_binary_op, build_unary_op,
9341         build_conditional_expr): Update.
9342         * fold-const.c (constant_boolean_node, fold): Use langhook.
9343         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9344         * langhooks.h (struct lang_hooks): New hook.
9345         * stmt.c (expand_decl_cleanup): Use langhook.
9346         * tree.h (truthvalue_conversion): Remove.
9347 objc:
9348         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9349
9350 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
9351
9352         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9353         Add rules to make null object file.
9354
9355 2002-04-04  Jim Blandy  <jimb@redhat.com>
9356
9357         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9358         macro formal parameter names.
9359
9360 2002-04-04  David S. Miller  <davem@redhat.com>
9361
9362         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9363
9364 2002-04-04  Richard Henderson  <rth@redhat.com>
9365
9366         PR middle-end/5099
9367         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9368         Support copies into and out of memory.  Don't accept allows_reg
9369         and allows_mem as gospel.
9370
9371 2002-04-04  Richard Henderson  <rth@redhat.com>
9372
9373         PR opt/6165
9374         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9375         (write_dependence_p): Likewise.
9376
9377 2002-04-04  Richard Henderson  <rth@redhat.com>
9378
9379         * predict.c (estimate_bb_frequencies): Do frequency calculation
9380         with a volatile temporary.
9381
9382 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
9383
9384         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9385
9386 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9387
9388         PR c++/6119
9389         * final.c (final_start_function): Don't bump profile_label_no here...
9390         (final_end_function): ...but here.
9391
9392 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9393
9394         * config/sparc/sparc.md (pic): New attribute.
9395         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9396         into stack slots.
9397         (split after do_builtin_setjmp_setup): New.
9398
9399 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9400
9401         PR fortran/6106
9402         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9403         change.
9404
9405 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9406
9407         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9408         UNITS_PER_WORD for zero sized aggregates.
9409
9410 2002-04-03  David S. Miller  <davem@redhat.com>
9411
9412         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9413         one-character spec for this, just use %(link_gcc_c_sequence).
9414
9415 2002-04-03  David S. Miller  <davem@redhat.com>
9416
9417         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9418         handling.
9419
9420 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9421
9422         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9423         (DWARF_FRAME_RETURN_COLUMN): Move.
9424         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9425         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9426         * pa.c (except.h, predict.h): Include.
9427         (FRP): Delete.
9428         (store_reg_modify, set_reg_plus_d): Revise prototypes.
9429         (output_ascii): Add cast.
9430         (store_reg_modify): Revise to add frame notes.
9431         (set_reg_plus_d): Likewise.
9432         (compute_frame_size): Include space for eh data registers in frame if
9433         the current function calls eh_return.
9434         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
9435         function calls eh_return.  Save eh data registers if the current
9436         function calls eh_return.  Fix code to add frame notes.  Emit
9437         blockage to prevent insns with frame notes being scheduled in the
9438         delay slot of calls.
9439         (hppa_expand_epilogue): Restore eh data registers and do final stack
9440         adjustment if the current function calls eh_return.  Don't add frame
9441         notes.
9442         (output_call): Revise for change in length of call insn.  Don't do
9443         return pointer adjustment for an unconditional jump in the delay slot
9444         of a call when using frame notes.
9445         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9446         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9447         (ARG_POINTER_CFA_OFFSET): Define.
9448         * pa.md (return_external_pic): New pattern.
9449         (prologue): Correct formatting.  Use return_external_pic if current
9450         function calls eh_return.
9451         (call_internal_symref, call_value_internal_symref,
9452         sibcall_internal_symref, sibcall_value_internal_symref): Change default
9453         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9454         respectively.
9455         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9456
9457         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9458         list of targets to check using "nop" insn.
9459         * configure: Rebuilt.
9460
9461 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
9462
9463         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9464
9465 2002-04-03  David S. Miller  <davem@redhat.com>
9466
9467         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9468         library sequence passed to the linker.
9469         (LINK_COMMAND_SPEC): Use it.
9470         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9471         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9472         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9473
9474 2002-04-03  Jason Merrill  <jason@redhat.com>
9475
9476         * except.c (struct eh_status): Remove protect_list.
9477         (begin_protect_partials, end_protect_partials): Remove.
9478         (add_partial_entry): Remove.
9479         * except.h: Remove prototypes.
9480
9481         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9482         expand_decl_cleanup_eh.
9483
9484         PR c++/5636
9485         * tree.h (CLEANUP_EH_ONLY): New macro.
9486         * stmt.c (expand_decl_cleanup_eh): New fn.
9487         (expand_cleanups): Check CLEANUP_EH_ONLY.
9488         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9489         Use expand_decl_cleanup_eh.
9490         (expand_stmt): Adjust.
9491         * c-common.h: Adjust prototype.
9492
9493 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
9494
9495         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9496         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9497         (cris_target_asm_function_epilogue): Ditto.
9498         (cris_initial_frame_pointer_offset): Ditto.
9499         (cris_simple_epilogue): Ditto.
9500         (cris_expand_builtin_va_arg): Variable-size types come in
9501         by-reference.
9502
9503 2002-04-03  David S. Miller  <davem@redhat.com>
9504
9505         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9506         little-endian.
9507         (set_fast_math): Correct 'fsr' type.
9508
9509 2002-04-03  Richard Henderson  <rth@redhat.com>
9510
9511         PR opt/3569
9512         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9513         * toplev.c (check_global_declarations): Use it.
9514         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9515         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9516         (LANG_HOOKS_DECLS): Add it.
9517         * langhooks.c (lhd_warn_unused_global_decl): New.
9518         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9519         * c-objc-common.c (c_warn_unused_global_decl): New.
9520         * c-tree.h (c_warn_unused_global_decl): Declare.
9521         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9522
9523 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
9524
9525         * langhooks-def.h (lhd_set_decl_assembler_name,
9526         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9527         (LANG_HOOKS_INITIALIZER): Update.
9528         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9529         * langhooks.h (struct lang_hooks): New hook.
9530         * tree.c (set_decl_assembler_name): Move to langhooks.c.
9531         (lang_set_decl_assembler_name): Remove.
9532         (init_obstacks): Don't set hook.
9533         (decl_assembler_name): New function.
9534         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9535         (decl_assembler_name): New.
9536         (lang_set_decl_assembler_name): Remove.
9537
9538 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
9539
9540         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9541         works properly with .hidden symbols.
9542         * configure: Rebuilt.
9543         * config.in: Rebuilt.
9544         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9545         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9546         properly with .hidden symbols.
9547
9548 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
9549
9550         PR middle-end/6102
9551         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9552         USE argument.
9553
9554 2002-04-03  Richard Henderson  <rth@redhat.com>
9555
9556         PR opt/4120
9557         * sched-rgn.c (sets_likely_spilled): New.
9558         (sets_likely_spilled_1): New.
9559         (add_branch_dependences): Use it.
9560
9561 2002-04-02  Richard Henderson  <rth@redhat.com>
9562
9563         PR opt/4311
9564         * loop.h (LOOP_FIRST_PASS): New.
9565         * loop.c (strength_reduce): Mind it when deciding to unroll.
9566         * toplev.c (rest_of_compilation): Set it.
9567
9568 2002-04-02  David S. Miller  <davem@redhat.com>
9569
9570         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9571         mems_ok_for_ldd_peep when the order of the loads being examined
9572         is reversed.
9573         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9574         existing comment to increase comprehension of this situation.
9575
9576 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
9577
9578         * config/sh/sh.md: Don't use union real_extract.
9579
9580 2002-04-02  Richard Henderson  <rth@redhat.com>
9581
9582         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9583
9584 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
9585
9586         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9587         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9588         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9589         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9590         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9591         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9592         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9593         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9594         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9595         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9596         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9597         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9598         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9599         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9600         Include as many configury headers via tm_file as possible.  This
9601         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9602         * config/openbsd-oldgas.h: New file.
9603         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9604         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9605         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9606         config/i386/i386-coff.h, config/i386/i386-interix.h,
9607         config/i386/iscdbx.h, config/i386/linux-aout.h,
9608         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9609         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9610         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9611         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9612         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9613         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9614         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9615         config/i386/vxi386.h: Do not directly include configury headers.
9616         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9617         Directly include configury headers that are no longer automatically
9618         included by the above headers.
9619         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9620         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9621         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9622         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9623         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9624         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9625         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9626         (TARGET_VERSION): Define.
9627         * config/i386/beos-elf.h, config/i386/freebsd.h,
9628         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9629         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9630         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9631         config/i386/sco5.h, config/i386/sysv4.h
9632         (TARGET_VERSION): Do not need to protect.
9633         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9634         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9635         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9636         config/i386/i386-interix.h, config/i386/linux-aout.h,
9637         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9638         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9639         (YES_UNDERSCORES): Do not define - not needed.
9640         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9641         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9642         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9643         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9644         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9645         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9646         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9647         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9648
9649 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
9650             Richard Henderson  <rth@redhat.com>
9651
9652         PR c/5484
9653         * function.c (assign_temp): Accept either type or decl argument.
9654         Detect variables whose size is too large to fit into an integer.
9655         * stmt.c (expand_decl): Pass the decl, not the type.
9656
9657 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
9658
9659         * protoize.c: Match include directory usage with cppdefault.c.
9660
9661 2002-04-03  Jeffrey A Law  (law@redhat.com)
9662             Hans-Peter Nilsson  <hp@bitrange.com>
9663
9664         * combine.c (simplify_comparison): Avoid narrowing a comparison
9665         with a paradoxical subreg when doing so would drop signficant bits.
9666
9667 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
9668
9669         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9670         if POINTERS_EXTEND_UNSIGNED is defined.
9671
9672 2002-04-02  Richard Henderson  <rth@redhat.com>
9673
9674         PR opt/3967
9675         * local-alloc.c (contains_replace_regs): LO_SUM may contain
9676         replace regs.
9677
9678 2002-04-02  Richard Henderson  <rth@redhat.com>
9679
9680         * doc/standards.texi: Document required freestanding libc entry points.
9681
9682 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
9683
9684         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
9685         associated splitter.  Remove MQ constraint.
9686         (ctrdi_internal4): Correct CCmode clobber.
9687
9688 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9689
9690         * milli64.S ($$dyncall): New function.
9691         * t-linux (LIB1ASMFUNCS): Revise module list.
9692         (LIB1ASMSRC): Use pa/milli64.S.
9693
9694 2002-04-02  Richard Henderson  <rth@redhat.com>
9695
9696         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
9697         rename solaris_sys_varargs_h.
9698
9699 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9700
9701         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
9702         the same mode as its component.
9703
9704 2002-04-02  Richard Henderson  <rth@redhat.com>
9705
9706         PR opt/190
9707         * final.c (this_is_asm_operands): Export.
9708         * output.h (this_is_asm_operands): Declare.
9709         * config/i386/i386.c (print_operand): Error odd asm operands.
9710
9711 2002-04-02  Richard Henderson  <rth@redhat.com>
9712
9713         PR opt/420
9714         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
9715
9716 2002-04-01  Richard Henderson  <rth@redhat.com>
9717
9718         PR target/1538
9719         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
9720         * fixinc/fixincl.x: Rebuild.
9721
9722 2002-04-01  Richard Henderson  <rth@redhat.com>
9723
9724         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
9725         (atomic_alloc, atomic_free): New.
9726         (SIZE, MASK_FOR, PTR_IN): New.
9727         (emergency_reg_state, emergency_reg_state_free): New.
9728         (emergency_labeled_state, emergency_labeled_state_free): New.
9729         (reg_state_alloced, labeled_state_alloced): New.
9730         (alloc_reg_state, free_reg_state): New.
9731         (alloc_label_state, free_label_state, free_label_states): New.
9732         (push, pop, dup_state_stack, free_state_stack): Use them.
9733         (desc_label_state): Likewise.
9734         (uw_frame_state_for): Free label states and state stack.
9735         (uw_update_reg_address): Eliminate warnings.
9736
9737 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
9738
9739         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9740         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
9741
9742 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
9743
9744         * c-decl.c (grokdeclarator): Update.
9745         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9746         * c-tree.h (c_mark_addressable): New.
9747         * c-typeck.c (default_function_array_conversion, build_unary_op,
9748         build_array_ref, convert_for_assignment): Update.
9749         (mark_addressable): Rename.
9750         * calls.c (try_to_integrate, expand_call): Use langhook.
9751         * expr.c (expand_expr): Use langhook.
9752         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
9753         * langhooks.h (struct lang_hooks): New hook.
9754         * stmt.c (expand_asm_operands): Use langhook.
9755         * tree.h (mark_addressable): Remove.
9756 objc:
9757         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9758
9759 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
9760
9761         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
9762         in previous change.
9763
9764 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
9765
9766         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
9767         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
9768
9769 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
9770
9771         * c-common.c (unsigned_conversion_warning, convert_and_check,
9772         unsigned_type, signed_type, shorten_compare,
9773         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
9774         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
9775         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
9776         New.
9777         * c-decl.c (grokdeclarator): Update.
9778         * c-format.c (check_format_types): Update.
9779         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9780         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9781         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
9782         * convert.c (convert_to_integer): Use new hooks.
9783         * expmed.c (make_tree): Use new hooks.
9784         * expr.c (store_expr): Use new hooks.
9785         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
9786         all_ones_mask_p, unextend, fold): Use new hooks.
9787         * langhooks.h (struct lang_hooks_for_types): New hooks.
9788         * tree.h (signed_or_unsigned_type, signed_type,
9789         unsigned_type): Remove.
9790 objc:
9791         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9792         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9793
9794 2002-03-31  Richard Henderson  <rth@redhat.com>
9795
9796         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
9797         (desc_frgr_mem): Fix reference to f16-f31.
9798
9799 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9800
9801         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
9802         RTVEC_ELT): Const-ify.
9803         * varray.h (VARRAY_CHECK): Const-ify.
9804         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
9805         ggc_mark_rtvec, ggc_mark): Const-ify.
9806
9807 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
9808
9809         * diagnostic.c: Include langhooks-def.h.
9810         * Makefile.in (diagnostic.o): Update.
9811
9812 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
9813
9814         * c-common.c (c_unsafe_for_reeval): Rename.
9815         * c-common.h (c_unsafe_for_reeval): Rename.
9816         * c-decl.c (finish_incomplete_decl): Rename.
9817         (c_init_decl_processing): Don't set langhook.
9818         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9819         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9820         * c-objc-common.c (c_objc_common_init): Don't set langhook.
9821         * c-tree.h (finish_incomplete_decl): Rename.
9822         * langhooks-def.h (lhd_unsafe_for_reeval): New.
9823         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
9824         (LANG_HOOKS_INITIALIZER): Update.
9825         * langhooks.c (lhd_unsafe_For_reeval): New.
9826         * langhooks.h (struct langhooks): New hooks.
9827         * toplev.c (incomplete_decl_finalize_hook): Remove.
9828         (wrapup_global_declarations): Update.
9829         * tree.c (lang_unsafe_for_reeval): Remove.
9830         (unsafe_for_reeval): Update.
9831         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
9832         Remove.
9833 objc:
9834         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9835         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9836
9837 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
9838
9839         * diagnostic.c (print_error_function): Remove.
9840         (default_print_error_function): Rename.
9841         (report_error_function): Update.
9842         * diagnostic.h (print_error_function): Remove.
9843         (default_print_error_function): Remove.
9844         * langhooks-def.h (struct diagnostic_context): Predeclare.
9845         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
9846         (LANG_HOOKS_INITIALIZER): Update.
9847         * langhooks.h (struct diagnostic context): Predeclare.
9848         (struct lang_hooks): New hook.
9849
9850 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9851
9852         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
9853         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
9854         !flag_pic.
9855         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
9856         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
9857         of PIC_OFFSET_TABLE_REGNUM thruout.
9858         * config/rs6000/rs6000.md: Likewise.
9859         * config/rs6000/darwin.h: Likewise.
9860
9861 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9862
9863         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
9864         unsigned HOST_WIDE_INT, not unsigned int.
9865
9866 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
9867
9868         PR middle-end/6096, middle-end/6098, middle-end/6099
9869         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
9870         CODE_LABELs.
9871         (fill_slots_from_thread): Likewise.
9872
9873 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
9874
9875         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
9876         floating fields in float regs.
9877         (function_arg_record_value_2): Likewise.
9878
9879 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
9880
9881         * config/mmix/mmix.md (define_constants): Remove misleading
9882         FIXME.  Add MMIX_fp_rO_OFFSET.
9883         ("nonlocal_goto_receiver"): Don't have stack-frame address of
9884         saved rO as part of the pattern.  Remove FIXME.
9885         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
9886         here, at output-time.
9887
9888 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
9889
9890         PR middle-end/6100
9891         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
9892         REG_BR_PRED.
9893         (output_v9branch): Likewise.
9894
9895 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
9896
9897         * gcc.c: Revert previous patch for now.
9898         * config/i386/djgpp.h: Likewise.
9899
9900 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
9901
9902         * config/mmix/crti.asm (_init): Register _fini with atexit.
9903         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
9904
9905 2002-03-31  Richard Henderson  <rth@redhat.com>
9906
9907         PR target/3997
9908         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
9909         (ASM_OUTPUT_DEF_FROM_DECLS): New.
9910
9911 2002-03-31  Richard Henderson  <rth@redhat.com>
9912
9913         * libgcc2.c (__bb_exit_func): Make static.
9914
9915         * config/alpha/alpha.md (trap): New.
9916
9917 2002-03-31  Richard Henderson  <rth@redhat.com>
9918
9919         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
9920         promoted argument types; build trap.
9921         (expand_builtin_trap): New.
9922         (expand_builtin): Use it.
9923         * stmt.c (expand_nl_goto_receivers): Likewise.
9924         * expr.h (expand_builtin_trap): Declare.
9925         * libfuncs.h (LTI_abort, abort_libfunc): New.
9926         * optabs.c (init_optabs): Init abort_libfunc.
9927
9928 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
9929
9930         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
9931         (LINK_COMMAND_SPEC): ... from here.
9932         (init_gcc_specs): Duplicate it here too, omitting
9933         shared_name in the second copy.
9934         (init_spec): Test for duplicate
9935         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
9936
9937 2002-03-30  David S. Miller  <davem@redhat.com>
9938
9939         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9940         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
9941
9942 2002-03-30  Roger Sayle <roger@eyesopen.com>
9943             Richard Henderson  <rth@redhat.com>
9944
9945         * regmove.c (combine_stack_adjustments_for_block): Avoid
9946         emitting a stack adjustment of zero bytes.  Let delete_insn
9947         update bb->head.
9948
9949 2002-03-30  Richard Henderson  <rth@redhat.com>
9950
9951         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
9952         (sparc_emitting_epilogue): New.
9953         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
9954         * config/sparc/sparc-protos.h: Update.
9955         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
9956         (TARGET_SWITCHES): Update.
9957         * config/sparc/sparc.md (return): Remove.
9958         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
9959         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
9960         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
9961         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9962         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
9963         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
9964         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
9965         Remove MASK_EPILOGUE.
9966         * doc/invoke.texi: Update.
9967
9968 2002-03-30  Daniel Berlin  <dan@dberlin.org>
9969
9970         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
9971         CPP will start the file for us.
9972
9973 2002-03-30  Richard Henderson  <rth@redhat.com>
9974
9975         PR target/5446
9976         * config/ia64/ia64.c (group_barrier_needed_p): Special case
9977         prologue_allocate_stack.
9978         (ia64_single_set): Use insn codes for recognition of special
9979         cases, not rtl matching.
9980         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
9981
9982 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
9983
9984         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
9985
9986 2002-03-30  Richard Henderson  <rth@redhat.com>
9987
9988         PR target/6032
9989         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
9990         or -fomit-frame-pointer with profiling.
9991         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9992         (FUNCTION_PROFILER): Do nothing.
9993         (PROFILE_HOOK): New.
9994         * config/sparc/sparc.c (sparc_override_options): Don't check
9995         code models for profiling.
9996         (sparc_function_profiler): Remove.
9997         (sparc_profile_hook): New.
9998         * config/sparc/sparc-protos.h: Update.
9999
10000 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
10001
10002         PR optimization/6086
10003         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
10004         of SUBREG of volatile MEM or because the MEM was mode dependent,
10005         return CLOBBER instead of unmodified SUBREG.
10006
10007 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
10008
10009         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
10010         when not optimizing.
10011
10012         * toplev.c (rest_of_compilation): Cann mark_constant_function
10013         only when optimizing.
10014
10015         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
10016         are NULL.
10017
10018         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
10019         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
10020         (try_optimize_cfg): clear all AUX fields.
10021
10022         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10023         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10024         (ix86_address_cost): Be prepared for SUBREGed registers.
10025         (legitimate_address_p): Accept SUBREGed registers.
10026
10027 2002-03-29  Richard Henderson  <rth@redhat.com>
10028
10029         PR target/5672
10030         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
10031
10032 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10033
10034         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
10035         for aggregate and TFmode types.
10036
10037 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
10038
10039         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
10040
10041 2002-03-29  Richard Henderson  <rth@redhat.com>
10042
10043         PR target/5886
10044         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
10045         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
10046
10047 2002-03-29  Richard Henderson  <rth@redhat.com>
10048
10049         PR target/6041
10050         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
10051         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
10052         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
10053         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
10054         conditional.
10055         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
10056
10057 2002-03-29  Dale Johannesen <dalej@apple.com>
10058
10059         * loop.c (combine_movables): Do allow combination of pseudos.
10060
10061 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
10062
10063         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
10064         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
10065         No functional change except ...
10066         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
10067         * doc/install.texi (*-*-freebsd*): Document port configuration.
10068
10069 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10070
10071         * Makefile.in (convert.o, calls.o, expmed.o): Update.
10072         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
10073         Use new hooks.
10074         * builtin-types.def (BT_PTRMODE): Update.
10075         * c-common.c (type_for_size): Rename c_common_type_for_size.
10076         (type_for_mode): Similarly.
10077         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
10078         Use new hook.
10079         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
10080         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
10081         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
10082         Redefine.
10083         * c-typeck.c (common_type, comptypes, default_conversion):
10084         Use new hooks.
10085         * calls.c: Include langhooks.h.
10086         (emit_library_call_value_1): Use new hooks.  Avoid redundant
10087         calls.
10088         * convert.c: Include langhooks.h
10089         (convert_to_pointer, convert_to_integer): Use new hooks.
10090         * except.c (init_eh): Similarly.
10091         * expmed.c: Include langhooks.h.
10092         (expand_mult_add): Use new hooks.
10093         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
10094         try_casesi): Similarly.
10095         * fold-const.c (optimize_bit_field_compare, make_range,
10096         decode_field_reference, fold_truthop, fold): Similarly.
10097         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
10098         put_var_into_stack): Similarly.
10099         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
10100         LANG_HOOKS_TYPE_FOR_SIZE): New.
10101         (LANG_HOOKS_TYPES_INITIALIZER): Update.
10102         * langhooks.h (lang_hooks_for_types): New hooks.
10103         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
10104         * tree.c (get_unwidened, get_narrower): Similarly.
10105         * tree.h (type_for_mode, type_for_size): Remove.
10106         * varasm.c (force_const_mem): Use new hooks.
10107         * utils2.c (nonbinary_modular_operation): Update.
10108 objc:
10109         * objc-act.c (handle_impent): Update.
10110         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10111         Redefine.
10112
10113 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
10114
10115         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10116         * config/ia64/ia64.c (basereg_operand): New.
10117         * config/ia64/ia64-protos.h (basereg_operand): Declare.
10118         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10119
10120 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
10121
10122         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10123         unwind information when frame_pointer_needed.
10124         (mmix_assemble_integer): Tweak wording in comment.
10125
10126 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10127
10128         * Makefile.in (except.o): Update.
10129         * except.c: Include langhooks.h.
10130         (init_eh): Use langhook.
10131         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10132         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10133         (LANG_HOOKS_INITIALIZER): Update.
10134         * langhooks.h (lang_hooks_for_types): New.
10135         (struct lang_hooks): Add it.
10136         * tree.c (make_lang_type_fn, make_lang_type): Remove.
10137         * tree.h (make_lang_type_fn, make_lang_type): Remove.
10138 config:
10139         * alpha/alpha.c: Include langhooks.h.
10140         (alpha_build_va_list): Use langhook.
10141         * d30v/d30v.c: Include langhooks.h.
10142         (d30v_build_va_list): Use langhook.
10143         * i386/i386.c: Include langhooks.h.
10144         (ix86_build_va_list): Use langhook.
10145         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10146         * s390/s390.c: Include langhooks.h.
10147         (s390_build_va_list): Use langhook.
10148         * stormy16/stormy16.c: Include langhooks.h.
10149         (stormy16_build_va_list): Use langhook.
10150
10151 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
10152
10153         PR c++/5964
10154         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10155         attributes.
10156         (length): Compute variable length for branches/calls/jumps here.
10157         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10158         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10159         define branch_type attribute.
10160         (divsi3_sp32): Maximum length is 6 not 7.
10161         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10162         call_address_untyped_struct_value_sp32,
10163         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10164         * config/sparc/sparc.c (empty_delay_slot): New function.
10165         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10166         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10167
10168 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
10169
10170         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10171         nonzero_bits if not needed.
10172         (nonzero_bits) [XOR]: Likewise.
10173         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10174         reg_last_set_mode and mode are both MODE_INT, but not equal.
10175         (record_value_for_reg): Compute reg_last_set_nonzero_bits
10176         in nonzero_bits_mode for MODE_INT modes.
10177
10178 2002-03-28  Richard Henderson  <rth@redhat.com>
10179
10180         PR target/5715
10181         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10182         to GAS.  Correct drift between alternatives.
10183
10184 2002-03-28  Richard Henderson  <rth@redhat.com>
10185
10186         PR target/6087
10187         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10188
10189 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
10190
10191         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10192         emulation to the linker.
10193
10194 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
10195
10196         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10197         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10198
10199 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
10200
10201         * combine.c (simplify_and_const_int): Make sure to apply mask
10202         when force_to_mode returns a constant integer.  PR3311.
10203
10204 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10205
10206         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10207
10208 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10209
10210         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10211         and Objective-C Dialect Options.
10212
10213 2002-03-28  Richard Henderson  <rth@redhat.com>
10214
10215         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10216         comparison should be done vs !=0 not >0 return code.  Tidy cases.
10217
10218 2002-03-28  Richard Henderson  <rth@redhat.com>
10219
10220         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
10221         on to c_expand_body.
10222         * c-tree.h (finish_function): Update decl.
10223         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10224
10225 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10226
10227         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10228
10229 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
10230
10231         * rtlanal.c: Include flags.h
10232         (may_trap_p): Do not mark FP operations if trapping
10233         if !flag_trapping_math
10234         * Makefile.in (rtlanal.o): Add dependency on flag.h
10235         * ifcvt.c (noce_operand_ok): Avoid the lameness.
10236
10237 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
10238
10239         * mips.md: Use dconst1, not 1.0, as first argument of
10240         REAL_VALUE_LDEXP.  Don't use union real_extract.
10241
10242 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
10243
10244         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10245         rather than $target.  Heed program_prefix and
10246         program_transform_name.  Search for gas in cross-compiler case too.
10247         "test -x" rather than "test -f".
10248         (gcc_cv_ld): Likewise.
10249         (gcc_cv_nm): Heed program_prefix and program_transform_name.
10250         (gcc_cv_objdump): Likewise.
10251         * configure: Regenerate.
10252
10253 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10254
10255         * Makefile.in (attribs.o): Update.
10256         * attribs.c: Include langhooks.h.
10257         (decl_attributes): Use langhook.
10258         * c-decl.c (insert_default_attributes): Rename.
10259         * c-tree.h (c_insert_default_attributes): New.
10260         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10261         (LANG_HOOKS_INITIALIZER): Update.
10262         * langhooks.h (struct lang_hooks): New hook.
10263         * tree.h (insert_default_attributes): Remove.
10264 objc:
10265         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10266
10267 2002-03-27  Andreas Schwab  <schwab@suse.de>
10268
10269         * config/i386/i386.c (classify_argument): Also check for
10270         QUAL_UNION_TYPE.
10271
10272 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10273
10274         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10275         any more.
10276
10277 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10278
10279         * i960.md (ret): Set PC.
10280         (nonlocal_goto): Fix expander.
10281         * builtins.c (epxand_builin_longjmp): Check that we've emitted
10282         some jump or call.
10283
10284 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
10285
10286         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10287         of libcall regions.
10288
10289 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10290
10291         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10292         assigning to BLOCK_FOR_INSN directly.
10293
10294 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10295
10296         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10297
10298 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10299
10300         * c-common.c (c_expand_expr): Fix prototype.
10301         * c-common.h (c_expand_expr): Always declare, update.
10302         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10303         * c-objc-common.c (c_objc_common_init): No global hook.
10304         * expr.c (expand_expr): Use langhook.
10305         * expr.h (enum expand_modifier): Conditionally declare.
10306         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10307         (LANG_HOOKS_INITIALIZER): Update.
10308         * langhooks.c (lhd_expand_expr): New.
10309         * langhooks.h (struct lang_hooks): New hook.
10310         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10311         (lang_independent_init): Don't default hook.
10312 objc:
10313         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10314
10315 2002-03-27  Richard Henderson  <rth@redhat.com>
10316
10317         PR target/6054
10318         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10319         TARGET_CONST_GP.  Simplify conditions.
10320
10321 2002-03-27  Richard Henderson  <rth@redhat.com>
10322
10323         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10324         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10325         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10326
10327 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
10328
10329         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10330         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10331         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10332         Remove unnecessary masks.
10333         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10334         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10335         -mwindows, -mdll switches and their negations.
10336
10337 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10338
10339         * gcc-common.c (lang_mark_false_label_stack): Remove.
10340         * ggc.h (lang_mark_false_label_stack): Similarly.
10341
10342 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
10343
10344         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10345
10346         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10347         or __rtems_ is defined.
10348
10349 2002-03-26  Richard Henderson  <rth@redhat.com>
10350
10351         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10352         if a non-trivial load was emitted.
10353         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
10354         in high+extra+low case.
10355
10356 2002-03-26  Richard Henderson  <rth@redhat.com>
10357
10358         * config.gcc (sparc*-solaris): Use float_format=sparc.
10359
10360 2002-03-26  Richard Henderson  <rth@redhat.com>
10361
10362         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10363         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10364         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10365         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10366         (WINT_TYPE_SIZE): Fix at 32.
10367
10368 2002-03-26  Richard Henderson  <rth@redhat.com>
10369
10370         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10371         until after eh landing pad generation.
10372         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10373         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10374
10375 2002-03-26  Richard Henderson  <rth@redhat.com>
10376
10377         * expr.h (ADD_PARM_SIZE): One more convert for INC.
10378
10379 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
10380
10381         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
10382         and warning switches.
10383         (cc1_options):  Likewise.
10384
10385 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
10386
10387         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10388         Restore more of the signal context.  Set no_reg_stack_frame.
10389         * config/ia64/unwind-ia64.c (unw_state_record):
10390         Add no_reg_stack_frame, comments.
10391         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10392         (uw_update_context): Adjust bsp when unwinding from leaf,
10393         but not signal frame.
10394
10395 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
10396
10397         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10398
10399 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
10400
10401         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10402
10403 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
10404
10405         PR target/5621
10406         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10407         "Add a pool_range attribute", which was lost during the ARM/Thumb
10408         merge.
10409
10410 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
10411
10412         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10413         a register into the MAC16 accumulator.
10414
10415 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
10416
10417         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10418         (Warning Options): Document -Wswitch-enum.
10419         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
10420         -Wswitch.
10421         (warn_switch_enum): Define variables.
10422         * flags.h (warn_switch_enum): Declare variables.
10423         * stmt.c (expand_end_case_type): When warn_switch_enum /
10424         -Wswitch-enum, perform switch checks.
10425         Fix PR c/5044.
10426
10427 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
10428
10429         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10430         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10431         (reload_muladdsi_compare0_scratch): Delete.
10432
10433 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
10434
10435         * doc/install.texi (*-*-freebsd*): Update.
10436
10437 2002-03-26  Richard Henderson  <rth@redhat.com>
10438
10439         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10440         (SUB_PARM_SIZE): Cast DEC to ssizetype.
10441
10442         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10443         types from the normal argument frame.
10444
10445         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10446         variable sized objects by reference.
10447         (sparc_va_arg): Receive them by reference too.
10448
10449 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
10450
10451         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
10452         code to not restoring global registers.
10453
10454 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10455
10456         * Makefile.in (ggc-common.o): Update.
10457         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10458         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10459         * c-tree.h (c_mark_tree): New.
10460         * ggc-common.c: Include langhooks.h.
10461         (gcc_mark_trees): Use new langhook.
10462         * ggc-callbacks.c: Delete file.
10463         * ggc.h (lang_mark_tree): Remove.
10464         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10465         (LANG_HOOKS_INITIALIZER): Update.
10466         * langhooks.h (struct lang_hooks): New hook.
10467 objc:
10468         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10469
10470 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
10471
10472         * doc/cpp.texi: Exclude entire Top node from printed manual.
10473         Move option index after directive index.  Insert page breaks
10474         before GFDL and concept index.  Index environment variables
10475         with command line options.
10476         * doc/cppenv.texi: Use @vtable for environment variable list.
10477         Add paragraph explaining semantics of empty elements in path
10478         variables.  Exclude a cross-reference to Fishkill from the
10479         manpage.  Remove an unnecessary cross-reference of the entry
10480         right above the referer.  Don't use @anchor in text that goes
10481         into manpage.
10482         * doc/cppopts.texi: Cross-reference the environment variables
10483         section, not the specific environment variable, for consistency.
10484
10485 2002-03-25  Richard Henderson  <rth@redhat.com>
10486
10487         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10488         anywhere in the block.  Don't refer to insns that have been
10489         removed from the chain.  Iterate backward through the new insns.
10490         Don't refer to edges that have been removed.
10491
10492 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
10493
10494         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10495         test for overflow of constant.
10496
10497 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
10498
10499         PR target/2623
10500         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10501         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10502         these patterns on arm_archv4.
10503
10504 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
10505
10506         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10507         int".
10508
10509 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
10510
10511         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
10512         float_handled, float_handler, float_signal, set_float_handler,
10513         and do_float_handler.  Set handler for SIGFPE to crash_signal.
10514         * toplev.h: Don't prototype do_float_handler.
10515
10516         * c-lex.c: Fold parse_float into lex_number.  Make warning
10517         about portability of hex float constants more informative, and
10518         don't issue it on top of a syntax error.
10519         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10520         their callers.
10521         * real.h: Define REAL_VALUE_ABS here...
10522         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
10523         simplify_unary_real, simplify_binary_real, and
10524         simplify_binary_is2orm1 into their callers.
10525         * tree.c: Fold build_real_from_int_cst_1 into caller.
10526
10527         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10528
10529         * tsystem.h: Include float.h here...
10530         * libgcc2.c: ... not here.
10531
10532 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
10533
10534         Fixes for: PR bootstrap/3591, target/5676
10535         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10536         defined.  Do not disable exceptions or rtti.
10537         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10538         mcore.h.  Disable exceptions and rtti, since they are not
10539         supported by EPOC.
10540
10541 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10542
10543         * c-decl.c (maybe_build_cleanup): Remove.
10544         * expr.c (expand_expr): Use langhook.
10545         * langhooks-def.h (lhd_return_null_tree,
10546         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10547         (LANGHOOKS_INITIALIZER): Update.
10548         * langhooks.c (lhd_return_null_tree): New.
10549         * langhooks.h (struct lang_hooks): New hook.
10550         * tree-inline.c (initialize_inlined_parameters): Use langhook.
10551         * tree.h (maybe_build_cleanup): Remove.
10552
10553 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
10554
10555         * regrename.c (build_def_use): Move recog_memoized
10556         before extract_insn.
10557
10558 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
10559
10560         PR target/6043
10561         * expr.c (emit_group_store): Handle storing into CONCAT.
10562
10563 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
10564
10565         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10566         corresponding MATCH_DUP.
10567
10568 2002-03-24  Richard Henderson  <rth@redhat.com>
10569
10570         * unroll.c (unroll_loop): Zero label_map.
10571
10572         * gcse.c: Include except.h.
10573         * Makefile.in (gcse.o): Update.
10574
10575 2002-03-24  Richard Henderson  <rth@redhat.com>
10576
10577         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10578         Do resolve_unique_section before shared data clause.
10579
10580 2002-03-24  Richard Henderson  <rth@redhat.com>
10581
10582         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10583
10584 2002-03-24  Richard Henderson  <rth@redhat.com>
10585
10586         * recog.c (peephole2_optimize): Split blocks when EH insns are
10587         generated in the middle of a block.  Do global life update if
10588         zapped EH edges.
10589
10590 2002-03-24  Richard Henderson  <rth@redhat.com>
10591
10592         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10593
10594 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10595
10596         preprocessor/3951
10597         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
10598         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10599         (init_dependency_output): Don't make no_output decision here.
10600
10601 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
10602
10603         * stmt.c (check_for_full_enumeration_handling): Remove tests of
10604         warn_switch.  Update description.
10605         (expand_end_case_type): Call check_for_full_enumeration_handling
10606         when warn_switch.
10607
10608 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10609
10610         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10611         (m68hc11_split_move): Call it to see if the source and destination
10612         operands use the same direction auto inc/dec mode, otherwise make the
10613         source an offsetable memory operand and generate an add.
10614
10615 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10616
10617         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10618         register for operand 2.
10619         ("*subsi3_zero_extendqi"): Likewise.
10620         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10621         bits so that it is compatible with a pop.
10622         ("*andhi3_gen"): Likewise.
10623         ("xorhi3"): Likewise.
10624
10625 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10626
10627         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10628         -pedantic here...
10629         (cpp_post_options): ... not here.
10630
10631 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10632             Aldy Hernandez  <aldyh@redhat.com>
10633
10634         Removal of separate preprocessor cpp0.
10635
10636         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10637         cpp0, install-common): Update.
10638         * c-common.c (flag_preprocess_only): New.
10639         (c_common_init): Preprocess for -E.
10640         * c-common.h (flag_preprocess_only): New.
10641         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10642         * c-objc-common.c (c_init_decl_processing): Exit quickly
10643         for NULL return from c_common_init.
10644         * cpplib.h (cpp_preprocess_file): New.
10645         * cppmain.c (main, general_init, pfile, progname): Remove.
10646         (do_preprocessing): Rename cpp_preprocess_file, don't call
10647         cpp_finish.  Don't close stdout here.
10648         (setup_callbacks): Update prototype.
10649         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10650         Update.
10651         * tradcpp.c (main): Ignore -quiet.
10652 objc:
10653         * lang-specs.h (default_compilers): Preprocess with cc1obj.
10654
10655 2002-03-24  Richard Henderson  <rth@redhat.com>
10656
10657         PR optimization/5742
10658         * machmode.def: Add inner mode field to complex modes.
10659         * config/mips/mips.c (mips_function_value): Always define.  Add
10660         new argument to handle libcalls.
10661         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10662         (FUNCTION_VALUE): Likewise.
10663         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10664         * config/mips/mips-protos.h: Update.
10665
10666 2002-03-23  Richard Henderson  <rth@redhat.com>
10667
10668         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10669         * config/sparc/sparc-protos.h: Update.
10670         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10671
10672 2002-03-23  Richard Henderson  <rth@redhat.com>
10673
10674         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
10675         _start or _init begins the text segment.
10676
10677 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
10678
10679         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
10680         not HOST_WIDEST_INT.
10681         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
10682
10683 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
10684
10685         PR java/5489
10686         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
10687         operand argument to output_return_instruction.
10688         * arm.c (arm_print_operand, case 'd'): If the operand is
10689         const_true_rtx then just return.
10690         (arm_print_operand, case 'D'): If the operand is const_true_rtx
10691         then abort.
10692
10693 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
10694
10695         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
10696         (Warning Options): Document -Wswitch-default.
10697         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
10698         -Wswitch.
10699         (warn_switch_default): Define variable.
10700         (warn_switch): Update comment.
10701         * flags.h (warn_switch_default): Declare variable.
10702         (warn_switch): Update comment.
10703         * stmt.c (expand_end_case): Check for and, when
10704         warn_switch_no_default, warn of a missing default case.
10705
10706 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
10707
10708         * real.h (N): Special case 128 bit doubles.
10709
10710         * combine.c (simplify_comparison): When widening modes, ignore
10711         sign extension on CONST_INTs.
10712
10713 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
10714
10715         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
10716         passed to adjust_address.  Fix comment formatting.
10717
10718
10719 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
10720
10721         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10722         Always make REAL_VALUE_TYPE a struct containing an array of
10723         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
10724         big it is.  Don't declare or use union real_extract.
10725
10726         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
10727         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
10728         (print_operand), config/arm/arm.c (output_move_double),
10729         config/arm/arm.md (consttable_4, consttable_8),
10730         config/romp/romp.c (output_fpops), config/s390/s390.h
10731         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
10732         (xtensa_output_literal): Don't use union real_extract.
10733
10734         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
10735         (sfmode_constant_to_ulong), config/ns32k/merlin.h
10736         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
10737         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
10738         (PRINT_OPERAND): Don't use local version of union
10739         real_extract.
10740
10741         * config/convex/convex.c (check_float_value), config/vax/vax.c
10742         (vax_float_literal), config/m88k/m88k.md (divdf3),
10743         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
10744         config/pdp11/pdp11.c (output_move_quad): Don't do host
10745         arithmetic on target floating point quantities.
10746
10747         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
10748         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
10749
10750         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
10751         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
10752
10753         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
10754         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
10755         INFINITY.
10756         * print-rtl.c (print_rtx): Disable code which needs
10757         floating-point emulator.
10758         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
10759         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
10760         depending on HOST_FLOAT_FORMAT to be defined properly.
10761
10762         * config/1750a/1750a.c (get_double, float_label): Delete.
10763         (print_operand): Delete huge commented-out chunk.  Use
10764         REAL_VALUE_TO_DECIMAL.
10765         * config/1750a/1750a-protos.h: Delete prototypes of deleted
10766         functions.
10767         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
10768         IEEE_FLOAT_FORMAT.
10769         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
10770         Use REAL_VALUE_TO_DECIMAL as ELF version does.
10771         * config/m88k/m88k.c (real_power_of_2_operand,
10772         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
10773         real_extract out of the union; run the input through
10774         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
10775         from that into the union.
10776         * config/pdp11/pdp11.c (output_move_double): Rearrange
10777         parentheses to make automatic indenter happy.
10778
10779         * doc/tm.texi (Cross-compilation): Rename node to "Floating
10780         Point" and rewrite to describe current situation.  Also adjust
10781         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
10782         match code.
10783         * doc/rtl.texi: Adjust cross reference.
10784
10785 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
10786
10787         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
10788         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
10789         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
10790         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
10791         prevent use of sp as a reload register.
10792         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
10793         non_acc_reg_operand.
10794         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
10795         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
10796         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
10797         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
10798
10799 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10800
10801         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
10802         * cpplex.c (unterminated): Delete.
10803         (parse_string): No string literal may extend over multiple
10804         lines.  Suppress the error when preprocessing assembly.
10805         * cppmain.c (scan_translation_unit): Strings are single-line.
10806
10807         * doc/cpp.texi: Update to match.
10808
10809 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
10810
10811         PR optimization/5854
10812         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
10813         Shut up warnings.
10814         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
10815         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
10816         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
10817         const0 if scratch register was not allocated.
10818         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
10819         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
10820         with GEN_INT (...).
10821         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
10822         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
10823         with GEN_INT (...) everywhere.  Remove constraints in define_split
10824         patterns.
10825         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
10826         require scratch register for setting 0 into regs/non-pushable memory.
10827
10828 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
10829
10830         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
10831         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
10832
10833 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
10834
10835         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
10836         * cppinit.c (cpp_create_reader):  On by default.
10837         (cpp_handle_option):  Handle -W[no-]endif-labels.
10838         (cpp_post_options):  Also enable if -pedantic.
10839         * cpplib.c (do_else):  Use it.
10840         (do_endif):  Likewise.
10841         * doc/cppopts.texi:  Document new option.
10842         * doc/invoke.texi:  Document new option.
10843
10844 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
10845
10846         * config/i386/i386.c, config/i386/i386.md: Change all occurences
10847         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
10848
10849 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
10850
10851         * flow.c (calculate_global_regs_live): Clear aux fields of
10852         ENTRY and EXIT.
10853
10854 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
10855
10856         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
10857         REG or MEM subregs, pass rtx * instead of rtx to it.
10858         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
10859         rtx * instead of rtx to alter_subreg.
10860         * config/m32r/m32r.c (gen_split_move_double): Likewise.
10861         * config/pj/pj.c (pj_output_rval): Likewise.
10862
10863 2002-03-22  Richard Henderson  <rth@redhat.com>
10864
10865         PR target/3177
10866         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
10867         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
10868         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
10869         (ia64_expand_prologue): Look at int_regs, not words, for number
10870         of incomming int regs.
10871
10872 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
10873
10874         * expr.c (expand_expr): A RESULT_DECL is part of a call.
10875
10876 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
10877
10878         * toplev.c (flag_loop_optimize, flag_crossjumping):
10879         New static variables.
10880         (rest_of_compilation): Conditionalize crossjumping and
10881         loop optimizer.
10882         (parse_options_and_default_flags): Default loop_optimize and
10883         crossjumping.
10884         (lang_independent_options): Add -fcrossjumping and -floop-optimize
10885         * invoke.texi (crossjumping, loop-optimize): Document.
10886
10887 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
10888
10889         * real.c (eiisneg): Move outside #ifdef NANS.
10890
10891 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10892
10893         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
10894         frequencies match; avoid match on different loop depths.
10895         (try_crossjump_to_bb): Kill tests that no longer brings time
10896         savings.
10897         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
10898         updating code.
10899         (split_edge): Likewise.
10900
10901         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
10902         variable.
10903
10904         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
10905         * cfgrtl.c: Include insn-config.h
10906         (split_block) Dirtify block in presence of conditional execution
10907
10908 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
10909
10910         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
10911         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
10912         (function_arg): Constify CUMULATIVE_ARGS.
10913         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
10914         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
10915         (UNITS_PER_DOUBLE): New macro.
10916         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
10917         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
10918         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
10919         fp_regs and stack_words.
10920         (EABI_FLOAT_VARARGS_P): New macro.
10921         * config/mips/mips.c (struct mips_arg_info): New.
10922         (mips_arg_info): New function.
10923         (function_arg_advance): Use it.  Add adjustment instructions here
10924         rather than in function_arg.
10925         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
10926         for VOIDmode at the beginning of the function.
10927         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
10928         (function_arg_pass_by_reference): Likewise.
10929         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
10930         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
10931         (mips_va_start): Likewise.  Use the new stack_words field of
10932         CUMULATIVE_ARGS to set up overflow area.  Reformat.
10933         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
10934         doubles and other types, aligning the overflow pointer for non-doubles
10935         too.  Remove some code duplication.  Replace hard-coded constants.
10936
10937 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
10938
10939         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
10940         (CLASS_UNITS): Undefine.
10941         (CLASS_MAX_NREGS): Use FP_INC.
10942         * config/mips/mips.c (compute_frame_size): Likewise.
10943         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
10944
10945 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10946
10947         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
10948         prototype, and handle lexing numbers and identifiers.
10949         (parse_identifier): Update to new form of parse_slow.
10950         (parse_number): Fast path only, use parse_slow otherwise.
10951         (_cpp_lex_direct): Update calls to parse_number.
10952
10953 2002-03-21  DJ Delorie  <dj@redhat.com>
10954
10955         * bb-reorder.c (make_reorder_chain_1): Protect against
10956         when redundant edges are omitted.
10957         * predict.c (dump_prediction): Likewise.
10958
10959 2002-03-21  Richard Henderson  <rth@redhat.com>
10960
10961         PR target/5996
10962         * fixinc/inclhack.def (solaris_stdio_tag): New.
10963         * fixinc/fixincl.x: Regenerate.
10964
10965 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
10966
10967         PR c/5597
10968         * c-typeck.c (process_init_element): Flag non-static
10969         initialization of a flexible array member as illegal.
10970
10971 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
10972
10973         * config/rs6000/t-linux64: New.
10974         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
10975         t-ppccomm.  Use t-rs6000 and t-linux64.
10976         (powerpc64-*-gnu* <tmake_file>): Likewise.
10977         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
10978         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
10979         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
10980
10981 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
10982
10983         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
10984         flag_really_no_inline instead of optimize == 0.
10985
10986         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
10987
10988         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
10989
10990         * flags.h (flag_really_no_inline): New.
10991
10992         * c-common.c (c_common_post_options): Initialize
10993         flag_really_no_inline.
10994
10995         * toplev.c (flag_really_no_inline): New.
10996
10997 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
10998
10999         * config/avr/avr.md (length): Fix length computation for
11000         conditional branches.
11001
11002 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11003
11004         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
11005         sdbout.o, profile.o): Update.
11006         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
11007         langhook.
11008         * c-common.h (gettags): Move here from tree.h.
11009         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
11010         insert_block, getdecls, kept_level_p, global_bindings_p): New.
11011         * dbxout.c (dbxout_init): Use getdecls langhook.
11012         * expr.c (expand_expr): Use insert_block langhook.
11013         * fold-const.c: Include langhooks.h.
11014         (fold_range_test, fold_binary_op_with_conditional_arg,
11015         fold): Use global_bindings_p langhook.
11016         * integrate.c (expand_inline_function): Use insert_block langhook.
11017         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
11018         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
11019         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
11020         LANG_HOOKS_GETDECLS): New.
11021         (LANG_HOOKS_INITIALIZER): Update.
11022         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
11023         langhook.
11024         * langhooks.h (struct lang_hooks_for_decls): New.
11025         (struct lang_hooks): Update.
11026         * profile.c: Include langhooks.h.
11027         (output_func_start_profiler): Use new langhooks.
11028         * sdbout.c: Include langhooks.h.
11029         (sdbout_init, sdbout_finish): Use getdecls langhook.
11030         * stmt.c: Include langhooks.h.
11031         (expand_fixup, fixup_gotos): Use new langhooks.
11032         * stor-layout.c: Include langhooks.h.
11033         (variable_size): Use global_bindings_p langhook.
11034         * toplev.c (compile_file): Use getdecls langhook.
11035         * tree-inline.c (remap_block): Use insert_block langhook.
11036         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
11037         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
11038
11039 2002-03-21  Richard Henderson  <rth@redhat.com>
11040
11041         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
11042         constants in .data when -fpic.
11043
11044 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11045
11046         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
11047         where appropriate.
11048
11049 2002-03-21  Tom Tromey  <tromey@redhat.com>
11050
11051         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
11052
11053 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11054
11055         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
11056
11057         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
11058
11059 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
11060             Richard Henderson  <rth@redhat.com>
11061
11062         PR c/5354
11063         * c-common.c (c_expand_expr): Preserve result of a statement
11064         expression if needed.
11065
11066 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
11067
11068         PR bootstrap/4195
11069         * genrecog.c (maybe_both_true_mode): Remove.
11070         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
11071         * machmode.def (Pmode): Likewise.
11072
11073 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
11074
11075         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
11076         (nonlocal_mentioned_p_1): New function.
11077         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
11078         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
11079         (mark_constant_function): Recognize pure functions.
11080         * rtl.h (global_reg_mentioned_p): New prototype.
11081         * rtlanal.c (global_reg_mentioned_p,
11082         global_reg_mentioned_p_1): New function.
11083
11084 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11085
11086         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
11087         UNIX assert.h.
11088         * fixinc/fixincl.x: Regenerate.
11089
11090 2002-03-20  Jason Merrill  <jason@redhat.com>
11091
11092         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
11093
11094 2002-03-20  Michael Meissner  <meissner@redhat.com>
11095
11096         * doc/invoke.texi (Optimize Options): Document that -O2 sets
11097         -fstrict-aliasing.
11098
11099 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
11100
11101         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
11102         ".literal_position" directive before the constant pool.
11103
11104 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11105
11106         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
11107         Add Craig Rodrigues.
11108         Add Brad Lucier to testers.
11109
11110 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
11111
11112         PR target/4792
11113         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11114         to if_then_else.
11115         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11116         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11117         instead of insn_extract.
11118
11119 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
11120
11121         PR bootstrap/4192
11122         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
11123
11124         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11125         stmt if some case has been output.
11126
11127 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
11128
11129         PR c/5972
11130         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11131         movsfcc_1, movdfcc_1): Add %O2.
11132         * config/i386/i386.c (print_operand): Handle %ON.
11133         Print . before float condition codes in Sun as cmov syntax.
11134         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11135         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11136         no longer true.
11137
11138 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
11139
11140         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11141         return instruction if PC was popped.
11142
11143 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
11144
11145         * config/xtensa/xtensa.md: Remove unused type attributes.
11146         (adddi_carry, subddi_carry): Change type attribute to "multi".
11147
11148 2002-03-19  Dale Johannesen  <dalej@apple.com>
11149
11150         PR optimization/5999, middle-end/5731
11151         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11152         multiplications by reciprocals.
11153
11154 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11155
11156         * Makefile.in: Update.
11157         * c-common.c: Include langhooks.h.
11158         (inline_forbidden_p): Use new hook.
11159         * diagnostic.c: Include langhooks.h.
11160         (format_with_decl, announce_function,
11161         default_print_error_function): Use new hook.
11162         * dwarf2out.c (dwarf2_name): Use new hook.
11163         * function.c: Include langhooks.h.
11164         (init_function_start): Use new hook.
11165         * langhooks-def.h (lhd_decl_printable_name): New.
11166         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11167         (LANGHOOKS_INITIALIZER): Update.
11168         * langhooks.c (lhd_decl_printable_name): New.
11169         * langhooks.h (struct lang_hooks): New hook.
11170         * toplev.c (decl_name, decl_printable_name): Remove.
11171         (open_dump_file): Use new hook.
11172         (process_options): Remove old hook.
11173         * tree.h (decl_printable_name): Remove.
11174 objc:
11175         * objc-act.c (objc_init): Remove old hook.
11176         (objc_printable_name): Export.
11177         * objc-act.h (objc_printable_name): New.
11178         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11179
11180 2002-03-19  Jim Blandy  <jimb@redhat.com>
11181
11182         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11183         the start_source_file debug hook, not the current line number.
11184
11185 2002-03-19  Richard Henderson  <rth@redhat.com>
11186
11187         * flow.c (EH_USES): Provide default.
11188         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11189         * doc/tm.texi (EH_USES): New.
11190
11191         * config/ia64/ia64.c (ia64_eh_uses): New.
11192         * config/ia64/ia64-protos.h: Update.
11193         * config/ia64/ia64.h (EH_USES): New.
11194
11195 2002-03-19  Richard Henderson  <rth@redhat.com>
11196
11197         * varasm.c (output_constant_def): Fix stupid typo.
11198
11199 2002-03-19  Richard Henderson  <rth@redhat.com>
11200
11201         PR 5879
11202         * except.c (current_function_has_exception_handlers): New.
11203         * except.h: Declare it.
11204         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11205         Combine tests that disable all sibcalls for the function.
11206
11207 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
11208
11209         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11210         for INTEGER_CST.
11211
11212 2002-03-19  Richard Henderson  <rth@redhat.com>
11213
11214         PR 5977, 5991
11215         * config/ia64/ia64.c: Revert 2002-03-01 patch.
11216         * config/ia64/ia64.h (INIT_EXPANDERS): New.
11217
11218 2002-03-19  Jim Blandy  <jimb@redhat.com>
11219
11220         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11221         name, even if the replacement list contains no tokens, as required
11222         by Dwarf.
11223
11224 2002-03-19  Jason Merrill  <jason@redhat.com>
11225
11226         * varasm.c (globalize_decl): Get the name from the RTL, not
11227         DECL_ASSEMBLER_NAME.
11228
11229         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11230
11231 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
11232
11233         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11234         subdi_carry): Define.
11235
11236 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
11237
11238         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11239         about -fpic/-fPIC if extra_warnings set.
11240
11241 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
11242
11243         * expr.c (expand_expr): Sign-extend CONST_INT generated from
11244         TREE_STRING_POINTER.
11245         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
11246
11247 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11248
11249         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11250         in favor of SP if FRAME_POINTER_REQUIRED is false.
11251
11252 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
11253
11254         * emit-rtl.c (gen_int_mode): New function.
11255         * rtl.h: Prototype for it.
11256         * combine.c (make_extraction, simplify_comparison), expmed.c
11257         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11258         (convert_modes, store_field), optabs.c (expand_fix),
11259         simplify-rtx.c (neg_const_int, simplify_unary_real),
11260
11261         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11262         Use it instead of GEN_INT (trunc_int_for_mode (...)).
11263
11264 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
11265
11266         PR c/5656
11267         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11268         convert_parm_for_inlining.
11269         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11270         Define.
11271         * langhooks-def.h: Likewise.
11272         * objc/objc-lang.c: Likewise.
11273         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11274         function.
11275         * tree-inline.c (initialize_inlined_parameters):
11276         Call convert_parm_for_inlining lang hook if needed.
11277         * c-typeck.c (c_convert_parm_for_inlining): New function.
11278         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11279
11280 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
11281
11282         * calls.c (precompute_arguments): Do not assume that temporaries
11283         can be destroyed after expanding the argument.
11284         (expand_call): Likewise.
11285
11286 2002-03-15  Eric Christopher  <echristo@redhat.com>
11287
11288         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11289         Fix register preference on last change.
11290         * config/mips/mips.c (mips_return_in_memory): New function.
11291         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11292         * config/mips/mips-protos.h: Declare.
11293         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11294         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11295
11296 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
11297
11298         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11299         a register too.
11300         (anddi3, iorsi3): Likewise.
11301
11302         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11303         use %gprel for symbols that are going to be placed in linkonce
11304         sections.
11305
11306         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11307         RETURN_ADDRESS_POINTER_REGNUM to $ra.
11308         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11309         not needed.  Disregard leaf_function_p().
11310         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11311         mips16 frame pointer.
11312         * config/mips/mips.md (store ra): Only to small SP offsets.
11313         2001-08-22  Graham Stott  <grahams@redhat.com>
11314         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11315         return a REG rtx for the return address register.
11316
11317 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
11318
11319         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11320         constant-pool addresses as "mode-dependent".
11321         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11322
11323 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
11324
11325         PR target/5740
11326         * expr.c (emit_group_load): Use extract_bit_field if
11327         needed for CONCAT arguments.
11328
11329 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
11330
11331         PR target/4863
11332         * arm.md (tablejump): Make this a define_expand.  For PIC add the
11333         offset to the base of the table.
11334         (thumb_tablejump): Matcher for Thumb tablejump insn.
11335         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11336         as the difference of two labels.
11337         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11338         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11339         tables in the code.
11340         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11341         * arm.c (get_jump_table_size): If the table is not in the text
11342         section, return zero.
11343
11344 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
11345
11346         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11347         of gen_rtx_SUBREG.
11348         (arm_reload_out_hi): Use gen_lowpart instead of
11349         gen_rtx_SUBREG to access QImode components.
11350         * config/arm/arm.md: Disable zero_extend split for QImode
11351         subregs in BIG_ENDIAN mode.
11352         (storehi_bigend): Match use of least significant byte.
11353         (storeinthi): Remove extraneous SUBREG.
11354         Add missing construction of operands[2].
11355         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11356         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11357         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11358
11359 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
11360
11361         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11362         any_operand.
11363
11364 2002-03-17  Richard Henderson  <rth@redhat.com>
11365
11366         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11367         explicitly.
11368
11369 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
11370
11371         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11372         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11373
11374 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11375
11376         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11377
11378         * predict.c (estimate_bb_frequencies): Delete unused variables.
11379
11380 2002-03-17  Richard Henderson  <rth@redhat.com>
11381
11382         * config/ia64/ia64.c (ia64_attribute_table): Move before
11383         targetm definition.  Make static.
11384
11385 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11386
11387         * c-common.h (yyparse, c_common_parse_file): New.
11388         * c-lang.c: Include c-common.h.
11389         (LANG_HOOKS_PARSE_FILE): Redefine.
11390         * c-lex.c: Include c-common.h.
11391         (yyparse): Rename c_common_parse_file.  Call yyparse.
11392         * c-parse.in (yyparse): Remove macro.
11393         * c-tree.h (yyparse_1): Remove.
11394         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11395         (LANG_HOOKS_INITIALIZER): Update.
11396         * langhooks.h (struct lang_hoooks): New hook parse_file.
11397         * toplev.c (compile_file): Use parse_file hook.
11398         * tree.h (yyparse): Remove.
11399         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
11400
11401 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
11402
11403         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11404         float_truncate, not fix.
11405         ("*truncdfsf2_real"): Ditto.
11406         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11407
11408         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11409
11410 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
11411
11412         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11413         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
11414         where appropriate.  Make the second reference to
11415         leaf_function_p a function call, as intended.  Reindented.
11416
11417         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11418         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11419
11420         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11421         add register to non-constant into sp.
11422
11423         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11424         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11425         (mips16_gp_pseudo_rtx): Lose.
11426         (INIT_EXPANDERS): Deleted.
11427         * config/mips/mips.c (mips_init_machine_status): New.
11428         (mips_free_machine_status): New.
11429         (mips_mark_machine_status): New.
11430         (override_options): Set them.
11431         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11432         (struct machine_function): ... new.  Replaced all references.
11433         (mips_add_gc_roots): Don't mark them.
11434         (embedded_pic_fnaddr_reg): New, extracted from...
11435         (embedded_pic_offset): ... here.
11436         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11437         (movsi): Likewise.
11438
11439 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
11440
11441         * cppinit.c: Revert -MD removal.
11442
11443 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11444
11445         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11446         soft registers by default for 68HC12.
11447         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11448         when compiling with -fomit-frame-pointer.
11449         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11450         (expand_epilogue): Likewise.
11451         (m68hc11_gen_rotate): Use exg when rotating by 8.
11452
11453 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11454
11455         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11456         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11457         (splits): Remove unused add splits.
11458         ("*addhi3_68hc12"): Tune constraints.
11459         ("addhi_sp"): Try to use X instead of Y in all cases and if the
11460         constant fits in 8-bits and D is dead use abx/aby instructions.
11461         ("*addhi3"): Remove extern declaration of ix_reg.
11462         ("*subsi3"): Optimize and provide new split.
11463         ("subhi3"): Cleanup.
11464         ("*subhi3_sp"): Avoid saving X if we know it is dead.
11465         (arith splits): For 68hc12 save the address register on the stack
11466         and do the arithmetic operation with a pop.
11467
11468 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11469
11470         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11471         allocating QImode in address registers.
11472         ("*movqi_m68hc11"): Likewise.
11473
11474 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
11475
11476         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11477
11478 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
11479
11480         * cppinit.c (print_help): Display -MD and -MMD.
11481         Don't display usage string.  Update assertion syntax and
11482         typo.
11483         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11484         (cpp_handle_option): Update.
11485
11486 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
11487
11488         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11489         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11490         and define it so that regardless of target CPU size,
11491         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11492         of "int" rather than "long."
11493
11494 2002-03-15  Richard Henderson  <rth@redhat.com>
11495
11496         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11497         size as a tree.
11498
11499 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11500
11501         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11502         ("tstqi" split): Avoid using memory for tstqi on address register.
11503         (splits): Remove constraints.
11504         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11505         ("cmpdf", "cmpsf"): Remove since not used.
11506         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11507         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11508
11509 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11510
11511         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11512         ("neghi2"): Tighten constraints.
11513         ("one_cmplsi2"): Optimize and simplify split.
11514         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11515
11516 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11517
11518         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11519         and split of AND operation to clear the upper bits.
11520         ("*logicalsi3_zextqi"): Likewise.
11521         ("*logicallhi3_zexthi_ashift8"): Likewise.
11522         ("*logicalsi3_silshr16"): Likewise.
11523         ("logicalsi3_silshl16"): Likewise.
11524         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11525
11526 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11527
11528         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11529         (m68hc11_indirect_p): New function.
11530         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11531         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11532         TARGET_M6812.
11533         (asm_print_register): Likewise.
11534         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11535         (m68hc11_indirect_p): Declare.
11536         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11537         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11538         (TARGET_SWITCHES): New option -mrelax.
11539         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11540         destination.
11541         ("iorsi3", "xorsi3"): Likewise.
11542         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11543         ("*andhi3_mem"): New to handle destination in memory with bclr
11544         and a scratch register.
11545         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11546         ("*andhi3_const"): New when operand2 is constant.
11547         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11548         ("*andhi3_gen"): Cleanup of the old "andhi3".
11549         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11550         ("xorqi3"): Update constraints.
11551
11552 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11553
11554         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11555         for reg_equiv_memory_loc when the operand is a register that does
11556         not get a hard register (stack location).
11557         (tst_operand): After reload, accept all memory operand.
11558         (symbolic_memory_operand): Fix detection of symbolic references.
11559         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11560         accept symbols and any constant.
11561
11562 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11563
11564         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11565         note on the insn that sets the soft frame register.
11566         (must_parenthesize): ix and iy are also reserved names.
11567         (print_operand_address): One more place where parenthesis are required
11568         to avoid confusion with register names.
11569         (m68hc11_gen_movhi): Allow push of stack pointer.
11570         (m68hc11_check_z_replacement): Fix handling of parallel with a
11571         clobber.
11572         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11573         the replacement register is.
11574         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11575         and D8_REGS classes.
11576         (MODES_TIEABLE_P): All modes are tieable except QImode.
11577
11578 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11579
11580         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11581         (___subdi3): Likewise.
11582         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11583         (__map_data_section): Optimize 68hc11 case.
11584
11585 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11586
11587         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11588         than a shift to avoid adding a register with itself.
11589         (m68hc11_memory_move_cost): Take into account NO_REGS.
11590         (m68hc11_register_move_cost): Update and use memory move cost
11591         for soft registers.
11592         (m68hc11_address_cost): Make cost of valid offset not 0 so that
11593         it gives more opportunities to cse to optimize.
11594         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11595         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11596
11597 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
11598
11599         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11600         * c-common.def (CLEANUP_STMT): New tree node.
11601         * c-common.h (CLEANUP_DECL): New macro.
11602         (CLEANUP_EXPR): Likewise.
11603         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11604         * expr.c (expand_expr): Tidy.
11605         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11606         * tree-inline.c (initialize_inlined_parameters): Clean up
11607         new local variables.
11608
11609 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
11610
11611         PR bootstrap/4128
11612         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11613         before movrXX only, use reg_overlap_mentioned_p.
11614         Only special case NE if just one insn can be generated.
11615
11616 2002-03-15  Jason Merrill  <jason@redhat.com>
11617
11618         * varasm.c (assemble_variable): Call resolve_unique_section before
11619         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
11620         of error_mark_node.
11621
11622 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
11623
11624         PR target/5170
11625         * arm.md (split pattern for thumb shiftable immediates): Add comment
11626         explaining non-obvious test.
11627
11628 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
11629
11630         PR target/5712
11631         * arm.md (movaddr, movaddr_insn): Delete.
11632
11633 2002-03-15  Jason Merrill  <jason@redhat.com>
11634
11635         * toplev.c (wrapup_global_declarations): Clarify variable handling.
11636         -fkeep-static-consts doesn't apply to comdats.
11637
11638 2002-03-14  Richard Henderson  <rth@redhat.com>
11639
11640         * c-decl.c: Include c-pragma.h.
11641         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11642         (finish_function): Tidy.
11643         * c-pragma.c: Include c-common.h.
11644         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11645         (handle_pragma_weak): Use them.
11646         (init_pragma): Register pending_weaks.
11647         * c-pragma.h (maybe_apply_pragma_weak): Declare.
11648         * print-tree.c (print_node): Print DECL_WEAK.
11649         * varasm.c (mark_weak_decls): Remove.
11650         (remove_from_pending_weak_list): Remove.
11651         (add_weak): Remove.
11652         (asm_emit_uninitialised): Call globalize_decl for weak commons.
11653         (weak_decls): Make a tree_list.
11654         (declare_weak): Cons weak_decls directly.
11655         (globalize_decl): Remove weak_decls elements directly.
11656         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
11657         symbols.  Don't pretend to handle aliases.
11658         (init_varasm_once): Update weak_decls registry.
11659         * Makefile.in: Update dependencies.
11660
11661 2002-03-14  Richard Henderson  <rth@redhat.com>
11662
11663         PR target/5312
11664         * config/ia64/ia64.c: Include tm_p.h last.
11665         (gen_nop_type): Remove duplicate definition.
11666         (cycle_end_fill_slots): Set sched_data for second L slot.
11667         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11668         (nop_cycles_until): Fix typos.
11669
11670 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
11671
11672         PR optimization/5891
11673         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
11674
11675 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
11676
11677         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
11678           descriptors correctly.
11679
11680 2002-03-14  Michael Meissner  <meissner@redhat.com>
11681
11682         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
11683         100, allowing MAX_UNROLLED_INSNS to be overridden.
11684
11685         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
11686         --param.
11687
11688         * unroll.c (params.h): Include.
11689         (MAX_UNROLLED_INSNS): Delete, now in params.h.
11690
11691         * doc/invoke.texi (--param max-unroll-insns): Document.
11692
11693         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
11694
11695 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
11696
11697         * arm.md: Fix warnings about constraints in peepholes and splits.
11698
11699 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
11700
11701         * cpphash.h (struct lexer_state): Remove line_extension member.
11702         * cpplib.c (dequote_string, do_linemarker): New functions.
11703         (linemarker_dir): New data object.
11704         (DIRECTIVE_TABLE): No longer need to interpret #line in
11705         preprocessed source.  Delete obsolete comment about return
11706         values of handlers.
11707         (end_directive, directive_diagnostics, _cpp_handle_directive):
11708         Don't muck with line_extension.
11709         (directive_diagnostics): No need to issue warnings for
11710         linemarkers here.
11711         (_cpp_handle_directive): Issue warnings for linemarkers here,
11712         when appropriate.  Dispatch linemarkers to do_linemarker, not
11713         do_line.
11714         (do_line): Code to handle linemarkers split out to do_linemarker.
11715         Convert escape sequences in filename argument, both places.
11716
11717         * cppmacro.c (quote_string): Rename cpp_quote_string and
11718         export.  All callers changed.
11719         * cpplib.h (cpp_quote_string): Prototype.
11720         * cppmain.c (print_line): Call cpp_quote_string on to_file
11721         before printing it.
11722
11723         * doc/cpp.texi: Document that escapes are now interpreted in
11724         #line and in linemarkers, and that non-printing characters are
11725         converted to octal escapes when linemarkers are generated.
11726
11727 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
11728
11729         * emit-rtl.c (try_split): Use delete_insns.
11730         * recog.c (split_all_insns): Fix terminating condition.
11731
11732 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
11733             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
11734
11735         PR target/5828
11736         * arm.c (arm_output_epilogue): Fix floating-point register save
11737         adjustment when using a frame pointer.
11738
11739 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
11740
11741         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
11742         * config/mips/mips.c (compute_frame_size): Retrofit them here.
11743         (save_restore_insns, mips_expand_epilogue): And here.
11744         (build_mips16_call_stub): And here.
11745         (mips_function_value): Use the new macros to decide whether a single
11746         or complex float can be returned in floating-point registers.  Return
11747         a parallel rtx in the complex case.
11748
11749 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
11750
11751         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
11752         call after liveness analysis.
11753
11754         * recog.c (split_insn): Use delete_insn_and_edges.
11755
11756         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
11757         instructions to have branch prediction notes.
11758         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
11759
11760 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
11761
11762         * configure.in: Don't pass -Wno-long-long to a ADA compiler
11763         that doesn't support it.
11764         * configure: Regenerate.
11765
11766 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
11767
11768         PR target/5626
11769         * config/sparc/sparc.md (normal_branch, inverted_branch,
11770         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
11771         inverted_fp_branch): Adjust calls to output_cbranch.
11772         Set length attribute.
11773         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
11774         output_v9branch.  Set length attribute.
11775         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
11776         predicates.
11777         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
11778         (output_cbranch): Likewise.  Handle far branches.
11779         (output_v9branch): Handle far branches.
11780         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
11781         Adjust prototypes.
11782         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
11783         noov_compare64_op predicates.
11784
11785 2002-03-13  Jason Merrill  <jason@redhat.com>
11786
11787         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
11788         into the function and constify it.
11789         * gthr-dce.h, gthr-solaris.h: Likewise.
11790
11791 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
11792
11793         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
11794         * config/rs6000/rs6000.c (rs6000_va_arg): Use
11795         std_expand_builtin_va_arg if not ABI_V4.
11796
11797 2002-03-13  Jason Merrill  <jason@redhat.com>
11798
11799         * varasm.c (globalize_decl): New fn.
11800         (assemble_start_function): Use it.
11801         (asm_emit_uninitialized): Use it.
11802         (assemble_alias): Use it.
11803         (assemble_variable): Use it.
11804
11805 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
11806
11807         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
11808         2002-03-12 internal visibility change.
11809         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
11810         visibility into SYMBOL_REF_FLAG.
11811
11812 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
11813
11814         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
11815         VOIDmode operand.  Add compile-time optimization for constant results.
11816
11817 2002-03-12  Jason Merrill  <jason@redhat.com>
11818
11819         * c-typeck.c (convert_for_assignment): Don't allow conversions
11820         between pointers and references.  Only allow lvalues to convert to
11821         reference.
11822
11823 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
11824
11825         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
11826         before prologue, to avoid scheduling problems.
11827
11828 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
11829
11830         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
11831         (ELIMINABLE_REGS): Add sfp->sp.
11832         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
11833
11834 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
11835
11836         PR optimization/5892
11837         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
11838
11839 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
11840
11841         * loop.c (basic_induction_var): Don't call convert_modes if mode
11842         classes are different.
11843
11844 2002-03-12  Richard Henderson  <rth@redhat.com>
11845
11846         PR optimization/5901
11847         * function.c (reposition_prologue_and_epilogue_notes): Position
11848         the markers after/before the last/first insn not deleted.
11849
11850 2002-03-12  Richard Henderson  <rth@redhat.com>
11851
11852         PR optimization/5878
11853         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
11854         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
11855         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11856
11857         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
11858         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
11859         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
11860
11861         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
11862         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
11863         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
11864         also.  Don't set it if not flag_pic.
11865         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
11866         to be INVALID_REGNUM when not used.
11867
11868 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
11869
11870         * expmed.c (store_bit_field): Reset alias set for memory.
11871         (extract_bit_field): Same.
11872
11873 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11874
11875         * c-common.c (c_tree_code_type, c_tree_code_length,
11876         c_tree_code_name, add_c_tree_codes): Delete.
11877         * c-common.h (add_c_tree_codes): Delete.
11878         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
11879         Define.
11880         * c-objc-common.c (c_objc_common_init): Don't call
11881         add_c_tree_codes, instead set lang_unsafe_for_reeval.
11882         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
11883         objc_tree_code_name, add_objc_tree_codes): Delete.
11884         (objc_init): Don't call add_objc_tree_codes.
11885         * objc/objc-lang.c (tree_code_type, tree_code_length,
11886         tree_code_name): Define.
11887         * toplev.c (lang_independent_init): Don't set
11888         tree_code_length[IDENTIFIER_NODE].
11889         * tree.c (tree_code_type, tree_code_length, tree_code_name):
11890         Delete definitions, moved to language front-ends.
11891         * tree.def (IDENTIFIER_NODE): Hardwire the length.
11892         * tree.h (tree_code_type, tree_code_length, tree_code_name):
11893         Const-ify.
11894         (tree_code_length): Change type to unsigned char.
11895
11896 2002-03-12  Richard Henderson  <rth@redhat.com>
11897
11898         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
11899         internal visibility change.
11900
11901 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
11902
11903         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
11904         validize_mem() instead of change_address to avoid clobbering
11905         memory attributes.
11906
11907 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
11908
11909         * c-lex.h (position_after_whitespace): Remove.
11910
11911 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
11912
11913         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
11914         (lex_string): Use unsigned char pointers.
11915
11916 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
11917
11918         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
11919         is not a valid memory_operand.
11920
11921 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
11922
11923         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
11924         * config/xtensa/lib1funcs.asm: Fix copyright to include
11925         special case for libgcc files.
11926         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
11927         (__divsi3): Likewise.
11928         (__umodsi3): Likewise.
11929         (__modsi3): Likewise.
11930         * config/xtensa/lib2funcs.S: Fix copyright to include
11931         special case for libgcc files.
11932
11933 2002-03-12  Tom Rix  <trix@redhat.com>
11934
11935         * collect2.c (resolve_lib_name): Move outside of
11936         OBJECT_FORMAT_COFF ifdef.
11937         (ignore_library): Same.
11938
11939 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
11940
11941         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
11942
11943 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
11944
11945         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
11946         to function_section before writing out the constant pool.
11947
11948 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
11949
11950         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
11951         zero_constant.
11952         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
11953
11954 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
11955
11956         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
11957         (adddi3): Likewise.
11958         (movdf): Likewise.
11959         (movdi): Likewise.
11960         (cmpsi splitter): Likewise.
11961         (modsi3): Fail if <= 0.
11962         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
11963         redundant test when HOST_BITS_PER_WIDE_INT != 32.
11964         (reg_or_sub_cint64_operand): Likewise.
11965         (num_insns_constant_wide): Optimize sign extension.
11966         (rs6000_legitimize_address): Likewise.
11967
11968 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
11969
11970         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11971         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11972
11973 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
11974
11975         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
11976         address calculation.
11977
11978 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
11979
11980         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
11981         scratch register to DImode / TImode.
11982         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
11983         register used does not overlap the target.
11984
11985 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11986
11987         * Makefile.in (debug.o): Depend on debug.h.
11988         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
11989         * debug.c (do_nothing_debug_hooks): Likewise.
11990         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
11991         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
11992         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
11993         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
11994         * dwarfout.c (dwarf_debug_hooks): Likewise.
11995         * integrate.c (output_inline_function): Likewise.
11996         * objc/objc-act.c (synth_module_prologue): Likewise.
11997         * sdbout.c (sdb_debug_hooks): Likewise.
11998         * toplev.c (debug_hooks): Likewise.
11999         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12000
12001 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12002
12003         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
12004         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
12005         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
12006         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
12007         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
12008         * defaults.h (POINTER_SIZE): Define.
12009         * doc/tm.texi (POINTER_SIZE): Document default.
12010
12011 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12012
12013         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
12014
12015 2002-03-11  Richard Henderson  <rth@redhat.com>
12016
12017         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
12018         if rebuild_label_notes_after_reload.
12019
12020 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
12021
12022         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
12023         emit pic register load if "internal" visibility.
12024         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
12025         (cris_expand_builtin_va_arg): Do all computations on trees.
12026
12027 2002-03-11  Richard Henderson  <rth@redhat.com>
12028
12029         * rtlanal.c: Include recog.h.
12030         (keep_with_call_p): Fix thinko.
12031         * Makefile.in (rtlanal.o): Update dependencies.
12032
12033 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
12034
12035         * genflags.c (gen_insn): Use IS_VSPACE.
12036         * genoutput.c (output_insn_data): Likewise.
12037         (process_template): Likewise.
12038
12039 2002-03-11  Richard Henderson  <rth@redhat.com>
12040
12041         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
12042
12043 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12044
12045         * Makefile.in: Update.
12046         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
12047         Update documentation.
12048         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
12049         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
12050
12051 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
12052
12053         * Makefile.in: Give texi2pod its input file as a command line
12054         argument, not on stdin.
12055
12056 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
12057             Daniel Berlin  <dan@dberlin.org>
12058
12059         C++ alias analysis improvement.
12060         * alias.c (record_component_aliases): Record aliases for base
12061         classes too.
12062
12063 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
12064
12065         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
12066
12067 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
12068
12069         * toplev.c (vms_fopen): Remove, not needed.
12070
12071         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
12072
12073         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
12074
12075         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
12076         for FP, already done later.
12077
12078         * toplev.c (debug_args): Add entry for VMS_DEBUG.
12079         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
12080
12081 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
12082
12083         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
12084         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
12085         LARGEST_EXPONENT_IS_NORMAL for the given mode.
12086         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
12087         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
12088         (ediv, emul, eldexp, esqrt): Likewise.
12089         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
12090         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
12091         (saturate): New function.
12092         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
12093         (make_nan): Use a saturation value instead of a NaN if
12094         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
12095         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
12096         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
12097         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
12098         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
12099         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
12100         !ROUND_TOWARDS_ZERO.
12101         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
12102         (ROUND_TOWARDS_ZERO): Document.
12103
12104 2002-03-11  Andreas Jaeger  <aj@suse.de>
12105
12106         * cfg.c (dump_flow_info): Remove unused variable.
12107
12108 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
12109
12110         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
12111         computations on trees.
12112
12113 2002-03-10  Richard Henderson  <rth@redhat.com>
12114
12115         PR 5693:
12116         * reload.c (copy_replacements_1): New.
12117         (copy_replacements): Use it to recurse through the rtx.
12118
12119 2002-03-10  Richard Henderson  <rth@redhat.com>
12120
12121         * loop.c (strength_reduce): Compute number of iterations as
12122         unsigned HOST_WIDE_INT.
12123
12124 2002-03-10  Richard Henderson  <rth@redhat.com>
12125
12126         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12127         to move away from the end of the block.
12128
12129 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
12130
12131         PR preprocessor/5899
12132         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
12133
12134 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12135
12136         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12137
12138         * attribs.c (decl_attributes): Fix signed/unsigned warning.
12139
12140 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
12141
12142         * config/mmix/mmix.c: Improve comments.
12143         (mmix_target_asm_function_prologue): Drop variable
12144         empty_stack_frame.  Don't allocate unused slot above fp.
12145         (mmix_target_asm_function_epilogue): Mirror prologue changes.
12146         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12147         brace in first column.
12148         (enum reg_class): Ditto.
12149         (FIRST_PARM_OFFSET): Now 0.
12150         (USER_LABEL_PREFIX): Remove #if 0:d definition.
12151
12152 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12153
12154         * combine.c (make_extraction): Fix error in last change.
12155
12156 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12157
12158         * c4x.c (c4x_fp_reglist): Const-ify.
12159         * cris.c (cris_print_operand): Likewise.
12160         * i386.c (ix86_va_arg): Likewise.
12161         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12162         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12163         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12164         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12165         * mcore.h (regno_reg_class): Likewise.
12166         * mips.c (gen_int_relational): Likewise.
12167         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12168         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
12169         * pdp11.c (move_costs): Likewise.
12170         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12171         * s390.c (s390_branch_condition_mnemonic, regclass_map):
12172         Likewise.
12173         * s390.h (regclass_map): Likewise.
12174         * sh.c (shift_amounts): Likewise.
12175         * sh.md (rotlsi3): Likewise.
12176
12177 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
12178
12179         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12180         (ne0+5): Use new clobber to generate proper shift pattern.
12181         Patch by Michael Matz <matz@kde.org>.
12182
12183 2002-03-09  Andreas Schwab  <schwab@suse.de>
12184
12185         * gcc.c (validate_all_switches): Also handle `%W{...}'.
12186
12187 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
12188
12189         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12190
12191 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
12192
12193         PR middle-end/5877
12194         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12195         even for non-representable constants.
12196
12197 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12198
12199         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12200         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12201         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12202         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12203         (pop_function_context): Compute MAY_SHARE parameter for
12204         fixup_var_refs.
12205         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12206         (gen_mem_addressof): Call fixup_var_refs with new parm.
12207
12208         * combine.c (make_extraction): Don't make extension of CONST_INT.
12209
12210 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
12211
12212         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12213         in o32 and o64 ABIs.
12214         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12215         but getting fixed-size structs passed in registers regardless of
12216         padding in o32 and o64 ABIs.
12217
12218         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12219         offset before loading address of argument passed by transparent
12220         reference.
12221
12222 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12223
12224         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12225
12226 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
12227
12228         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12229         marker such that registers after it are saved.
12230
12231 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12232
12233         * sparc.c (arith_4096_operand): Fix error in last change.
12234
12235 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
12236
12237         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12238         defaults for MEABI.
12239
12240 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
12241
12242         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12243         vectors.
12244
12245 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
12246
12247         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
12248
12249 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
12250
12251         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12252         removed; fix return value.
12253         * combine.c (combine_instructions): Dirtify blocks where we failed to
12254         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12255         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12256
12257 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12258
12259         * gcse.c (insert_insn_end_bb): Fix typo in last change.
12260
12261 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
12262
12263         * recog.c (peephole2_optimize): Re-distribute EH edges.
12264
12265 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
12266
12267         * expr.c (expand_expr): Use unsave lang hook.
12268         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12269         (LANG_HOOKS_INITIALIZER): Update.
12270         * langhooks.h (struct lang_hooks): New hook unsave.
12271         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12272         (unsave_expr_1): Remove unused lang_unsave_expr_now.
12273         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
12274         (unsave_expr_now): Remove.
12275         * tree.h (unsave_expr_now, lang_unsave,
12276         lang_unsave_expr_now): Remove.
12277         (lhd_unsave): New.
12278
12279 2002-03-08  Andreas Jaeger  <aj@suse.de>
12280
12281         * flow.c (propagate_block_delete_insn): Remove unused variable.
12282
12283 2002-03-08  Kazu Hirata  <kazu@hxi.com>
12284
12285         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12286         insn length for memory load/store.
12287
12288 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12289
12290         * doc/install.texi (--with-libiconv-prefix): Document.
12291
12292 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
12293
12294         * doc/sourcebuild.texi: Fix typo.
12295
12296 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
12297
12298         PR c/3711
12299         * builtins.c (std_expand_builtin_va_arg): Do all computations on
12300         trees.
12301
12302 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12303
12304         * rtl.c (copy_most_rtx): Move from here ...
12305         * emit-rtl.c (copy_most_rtx): ... to here.
12306
12307 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
12308
12309         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12310         SUBTARGET_CPP_SIZE_SPEC.
12311         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12312
12313         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12314
12315 2002-03-07  Matt Hiller  <hiller@redhat.com>
12316
12317         * gensupport.c (first_dir_md_include): Renamed from include;
12318         change all references.
12319         (last_dir_md_include): Renamed from last_include; change all
12320         references.
12321         (init_md_reader): Unconditionally initialize base_dir whether or
12322         not filename is a relative path.
12323
12324 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
12325
12326         * config/fp-bit.c (_unord_f2): Compile it in even if
12327         US_SOFTWARE_GOFAST is enabled.
12328
12329         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12330         NULL_RTX.  Set all HFmode operations as NULL_RTX.
12331         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12332         NULL_RTX, try reversing the comparison and the operands.
12333
12334 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
12335
12336         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12337         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12338         and MATCH_OP_DUP.
12339
12340 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
12341
12342         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12343
12344 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
12345
12346         * basic-block.h (fixup_abnormal_edges): Declare.
12347         * reload1.c (fixup_abnormal_edges): New function.
12348         * reg-stack.c (convert_regs): Use it.
12349
12350         * gcse.c (insert_insn_end_bb): Handle trapping insns.
12351
12352         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12353
12354 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
12355
12356         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12357         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12358         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12359         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12360         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12361         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12362         unless x and y could be infinite.
12363         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12364         Check that the common type of both arguments is a real, even for
12365         targets without unordered comparisons.  Allow an integer argument
12366         to be compared against a real.
12367         (expand_tree_builtin): Use expand_unordered_cmp.
12368         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12369         * cse.c (fold_rtx): Likewise.  Fix indentation.
12370         * fold-const.c (fold_real_zero_addition_p): New.
12371         (fold): Use it, and the new HONOR_... macros.
12372         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12373         * jump.c (reversed_comparison_code_parts): After searching for
12374         the true comparison mode, use HONOR_NANS to decide whether it
12375         can be safely reversed.
12376         (reverse_condition_maybe_unordered): Remove IEEE check.
12377         * simplify-rtx.c (simplify_binary_operation): Use the new macros
12378         to decide which simplifications are valid.  Allow the following
12379         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12380         and (a - -b) to (a + b).
12381         (simplify_relational_operation): Use HONOR_NANS.
12382         * doc/tm.texi: Document the MODE_HAS_... macros.
12383
12384 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12385
12386         * combine.c (simplify_comparison): If simplifying a logical shift
12387         right and compare with constant, force the comparison to unsigned.
12388
12389 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
12390
12391         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
12392
12393         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12394         -mabi=no-altivec
12395         (alt_reg_names): Remove % for vrsave.
12396
12397 2002-03-06  Richard Henderson  <rth@redhat.com>
12398
12399         PR optimization/5844
12400         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
12401         if used indicates we've already emitted one copy of an operand.
12402         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12403         (gen_split): Supply a non-null used.
12404
12405 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
12406
12407         * reload1.c (reload): Unshare all rtl after reload is done.
12408
12409         * simplify-rtx.c (simplify_plus_minus): Do not abort,
12410         but simply fail if the expression is too complex to simplify.
12411         (simplify_gen_binary): Handle simplify_plus_minus failures.
12412
12413 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
12414
12415         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12416         consistently call delete_trivially_dead_insns after CSE and GCSE;
12417         fix DFI_life dumping; do jump threading after liveness; do crossjumping
12418         after liveness2; update comment in last crossjumping.
12419         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12420
12421 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
12422
12423         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12424         after completing fast dead code elimination.
12425
12426         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12427         COMPARE operator.
12428
12429 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
12430
12431         * version.c:  Fix misplaced leading blanks on first line.
12432
12433 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
12434
12435         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12436
12437 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
12438
12439         * cfgcleanup.c (mentions_nonequal_regs): New function.
12440         (thread_jump): Use it.
12441         * toplev.c (rest_of_compilation): Run jump threading after
12442         liveness.
12443
12444 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
12445
12446         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12447         patch.
12448
12449 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
12450
12451         * predict.c (estimate_bb_frequencies): Do not reload the
12452         frequencies from notes.
12453
12454 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
12455
12456         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12457         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12458
12459         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12460         delete_noop_moves): Return indeger.
12461         * flow.c (ndead): New variable.
12462         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12463         BB argument; update callers.
12464         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12465         (life_analysis): Do not call purge_all_dead_edges.
12466         (update_life_info): Return number of deleted insns; print statistics.
12467         (update_life_info_in_dirty_blocks): likewise.
12468         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12469         return number of insns deleted.
12470
12471         * cse.c: Include timevar.h
12472         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12473         iterate until stabilizes; print statistics; return number of killed
12474         insns.
12475         * Makefile.in: (cse.o): Add timevar.h dependency
12476         * rtl.h (delete_trivially_dead_insns): New.
12477         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12478         * toplev.c (rest_of_compilation): Update callers.
12479
12480         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12481         (try_optimize_cfg): Do not update liveness.
12482         (cleanup-cfg): Loop until try_optimize_cfg and dead code
12483         removal stabilizes; use delete_trivially_dead_insns.
12484
12485         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12486
12487 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
12488
12489         * cppmain.c (setup_callbacks): Disable #pragma and #ident
12490         callbacks when processing assembly language.
12491
12492 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12493
12494         * pa.h (ASM_FILE_END): Define.
12495         * som.h (ASM_FILE_END): Delete.
12496
12497         * pa.c (function_arg): Don't pass floats in general registers in
12498         indirect calls if TARGET_ELF32.
12499
12500 2002-03-05  Richard Henderson  <rth@redhat.com>
12501
12502         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12503
12504 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
12505
12506         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12507
12508 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
12509
12510         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12511         -r command line.  Don't hide any symbols if not building
12512         shared libgcc.
12513
12514 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
12515
12516         * cfg.c (dump_flow_info): Warn about profile mismatches.
12517         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12518         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12519
12520 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
12521
12522         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12523         wide volatile memory by parts.
12524
12525 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
12526
12527         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12528         is NULL.
12529
12530 2002-03-05  Richard Henderson  <rth@redhat.com>
12531
12532         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
12533
12534 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
12535
12536         * toplev.c (documented_lang_options): Document more
12537         language-specific options.
12538         * doc/invoke.texi (Warning Options): Correct documentation for
12539         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12540         * c-decl.c (c_decode_option): Use a table to handle warning options.
12541
12542 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
12543
12544         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12545         parameter to mmix_encode_section_info.
12546         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12547         relocatably.  Always produce ELF, not mmo if linking relocatably.
12548         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12549         first is non-zero, don't add symbol prefix.
12550         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12551         prototype accordingly.
12552
12553 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
12554
12555         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12556
12557 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
12558
12559         * configure.in: Increase required makeinfo version to 4.1.
12560         * configure: Regenerate.
12561
12562 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
12563
12564         * .cvsignore: Remove *.info* and genrtl*; these files are generated
12565         elsewhere now.
12566
12567 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
12568
12569         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12570         * doc/invoke.texi: Fix @math uses.
12571
12572 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
12573
12574         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12575         removal
12576
12577 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
12578
12579         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12580         (powerpc-*-eabisimaltivec*): Same.
12581
12582         * config/rs6000/t-ppcendian: New.
12583
12584 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12585
12586         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12587         nonimmediate_src_operand and nonimmediate_lsrc_operand to
12588         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12589
12590 2002-03-03  Richard Henderson  <rth@redhat.com>
12591
12592         * toplev.c (rest_of_decl_compilation): Revert last two changes.
12593
12594 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
12595
12596         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12597         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12598         tree.c, config/m68k/m68k.c:
12599         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12600         REAL_ARITHMETIC blocks unconditional.  Delete some further
12601         #ifdef blocks predicated on REAL_ARITHMETIC.
12602         * flags.h, toplev.c: Delete remaining references to
12603         flag_pretend_float.
12604
12605         * doc/invoke.texi: Remove documentation of -fpretend-float.
12606         * doc/tm.texi: Describe the various REAL_* macros as provided by
12607         real.h, not by the target configuration files.
12608
12609         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12610         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12611         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12612         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12613         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12614         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12615         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12616         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12617         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12618         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12619         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12620         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12621         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12622         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12623         config/xtensa/xtensa.h:
12624         Do not define, undefine, or mention in comments any of
12625         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12626         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12627         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12628         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12629         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12630         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12631         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12632         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12633         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12634
12635 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12636
12637         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12638         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12639         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12640         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12641         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12642         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12643         Delete.
12644         * defaults.h (BITS_PER_WORD): Define.
12645         * doc/tm.texi (BITS_PER_WORD): Document default value.
12646
12647         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12648         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12649         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12650
12651 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12652
12653         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12654         lieu of explicit sizeof/sizeof.
12655         * i386.c (override_options, ix86_init_mmx_sse_builtins,
12656         ix86_expand_builtin): Likewise.
12657         * mips.c (mips_add_gc_roots): Likewise.
12658         * mmix.c (mmix_output_condition): Likewise.
12659         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12660         altivec_init_builtins): Likewise.
12661         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12662         * cppexp.c (Nsuff, parse_number): Likewise.
12663         * cppinit.c (builtin_array_end): Likewise.
12664         * gcc.c (n_default_compilers, process_command): Likewise.
12665         * genpreds.c (output_predicate_decls): Likewise.
12666         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12667         * lcm.c (N_ENTITIES): Likewise.
12668         * stor-layout.c (set_sizetype): Likewise.
12669
12670 2002-03-03  Richard Henderson  <rth@redhat.com>
12671
12672         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
12673         for types or labels.
12674
12675 2002-03-03  Richard Henderson  <rth@redhat.com>
12676
12677         * c-decl.c (start_decl): Initialized variables are not common.
12678
12679 2002-03-02  Per Bothner  <per@bothner.com>
12680
12681         * gcc.c (option_map):  Suport new --bootclasspath option.
12682         --CLASSPATH is now just an alias for --classpath.
12683
12684 2002-03-02  Richard Henderson  <rth@redhat.com>
12685
12686         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
12687         load if "internal" visibility.
12688         * doc/extend.texi: Document visibility meanings.
12689
12690 2002-03-02  Richard Henderson  <rth@redhat.com>
12691
12692         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
12693         to functions as well.
12694
12695 2002-03-02  Richard Henderson  <rth@redhat.com>
12696
12697         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
12698         (handle_visibility_attribute): Don't call assemble_visibility.
12699         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
12700         without asmspec.  Invoke assemble_alias when needed.
12701         * varasm.c (maybe_assemble_visibility): New.
12702         (assemble_start_function, assemble_variable, assemble_alias): Use it.
12703
12704 2002-03-02  Richard Henderson  <rth@redhat.com>
12705
12706         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
12707         invoke ENCODE_SECTION_INFO with first call flag.
12708
12709         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12710         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
12711         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
12712         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
12713         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12714         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12715         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12716         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
12717         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
12718         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
12719         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12720         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
12721         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12722         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
12723         config/mcore/mcore-protos.h, config/mcore/mcore.c,
12724         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
12725         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
12726         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
12727         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
12728         config/sh/sh.h, config/sparc/sparc.h,
12729         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12730         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
12731         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
12732         FIRST argument.  As needed, examine it and do nothing.
12733
12734         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
12735         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12736         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
12737
12738         * config/arm/t-pe (pe.o): Add dependencies.
12739
12740 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12741
12742         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
12743         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
12744         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
12745         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
12746         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
12747         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
12748         * defaults.h (BITS_PER_UNIT): Define.
12749         * doc/tm.texi (BITS_PER_UNIT): Document default value.
12750
12751 2002-03-02  Kazu Hirata  <kazu@hxi.com>
12752
12753         * config/h8300/h8300-protos.h: Add a prototype for
12754         compute_a_shift_length.
12755         * config/h8300/h8300.c (h8300_asm_insn_count): New.
12756         (compute_a_shift_length): Likewise.
12757         (h8300_adjust_insn_length): Do not adjust insn length of shift
12758         insns.
12759         * config/h8300/h8300.md (anonymous shift patterns): Use
12760         compute_a_shift_length.
12761
12762 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12763
12764         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
12765         trunc_int_for_mode.
12766
12767         * emit-rtl.c (offset_address): Call update_temp_slot_address.
12768
12769 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12770
12771         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
12772         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
12773         * flags.h (flag_zero_initialized_in_bss): Declare.
12774         * toplev.c (flag_zero_initialized_in_bss): New flag.
12775         (lang_independent_options): Add flag_zero_initialized_in_bss.
12776         * tree.c (initializer_zerop): New function.
12777         * tree.h (initializer_zerop): Declare.
12778         * varasm.c (assemble_variable): If we can emit bss, put zero
12779         initializers in the bss section.
12780
12781 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
12782
12783         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
12784         like more than one symbol per .weak directive.
12785
12786 2002-03-01  Richard Henderson  <rth@redhat.com>
12787
12788         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
12789         adjust argument_pointer by pretend_args_size.
12790         (ia64_va_start): Adjust va_start address by -pretend_args_size.
12791
12792 2002-03-01  Kazu Hirata  <kazu@hxi.com>
12793
12794         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
12795
12796 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
12797
12798         * toplev.c (rest_of_compilation): Delete dead jumptables before
12799         loop.
12800         * flow.c (delete_dead_jumptables): Make global.
12801         * rtl.h (delete_dead_jumptables): Declare.
12802
12803 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
12804
12805         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
12806         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
12807         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
12808
12809 2002-03-01  Kazu Hirata  <kazu@hxi.com>
12810
12811         * config/h8300/h8300-protos.h: Fix formatting.
12812         * config/h8300/h8300.c: Likewise.
12813         * config/h8300/h8300.h: Likewise.
12814
12815 2002-03-01  Kazu Hirata  <kazu@hxi.com>
12816
12817         * config/h8300/h8300.c (print_operand): Support 16-bit
12818         constant addresses.
12819         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
12820
12821 2002-02-28  Richard Henderson  <rth@redhat.com>
12822
12823         * expmed.c (store_bit_field): Prevent generation of CONCATs;
12824         pun complex values as integers; use gen_lowpart instead of
12825         gen_rtx_SUBREG.
12826         (extract_bit_field): Likewise.
12827
12828 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
12829             David Edelsohn  <edelsohn@gnu.org>
12830
12831         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
12832         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
12833         (SUPPORTS_WEAK): Likewise.
12834         * output.h (add_weak): Add tree param.
12835         * varasm.c (add_weak): Likewise.  Save decl.
12836         (struct weak_syms): Add decl field.
12837         (mark_weak_decls): New function.
12838         (init_varasm_once): ggc_add_root mark_weak_decls.
12839         (assemble_start_function): Use ASM_WEAKEN_DECL.
12840         (assemble_variable): Likewise.
12841         (assemble_alias): Likewise.
12842         (declare_weak): Pass decl to add_weak.
12843         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
12844         (remove_from_pending_weak_list): Declare and define for
12845         ASM_WEAKEN_DECL.
12846         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
12847         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
12848         * defaults.h (SUPPORTS_WEAK): Likewise.
12849         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12850         .weak for code sym.  Do emit .size for descriptor sym.
12851         (ASM_DECLARE_FUNCTION_SIZE): Define.
12852         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
12853         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
12854         .lglobl unless TARGET_XCOFF.  Formatting fixes.
12855         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12856         .weak for code sym.
12857         (HANDLE_PRAGMA_WEAK): Remove.
12858         (ASM_WEAKEN_LABEL): Remove.
12859         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
12860
12861 2002-03-01  Jason Merrill  <jason@redhat.com>
12862
12863         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
12864         (TARGET_EXPR_CLEANUP): New macro.
12865
12866 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
12867
12868         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
12869         to take ptr_extend into account as third type of extension.
12870         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
12871         fields used by SUBREG_PROMOTED_UNSIGNED_P.
12872         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
12873         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
12874         * calls.c (precompute_arguments): Use new macro.
12875         (expand_call): Ditto.
12876         * combine.c (nonzero_bits): Ditto.
12877         (record_promoted_value): Ditto.
12878         * expr.c (store_expr): Ditto.
12879         (expand_expr): Ditto.
12880         * function.c (assign_parms): Ditto.
12881
12882 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
12883
12884         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
12885         override -shared and -shared-libgcc.
12886
12887 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
12888
12889         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
12890         of "ultrasparc".
12891         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
12892         to be broken.
12893
12894 2002-02-28  Richard Henderson  <rth@redhat.com>
12895
12896         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
12897         4 cycle latency from MM producers.
12898         (ia64_internal_sched_reorder): Likewise with pipeline flush.
12899
12900 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
12901
12902         * mklibgcc.in: Don't use GNU make extension.
12903
12904 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
12905
12906         * c-parse.in (STATIC): New terminal.
12907         (scspec): New non-terminal.  Update productions accordingly.
12908         (program): Remove bogus ifc / end ifc.
12909         (array_declarator): Simplify production using STATIC.
12910
12911 2002-02-28  Jim Meyering  <meyering@lucent.com>
12912
12913         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
12914         \a still means TARGET_BELL.
12915
12916 2002-02-28  Richard Henderson  <rth@redhat.com>
12917
12918         * haifa-sched.c (sched_emit_insn): New.
12919         (schedule_block): Use last_scheduled_insn to track last insn.
12920         * sched-int.h (sched_emit_insn): Prototype.
12921         * config/ia64/ia64.c (last_issued): Remove.
12922         (ia64_variable_issue): Don't set it.
12923         (nop_cycles_until): Use sched_emit_insn.
12924
12925 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
12926
12927         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
12928         extended constants.
12929
12930 2002-02-28  Kazu Hirata  <kazu@hxi.com>
12931
12932         * config/h8300/h8300.c: Fix formatting.
12933         * config/h8300/h8300.h: Likewise.
12934
12935 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12936
12937         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
12938         which may overwrite the high byte of the frame pointer.
12939
12940 2002-02-28  Bo Thorsen  <bo@suse.de>
12941
12942         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
12943         (STARTFILE_SPEC): Add 64 bit files.
12944         (ENDFILE_SPEC): Likewise.
12945
12946 2002-02-28  Jason Merrill  <jason@redhat.com>
12947
12948         * c-decl.c (finish_function): Only warn about missing return
12949         statement with -Wreturn-type.
12950
12951 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12952
12953         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
12954
12955         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
12956         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
12957
12958 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
12959
12960         * basic-block.h (BB_REACHABLE): Renumber.
12961         (BB_DIRTY, BB_NEW): New flags.
12962         (clear_bb_flags): Declare.
12963         (update_life_info_in_dirty_blocks): Declare.
12964         * cfg.c (clear_bb_flags): New function.
12965         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
12966         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
12967         reorder_insns, emit_insn_after): Mark block as dirty.
12968         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
12969         (update_life_info_in_dirty_blocks): New function.
12970         * recog.c (apply_change_group): Dirtify block.
12971
12972         * cse.c (cse_insn): Reorder emitting of jump insn to keep
12973         cfg consistent.
12974         * gcse.c (delete_null_pointer_checks): Likewise.
12975
12976         * toplev.c (dump_file_index): Move cse2 after bp,
12977         add DFI_null
12978         (dump_file_info): Similary.
12979         (rest_of_compilation): Avoid most of CFG rebuilds;
12980         do first if converision after null pointer checks, do cse2
12981         after branch prediction; avoid full liveness rebuild after
12982         initializing subregs.
12983         * invoke.texi (-d options): Document -du, renumber.
12984
12985         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
12986         (notice_new_block): Do not set BB_UPDATE_LIFE.
12987         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
12988          merge_blocks_move_successor_nojumps, merge_blocks,
12989          try_crossjump_to_edge): Likewise.
12990         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
12991         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
12992         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
12993         (merge_of_block): Do not use life_data_ok.
12994         (find_if_case_1): Do not use SET_UPDATE_LIFE.
12995         (if_convert): Use BB_DIRTY mechanizm to update life.
12996         * lcm.c (optimize_mode_switching): Update
12997         update_life_info_in_dirty_blocks
12998
12999 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
13000
13001         * Makefile.in (integrate.o): Update.
13002         * c-decl.c (copy_lang_decl): Rename.
13003         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13004         * integrate.c: Include langhooks.h.
13005         (copy_decl_for_inlining): Update to use langhook.
13006         * langhooks-def.h (lhd_do_nothing_t,
13007         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
13008         (LANG_HOOKS_INITIALIZER): Update.
13009         * langhooks.c (lhd_do_nothing_t): New.
13010         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
13011         * tree.h (copy_lang_decl): Remove.
13012 objc:
13013         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13014
13015 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
13016
13017         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
13018         POST_DEC, and POST_MODIFY.
13019
13020 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
13021
13022         * c-typeck.c (digest_init): Remove unused parameter; all
13023         callers changed.
13024
13025 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
13026
13027         * expmed.c (expand_shift): Correctly test for low part of a
13028         subreg.
13029
13030 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
13031
13032         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
13033         insn UIDs with insn addresses.
13034
13035 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
13036
13037         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
13038         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
13039         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
13040         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
13041         gcc.c, toplev.c: Delete code implementing -traditional mode.
13042
13043         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
13044         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
13045         Document removal of -traditional mode for compilation, and
13046         remove documentation only relevant to that mode.
13047
13048         * config/nextstep.h, config/ptx4.h, config/svr4.h,
13049         config/convex/convex.h, config/d30v/d30v.h,
13050         config/i386/dgux.h, config/i386/osf1elf.h,
13051         config/i386/osfelf.h, config/i386/osfrose.h,
13052         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
13053         config/m68k/hp310.h, config/m88k/dgux.h,
13054         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
13055         config/m88k/m88k.h, config/m88k/openbsd.h,
13056         config/mips/abi64.h, config/mips/osfrose.h,
13057         config/mips/svr4-5.h, config/mips/svr4-t.h,
13058         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13059         config/stormy16/stormy16.h: Remove all references to
13060         -traditional from target specs.  Delete all mention of the
13061         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
13062         delete a couple of commented-out definitions of
13063         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
13064         to -traditional.
13065
13066         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
13067         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
13068
13069 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
13070
13071         * mklibgcc.in: Don't use \n in a line subject to
13072         interpretation by echo.
13073
13074 2002-02-27  Graham Stott  <grahams@redhat.com>
13075
13076         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
13077         Constify NAME.
13078
13079         * loop.c (prescan_loop): Handle PARALLEL.
13080
13081         * unroll.c (loop_iterations): Return 0 if the add_val for
13082         a BIV is REG.
13083
13084         * final.c (output_operand_lossage): Constify PFX_STR.
13085
13086         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
13087
13088 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13089
13090         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
13091         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
13092
13093 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
13094
13095         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13096
13097 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
13098
13099         * cpplex.c (_cpp_lex_token): Handle directives in macro
13100         arguments.
13101         * cpplib.c (_cpp_handle_directive): Save and restore state
13102         if parsing macro args when entering a directive.
13103         * cppmacro.c (collect_args): No need to handle directives
13104         in macro arguments.
13105         (enter_macro_context, replace_args): Use the original macro
13106         definition in case it was redefined whilst collecting arguments.
13107 doc:
13108         * cpp.texi: Update.
13109
13110 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
13111
13112         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13113         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13114         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13115         method on AIX.
13116         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13117         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13118         (load_toc_v4_PIC_2): Same.
13119
13120 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
13121
13122         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13123
13124 2002-02-26  Richard Henderson  <rth@redhat.com>
13125
13126         * config/alpha/alpha.md (ashldi_se): Re-enable.
13127
13128 2002-02-26  Richard Henderson  <rth@redhat.com>
13129
13130         * config/alpha/alpha.c (alpha_encode_section_info): Examine
13131         MODULE_LOCAL_P; improve commentary.
13132
13133 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
13134
13135         * doc/cpp.texi: Clarify documentation of relationship between
13136         #line and #include.
13137
13138 2002-02-26  Kazu Hirata  <kazu@hxi.com>
13139
13140         * config/h8300/h8300-protos.h: Update the prototype for
13141         compute_logical_op_length.  Add the prototype for
13142         compute_logical_op_cc.
13143         * config/h8300/h8300.c (compute_logical_op_length): Figure out
13144         code from operands.
13145         (compute_logical_op_cc): New.
13146         * config/h8300/h8300.md: Combine all the logical op patterns
13147         in HImode and SImode.  Use compute_logical_op_cc.
13148
13149 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
13150
13151         * config/i386/i386.c (print_operand): Don't append ATT-style
13152         length suffixs to x87 opcodes when in Intel mode.
13153
13154 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
13155
13156         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13157         (init_emit_once): Update calls.
13158         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13159         (init_syntax_once): Prototype.
13160
13161 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13162
13163         * pa-linux.h (LIB_SPEC): Update definition.
13164         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13165
13166 2002-02-26  Richard Henderson  <rth@redhat.com>
13167
13168         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13169         if we emitted a stop bit.
13170
13171 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
13172
13173         * configure.in (libgcc_visibility): Substitute.
13174         * configure: Rebuilt.
13175         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13176         defined symbols .hidden.
13177
13178 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
13179
13180         * attribs.c (c_common_attribute_table): Add visibility.
13181         (handle_visibility_attribute): New function.
13182         * varasm.c (assemble_visibility): New function.
13183         * output.h (assemble_visibility): Add prototype.
13184         * tree.h (MODULE_LOCAL_P): Define.
13185         * crtstuff.c (__dso_handle): Use visibility attribute.
13186         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13187         for MODULE_LOCAL_P symbols too.
13188         * config/ia64/ia64.c (ia64_encode_section_info): Handle
13189         MODULE_LOCAL_P symbols the same way as local symbols.
13190         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13191         into .sdata/.sbss by the user.
13192         * doc/extend.texi (Function Attributes): Document visibility
13193         attribute.
13194
13195 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
13196
13197         PR debug/5770
13198         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13199         STRING_CST initializer spanning the whole variable without
13200         embedded zeros.
13201         If expand_expr returned MEM, don't use it.
13202
13203 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
13204
13205         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13206         generate a die for the lexical block.
13207
13208 2002-02-26  Kazu Hirata  <kazu@hxi.com>
13209
13210         * config/h8300/h8300-protos.h: Add a prototype for
13211         compute_logical_op_length.
13212         * config/h8300/h8300.c (compute_logical_op_length): New.
13213         * config/h8300/h8300.md (anonymous logical patterns): Use
13214         compute_logical_op_length for length.
13215
13216 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
13217
13218         * dwarf2out.c (modified_type_die): Do not call type_main_variant
13219         for vectors.
13220         (gen_type_die): Same.
13221
13222         * attribs.c (handle_vector_size_attribute): Set debug information.
13223
13224 2002-02-26  Daniel Egger  <degger@fhm.edu>
13225
13226         * config/rs6000/rs6000.md: Swap define_insn attributes to
13227         fix incorrect generation of merge high instructions instead
13228         of merge low.
13229
13230 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
13231
13232         * c-typeck.c (really_start_incremental_init): Use
13233         bitsize_zero_node for vectors.
13234
13235 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
13236
13237         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13238         ("*set_vrsave_internal"): Same.
13239
13240 2002-02-25  Richard Henderson  <rth@redhat.com>
13241
13242         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13243         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
13244
13245 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
13246
13247         PR target/5755
13248         * config/i386/i386.c (ix86_return_pops_args): Only pop
13249         fake structure return argument if it was passed on the stack.
13250
13251 2002-02-25  Jason Merrill  <jason@redhat.com>
13252
13253         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13254         RESULT_DECL.
13255
13256 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
13257
13258         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13259         link with shared_name only.
13260         * doc/invoke.texi (Link Options): Document new behavior.
13261
13262 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
13263
13264         * c-typeck.c (push_init_level): Handle vectors.
13265
13266 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
13267
13268         * config/sparc/sparc.c (const64_high_operand): Zero-extend
13269         operands of SPARC_SETHI_P.
13270         (input_operand): Likewise.
13271         (sparc_emit_set_const32): Likewise.
13272         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13273         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13274         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
13275         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13276         (movdi_insn_sp64_vis): Likewise.
13277         (movdi split, movdf split): Use SETHI32.
13278         * doc/md.texi: Document SPARC constraints L, M and N.
13279
13280 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
13281
13282         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13283         ("*set_vrsave_internal"): use mfspr for Darwin.
13284
13285         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13286         gen_get_vrsave_internal.
13287
13288 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13289
13290         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13291
13292 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13293
13294         * cpplex.c (cpp_interpret_charconst): Get signedness or
13295         otherwise of wide character constants correct.
13296         * cppexp.c (lex): Get signedness of wide charconsts correct.
13297
13298 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13299
13300         * optabs.c (widen_operand): Only call convert_modes for
13301         promoted SUBREG if signedness matches.
13302         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13303
13304 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13305
13306         * cpplib.c (glue_header_name): Use local buffer to build up
13307         header name.
13308
13309 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13310
13311         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13312
13313 2002-02-23  Kazu Hirata  <kazu@hxi.com>
13314
13315         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13316         H8/300[HS] separately.
13317         * config/h8300/h8300.md: Remove the early clobber constraint
13318         from bit field patterns.
13319
13320 2002-02-23  Kazu Hirata  <kazu@hxi.com>
13321
13322         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13323         register_operand.
13324         (mulhisi3): Likewise.
13325         (umulqisi3): Likewise.
13326         (umulhisi3): Likewise.
13327
13328 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13329
13330         * cppinit.c (output_deps): Correct test for stdout output.
13331         (init_dependency_output): Cure warning.
13332
13333 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13334
13335         * expr.c (store_expr): When converting expression to promoted
13336         equivalent type, allow using SUBREG_REG of TARGET as the target
13337         of the expansion of EXP.
13338         * loop.c (basic_induction_var, case SUBREG): Always look inside.
13339         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13340         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13341         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13342         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13343
13344 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
13345
13346         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13347         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13348         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13349
13350 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
13351
13352         PR optimization/5747
13353         * loop.c (scan_loop): Update reg info if move_movables created new
13354         pseudos.
13355
13356 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
13357
13358         * gcc.c (init_gcc_spec): Revert last change.
13359
13360 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
13361
13362         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13363         gpc_reg_operand constraint.
13364
13365 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
13366
13367         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13368         Simplify comparison of `low'.
13369         (add_operand): Fix formatting.
13370         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
13371         (mask_operand): Disallow mask to wrap in 64-bit mode.
13372         (rs6000_stack_info): Remove redundant test setting push_p.
13373         (output_toc): Fix formatting.
13374         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13375         cc_reg_not_cr0_operand constraint.
13376         (booldi3, boolcdi3 splitters): Same.
13377
13378 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
13379
13380         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
13381
13382 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
13383
13384         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13385         gcc invoked with -shared-libgcc.
13386
13387 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
13388
13389         PR c++/5748
13390         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13391         decl if any of elements was TREE_USED.
13392
13393 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
13394
13395         * config/sparc/sol2.h: Don't include sys/mman.h.
13396         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13397         (arith_4096_operand): Don't throw high bits away.
13398         (const64_operand): Take sign extension of CONST_INTs into account.
13399         (const64_high_operand, sparc_emit_set_const32): Likewise.
13400         (GEN_HIGHINT64): Likewise.
13401         (sparc_emit_set_const64_quick1): Likewise.
13402         (const64_is_2insns): Likewise.
13403         (print_operand): Use trunc_int_for_mode for sign extension.
13404         * config/sparc/sparc.h (SMALL_INT32): Likewise.
13405         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13406         chars.  Assume CONST_INT is already properly sign-extended.
13407         (movdi split): Sign-extend each SImode part.
13408         (andsi3 split): Don't mask high bits off, so that result
13409         remains properly sign-extend.
13410         (iorsi3 split): Likewise.
13411         (xorsi3 split): Likewise.
13412
13413 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
13414
13415         * fold-const.c (fold): Fix typo in comments.
13416
13417 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
13418
13419         * Makefile.in (langhooks.o): Update dependencies.
13420
13421 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
13422
13423         * langhooks.c: Include flags.h.
13424
13425 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
13426
13427         * testsuite/gcc.dg/attr-alwaysinline.c: New.
13428
13429         * c-common.c (c_common_post_options): Set inline trees by
13430         default.
13431
13432         * doc/extend.texi (Function Attributes): Document always_inline
13433         attribute.
13434         Update documentation about inlining when not optimizing.
13435
13436         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13437
13438         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13439         unless DECL_ALWAYS_INLINE.
13440
13441         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13442         unless DECL_ALWAYS_INLINE.
13443         (c_disregard_inline_limits): Disregard if always_inline set.
13444
13445         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13446         Disregard if always_inline set.
13447         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13448         unless DECL_ALWAYS_INLINE.
13449
13450         * attribs.c (handle_always_inline_attribute): New.
13451         (c_common_attribute_table): Add always_inline.
13452
13453         * config/rs6000/altivec.h: Add prototypes for builtins
13454         requiring the always_inline attribute.
13455
13456 2002-02-21  Eric Christopher  <echristo@redhat.com>
13457
13458         * expmed.c (store_bit_field): Try to simplify the subreg
13459         before generating a new one when when the mode size of
13460         value is less than maxmode.
13461
13462 2002-02-21  Richard Henderson  <rth@redhat.com>
13463
13464         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13465         than gen_rtx_PLUS to form the sum.
13466         * explow.c (force_reg): Rearrange to not allocate new pseudo
13467         when force_operand returns a register.
13468         * expr.c (expand_assignment): Allow offset_rtx expansion to
13469         return a sum.  Do not force addresses into registers.
13470         (expand_expr): Likewise.
13471         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13472         to canonicalize arithmetic that didn't simpify.
13473         (simplify_plus_minus): New argument force; update
13474         all callers.  Don't split CONST unless we can do something with it,
13475         and wouldn't lose the constness of the operands.
13476
13477         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13478         that we generated earlier.
13479
13480 2002-02-21  Tom Tromey  <tromey@redhat.com>
13481
13482         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13483         (output_line_info): Use constant `1', with a long explanatory
13484         comment.
13485         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13486
13487 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
13488
13489         * jump.c (redirect_jump): If old label has no UID, don't try to
13490         delete it.
13491
13492 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
13493
13494         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13495         If input is constant, do shifts at compile time.
13496
13497 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
13498
13499         * doc/extend.texi: Fix some more overfull hboxes.
13500
13501 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
13502
13503         PR optimization/4994
13504         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13505         register moves.
13506
13507 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
13508
13509         PR c++/4574
13510         * expr.h (expand_and): Add mode argument.
13511         * expmed.c (expand_and): Add mode argument.
13512         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13513         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13514         * except.c (expand_builtin_extract_return_addr): Likewise.
13515         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13516         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13517         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13518         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13519         * config/c4x/c4x.md: Use GEN_INT (x) instead of
13520         gen_rtx (CONST_INT, VOIDmode, x).
13521
13522 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
13523
13524         PR c/4697:
13525         * stmt.c (warn_if_unused_value): Move side effects test once more.
13526
13527 2002-02-20  Torbjorn Granlund  <tege@swox.com>
13528
13529         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
13530         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
13531
13532 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
13533
13534         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13535         SUBREG or ZERO_EXTEND.
13536
13537 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
13538
13539         * sh.h (current_function_anonymous_args): Remove.
13540         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13541         of current_function_varargs and current_function_stdarg is set.
13542         * sh.c (sh_expand_prologue): Check current_function_varargs /
13543         current_function_stdarg / TARGET_SH5 instead of
13544         current_function_anonymous_args.
13545
13546         * sh64.h (TARGET_VERSION): Define.
13547
13548 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
13549
13550         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13551         VRSAVE_REGNO on TARGET_ALTIVEC.
13552
13553 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
13554
13555         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13556         bits of SImode const_int.
13557         (includes_rshift_p): Likewise.
13558         (print_operand): Call mask_operand and mask64_operand with correct
13559         mode.
13560         (rs6000_output_function_epilogue): Pad traceback table to word.
13561         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13562         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13563         mask64_operand with correct mode.
13564         (FUNCTION_ARG_REGNO_P): Correct parentheses.
13565
13566 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
13567
13568         PR debug/4461
13569         * varasm.c (get_pool_constant_mark): New.
13570         * rtl.h (get_pool_constant_mark): Add prototype.
13571         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13572         be represented if it has not been output.
13573
13574 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
13575
13576         * combine.c (do_SUBST): Sanity check substitutions of
13577         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13578         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13579         CONST_INT into its operand.
13580         (known_cond): Likewise, for ZERO_EXTEND.
13581         * simplify-rtx.c (simplify_unary_operation): Fix condition to
13582         allow for simplification of wide modes.  Reject CONST_INTs in
13583         ZERO_EXTEND when their actual mode is not given.
13584
13585 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
13586
13587         * c-decl.c (pushdecl): If no global declaration is found for an
13588         extern declaration in block scope, try a limbo one.
13589
13590 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
13591
13592         PR c++/4401
13593         * c-common.c (pointer_int_sum): Moved from...
13594         * c-typeck.c (pointer_int_sum): ...here.
13595         * c-common.h (pointer_int_sum): Add prototype.
13596
13597 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
13598
13599         PR c++/5713
13600         * c-decl.c (duplicate_decls): Return 0 if issued error about
13601         redeclaration.
13602
13603 2002-02-20  Roger Sayle  <roger@eyesopen.com>
13604             Jakub Jelinek  <jakub@redhat.com>
13605
13606         PR c/4389
13607         * tree.c (host_integerp): Ensure that the constant integer is
13608         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13609         when pos is zero or non-zero respectively.  Clarify comment.
13610         * c-format.c (check_format_info_recurse): Fix host_integerp
13611         usage; the pos argument should be zero when assigning to a
13612         signed HOST_WIDE_INT.
13613
13614 2002-02-20  Richard Henderson  <rth@redhat.com>
13615
13616         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13617         of the operand, rather than assuming TImode.
13618         (ix86_expand_binop_builtin): Cope with commutative patterns
13619         using nonimmediate_operand for both operands.
13620         (ix86_expand_timode_binop_builtin): Likewise.
13621         (ix86_expand_store_builtin): Validate operand 1.
13622         (ix86_expand_unop1_builtin): Likewise.
13623
13624 2002-02-20  Philip Blundell  <philb@gnu.org>
13625
13626         PR 5705
13627         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13628
13629 2002-02-20  Richard Henderson  <rth@redhat.com>
13630
13631         PR c/5615
13632         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13633
13634 2002-02-20  Tom Tromey  <tromey@redhat.com>
13635
13636         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13637         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13638         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13639         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13640         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13641         unconditionally.
13642
13643 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13644
13645         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13646           for (const_int 0) in X not just INTVAL.
13647
13648 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
13649
13650         * doc/extend.texi: Avoid or reduce overfull hboxes.
13651
13652 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
13653
13654         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13655         operations if the field does not start at a mode boundary.
13656
13657 2001-02-20      Joel Sherrill <joel@OARcorp.com>
13658
13659         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13660         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13661         Also done for -Acpu and -Amachine.
13662
13663 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
13664
13665         * cppinit.c (init_dependency_output): Take deps output file
13666         from -o if none given with -MF.  Suppress normal output.
13667         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
13668         * doc/cpp.texi, doc/invoke.texi: Update.
13669
13670 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
13671
13672         * toplev.c (output_quoted_string): Write unprintable
13673         characters with octal escapes.
13674
13675 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
13676
13677         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
13678         really_call_used[VRSAVE_REGNO] if not Altivec.
13679
13680 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
13681
13682         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
13683         MODE_MASK.
13684         (constant_pool_expr_1): Fix formatting.
13685         (rs6000_legitimize_reload_address): Likewise.
13686
13687 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13688
13689         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
13690         now that we have one.
13691
13692 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
13693
13694         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
13695         end of first block of bitfields (which was only seven bits);
13696         rename dummy to unused_1; remove comment which is no longer true.
13697
13698 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
13699
13700         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
13701
13702 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
13703
13704         PR 5399
13705         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
13706         if generating PIC.
13707
13708         PR 5054
13709         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
13710         arm_is_longcall_p rather than inspecting call-type cookie
13711         directly.
13712         (call_value_insn) [TARGET_THUMB]: Likewise.
13713
13714 2002-02-19  Graham Stott  <grahams@redhat.com>
13715
13716         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
13717
13718 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
13719
13720         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
13721         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
13722         (FP_SAVE_INLINE): Delete.
13723
13724         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
13725         * config/rs6000/eabi.asm: Remove ABI save restore routines.
13726         * config/rs6000/t-ppccomm: Build crtsavres.o.
13727         * config/rs6000/crtsavres.asm: New file.
13728
13729 2002-02-19  Philip Blundell  <philb@gnu.org>
13730
13731         * config/arm/arm.c (use_return_insn): Don't reject interrupt
13732         functions.
13733         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
13734         (output_return_instruction): Allow interrupt functions to return with
13735         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
13736         (arm_expand_prologue): Subtract 4 before stacking LR in an
13737         interrupt function.
13738
13739 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
13740
13741         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
13742         decl, not just FUNCTION_DECL.
13743         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
13744         (arm_assemble_integer): Likewise.
13745         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
13746         marked local.
13747
13748 2002-02-19  matthew green  <mrg@eterna.com.au>
13749
13750         * config.gcc (sparc-*-netbsdelf*): Enable target.
13751         (sparc64-*-netbsd*): New target.
13752         * config/sparc/netbsd-elf.h: New file.
13753         * config/sparc/t-netbsd64: New file.
13754
13755 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
13756
13757         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
13758
13759 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
13760
13761         * doc/invoke.texi: explicitly list the style guidelines that
13762         -Weffc++ checks for.
13763
13764 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
13765
13766         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
13767
13768 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13769
13770         PR other/5718
13771         * gcc.c (cpp_unique_options): Treat -o as indicating object file
13772         only if not -E.  If -E, pass -o through to the preprocessor.
13773
13774 2002-02-19  Kazu Hirata  <kazu@hxi.com>
13775
13776         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
13777         register number with an appropriate macro.
13778
13779 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
13780
13781         * doc/rtl.texi (Constants): Close @code tag.
13782
13783 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
13784
13785         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
13786         ("mmx_uavgv4hi3"): Same.
13787         ("pmulhrwv4hi3"): Same.
13788
13789         * tree-inline.c (walk_tree): Handle vectors.
13790
13791         * c-common.c (constant_expression_warning): Handle vectors.
13792         (overflow_warning): Same.
13793
13794         * sched-deps.c (sched_analyze_2): Handle vectors.
13795
13796         * rtlanal.c (rtx_unstable_p): Handle vectors.
13797         (rtx_varies_p): Same.
13798         (count_occurrences): Same.
13799         (regs_set_between_p): Same.
13800         (modified_between_p): Same.
13801         (modified_in_p): Same.
13802         (volatile_insn_p): Same.
13803         (volatile_refs_p): Same.
13804         (side_effects_p): Same.
13805         (may_trap_p): Same.
13806         (inequality_comparisons_p): Same.
13807         (replace_regs): Same.
13808         (computed_jump_p_1): Same.
13809
13810         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
13811         argument.
13812         (inner_mode_array): New.
13813         (copy_rtx): Handle vectors.
13814         (copy_most_rtx): Same.
13815         (rtx_equal_p): Same.
13816         (get_mode_alignment): Adjust for vectors.
13817
13818         * resource.c (mark_referenced_resources): Handle vectors.
13819         (mark_set_resources): Same.
13820
13821         * reload1.c (eliminate_regs): Handle vectors.
13822         (elimination_effects): Same.
13823         (scan_paradoxical_subregs): Same.
13824
13825         * reload.c (subst_reg_equivs): Handle vectors.
13826
13827         * regrename.c (scan_rtx): Handle vectors.
13828
13829         * regclass.c (reg_scan_mark_refs): Handle vectors.
13830
13831         * recog.c (find_single_use_1): Handle vectors.
13832
13833         * local-alloc.c (equiv_init_varies_p): Handle vectors.
13834         (contains_replace_regs): Same.
13835         (memref_referenced_p): Same.
13836
13837         * integrate.c (copy_rtx_and_substitute): Handle vectors.
13838         (subst_constants): Same.
13839
13840         * genattrtab.c (attr_copy_rtx): Handle vectors.
13841         (encode_units_mask): Same.
13842         (clear_struct_flag): Same.
13843         (count_sub_rtxs): Same.
13844
13845         * gcse.c (want_to_gcse_p): Handle vectors.
13846         (oprs_unchanged_p): Same.
13847         (hash_expr_1): Same.
13848         (oprs_not_set_p): Same.
13849         (expr_killed_p): Same.
13850         (compute_transp): Same.
13851         (store_ops_ok): Same.
13852
13853         * function.c (purge_addressof_1): Do not allow paradoxical subregs
13854         of vectors.
13855         (fixup_var_refs_1): Same.
13856         (instantiate_virtual_regs_1): Same.
13857
13858         * fold-const.c (operand_equal_p): Handle vectors.
13859         (fold): Same.
13860         (rtl_expr_nonnegative_p): Same.
13861
13862         * flow.c (mark_used_regs): Handle vectors.
13863
13864         * df.c (df_uses_record): Handle vectors.
13865
13866         * cselib.c (cselib_subst_to_values): Handle vectors.
13867         (cselib_mem_conflict_p): Same.
13868         (hash_rtx): Same.
13869
13870         * cse.c (canon_reg): Handle vectors.
13871         (fold_rt): Same.
13872         (cse_process_notes): Same.
13873         (count_reg_usage): Same.
13874         (canon_hash): Same.
13875
13876         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
13877
13878         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
13879
13880         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
13881         (gen_rtx): Handle CONST_VECTOR.
13882         (gen_const_vector_0): New.
13883         (copy_rtx_if_shared): CONST_VECTORs can be shared.
13884         (reset_used_flags): Same.
13885         (copy_insn_1): Same.
13886         (initializer_constant_valid_p): Handle VECTOR_CST.
13887
13888         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
13889
13890         * doc/rtl.texi (Constants): Document const_vector.
13891         (CONST0_RTX): Update for vectors.
13892         (RTL sharing): Same.
13893
13894         * print-tree.c (print_node): Add case for VECTOR_CST.
13895
13896         * tree.h (TREE_VECTOR_CST_ELTS): New.
13897         (struct tree_vector): New.
13898         (union tree_node): Add vector node.
13899         (build_vector): Add prototype.
13900
13901         * tree.def (VECTOR_CST): New.
13902
13903         * tree.c (build_vector): New.
13904
13905         * expmed.c (make_tree): Handle CONST_VECTOR.
13906
13907         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
13908         (CONST_VECTOR_ELT): New.
13909         (CONST_VECTOR_NUNITS): New.
13910
13911         * machmode.h (GET_MODE_INNER): New.
13912         (DEF_MACHMODE): Accept 8th arg.
13913
13914         * machmode.def: Add 8th argument for vector inner mode.
13915         Add inner vector modes for vectors.
13916
13917         * rtl.def (VEC_CONST): Remove.
13918         (CONST_VECTOR): New.
13919
13920         * expr.c (clear_storage): Allow vectors.
13921         (is_zeros_p): Handle VECTOR_CST.
13922
13923         * varasm.c (output_constant_pool): Handle vectors.
13924         (rtx_const): Add veclo and vechi fields.
13925         (kind): Add RTX_VECTOR.
13926         (decode_rtx_const): Add case for vector.
13927
13928         * config/rs6000/rs6000-protos.h: Add zero_constant.
13929
13930         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
13931         constants.  Force easy vector constants into memory.
13932         (easy_vector_constant): New.
13933         (emit_easy_vector_constant): New.
13934         (rs6000_legitimize_reload_address): Do not generate bad reloads on
13935         darwin.
13936
13937         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
13938         instruction does.
13939         ("altivec_lvxl"): Same.
13940         (altivec_lvebx): Same.
13941         (altivec_lvehx): Same.
13942         (altivec_lvewx): Same.
13943         ("*movv4si_const0"): New.
13944         ("*movv4sf_const0"): New.
13945         ("*movv8hi_const0"): New.
13946         ("*movv16qi_const0"): New.
13947
13948 2002-02-18  Kazu Hirata  <kazu@hxi.com>
13949
13950         * config/h8300/h8300.c (notice_update_cc): Use
13951         cc_status.value2.
13952
13953 2002-02-18  Kazu Hirata  <kazu@hxi.com>
13954
13955         * config/h8300/h8300.md (divmod patterns): Change the
13956         constraints for operands[1] to register_operand.
13957
13958 2002-02-18  Kazu Hirata  <kazu@hxi.com>
13959
13960         * config/h8300/h8300-protos.h: Remove the prototype for
13961         p_operand.
13962         * config/h8300/h8300.c (p_operand): Remove.
13963         * config/h8300/h8300.md: Replace p_operand with
13964         const_int_operand.
13965
13966 2002-02-18 Philip Blundell <pb@nexus.co.uk>
13967
13968         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
13969         comment.
13970         (output_return_instruction): Allow use of LDR to unstack
13971         return addresss even for interrupt handlers or when
13972         interworking.  If compiling for ARMv5, use interworking-safe
13973         return instructions by default.  Remove duplicated code and
13974         lengthy "strcat" sequences.
13975
13976 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13977
13978         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
13979         (LINK_EH_SPEC): Define.
13980         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
13981
13982 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
13983
13984         * config/s390/s390.c (s390_emit_prologue): Do not set the
13985         frame_related flag for call-clobbered registers.
13986
13987 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
13988
13989         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
13990         (construct_container): Fix handling of SSE operands.
13991         (ix86_expand_builtin): Fix handling of 64bit pointers.
13992         (mmx_maskmovq_rex): New pattern.
13993
13994 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
13995
13996         * regrename.c (kill_set_value): Handle subregs properly.
13997
13998 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
13999
14000         * objc/objc-act.c (handle_impent): Remove leading '*'
14001         from objc_class_name.
14002
14003 2002-02-17  Richard Henderson  <rth@redhat.com>
14004
14005         * config/alpha/alpha.c (some_small_symbolic_operand,
14006         some_small_symbolic_operand_1, split_small_symbolic_operand,
14007         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
14008         Handle small SYMBOL_REFs anywhere, not just inside memories.
14009         * config/alpha/alpha-protos.h: Update.
14010         * config/alpha/alpha.h (PREDICATE_CODES): Update.
14011         * config/alpha/alpha.md (small symbolic operand splitter): Update.
14012
14013 2002-02-17  Roland McGrath  <roland@frob.com>
14014
14015         * config.gcc (powerpc-*-gnu-gnualtivec*,
14016         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
14017         * config/rs6000/gnu.h: New file.
14018         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
14019         Grok "gnu" in rs6000_abi_name.
14020         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
14021         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
14022         Grok -mcall-gnu analogous to -mcall-linux et al.
14023         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14024         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
14025         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
14026
14027 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
14028
14029         PR c/3444:
14030         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
14031         shortening.
14032
14033 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14034
14035         * config/cris/cris.h: Undefine STARTFILE_SPEC and
14036         ENDFILE_SPEC before (re)defining them.
14037
14038 2002-02-17  Kazu Hirata  <kazu@hxi.com>
14039
14040         * config/h8300/h8300.c: Fix formatting.
14041         * config/h8300/h8300.h: Likewise.
14042
14043 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14044
14045         * doc/tm.texi: Explain why empty strings should not be
14046         marked for translation.
14047
14048 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14049
14050         * final.c (output_operand_lossage): Changed to accept
14051         printf style arguments. Change calls where necessary.
14052         * output.h (output_operand_lossage): Change declaration
14053         accordingly. Update copyright.
14054         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
14055         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
14056         Update copyright date where necessary.
14057
14058         * config/i386/i386.c (print_operand): Likewise. Remove use of
14059         sprintf.
14060
14061         * config/cris/cris.c (cris_operand_lossage): Likewise.
14062         Rename parameter so that exgettext recognizes it as
14063         translatable message.
14064         (LOSE_AND_RETURN): Rename parameter to msgid.
14065
14066 2002-02-17  Kazu Hirata  <kazu@hxi.com>
14067
14068         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
14069         hard coded register number with an appropriate macro.
14070         (HARD_REGNO_MODE_OK): Likewise.
14071         (ARG_POINTER_REGNUM): Likewise.
14072         (STATIC_CHAIN_REGNUM): Likewise.
14073         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
14074         * config/h8300/h8300.md (define_constants): Define more
14075         register numbers.
14076
14077 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14078
14079         * config/i386/i386.h: Don't mark empty strings for translation.
14080
14081 2002-02-16  H.J. Lu <hjl@gnu.org>
14082
14083         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
14084
14085 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
14086
14087         * cppinit.c (merge_include_chains): Check for brack being
14088         NULL before attempting to merge it with qtail.
14089
14090 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
14091
14092         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
14093         DBX_DEBUG.
14094
14095 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14096
14097         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
14098
14099 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14100
14101         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
14102         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
14103         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
14104
14105 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14106
14107         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
14108         now only if !TARGET_FIX.
14109         (*movsi_nt_vms_fix): New pattern.
14110
14111 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
14112
14113         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14114         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14115         (alpha_sa_mask, alpha_sa_size): Reflect above change.
14116         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14117         (alpha_start_function, alpha_expand_epilogue): Likewise.
14118         (unicosmk_gen_dsib): Likewise.
14119
14120 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14121
14122         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14123
14124 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
14125
14126         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
14127         check_and_change_labels, s390_final_chunkify): Delete.
14128         (s390_split_branches, s390_chunkify_pool): New functions.
14129         (s390_function_prologue): Call them.
14130
14131         * config/s390/s390.h (S390_REL_MAX): Delete.
14132         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14133
14134         * config/s390/s390.md (cjump, icjump, jump): Fix length
14135         attribute calculation.
14136
14137
14138 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
14139
14140         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14141         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14142
14143 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14144
14145         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14146         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14147         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14148
14149 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
14150
14151         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14152
14153 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
14154
14155         * reload.c (find_dummy_reload): Check that an output register
14156         is valid for its mode.
14157
14158 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
14159
14160         * combine.c (known_cond): After replacing the REG of a SUBREG, try
14161         to simplify it.
14162
14163         * function.c (assign_parms): Demote promoted argument passed by
14164         transparent reference.
14165
14166 2001-02-14      Joel Sherrill <joel@OARcorp.com>
14167
14168         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14169         -Acpu() and -Amachine() to eliminate warnings.
14170
14171 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
14172
14173         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14174
14175 2002-02-14  Kazu Hirata  <kazu@hxi.com>
14176
14177         * config/h8300/h8300-protos.h: Update the prototype for
14178         const_costs.
14179         * config/h8300/h8300.c (const_costs): Treat SET as a little
14180         more expensive operation.
14181         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14182         reference to const_costs.
14183
14184 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
14185
14186         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14187
14188 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
14189
14190         PR c/5503:
14191         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14192         use arguments from newtype.
14193
14194 2002-02-13  Eric Christopher  <echristo@redhat.com>
14195
14196         * config/mips/mips.c (override_options): Add check for march/mipsX
14197         on the same command line. Fix error message in cpu processing.
14198         Remove architecture and ISA checks.
14199
14200 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
14201
14202         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
14203
14204         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
14205
14206 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
14207
14208         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14209         alternatives.
14210         ("*movv8hi_internal1"): Same.
14211         ("*movv16qi_internal1"): Same.
14212         ("*movv4sf_internal1"): Same.
14213
14214         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14215         not push_reload for altivec modes.
14216
14217 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
14218
14219         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14220         all RTEMS targets including removal of #includes from config/*/rtems*.h
14221         file and adding them to tm_file setting. Added xm_defines=POSIX to
14222         many targets.
14223         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14224         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14225         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14226         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14227         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14228         config/m68k/rtemself.h: Ditto.
14229         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14230         config/mips/rtems64.h: Ditto.
14231         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14232         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14233         Ditto.
14234         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14235         config/sparc/rtemself.h: Ditto.
14236         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14237         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14238         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14239         more like arm-elf.
14240         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14241         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14242         target made more similar to i386-elf.
14243         * config/i386/t-rtems-i386: Added soft float support and multilibs.
14244         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14245         be similar to config/m68k/t-m68kelf.
14246         * gthr-rtems.h: Encapsulate with extern "C" for C++.
14247
14248 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
14249
14250         * regmove.c (kill_value): Handle subregs.
14251
14252 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
14253
14254         * i386.md (mul patterns): Allow memory operand to be first;
14255         add expanders where needed; fix constraints.
14256         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14257         Allow memory operand to be the first.
14258
14259         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14260         operands.
14261
14262 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
14263
14264         PR c/5681:
14265         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14266         GET_MODE (x).
14267
14268 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
14269
14270         PR optimization/5547:
14271         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14272         all valid IA-32 address modes involving non-scaled %ebx and
14273         GOT/GOTOFF as displacement.
14274
14275 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
14276
14277         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14278         after emitting ltorg insns.
14279
14280         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14281         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14282         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14283         *abssf2): Fix "op_type" attribute.
14284
14285 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
14286
14287         * mkconfig.sh: Avoid using a subshell redirect.
14288         ($output.T): Change to $(output)T.
14289         (ENABLE_NLS): Remove unneeded undef.
14290
14291         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14292         * config/alpha/x-vms (libsubdir): Define.
14293
14294         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14295         register frame procedures. Optimize retrieving context.
14296
14297         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14298         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14299         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14300
14301 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14302
14303         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14304         Make same change as for find_base_value.
14305
14306 2002-02-13  Kazu Hirata  <kazu@hxi.com>
14307
14308         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14309         of QImode and SImode.
14310
14311 2002-02-13  Kazu Hirata  <kazu@hxi.com>
14312
14313         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14314         length computation of movsi.
14315         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14316
14317 2002-02-13  Kazu Hirata  <kazu@hxi.com>
14318
14319         * config/h8300/h8300.md (subqi3): Tighten the predicate for
14320         operands[2] to register_operand.
14321
14322 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14323
14324         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14325
14326 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
14327
14328         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14329         for altivec_lvx* and altivec_stvx*.
14330         ("*movv4si_internal"): Add constraint for loading from GPRs.
14331         ("*movv8hi_internal1"): Same.
14332         ("*movv16qi_internal1"): Same.
14333         ("*movv4sf_internal1"): Same.
14334
14335         * config/rs6000/rs6000.c (altivec_register_operand): New.
14336
14337         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14338         altivec_register_operand.
14339
14340 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
14341
14342         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14343         handle SYMBOL_REF.
14344
14345 2002-02-13  Stan Shebs  <shebs@apple.com>
14346
14347         * c-typeck.c (digest_init): Handle vectors.
14348         (really_start_incremental_init): Same.
14349         (pop_init_level): Same.
14350         (process_init_element): Same.
14351
14352         * varasm.c (output_constant): Same.
14353
14354         * expr.c (clear_storage): Same.
14355         (store_constructor): Same.
14356
14357 2002-02-12  Eric Christopher  <echristo@redhat.com>
14358
14359         * explow.c (hard_function_value): Add comment explaining
14360         signed/unsigned comparison.
14361
14362 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
14363
14364         * jump.c (never_reached_warning): Add finish argument.
14365         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14366         real insn after end.
14367         * rtl.h (never_reached_warning): Adjust prototype.
14368         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14369         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14370         never_reached_warning.
14371
14372 2002-02-12  Graham Stott  <grahams@redhat.com>
14373
14374         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14375
14376 2002-02-12  Kazu Hirata  <kazu@hxi.com>
14377
14378         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14379         logical shifts on H8/300.
14380         (shift_alg_si): Improve several shifts on H8/300.
14381         (get_shift_alg): Likewise.
14382
14383 2002-02-12  Graham Stott  <grahams@redhat.com>
14384
14385         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14386
14387 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14388
14389         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14390         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14391
14392 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
14393
14394         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14395         non-CONST_INT through default_assemble_integer.
14396         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14397         <case 8>: Abort for CONST_DOUBLE.
14398
14399 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14400
14401         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14402         is specified.
14403         * config/pa/pa-linux.h (LIB_SPEC): Delete.
14404         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14405
14406 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
14407
14408         * config/stormy16/stormy16.md (zero_extendqihi2): New.
14409
14410 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
14411
14412         * regrename.c (regrename_optimize): Don't accept a
14413         part-clobbered register if the replaced register is not part
14414         clobbered.
14415
14416         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14417         take padding into account when computing the argument value.
14418
14419         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14420
14421         * combine.c (try_combine): Apply substitutions in
14422         CALL_INSN_FUNCTION_USAGE too.
14423
14424 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
14425
14426         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14427         __builtin_altivec_abs*.
14428         (bdesc_abs): New.
14429
14430         * config/rs6000/rs6000.h (rs6000_builtins): Add
14431         ALTIVEC_BUILTIN_ABS*.
14432
14433         * config/rs6000/altivec.h: Use const char for builtins expecting
14434         literals.
14435         (vec_abs): New versions for C and C++.
14436         (vec_abss): Same.
14437
14438 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14439
14440         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14441         using Pmode.
14442
14443 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14444
14445         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14446         constant definition from h8300.md.
14447         (FRAME_POINTER_REGNUM): Likewise.
14448         * config/h8300/h8300.md (define_constants): Add FP_REG.
14449
14450 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14451
14452         * config/h8300/h8300.c (print_operand): Remove redundant code.
14453
14454 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14455
14456         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14457         * config/h8300/h8300.c (byte_reg): Make it static.
14458
14459 2002-02-10  Richard Henderson  <rth@redhat.com>
14460
14461         PR c/5623
14462         * c-typeck.c (incomplete_type_error): Handle flexible array members.
14463
14464 2002-02-10  Richard Henderson  <rth@redhat.com>
14465
14466         PR c++/5624
14467         * tree.c (append_random_chars): Don't abort if main_input_filename
14468         does not exist.
14469
14470 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
14471
14472         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14473
14474 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14475
14476         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
14477         (pushhi1): Likewise.
14478
14479 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14480
14481         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14482         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14483
14484 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
14485
14486         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14487         remove MASK_VIS.
14488         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
14489
14490 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14491
14492         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14493         a half of an SImode register on H8/300.
14494
14495 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
14496
14497         * i386.md (movdi_2): Add missing '!'.
14498
14499 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14500
14501         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
14502         definitions.
14503
14504 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14505
14506         * config/h8300/h8300.md (length): Correct the distance valid
14507         for the short branch.
14508
14509 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14510
14511         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14512
14513 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
14514
14515         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14516         registers in SImode.
14517         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14518         part-clobbered.
14519
14520         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14521         patch.
14522
14523         Contribute sh64-elf.
14524         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
14525         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14526         (sh_cannot_modify_jumps_p): New function.
14527         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
14528         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14529         (sh_ms_bitfield_layout_p): New function.
14530         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
14531                     Zack Weinberg  <zack@codesourcery.com>
14532         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14533         expand_simple_binop instead of expand_binop.
14534         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
14535         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14536         use of .quad and .uaquad.
14537         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14538         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14539         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14540         * config/sh/sh.md (movdi_const, movdi_const_32bit,
14541         movdi_const_16bit): Make sure all CONSTs have modes.
14542         (sym2PIC): Ditto, but by adjusting all callers.
14543         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14544         if the prologue calls the SHmedia argument decoder or register
14545         saver.
14546         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14547         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14548         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14549         (sh_expand_epilogue): Don't emit USE of return target register.
14550         (prepare_move_operands): Legitimize DImode PIC addresses.
14551         (sh_media_register_for_return): Skip tr0, used to initialize the
14552         PIC register.
14553         (sh_expand_prologue): Remove explicit USE of return register.
14554         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
14555         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
14556         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14557         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14558         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14559         EXTRA_CONSTRAINT_T.
14560         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14561         (MOVI_SHORI_BASE_OPERAND_P): New.
14562         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14563         (EXTRA_CONSTRAINT_T): Define in terms of them.
14564         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14565         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14566         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14567         alternatives supporting TARGET_REGS.
14568         (UNSPEC_GOTPLT): New constant.
14569         (movdi split): Move incrementing of LABEL_NUSES...
14570         (movdi_const, movdi_const_32bit): Here.  Use
14571         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14572         (movdi_const_16bit): New.
14573         (call, call_value) [flag_pic]: Use GOTPLT.
14574         (call_pop, call_value_pop): New expands.
14575         (call_pop_compact, call_pop_rettramp): New insns.
14576         (call_value_pop_compact, call_value_pop_rettramp): New insns.
14577         (sibcall) [flag_pic]: Use GOT.
14578         (builtint_setjmp_receiver): Remove bogus, unused expand.
14579         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14580         (*pt, *ptb, ptrel): New insns.
14581         (sym2GOT): Handle DImode GOT.
14582         (sym2GOTPLT, symGOTPLT2reg): New expands.
14583         (sym2PIC): New expand.
14584         (shcompact_return_tramp): Use GOTPLT to return trampoline.
14585         (shcompact_return_tramp_i): Use return register explicitly.
14586         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14587         disable flag_reorder_blocks.
14588         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
14589         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14590         clobbers, for clarity.
14591         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14592         restoring of r0 in macl as MAYBE_DEAD.
14593         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
14594         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14595         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14596         alter_subreg all over.
14597         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14598         reload, instead of emitting instructions that would require
14599         reloading.
14600         (casesi_load_media): Add missing modes.
14601         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
14602         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14603         as used if the argument decoder is called.
14604         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
14605         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14606         Pmode, then extend it to DImode if necessary.
14607         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
14608         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14609         constants in FPU-enabled SHmedia, let them be loaded from memory.
14610         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
14611         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14612         Adjust whitespace in assembly output templates.
14613         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
14614         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14615         mode of if_then_else.
14616         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
14617         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14618         sh.h.
14619         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
14620                     Joern Rennecke <amylaar@redhat.com>
14621         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14622         (SUBTARGET_CPP_PTR_SPEC): New.
14623         (SUBTARGET_CPP_SPEC): Remove.
14624         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
14625         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14626         Fix typo in previous checkin.
14627         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
14628         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14629         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
14630                     Alexandre Oliva  <aoliva@redhat.com>
14631         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14632         what single FP register can hold for SHmedia target.
14633         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
14634                     Alexandre Oliva  <aoliva@redhat.com>
14635         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14636         Do not split into SUBREG.
14637         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
14638         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14639         and added new functions as specified in SH5 ABI r9.
14640         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
14641         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14642         8-byte boundary.
14643         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
14644         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14645         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
14646         and consttable_window_ends.
14647         2001-06-03  Graham Stott  <grahams@redhat,com>
14648         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14649         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
14650         * config/sh/sh.c (print_operand): Handle floating-point pair,
14651         vector and matrix registers.
14652         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14653         vector modes into account.
14654         * config/sh/sh.md (movv2sf): Split move between registers into
14655         movdf.
14656         (movv4sf, movv16sf): Introduce insns that get split only after
14657         reload.
14658         * config/sh/shmedia.h: Fix Copyright dates.
14659         * config/sh/ushmedia.h: Likewise.  Move loop counter
14660         declarations into conditionals that uses them.
14661         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14662         loop boundary.
14663         * config/sh/sshmedia.h: Fix Copyright dates.
14664         (sh_media_PUTCFG): Fix constraints.
14665         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
14666         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14667         ptrmemfunc_vbit_in_delta for SH5.
14668         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
14669         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14670         * invoke.texi: Likewise.
14671         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
14672         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
14673         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
14674         GCC_pop_shmedia_regs_nofpu): New global symbols.
14675         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
14676         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
14677         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
14678         compact function with nonlocal labels.
14679         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
14680         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
14681         (initial_elimination_offset): Account for their stack space.
14682         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
14683         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
14684         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
14685         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
14686         least one of the operands to be a register.
14687         (movv2sf): Likewise.  Renamed to movv2sf_i.
14688         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
14689         prepare_move_operands() before emitting SHmedia insns.
14690         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
14691         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
14692         Don't save nor initialize r12.  Don't mis-align the stack.
14693         Pad the code with a nop.
14694         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
14695         stack.
14696         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
14697         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
14698         [__SHMEDIA__]: Implement.
14699         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
14700         * config/sh/sh.md: Set latency of `pt' closer to reality.
14701         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
14702         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
14703         Set move, load and store type attributes.
14704         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
14705         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
14706         profiling.
14707         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
14708         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
14709         * config/sh/sh.c (sh_media_register_for_return): New function.
14710         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
14711         branch-target register.
14712         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
14713         * config/sh/sh.md (return_media_i): Use any call-clobbered
14714         branch-target register.
14715         (return_media): If r18 wasn't copied in the prologue, copy it
14716         here.
14717         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
14718         Clear class FP0_REGS.
14719         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
14720         from elf.h.
14721         2001-03-08  DJ Delorie  <dj@redhat.com>
14722         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
14723         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
14724         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
14725         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
14726         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
14727         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
14728         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
14729         return value correctly for call_cookie.
14730         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
14731         * config/sh/crt1.asm (start): Modified so as to call
14732         ___setup_argv_and_call_main.
14733         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
14734         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
14735         SHmedia mode.
14736         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
14737         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
14738         (STRIP_NAME_ENCODING): Use it.
14739         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
14740         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
14741         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
14742         prepare_scc_operands().
14743         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
14744         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
14745         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
14746         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
14747         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
14748         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
14749         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
14750         used in shcompact_incoming_args.
14751         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
14752         change.
14753         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
14754         mode.
14755         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
14756         Adjust accordingly.
14757         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
14758         Simplify.  Adjust.  Add sanity check.
14759         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
14760         FPU_SINGLE_BIT.
14761         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
14762         TARGET_SHCOMPACT.
14763         (udivsi3, divsi3): Use them.
14764         (force_mode_for_call): New insn.
14765         (call, call_value, sibcall_value): Emit it before SHcompact
14766         calls.
14767         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
14768         * config/sh/sh.md (call, call_value, sibcall): Make sure the
14769         call cookie is non-NULL before taking its value.
14770         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
14771         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
14772         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
14773         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
14774         block.
14775         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
14776         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
14777         temporary for stack adjusts.  Use MACL and MACH to pass
14778         arguments to shcompact_incoming_args.
14779         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
14780         clobber r1.
14781         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
14782         (nested_trampoline): Load static chain address into r1.
14783         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
14784         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
14785         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
14786         fp_arith_reg_operand().
14787         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
14788         * config/sh/sh.md (casesi): Sign-extend the first two operands,
14789         and use signed compares for them.
14790         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
14791         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
14792         ones properly aligned.
14793         (find_barrier): Account for extra alignment needed for 8-byte wide
14794         constants.
14795         (machine_dependent_reorg): Require a label for the second 4-byte
14796         constant after an 8-byte one.
14797         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
14798         change.
14799         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
14800         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
14801         last_float when switching float modes.
14802         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
14803         auto-increment for general-purpose registers.
14804         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
14805         result.
14806         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
14807         for stack adjust.
14808         * config/sh/sh.c (sh_builtin_saveregs): Support using all
14809         registers for varargs.
14810         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
14811         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
14812         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
14813         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
14814         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
14815         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
14816         call_cookie accordingly.
14817         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
14818         (SHCOMPACT_BYREF): Likewise.
14819         (SHCOMPACT_FORCE_ON_STACK): New macro.
14820         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
14821         (sh_builtin_saveregs): Likewise.
14822         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14823         shcompact_incoming_args): Use new shift values.  Support
14824         sequences of consecutive and non-consecutive pushes/pops.
14825         * config/sh/sh.md (return): Don't explicitly use PR_REG.
14826         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
14827         * config/sh/sh.h (TEXT_SECTION): Define.
14828         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
14829         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
14830         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
14831         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
14832         return values on FPU-enabled SHmedia.
14833         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
14834         FPU-enabled SHmedia.
14835         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
14836         value is returned in a non-FP reg and is not returned by
14837         reference.
14838         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
14839         jump_ind.
14840         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
14841         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
14842         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
14843         quad-aligned to be passed by callee-copy reference.
14844         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
14845         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
14846         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
14847         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
14848         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
14849         copying low-numbered FP regs to r7 and r8.
14850         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
14851         FP regs to general-purpose regs only if the copy was passed on the
14852         stack.
14853         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
14854         copying FP reg to r9.
14855         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
14856         copy FP regs to general-purpose regs only in outgoing calls.
14857         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
14858         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
14859         HOST_WIDE_INT.
14860         * config/sh/sh.h (struct sh_args): Document all fields.
14861         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
14862         passed partially on the stack should not consider making
14863         sibcalls.
14864         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
14865         stack_regs only for incoming calls.  When passing FP args,
14866         make sure there are FP regs available before modifying
14867         call_cookie.
14868         (SHCOMPACT_BYREF): Pass double args in general-purpose
14869         registers by reference.
14870         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
14871         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
14872         attempt to generate sibcalls if the caller got any arguments
14873         by reference.
14874         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
14875         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
14876         to 8-byte boundaries.
14877         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
14878         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
14879         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
14880         stored in the stack.
14881         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
14882         for the offsets to have the ISA bit set.
14883         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
14884         invocation.  Use beq instead of bgt to mark end of sequence of
14885         loads.
14886         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
14887         bgt to mark end of sequence of stores.
14888         * config/sh/sh.c (arith_operand): Don't check whether
14889         CONST_OK_FOR_J for now.
14890         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
14891         instead of long for conversion.
14892         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
14893         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
14894         before passing it to fprintf.
14895         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
14896         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
14897         Call set_fpscr before reading/writing SR.
14898         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
14899         Call set_fpscr.
14900         * config/sh/lib1funcs.asm: Add `.align 2' directives before
14901         SHmedia code.
14902         (FMOVD_WORKS): Define on SH5 with FPU.
14903         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
14904         setting.
14905         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
14906         _fpscr_values.
14907         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
14908         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
14909         address.
14910         (ia_main_table): Ditto.
14911         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
14912         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14913         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
14914         the definitions from sh.h.
14915         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
14916         TARGET_SH5.
14917         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
14918         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
14919         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14920         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
14921         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
14922         Increment LABEL_NUSES.
14923
14924         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
14925         TARGET_SH5.
14926         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
14927         defined.
14928         * config/sh/elf.h (SIZE_TYPE): Likewise.
14929         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14930         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14931         shcompact_incoming_args): Load switch table addresses using
14932         datalabel.
14933         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14934         (NO_BUILTIN_SIZE_TYPE): Define.
14935         (SIZE_TYPE): Don't define.
14936         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14937         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
14938         definition of __SH5__=32 for -m5-compact-nofpu.
14939         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
14940         ADDR_DIFF_VEC.
14941         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
14942         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
14943         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
14944         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
14945         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
14946         (INSN_LENGTH_ALIGNMENT): Likewise.
14947         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
14948         * config/sh/sh.md (call, call_value, sibcall): Simplify
14949         copying of non-branch-target register.
14950         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
14951         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
14952         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
14953         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
14954         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
14955         floating-point values as structs.
14956         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
14957         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
14958         general-purpose register.
14959         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
14960         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
14961         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
14962         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
14963         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
14964         (ENCODE_SECTION_INFO): Enclose variables and constants in
14965         DATALABEL unspecs.
14966         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
14967         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
14968         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
14969         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
14970         only for LABEL_REFs.  For SYMBOL_REFs, prepend
14971         SH_DATALABEL_ENCODING to the symbol name.
14972         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
14973         convert_mode().
14974         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
14975         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
14976         UNSPEC_DATALABEL.
14977         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
14978         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
14979         (DATALABEL_REF_P): Don't require CONST.
14980         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
14981         REL label.
14982         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
14983         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
14984         right.
14985         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
14986         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
14987         Use shallow_copy_rtx and PUT_MODE to change the mode of
14988         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
14989         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
14990         on SHmedia using GENERAL_REGs.
14991         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
14992         bltu_media_i): Fix reversion of conditions.
14993         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
14994         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
14995         * config/sh/sh.c (output_far_jump): Save r13 in macl.
14996         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
14997         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
14998         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
14999         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
15000         (GCC_nested_trampoline): Likewise.
15001         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
15002         * config/sh/sh.c (gen_datalabel_ref): Define.
15003         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
15004         (INITIALIZE_TRAMPOLINE): Likewise.
15005         (TRAMPOLINE_ADJUST_ADDRESS): Define.
15006         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
15007         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
15008         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
15009         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
15010         (ic_invalidate): Adjust for SH5.
15011         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
15012         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
15013         _nested_trampoline.
15014         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
15015         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
15016         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
15017         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
15018         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
15019         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
15020         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
15021         * config/sh/sh.c (target_reg_operand): Match only target-branch
15022         registers and pseudos that aren't virtual registers.
15023         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15024         Copy operands that don't match target_reg_operand to pseudos.
15025         (call_media, call_value_media, sibcall_media): Use
15026         target_reg_operand instead of target_operand.
15027         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
15028         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
15029         * config/sh/sh.c (target_reg_operand): Match hardware registers
15030         other than branch-target registers.
15031         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
15032         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
15033         (fpscr_values) [SH5 == 32]: Define.
15034         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
15035         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15036         Handle function addresses coming in SUBREGs.
15037         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
15038         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15039         shcompact_return_trampoline): Use datalabel where appropriate.
15040         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
15041         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
15042         general-purpose register to copy one branch-target register to
15043         another.
15044         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
15045         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
15046         SYMBOL_REFs with VOIDmode.
15047         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15048         bltu_media_i): New insns.
15049         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
15050         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
15051         (INIT_CUMULATIVE_ARGS): Likewise.
15052         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
15053         * machmode.def (V16SFmode): New mode.
15054         * c-common.c (type_for_mode): Support V2SF and V16SF.
15055         * tree.c (build_common_tree_nodes_2): Likewise.
15056         * tree.h (tree_index): Likewise.
15057         * calls.c (emit_call_1): Take args_so_far.  Adjust all
15058         callers.  Introduce CALL_POPS_ARGS.
15059         * tm.texi (CALL_POPS_ARGS): Document.
15060         * config/sh/crt1.asm: Implement in SHmedia mode.
15061         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
15062         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
15063         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
15064         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
15065         Implement divsi and udivsi in SHmedia mode.  Introduce
15066         SHcompact trampolines.
15067         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
15068         only in SHmedia64.
15069         (regno_reg_class): Rewrite.
15070         (fp_reg_names): Remove.
15071         (sh_register_names, sh_additional_register_names): New.
15072         (print_operand): Added `u'.  Support SUBREGs in addresses.
15073         Add parentheses around shifted CONSTs.
15074         (output_file_start): Output .mode and .abi directives.
15075         (shiftcosts, addsubcosts, multcosts): Adjust.
15076         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
15077         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
15078         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
15079         bytes, not registers.  Take into account the need for the
15080         SHcompact incoming args trampoline.  Adjust all callers.
15081         (sh_expand_prologue): Take stack_regs into account.  Call
15082         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
15083         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
15084         stack aligned as per SH5 ABI.
15085         (sh_builtin_saveregs): Support SH5 ABI.
15086         (sh_build_va_list, sh_va_start): Likewise.
15087         (initial_elimination_offset): Take alignment into account.
15088         Compute location of PR according to the SH5 stack frame.
15089         (arith_reg_operand): Reject branch-target registers.
15090         (shmedia_6bit_operand): New.
15091         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
15092         (target_reg_operand): Match DImode only.  Accept SUBREGs.
15093         (target_operand): New.
15094         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
15095         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
15096         SIBCALL_REGS for SHmedia.
15097         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
15098         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
15099         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
15100         (TARGET_SWITCHES): New SH5 flags.
15101         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
15102         VALID_REGISTER_P to disable unsupported registers.
15103         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
15104         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
15105         (FUNCTION_ARG_PADDING): Define.
15106         (FASTEST_ALIGNMENT): Adjust.
15107         (SH_REGISTER_NAMES_INITIALIZER): New.
15108         (sh_register_names): Declare.
15109         (DEBUG_REGISTER_NAMES): Define.
15110         (REGISTER_NAMES): Define based on sh_register_names.
15111         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15112         (sh_additional_register_names): Declare.
15113         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15114         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15115         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15116         (REGISTER_NATURAL_MODE): Define.
15117         (FIRST_PSEUDO_REGISTER): Adjust.
15118         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15119         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15120         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15121         (VECTOR_MODE_SUPPORTED_P): Define.
15122         (REG_CLASS_CONTENTS): Adjust.
15123         (SMALL_REGISTER_CLASSES): Adjust.
15124         (REG_ALLOC_ORDER): Adjust.
15125         (INDEX_REG_CLASS): Adjust.
15126         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15127         (CONST_OK_FOR_LETTER_P): Adjust.
15128         (PREFERRED_RELOAD_CLASS): Adjust.
15129         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15130         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15131         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15132         (FIRST_FP_PARM_REG): Adjust.
15133         (CALL_POPS_ARGS): Define.
15134         (FUNCTION_ARG_REGNO_P): Adjust.
15135         (struct sh_args): New fields.
15136         (GET_SH_ARG_CLASS): Adjust.
15137         (INIT_CUMULATIVE_ARGS): Adjust.
15138         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15139         (FUNCTION_ARG_ADVANCE): Adjust.
15140         (FUNCTION_ARG): Adjust.
15141         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15142         (FUNCTION_ARG_CALLEE_COPIES): Define.
15143         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15144         (STRICT_ARGUMENT_NAMING): Define.
15145         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15146         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15147         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15148         (SETUP_INCOMING_VARARGS): Adjust.
15149         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15150         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15151         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15152         (SUBREG_OK_FOR_INDEX_P): Adjust.
15153         (EXTRA_CONSTRAINT_S): Update.
15154         (EXTRA_CONSTRAINT_T): New.
15155         (EXTRA_CONSTRAINT): Adjust.
15156         (GO_IF_LEGITIMATE_INDEX): Adjust.
15157         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15158         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15159         (MOVE_MAX): Adjust.
15160         (MAX_MOVE_MAX): Define.
15161         (Pmode): Adjust.
15162         (CONST_COSTS): Adjust.
15163         (REGISTER_MOVE_COST): Adjust.
15164         (BRANCH_COST): Adjust.
15165         (TEXT_SECTION_ASM_OP): Adjust.
15166         (DBX_REGISTER_NUMBER): Adjust.
15167         (ASM_OUTPUT_DOUBLE_INT): New.
15168         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15169         (PREDICATE_CODES): Adjust.
15170         (PROMOTE_MODE): Adjust.
15171         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15172         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15173         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15174         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15175         (DR0_REG, DR2_REG, DR4_REG): Renumber.
15176         (TR0_REG, TR1_REG, TR2_REG): New.
15177         (XD0_REG): Renumber.
15178         (UNSPEC_COMPACT_ARGS): New.
15179         (type): Added pt and ptabs.
15180         (length): Default to 4 on SHmedia.  Default pt length to 12
15181         and     20 on SHmedia32 and SHmedia64, respectively.
15182         (pt): New function unit.
15183         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
15184         Add whitespace between operands of SHmedia instructions.
15185         (movdicc): Fix.
15186         (adddi3_media, addsi3_media): Adjust constraints.
15187         (subsi3) [SHmedia]: Force operand 1 into a register.
15188         (udivsi3_i1_media, udivsi3_i4_media): New.
15189         (udivsi3): Support SHmedia.
15190         (divsi3_i1_media, divsi3_i4_media): New.
15191         (divsi3): Support SHmedia.
15192         (anddi3, iordi3, xordi3): Adjust constraints.
15193         (zero_extendhidi2, zero_extendqidi2): New.
15194         (extendsidi2, extendhidi2, extendqidi2): New.
15195         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15196         (pop_e, pop_fpul, pop_4): Likewise.
15197         (movsi_media): Support FP and BT registers.
15198         (movsi_media_nofpu): New.  Adjust splits to DImode.
15199         (lduw, ldub): Renamed to zero_extend* above.
15200         (movqi_media): Fix typo.
15201         (movdi_media): Support FP and BT registers.
15202         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
15203         (movdi_const_32bit): New.
15204         (shori_media): Require immediate operand.  Use `u' for output.
15205         (movdf_media, movsf_media): Simplified.
15206         (movdf_media_nofpu, movsf_media_nofpu): New.
15207         (movdf, movsf): Adjust
15208         (movv2sf, movv2sf, movv16sf): New.
15209         (beq_media, beq_media_i): Adjust constraints.  Don't use
15210         scratch BT register.
15211         (bne_media, bne_media_i): Likewise.
15212         (bgt_media, bgt_media_i): Likewise.
15213         (bge_media, bge_media_i): Likewise.
15214         (bgtu_media, bgtu_media_i): Likewise.
15215         (bgeu_media, bgeu_media_i): Likewise.
15216         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15217         bunordered): Emit jump insn.  Force operands to registers when
15218         needed.
15219         (jump_media, jump): Simplify.
15220         (call_compact, call_compact_rettramp): New.
15221         (call_value_compact, call_value_compact_rettramp): New.
15222         (call_media, call_value_media): Simplify.
15223         (sibcall_compact, sibcall_media): New.
15224         (call, call_value): Adjust for SHmedia and SHcompact.
15225         (sibcall, sibcall_value, untyped_call): Likewise.
15226         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15227         (indirect_jump): Adjust for SHmedia.
15228         (casesi_jump_media): New.
15229         (nop): Re-enable for SHmedia.
15230         (call_site): Restrict to SH1.
15231         (casesi): Adjust for SHmedia.
15232         (casesi_shift_media, casesi_load_media): New.
15233         (return): Explicitly use PR register.  Call return trampoline
15234         on SHcompact.
15235         (return_i): Explicitly use PR register.
15236         (shcompact_return_tramp, shcompact_return_tramp_i): New.
15237         (return_media): Adjust.
15238         (shcompact_incoming_args): New.
15239         (epilogue): Adjust.
15240         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15241         (movstrsi): Disable on SH5.
15242         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15243         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15244         (subsf3, subsf3_media): Likewise.
15245         (mulsf3, mulsf3_media, mac_media): Likewise.
15246         (divsf3, divsf3_media): Likewise.
15247         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
15248         (floatsisf2, fux_truncsfsi2): Likewise.
15249         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
15250         constraints.
15251         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15252         (cmpunsf_media, cmpsf): Likewise.
15253         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15254         (abssf2, abssf2_media): Likewise.
15255         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15256         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15257         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
15258         (floatsidf2, fix_truncdfsi2): Likewise.
15259         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
15260         constraints.
15261         (cmpeqdf_media, cmpgtdf_media): Likewise.
15262         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15263         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15264         (absdf2, absdf2_media): Likewise.
15265         (extendsfdf2, extendsfdf2_media): Likewise.
15266         (truncsfdf2, truncsfdf2_media): Likewise.
15267         * config/sh/sh64.h: New file.
15268         * config/sh/t-sh64: New file.
15269         * config/sh/shmedia.h: New file.
15270         * config/sh/ushmedia.h: New file.
15271         * config/sh/sshmedia.h: New file.
15272         * configure.in: Added sh64-*-elf.
15273         * configure: Rebuilt.
15274         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
15275         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15276         (reg_class_from_letter): Use `b' for TARGET_REGS.
15277         (print_operand): Support `%M', `%m', `AND' and
15278         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
15279         (andcosts): Adjust for SHmedia.
15280         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15281         Likewise.
15282         (target_reg_operand): New function.
15283         * config/sh/sh-protos.h (target_reg_operand): Declare.
15284         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15285         FP registers on SH5.
15286         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15287         on SH4.
15288         (TARGET_REGISTER_P): New macro.
15289         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15290         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15291         (EXTRA_CONSTRAINT_S): New macro.
15292         (EXTRA_CONSTRAINT): Adjust.
15293         (FLOAT_TYPE_SIZE): Define to 32.
15294         (Pmode): DImode on SHmedia.
15295         (CONST_COSTS): Adjust for SHmedia literals.
15296         (PREDICATE_CODES): Added target_reg_operand.
15297         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15298         * config/sh/sh.md: Remove all attrs from SHmedia insns.
15299         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15300         (cmpdi): Accept SHmedia.
15301         (movdicc_false, movdicc_true): New insns.
15302         (movdicc): New expand.
15303         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15304         no_new_pseudos.
15305         (addsi3_media): Match `S' constraint.
15306         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15307         (negdi2): Expand for SHmedia.
15308         (one_cmpldi2): New expand.
15309         (zero_extendsidi2): Change from expand to insn.
15310         (extendsidi2): Add constraints.
15311         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
15312         LD/ST address.  Fix SI immediate loading split.
15313         (movhi_media, movqi_media, lduw, ldub): New insns.
15314         (movhi, movqi): Accept SHmedia.
15315         (shori_media, movdi_media): Relax input constraints.  Split
15316         symbolic constants.
15317         (movdf_media, movsf_media): New insn.  New split to movdi.
15318         (movdf, movsf): Match on SHmedia.
15319         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15320         bgeu_media): New insns and splits.  New insns with `_i' suffix.
15321         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15322         (bunordered): New expand.
15323         (jump_compact): Renamed from `jump'.
15324         (jump_media): New insn.
15325         (jump): New expand.
15326         (call_media, call_value_media): New insns.
15327         (call, call_value): Adjust.
15328         (indirect_jump_compact): Renamed from `indirect_jump'.
15329         (indirect_jump_media): New insn.
15330         (indirect_jump): New expand.
15331         (untyped_call, return): Accept SHmedia.
15332         (return_media): New insn.
15333         (prologue, epilogue, blockage): Accept SHmedia.
15334         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15335         (sunordered): New expand.
15336         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15337         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15338         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15339         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15340         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15341         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15342         abssf2_media): New insns.
15343         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15344         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15345         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15346         floatdidf2, floatsidf2_media, fix_truncdfdi2,
15347         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15348         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15349         absdf2_media): New insns.
15350         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15351         (extendsfdf2_media, truncdfsf2_media): New insns.
15352         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
15353         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15354         * config/sh/sh.h (CONST_OK_FOR_J): Document.
15355         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15356         * config/sh/sh.md (adddi3): New expand.
15357         (adddi3_media, adddi3z_media): New insns.
15358         (adddi3_compact): Renamed from adddi3.
15359         (addsi3_media): Use add.l r63 to add constant zero.
15360         (subdi3): New expand.
15361         (subdi3_media): New insn.
15362         (subdi3_compact): Renamed from subdi3.
15363         (mulsidi3): New expand.
15364         (mulsidi3_media): New insn.
15365         (mulsidi3_compact): Renamed from mulsidi3.
15366         (umulsidi3): New expand.
15367         (umulsidi3_media): New insn.
15368         (umulsidi3_compact): Renamed from umulsidi3.
15369         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15370         (ashlsi3, ashrsi3, lshrsi3): Use them.
15371         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15372         (ashldi3, ashrdi3, lshrdi3): Use them.
15373         (zero_extendsidi2): New expand.
15374         (extendsidi2): New insn.
15375         (movsi_media): New insn.  Split to movdi to load constants.
15376         (movsi): Enable for shmedia.
15377         (movdi_media): New insn.  Use shori_media to load wide constants.
15378         (short_media): New insn.
15379         (movdi): Enable for shmedia.
15380         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
15381         * config/sh/sh.h (CPP_SPEC): Added `m5'.
15382         (SUBTARGET_CPP_SPEC): Added `!m5'.
15383         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15384         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
15385         to all other SH variants.
15386         (TARGET_DEFAULT): Set to SH1_BIT.
15387         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15388         (BITS_PER_WORD): Raise to 64 on shmedia.
15389         (MAX_BITS_PER_WORD): Change to 64.
15390         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15391         (INT_TYPE_SIZE): Keep as 32.
15392         (UNITS_PER_WORD): Raise to 8 on shmedia.
15393         (MIN_UNITS_PER_WORD): Keep as 4.
15394         (POINTER_SIZE): Raise to 64 on shmedia.
15395         (CONST_OK_FOR_J): New macro.
15396         (CONST_OK_FOR_LETTER_P): Use it.
15397         (processor_type): Add PROCESSOR_SH5.
15398         * config/sh/sh.md: Conditionalize all expands, insns and
15399         splits to TARGET_SH1.
15400         (cpu): Added sh5.
15401         (addsi3_compact): Renamed from...
15402         (addsi3): Now an expand.
15403         (addsi3_media, subsi3_media): New insns.
15404         (subsi3): Don't negate constants with SHmedia.
15405
15406         * hooks.c: New file.
15407         * hooks.h: New file.
15408         * Makefile.in (HOOKS_H): New.
15409         (TARGET_DEF_H): Added $(HOOKS_H).
15410         (OBJS): Added hooks.o.
15411         (cfgcleanup.o, bb-reorder.o): Added target.h.
15412         (hooks.o): Added dependencies.
15413         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15414         (TARGET_INITIALIZER): this.
15415         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15416         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15417         * bb-reorder.c: Include target.h.
15418         (reorder_basic_blocks): Skip if cannot modify jumps.
15419         * cfgcleanup.c: Include target.h.
15420         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15421
15422 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
15423
15424         * config/mips/mips.md (casesi_internal, casesi_internal_di):
15425         Protect jump delay slot instructions with .set noreorder and
15426         .set nomacro.
15427
15428 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
15429
15430         * config/mips/mips.md (casesi_internal_di): Calculate
15431         the index into the target offset table correctly.
15432
15433 2002-02-08  Richard Henderson  <rth@redhat.com>
15434
15435         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15436         * final.c (output_addr_const): Accept and discard SUBREG.
15437         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15438         mark them unknown instead.
15439         (simplify_subtraction): Handle RTX_UNKNOWN.
15440         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15441
15442 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
15443
15444         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15445
15446 2002-02-08  Richard Henderson  <rth@redhat.com>
15447
15448         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15449
15450 2002-02-08  Andreas Jaeger  <aj@suse.de>
15451
15452         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15453         * config/i386/t-linux64: New file.
15454
15455 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
15456
15457         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15458         * c-parse.in (compstmt): Clear last_expr_type.
15459
15460 2002-02-07  Richard Henderson  <rth@redhat.com>
15461
15462         * loop.c (strength_reduce): Sink final_value when not
15463         eliminating a biv.
15464
15465 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
15466
15467         * config/sparc/freebsd.h: Fix mismatched spec {.
15468
15469 2002-02-07  Richard Henderson  <rth@redhat.com>
15470
15471         * cfgrtl.c: Include recog.h and insn-config.h.
15472         (keep_with_call_p): Fix general_operand invocation.
15473         * Makefile.in (cfgrtl.o): Update dependencies.
15474
15475 2002-02-07  Kazu Hirata  <kazu@hxi.com>
15476
15477         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15478         comment.  Accept HImode only if TARGET_H8300.
15479
15480 2002-02-07  Eric Christopher  <echristo@redhat.com>
15481
15482         * config/mips/crtn.asm: Cleanup #ifdefs.
15483
15484 2002-02-07  Eric Christopher  <echristo@redhat.com>
15485
15486         * config/mips/crti.asm: Add changes for mips16. mips16 uses
15487         register 7 as RA instead of $31.
15488         * config/mips/crtn.asm: Ditto.
15489         * config/mips/mips.c (mips_move_2words): Add case for
15490         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15491         (compute_frame_size): Fix typo.
15492         (save_restore_insns): Ditto.  Make documentation about using
15493         register $7 as return register more precise.
15494         (mips_expand_epilogue): Fix comment. Add code to work around not
15495         being able to add to the stack pointer directly.
15496         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15497         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15498         epilogue.
15499
15500 2002-02-07  Tom Rix  <trix@redhat.com>
15501
15502         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
15503         immediates in ldu and stdu DS opcode field.
15504         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15505         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15506         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15507
15508 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
15509
15510         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15511         offset for stack bias.
15512
15513 2002-02-07  H.J. Lu <hjl@gnu.org>
15514
15515         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15516
15517 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
15518
15519         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15520
15521 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
15522
15523         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15524         * i386.c (x86_order_regs_for_local_alloc): New global function.
15525         * i386.h (REG_ALLOC_ORDER): CLeanup.
15526         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15527
15528 2002-02-07  Richard Henderson  <rth@redhat.com>
15529
15530         PR optimization/2463
15531         * alias.c (find_base_value): Recall base values for fixed hard regs.
15532         * loop.c (loop_regs_update): Don't use single_set on non-insns.
15533
15534 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
15535
15536         * config/mips/mips.md (define_delay) [mips16]: Adjust required
15537         length.
15538
15539 2002-02-06  Richard Henderson  <rth@redhat.com>
15540
15541         PR c/5609
15542         * stmt.c (resolve_operand_name_1): Take more care with mixed
15543         named and unnamed operands.
15544
15545 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
15546             Jan Hubicka  <jh@suse.cz>
15547
15548         * loop.c (remove_constant_addition): Avoid clobbering a shared
15549         CONST expression.
15550
15551 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
15552
15553         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15554         * config/s390/t-linux64: New file.
15555         * config/s390/libgcc-glibc.ver: New file.
15556
15557 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
15558
15559         * config/s390/linux64.h: Delete file.
15560         * config/s390/s390x.h: New file.
15561         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15562         as target header file.
15563         * config/s390/linux.h (TARGET_VERSION): Define depending on
15564         DEFAULT_TARGET_64BIT.
15565         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15566         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15567         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15568         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15569         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15570         (EXTRA_SPEC): New define.
15571         * config/s390/s390.h (TARGET_VERSION): Define depending on
15572         DEFAULT_TARGET_64BIT.
15573         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15574
15575 2002-02-06  Jason Merrill  <jason@redhat.com>
15576
15577         * c-decl.c (finish_function): Warn about a non-void function with
15578         no return statement and no abnormal exit.
15579         (current_function_returns_abnormally): New variable.
15580         (start_function): Clear it.
15581         (struct c_language_function): Add returns_abnormally.
15582         (push_c_function_context): Save it.
15583         (pop_c_function_context): Restore it.
15584         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15585         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15586         an explicit return type.
15587         * c-tree.h: Declare current_function_returns_abnormally.
15588         (C_FUNCTION_IMPLICIT_INT): New macro.
15589         * c-typeck.c (build_function_call): Set it.
15590         (c_expand_return): Set current_function_returns_value even if the
15591         value is erroneous.
15592
15593 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
15594
15595         PR c/5420:
15596         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15597         unsafe for reevaluation.
15598
15599 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
15600
15601         PR c/5482:
15602         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15603         EXPR_STMT, but COMPOUND_STMT, recurse into it.
15604
15605 2002-02-06  Richard Henderson  <rth@redhat.com>
15606
15607         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15608         be a general_operand.  Dest for function value must be a pseudo.
15609
15610 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
15611
15612         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15613         as SYMBOL_REFs from the constant pool.
15614
15615 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
15616
15617         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15618         passed by invisible reference.
15619
15620 2002-02-05  Richard Henderson  <rth@redhat.com>
15621
15622         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15623
15624 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
15625
15626         Implement using "base addresses" in insn operands as default.
15627         * config/mmix/mmix.c (mmix_conditional_register_usage): if
15628         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15629         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15630         used to read the rtx value.
15631         (mmix_target_asm_function_epilogue): Fix spacing.
15632         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15633         (mmix_legitimate_address): Ditto.
15634         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15635         should be loaded with a GETA insn.  Don't allocate needless extra
15636         char for nul termination and fix misleading comment.
15637         (mmix_print_operand_address): Handle constants if
15638         TARGET_BASE_ADDRESSES.
15639         (mmix_output_register_setting): Use base addressing if
15640         TARGET_BASE_ADDRESSES and the number of insns is 3.
15641         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15642         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15643         to use R as constraint, add LDA to match s.
15644         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15645         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15646         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15647         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15648         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15649         order with other fixed registers.
15650         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15651         other parameter/call-clobbered registers.
15652         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15653         -mbase-addresses, -mno-base-addresses.
15654         (MMIX Options): Ditto.
15655
15656 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15657
15658         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15659
15660 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
15661
15662         * config/rs6000/altivec.h: Change elem to _S_elem.
15663
15664 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
15665
15666         * config/netbsd.h (WCHAR_TYPE): Define.
15667         (WCHAR_TYPE_SIZE): Ditto.
15668         (WINT_TYPE): Ditto.
15669         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15670         (WCHAR_UNSIGNED): Ditto.
15671         (WCHAR_TYPE_SIZE): Ditto.
15672         (WINT_TYPE): Ditto.
15673         * config/arm/netbsd.h: Likewise.
15674         * config/i386/netbsd-elf.h: Likewise.
15675         * config/i386/netbsd.h: Likewise.
15676         * config/m68k/netbsd-elf.h: Likewise.
15677         * config/m68k/netbsd.h: Likewise.
15678         * config/ns32k/netbsd.h: Likewise.
15679         * config/sparc/netbsd.h: Likewise.
15680         * config/vax/netbsd.: Likewise.
15681
15682 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
15683
15684         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
15685         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
15686         (TARGET_INITIALIZER): this.
15687         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
15688         (BITFIELD_NBYTES_LIMITED): Markup fix.
15689         * tree.h (default_ms_bitfield_layout_p): Declare.
15690         (record_layout_info): Added prev_field.
15691         * tree.c (default_ms_bitfield_layout_p): New fn.
15692         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
15693         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
15694         * stor-layout.c: Include target.h.
15695         (start_record_layout): Initialize prev_field.
15696         (place_field): Handle MS bit-field layout, and disregard
15697         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
15698         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
15699         * Makefile.in (stor-layout.o): Adjust dependencies.
15700
15701 2002-02-05  Jason Merrill  <jason@redhat.com>
15702
15703         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
15704
15705 2002-02-05  Andreas Jaeger  <aj@suse.de>
15706
15707         * crtstuff.c: Fix comments.
15708
15709 2002-02-05  Richard Henderson  <rth@redhat.com>
15710
15711         PR fortran/3393
15712         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
15713         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
15714
15715         PR fortran/3392
15716         * config/mips/mips.c (function_arg): Handle TImode.
15717         (function_arg_advance): Likewise.
15718
15719 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
15720
15721         * config/rs6000/altivec.h (vec_step_help): Rename to
15722         __vec_step_help.
15723
15724 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
15725
15726         * config/rs6000/altivec.h: Fix typos.
15727
15728 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
15729
15730         * config/arm/netbsd.h: Correct a comment.
15731
15732 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
15733
15734         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
15735         building void typed builtins.
15736
15737         * config/rs6000/altivec.h (vec_ld*): Fix typos.
15738         (vec_step): Implement for C++.
15739
15740 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15741
15742         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
15743
15744 2002-02-04  Richard Henderson  <rth@redhat.com>
15745
15746         * combine.c (nonzero_bits): Re-introduce special case for
15747         sp/fp/ap wrt REGNO_POINTER_ALIGN.
15748
15749 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
15750
15751         * doc/extend.texi: Warn about unsupported usage of altivec
15752         builtins.
15753
15754         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
15755         (altivec_predicate_*): New.
15756
15757         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
15758         Add C++ version of vec_*() functions.
15759
15760         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
15761         (bdesc_2arg): Remove altivec predicates.
15762         (altivec_expand_builtin): Handle predicates.
15763         (altivec_init_builtins): Handle predicates.
15764         (altivec_expand_predicate_builtin): New.
15765
15766 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15767
15768         * pa.c (DO_FRAME_NOTES): Move forward.
15769         (store_reg): Revise handling of frame notes.
15770         (load_reg): Likewise.
15771         (set_reg_plus_d): Likewise.
15772         (hppa_expand_prologue): Likewise.
15773         (hppa_expand_epilogue): Likewise.
15774
15775 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15776
15777         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
15778
15779 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
15780
15781         PR c/4475, c++/3780:
15782         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
15783         * c-common.h (SWITCH_TYPE): Define.
15784         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
15785         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
15786         Rename spareness variable to sparseness.
15787         (expand_end_case_type): Renamed from expand_end_case, use orig_type
15788         if non-NULL instead of TREE_TYPE (orig_index).
15789         * tree.h (expand_end_case_type): Renamed from expand_end_case.
15790         (expand_end_case): Define using expand_end_case_type.
15791         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
15792         to expand_end_case_type.
15793         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
15794
15795 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15796
15797         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
15798         (BIGGEST_ALIGNMENT): Change to 128.
15799
15800 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15801
15802         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
15803
15804 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15805
15806         * pa.md (call_internal_reg_64bit): Remove unused variable.
15807
15808 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
15809
15810         * config/arm/arm.h (machine_function): Add uses_anonymous_args
15811         field.
15812         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
15813         * config/arm/arm.c (current_function_anonymous_args): Delete,
15814         replace uses with cfun->machine->uses_anonymous_args.
15815         (arm_reorg): Do not reset uses_anonymous_args.
15816
15817         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
15818         any geenral register.
15819
15820 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
15821
15822         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
15823         the entry block.
15824
15825 2002-02-04  Richard Henderson  <rth@redhat.com>
15826
15827         * combine.c (force_to_mode): Remove STACK_BIAS code.
15828         (nonzero_bits): Likewise.  Replace sp/fp special case with
15829         REGNO_POINTER_ALIGN.
15830
15831         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
15832         (HARD_FRAME_POINTER_REGNUM): New.
15833         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
15834         (FIXED_REGS, CALL_USED_REGS): Update.
15835         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
15836         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
15837         (HARD_REGNO_NREGS): Update for SFP.
15838         (STACK_POINTER_OFFSET): Include bias here ...
15839         (FIRST_PARM_OFFSET): ... not here.
15840         (STACK_BIAS): Remove.
15841         (INIT_EXPANDERS): New.
15842         (STARTING_FRAME_OFFSET): Do not include bias.
15843         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
15844         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
15845         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
15846         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
15847         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
15848         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
15849         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
15850         (MUST_SAVE_REGISTER): Likewise.
15851         (sparc_flat_function_prologue): Likewise.
15852         (sparc_flat_function_epilogue): Likewise.
15853         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
15854         (sparc_init_modes): SFP is GENERAL_REGS.
15855         (sparc_builtin_saveregs): SFP does not have bias applied.
15856
15857 2002-02-04  Richard Henderson  <rth@redhat.com>
15858
15859         * config/alpha/alpha.c (current_function_is_thunk): Don't check
15860         current_function_is_thunk.
15861         (alpha_sa_mask): Distinguish between current_function_is_thunk
15862         called from ASM_OUTPUT_MI_THUNK and not.
15863         (alpha_does_function_need_gp): Thunks always need gp.
15864         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15865         (alpha_output_mi_thunk_osf): New.
15866         * config/alpha/alpha-protos.h: Update.
15867         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
15868
15869 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
15870
15871         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
15872         function types, not when they're taken away.
15873
15874 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
15875
15876         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
15877         CODE_LABEL and jump table when replacing a table jump with a
15878         simple jump.
15879
15880 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15881
15882         * config/s390/s390-protos.h (legitimize_la_operand,
15883         s390_secondary_input_reload_class, s390_plus_operand,
15884         s390_expand_plus_operand): Add prototypes.
15885
15886         config/s390/s390.c (s390_secondary_input_reload_class,
15887         s390_plus_operand, s390_expand_plus_operand): New functions.
15888
15889         (struct s390_address): New member 'pointer'.
15890         (s390_decompose_address): Compute it.
15891         (legitimate_la_operand_p): Use it.
15892         (legitimize_la_operand): New function.
15893         (movti, movdi, movdf splitters): Call it.
15894
15895         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
15896         (PREDICATE_CODES): Add s390_plus_operand.
15897
15898         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
15899         (la_ccclobber): Allow GENERAL_REGS as output operand.
15900
15901         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
15902         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
15903         (*la_64, *la_31, reload_indi, reload_insi): ... these.
15904
15905 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15906
15907         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
15908         register names for regular asm () construct.
15909
15910 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
15911
15912         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
15913         registers.
15914
15915 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
15916
15917         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
15918         pat for recog.
15919
15920 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
15921
15922         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
15923         constant pool to be identical by string address and index.
15924
15925 2002-02-04  Anthony Green  <green@redhat.com>
15926
15927         * output.h (SECTION_OVERRIDE): Define.
15928         * varasm.c (named_section): Obey SECTION_OVERRIDE.
15929
15930 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
15931
15932         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
15933         by existing arm*-*-netbsd* (a.out) target.
15934         (ns32k-*-netbsdelf*): Likewise.
15935         (sparc-*-netbsdelf*): Likewise.
15936         (vax-*-netbsdelf*): Likewise.
15937
15938 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
15939
15940         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
15941         headers and libobjc headers.
15942
15943 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
15944
15945         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
15946         (_mingw.h): Remove duplicate include.
15947
15948 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
15949
15950         * config.gcc: Set cpu_type to m68k for 68010, as well.
15951         (m68010-*-netbsdelf*): New...
15952         (m68k*-*-netbsdelf*): ...targets.
15953         * config/m68k/netbsd-elf.h: New file.
15954
15955 2002-02-02  Kazu Hirata  <kazu@hxi.com>
15956
15957         * config/h8300/h8300.c (hand_list): Move inside function_arg.
15958
15959 2002-02-02  Kazu Hirata  <kazu@hxi.com>
15960
15961         * config/h8300/h8300.c (h8_push_ops): Move inside
15962         h8300_init_once.
15963         (h8_pop_ops): Likewise.
15964         (h8_move_ops): Likewise.
15965
15966 2002-02-02  Kazu Hirata  <kazu@hxi.com>
15967
15968         * config/h8300/h8300.c (os_task): Make it static.
15969         (monitor): Likewise.
15970         (pragma_saveall): Likewise.
15971
15972 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
15973
15974         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
15975         constant is a valid sign-extension for Pmode.
15976
15977 2002-02-02  Kazu Hirata  <kazu@hxi.com>
15978
15979         * config/h8300/h8300.c: Fix formatting.
15980
15981 2002-02-02  Kazu Hirata  <kazu@hxi.com>
15982
15983         * config/h8300/h8300.md: Fix formatting.
15984
15985 2002-02-02  Kazu Hirata  <kazu@hxi.com>
15986
15987         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
15988         predicates of operands[1].  Split the patterns for each
15989         processor variant.
15990
15991 2002-02-02  Kazu Hirata  <kazu@hxi.com>
15992
15993         * config/h8300/h8300.md (xor patterns): Tighten the predicates
15994         of operands[1] to register_operand.
15995
15996 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
15997
15998         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
15999         * cpphash.c (_cpp_init_hashtable): Similarly.
16000         * cppinit.c (cpp_create_reader): Default the signed_char flag.
16001         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
16002         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
16003         (cpp_handle_option): Handle the new options.
16004         * cpplex.c (cpp_interpret_charconst): Use new flag.
16005         * cpplib.h (struct cpp_options): New member signed_char.
16006         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
16007         (cpp_options): Handle -fsigned-char and -funsigned-char.
16008         (static_specs): Remove signed_char_spec.
16009         (do_spec1): Don't handle %c.
16010         * system.h: Poison SIGNED_CHAR_SPEC.
16011         * tradcif.y (yylex): Use flag_signed_char.
16012         * tradcpp.h (flag_signed_char): New.
16013         * tradcpp.c (flag_signed_char): New.
16014         (main): Handle new command-line options.
16015         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
16016 config:
16017         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
16018         * avr/avr.h: Remove old comments.
16019         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
16020         (CC1_SPEC): Pass -fsigned-char if -mic*.
16021         (SIGNED_CHAR_SPEC): Remove.
16022 doc:
16023         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
16024
16025 2002-02-01  Eric Christopher  <echristo@redhat.com>
16026
16027         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
16028         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
16029         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
16030         (ASM_OUTPUT_REG_POP): Ditto.
16031
16032 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
16033
16034         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
16035         patch.
16036
16037 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
16038
16039         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
16040
16041 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
16042
16043         PR c/5304:
16044         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
16045         unconditionally.
16046
16047 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
16048
16049         * cfganal.c: Include tm_p.h.
16050         (keep_with_call_p): Fix the test that determines if a register holds
16051         the return value of a call.
16052
16053 2002-02-01  DJ Delorie  <dj@redhat.com>
16054
16055         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
16056         we are given conflicting registers, switch to the other one we
16057         had allocated for us.
16058         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
16059         as TImode so we know when the "other" register is available.
16060
16061 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
16062
16063         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
16064         sparc/sparc_bi.h.
16065
16066 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
16067
16068         * cfganal.c (keep_with_call_p): New function.
16069         (flow_call_edges_add): Prevent splitting a block between a call and
16070         a single-set instruction that should be kept in the same block.
16071
16072 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16073
16074         * doc/install.texi (avr): Update outdated URL.
16075
16076 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
16077
16078         * config/stormy16/stormy16.md (pushqi): New.
16079         (popqi): New.
16080         (pushhi): New.
16081         (pophi): New.
16082         (movhi): Remove stack operands.
16083         (movqi): Likewise.
16084         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
16085         nonimmediate_nonstack_operand.
16086         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
16087         New.
16088         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
16089         New.
16090
16091 2002-01-31  Jason Merrill  <jason@redhat.com>
16092
16093         * Makefile.in (c-parse.c): Handle .output file.
16094         * objc/Make-lang.in (objc-parse.c): Likewise.
16095
16096 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
16097
16098         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
16099         the -me[lb] option is given.  Don't output the default flag
16100         twice.
16101
16102 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
16103
16104         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
16105         the primary source file; this has not been done yet.
16106         * c-decl.c (c_expand_body): Reset input_filename from
16107         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
16108
16109 2002-01-31  Kazu Hirata  <kazu@hxi.com>
16110
16111         * rtlanal.c (subreg_regno_offset): Do not use
16112         SUBREG_REGNO_OFFSET.
16113         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16114         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16115
16116 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
16117
16118         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
16119         version rather than GNATS version in --version output.
16120
16121 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
16122
16123         * ifcvt.c (noce_process_if_block): Make a copy of the destination
16124         when copying back from a temporary.
16125
16126 2002-01-30  Richard Henderson  <rth@redhat.com>
16127
16128         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16129         and new_dest are the same.
16130
16131 2002-01-30  Richard Henderson  <rth@redhat.com>
16132
16133         PR opt/5076
16134         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16135         * rtl.c (note_insn_name): Update.
16136         * emit-rtl.c (remove_unnecessary_notes): Kill it.
16137         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
16138         to perform loop rotation.
16139         (expand_exit_loop_top_cond): New.
16140         * tree.h (expand_exit_loop_top_cond): Declare it.
16141         * c-semantics.c (genrtl_while_stmt): Use it.
16142         (genrtl_for_stmt): Likewise.
16143
16144 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
16145
16146         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16147         arguments to 64-bit boundaries on 64-bit ABIs.
16148
16149 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
16150
16151         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16152
16153 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
16154
16155         * c-decl.c (grokdeclarator): Handle type being a typedef for an
16156         invalid type.
16157
16158 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
16159
16160         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16161         * config/sparc/sparc_bi.h: Remove file.
16162         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16163
16164 2002-01-30  Richard Henderson  <rth@redhat.com>
16165
16166         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16167
16168 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
16169
16170         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16171
16172 2002-01-30  Jason Merrill  <jason@redhat.com>
16173
16174         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16175         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16176         (reg_save): Use DW_CFA_offset_extended_sf instead.
16177
16178         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16179
16180 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
16181
16182         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16183         in cselib_lookup.
16184
16185 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
16186
16187         * rs6000.md ("*call_value_local32"): Remove constraints.
16188         ("*call_value_local64"): Same.
16189         ("*call_value_indirect_nonlocal_aix32"): Same.
16190         ("*call_value_nonlocal_aix32"): Same.
16191         ("*call_value_indirect_nonlocal_aix64"): Same.
16192         ("*call_value_nonlocal_aix64"): Same.
16193         ("*call_value_nonlocal_sysv"): Same.
16194
16195 2002-01-29  Richard Henderson  <rth@redhat.com>
16196
16197         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16198
16199 2002-01-29  Richard Henderson  <rth@redhat.com>
16200
16201         * expr.c (force_operand): Ignore flag_pic for detecting pic
16202         address loads.
16203         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16204         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16205         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16206         instead of open-coded loop.
16207         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16208         be fixed when in use.
16209
16210 2002-01-29  Richard Henderson  <rth@redhat.com>
16211
16212         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16213         * sched-rgn.c (propagate_deps): Update them.
16214         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
16215         clobbers list when either gets too long.
16216
16217 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
16218
16219         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16220         and INDEX_REGS the same as GENERAL_REGS.
16221         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16222
16223 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
16224
16225         * tree.c (build_nonstandard_integer_type): Correct prototype.
16226
16227 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
16228
16229         * config/s390/s390.md (movstrsico, movstrdix_64,
16230         movstrsix_31): Remove, replace by ...
16231         (movstrdi_short, movstrsi_short, movstrdi_long,
16232         movstrsi_long): ... these.  New.
16233         (movstrdi, movstrsi): Adapt.
16234
16235         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
16236         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
16237         Remove unnecessary CC clobber.
16238         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16239         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16240
16241         (divmoddi4): Don't partially initialize TImode register.
16242
16243 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
16244
16245         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16246
16247 2002-01-29  Richard Henderson  <rth@redhat.com>
16248
16249         * flow.c (print_rtl_and_abort): Remove.
16250         (print_rtl_and_abort_fcn): Remove.
16251         (verify_local_live_at_start): Use dump_bb instead.
16252         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16253         (verify_wide_reg_1): Return 2 on mode test failure.
16254
16255 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
16256
16257         PR c/3325, c/3326, c/2511, c/3347
16258         * c-decl.c (enum_decl_context): Remove BITFIELD.
16259         (grokdeclarator): Take bitfield width as an input.
16260         Ensure bitfields are given the correct type.  Perform
16261         bitfield width validation with build_bitfield_integer_type
16262         rather than waiting for finish_struct.
16263         (grok_typename, grok_typename_in_parm_context, start_decl,
16264         push_parmdecl, grokfield, start_function): Update calls to
16265         grokdeclarator.
16266         (build_bitfield_integer_type): New function.
16267         (finish_struct): Move bitfield validation to grokdeclarator
16268         and build_bitfield_integer_type.
16269         * tree.c (build_nonstandard_integer_type): New function.
16270         * tree.h (build_nonstandard_integer_type): New prototype.
16271 objc:
16272         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16273
16274 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
16275
16276         PR other/1502:
16277         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16278         don't ignore unrecognized -W* options.
16279         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16280         * cpplib.h (cpp_handle_option): Adjust prototype.
16281         * c-decl.c (c_decode_options): Pass 0 as last argument to
16282         cpp_handle_option.
16283
16284         PR c/2896:
16285         * gcc.c (cpp_unique_options): Split from cpp_options.
16286         (cpp_options): Source cpp_unique_options.
16287         (default_compilers): Use cpp_unique_options instead of cpp_options
16288         when used together with cc1_options.
16289         (static_specs): Add cpp_unique_options.
16290         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16291         when used together with cc1_options.
16292
16293 2002-01-29  Kazu Hirata  <kazu@hxi.com>
16294
16295         * config/h8300/h8300-protos.h: Update the prototype of
16296         output_a_shift.
16297         * config/h8300/h8300.c (output_a_shift): Remove an unused
16298         argument 'insn'.  Remove redundant code.
16299         * config/h8300/h8300.md: Adust to the new prototype of
16300         output_a_shift.
16301
16302 2002-01-29  Kazu Hirata  <kazu@hxi.com>
16303
16304         * config/h8300/h8300-protos.h: Update the prototypes of
16305         emit_a_rotate and expand_a_rotate.
16306         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16307         first argument to 'enum rtx_code'.
16308         (expand_a_rotate): Likewise.
16309
16310 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16311
16312         * config/h8300/h8300-protos.h: Update the prototype of
16313         output_simode_bld.
16314         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16315         'log2'.
16316         * config/h8300/h8300.md: Adjust to the new prototype.
16317
16318 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16319
16320         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16321         redundant code.
16322
16323 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16324
16325         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16326         is a fixed register before returning pic_offset_table_rtx.
16327         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16328         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16329
16330 2002-01-28  Jason Merrill  <jason@redhat.com>
16331
16332         * dwarf2.h: Sync with src version.
16333
16334 2002-01-28  Paul Koning  <pkoning@equallogic.com>
16335
16336         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16337         BT_FN_VOID_PTR_VAR.
16338         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16339         * doc/extend.texi (__builtin_prefetch): Update documentation:
16340         first argument is now const void ptr.
16341
16342 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16343
16344         * config/h8300/h8300-protos.h: Remove an unused prototype.
16345
16346 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
16347
16348         * toplev.c (lang_independent_init): Round up identifier size.
16349
16350 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
16351
16352         * config.gcc: Revert previous change.
16353
16354 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
16355
16356         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16357
16358 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
16359
16360         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16361         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
16362         other non-elf netbsd config frags.
16363         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16364         collect2 will does that.
16365         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16366         shared-lib frobbing will work.
16367
16368 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16369
16370         * config/h8300/h8300.h: Fix formatting.
16371         * config/h8300/h8300.md: Likewise.
16372
16373 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
16374
16375         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16376         the old, removed AAA_standards fix.
16377         * fixinc/fixincl.x: Rebuilt.
16378
16379 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
16380
16381         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16382         atexit call in crtbegin, hooked in after call to frame_dummy;
16383         register EH before registering __fini__start.
16384
16385 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
16386
16387         * config/rs6000/altivec.h: Remove spurious semicolons.
16388
16389 2002-01-27  Kazu Hirata  <kazu@hxi.com>
16390
16391         * config/h8300/h8300.md: Replace dead bit extraction patterns
16392         with ones that work.
16393
16394 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16395
16396         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16397         if not STRICT_ALIGNMENT.
16398         * rtl.h (MEM_ALIGN): Likewise.
16399
16400 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16401
16402         * doc/invoke.texi (-fdump-translation-unit): Revert this
16403         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16404
16405 2002-01-27  Kazu Hirata  <kazu@hxi.com>
16406
16407         * config/h8300/h8300.md (define_constants): New.
16408         (anonymous patterns) Use defined constants appropriately.
16409
16410 2002-01-27  Kazu Hirata  <kazu@hxi.com>
16411
16412         * config/h8300/h8300.c (function_arg): Remove redundant code.
16413
16414 2002-01-26  Richard Henderson  <rth@redhat.com>
16415
16416         * sched-deps.c (reg_pending_uses_head): New.
16417         (reg_pending_barrier): Rename from reg_pending_sets_all.
16418         (find_insn_list): Don't mark inline.
16419         (find_insn_mem_list): Remove.
16420         (add_dependence_list, add_dependence_list_and_free): New.
16421         (flush_pending_lists): Replace only_write param with separate
16422         for_read and for_write parameters.  Update all callers.  Use
16423         add_dependence_list_and_free.
16424         (sched_analyze_1): Do not add reg dependencies here; just set
16425         the pending bits.  Use add_dependence_list.
16426         (sched_analyze_2): Likewise.
16427         (sched_analyze_insn): Replace schedule_barrier_found with
16428         reg_pending_barrier.  Add all dependencies for pending reg
16429         uses, sets, and clobbers.
16430         (sched_analyze): Don't add reg dependencies for calls, just
16431         set pending bits.  Use regs_invalidated_by_call.  Treat
16432         sched_before_next_call as a normal list, not a fake insn.
16433         (init_deps): No funny init for sched_before_next_call.
16434         (free_deps): Free pending mems lists.  Don't zero reg_last.
16435         (init_deps_global): Init reg_pending_uses.
16436         (finish_deps_global): Free it.
16437         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
16438         (find_insn_mem_list): Remove.
16439         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16440         (propagate_deps): Use them.  Zero temp mem lists.
16441
16442 2002-01-26  Richard Henderson  <rth@redhat.com>
16443
16444         * Makefile.in (CRTSTUFF_CFLAGS): New.
16445         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16446         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16447         crtstuff.c instead of alpha assembly version.
16448         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16449         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
16450         not FORCE_{INIT,FINI}_SECTION_ALIGN.
16451         (__do_global_dtors_aux): Mark used.
16452         (frame_dummy, __do_global_ctors_aux): Mark used.
16453         (fini_dummy, init_dummy): Remove.
16454
16455         * config/alpha/crtbegin.asm: Remove file.
16456         * config/alpha/crtend.asm: Remove file.
16457         * config/alpha/t-crtbe: Remove file.
16458         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16459         (LINK_EH_SPEC): New.
16460
16461         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16462         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
16463         calling constructors.
16464         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16465
16466         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16467         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16468         CRT_END_INIT_DUMMY hack.
16469         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16470         FORCE_{INIT,FINI}_SECTION_ALIGN.
16471
16472         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16473         FORCE_{INIT,FINI}_SECTION_ALIGN.
16474
16475         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16476         invocation sequence.
16477         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16478
16479         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16480         (FORCE_CODE_SECTION_ALIGN): New.
16481
16482 2002-01-26  Richard Henderson  <rth@redhat.com>
16483
16484         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16485
16486 2002-01-26  Richard Henderson  <rth@redhat.com>
16487
16488         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16489         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16490
16491 2002-01-26  Kazu Hirata  <kazu@hxi.com>
16492
16493         * config/h8300/h8300.md: Remove bit extraction patterns that
16494         cannot be triggered.
16495         Restrict each bit extraction pattern to a variant on which the
16496         pattern is tested.
16497
16498 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
16499
16500         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16501
16502 2002-01-26  Kazu Hirata  <kazu@hxi.com>
16503
16504         * config/h8300/h8300.md: Remove bit test patterns that cannot
16505         be triggered.
16506         Restrict each bit test pattern to a variant on which the
16507         pattern is tested.
16508
16509 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16510
16511         * builtins.c (expand_builtin_strncat): Remove redundant check for
16512         INTEGER_CST.
16513
16514 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
16515
16516         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16517         default setting.
16518         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16519         existing setting.
16520
16521 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
16522
16523         * dbxout.c (dbxout_init): Use assemble_name rather than just
16524         stripping off the first character.
16525         (dbxout_source_file): Likewise.
16526
16527 2002-01-25  DJ Delorie  <dj@redhat.com>
16528
16529         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16530         using rtx_equal_p, not by comparing pointers.
16531
16532 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
16533
16534         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16535         for PIC_OFFSET_TABLE_REGNUM.
16536         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16537
16538 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
16539
16540         * config.gcc (x86_64-*-freebsd*): New target.
16541         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16542         value.
16543         (i[34567]86-*-freebsd*): Don't include svr4.h.
16544         * config/i386/freebsd64.h: New file.
16545
16546 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
16547
16548         * config/alpha/x-vms (version): Make static.
16549
16550         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16551         in previous checkin.
16552
16553         * Makefile.in (install-headers-cp): New target.
16554         * config.gcc (alpha-dec-*vms*): Install headers with
16555         install-headers-cp
16556
16557 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
16558
16559         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16560         avoid it's copies.
16561
16562 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16563
16564         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16565         of compare_tree_int.
16566         (expand_builtin_strncat): Likewise.
16567         * c-decl.c (finish_struct): Use tree_low_cst.
16568         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16569         * tree.c (compare_tree_int): Likewise.
16570
16571 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
16572
16573         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16574         adjustments even if they are implemented by more than two insns.
16575
16576 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
16577
16578         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
16579         * df.h (struct ref): Kill B.
16580         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16581
16582         * basic-block.h (PROP_EQUAL_NOTES): New flag.
16583         * flow.c (propagate_one_insn): Use it.
16584         (mark_used_regs): Handle NIL.
16585
16586 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
16587
16588         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16589         to help folding.
16590
16591 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
16592
16593         * rs6000.md (prefetch): Make address V4SI mode so that the address
16594         is restricted to legitimate form for instruction.
16595
16596 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
16597
16598         * doc/install.texi (xtensa-*-elf): New target.
16599         (xtensa-*-linux*): New target.
16600         * doc/contrib.texi: Add myself.
16601
16602 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
16603
16604         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16605         purpose register to hold an SImode (or smaller) value.
16606
16607 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
16608
16609         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16610         registry only.
16611         * crtstuff.c: Likewise.
16612
16613 2002-01-25  Kazu Hirata  <kazu@hxi.com>
16614
16615         * config/h8300/h8300.md (negation patterns): Tighten
16616         predicates to register_operand.
16617
16618 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
16619
16620         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16621         mode, not Pmode.
16622
16623         * builtins.c (expand_builtin_prefetch): Same.
16624
16625 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16626
16627         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16628         modes.
16629
16630 2002-01-24  Kazu Hirata  <kazu@hxi.com>
16631
16632         * config/h8300/h8300.c (print_operand): Remove support for
16633         operand character 'A'.
16634         * config/h8300/h8300.md (three anonymous patterns): Replace
16635         operand character 'A' with either 'T' or 'S'.
16636
16637 2002-01-24  Kazu Hirata  <kazu@hxi.com>
16638
16639         * config/h8300/h8300.c (print_operand): Remove support for
16640         operand character 'U'.
16641
16642 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
16643
16644         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
16645
16646 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
16647
16648         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16649         values to be assigned to the stack pointer.
16650
16651 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
16652
16653         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
16654         to const_double needs to be done right for big-endian systems.
16655
16656 2002-01-24  Jason Merrill  <jason@redhat.com>
16657
16658         PR c++/2432
16659         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16660         to can_throw_internal.
16661
16662 2002-01-23  Richard Henderson  <rth@redhat.com>
16663
16664         * fold-const.c (fold): Change UINT_MAX test to check vs precision
16665         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
16666
16667 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16668
16669         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16670         (symGOT2reg): Use them, then set as GOT value as unchanging.
16671         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
16672         as a temporary, if possible.
16673         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
16674         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
16675
16676 2002-01-23  Kazu Hirata  <kazu@hxi.com>
16677
16678         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
16679         accept to accept 0x80 as operands[2].
16680
16681 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16682
16683         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
16684
16685 2002-01-23  Richard Henderson  <rth@redhat.com>
16686
16687         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
16688
16689 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
16690
16691         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
16692         (parmlist_or_identifiers_1): Verify that only a parmlist follows
16693         an attribute.
16694
16695 2002-01-23  Richard Henderson  <rth@redhat.com>
16696
16697         * expr.c (move_by_pieces_1): Extend size before negation.
16698
16699         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
16700         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
16701         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
16702         * config/m68k/t-m68kelf: Likewise.
16703
16704 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
16705
16706         * config/xtensa/elf.h: New file.
16707         * config/xtensa/lib1funcs.asm: New file.
16708         * config/xtensa/lib2funcs.S: New file.
16709         * config/xtensa/linux.h: New file.
16710         * config/xtensa/t-xtensa: New file.
16711         * config/xtensa/xtensa-config.h: New file.
16712         * config/xtensa/xtensa-protos.h: New file.
16713         * config/xtensa/xtensa.c: New file.
16714         * config/xtensa/xtensa.h: New file.
16715         * config/xtensa/xtensa.md: New file.
16716         * config.gcc (xtensa-*-elf*): New target.
16717         (xtensa-*-linux*): New target.
16718         * cse.c (canon_hash): Compare rtx pointers instead of register
16719         numbers.  This is required for the Xtensa port.
16720         * integrate.c (copy_insn_list): Handle case where the static
16721         chain is in memory and the memory address has to be copied to
16722         a register.
16723         * doc/invoke.texi (Option Summary): Add Xtensa options.
16724         (Xtensa Options): New node.
16725         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
16726
16727 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
16728
16729         * diagnostic.c (internal_error): Do ICE suppression only
16730         when ENABLE_CHECKING is not defined.
16731
16732         * c-typeck.c (require_complete_type): Return error_mark_node
16733         if type is error_mark_node.
16734
16735 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
16736
16737         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
16738         -Os and issue a warning.
16739
16740 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
16741
16742         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
16743         current (lack of) need for host configuration by hand.
16744
16745         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
16746         references.  Documentation of some target macros moved from
16747         hostconfig.texi to tm.texi.
16748
16749 2002-01-23  Will Cohen  <wcohen@redhat.com>
16750
16751         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
16752         defined.
16753
16754 2002-01-23  Kazu Hirata  <kazu@hxi.com>
16755
16756         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
16757         operand[3].
16758
16759 2002-01-23  Jason Merrill  <jason@redhat.com>
16760
16761         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
16762
16763         * function.c (assign_parms): Don't put args of inline functions
16764         into registers when not optimizing.
16765
16766 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
16767
16768         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
16769         (prologue_use): New pattern.
16770         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
16771         preference to gen_rtx_USE.
16772         (thumb_expand_prologue): Use gen_prologue_use in preference to
16773         gen_rtx_USE.
16774         (thumb_expand_epilogue): Use gen_prologue_use in preference to
16775         gen_rtx_USE.
16776
16777 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
16778
16779         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
16780
16781 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
16782
16783         PR c/3504
16784         * doc/extend.texi: Correct documentation of __alignof__.
16785
16786 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
16787
16788         * params.h: Rename arguments of DEFPARAM so that it will be
16789         recognized as a translation keyword.
16790
16791 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
16792
16793         * extend.texi: Document altivec functions.
16794         Fix N-bit adjectives in X86 builtin documentation.
16795
16796 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
16797
16798         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
16799         auto_inc_dec values.
16800
16801 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
16802
16803         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
16804         after backslash.
16805         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
16806
16807 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
16808
16809         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
16810
16811 2002-01-22  Richard Henderson  <rth@redhat.com>
16812
16813         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
16814         copy_insn not copy_rtx.
16815
16816 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
16817
16818         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
16819         "nonzero" as that might add "1" bits.  Ensure "constop" is
16820         properly sign extened.
16821         (force_to_mode): Tweak for sign extended constop.
16822
16823 2002-01-22  Richard Henderson  <rth@redhat.com>
16824
16825         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
16826         for_each_rtx instead of assuming we're already looking at the MEM.
16827         (split_small_symbolic_mem_operand): Likewise.
16828         * config/alpha/alpha.h (PREDICATE_CODES): Update.
16829         * config/alpha/alpha.md (small symbolic memory splitters): Update.
16830
16831 2002-01-22  Richard Henderson  <rth@redhat.com>
16832
16833         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
16834         sequence number for the literal.
16835         (divmoddi_internal_er): Likewise.
16836
16837 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16838
16839         PR java/4972
16840         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
16841         in LIBICONV variable.
16842         * configure: Regenerated.
16843
16844 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
16845
16846         * dependence.c (build_def_use): Remove array_idx.
16847
16848         * dwarfout.c (last_filename): Remove.
16849         (output_compile_unit_die): Remove last_filename.
16850
16851 2002-01-22  Roger Sayle  <roger@eyesopen.com>
16852             Richard Henderson  <rth@redhat.com>
16853
16854         PR opt/3640
16855         * fold-const.c (fold): Optimize unsigned comparisons against
16856         UINT_MAX (and similar unsigned constants).
16857
16858 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
16859
16860         * Makefile.in (loop.o): Depend on OPTABS_H.
16861         * loop.c (emit_prefetch_instructions): Check the prefetch operand
16862         against the predicate.
16863
16864         PR target/5379
16865         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
16866         for the address operand.
16867
16868 2002-01-22  Richard Henderson  <rth@redhat.com>
16869
16870         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
16871
16872 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16873
16874         PR other/5450
16875         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
16876         preprocessor flags.
16877
16878 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
16879
16880         * config.gcc (x86_64-*-netbsd*): New target.
16881         * config/i386/netbsd64.h: New file.
16882
16883 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
16884
16885         * regrename.c (kill_value): Fix typo.
16886
16887 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
16888
16889         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
16890
16891         * config/rs6000/rs6000.h: Same.
16892
16893         * function.c (instantiate_virtual_regs): Remove
16894         STARTING_FRAME_PHASE.
16895         (assign_stack_local_1): Same.
16896         Calculate frame phase.
16897
16898 2002-01-22  Nick Clifton  <nickc@redhat.com>
16899
16900         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
16901         variable declaration to outer scope in order to simplify
16902         future extensions.
16903         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
16904         arm_hard_regno_mode_ok.
16905         * config/arm/arm-protos.h: Add a prototype for
16906         arm_hard_regno_mode_ok.
16907         * config/arm/arm.c (soft_df_operand): Remove now redundant
16908         check for DImode values using IP_REGNUM.
16909         (nonimmediate_soft_df_operand): Remove now redundant check for
16910         DImode values using IP_REGNUM.
16911         (arm_hard_regno_mode_ok): New function. New check: make sure
16912         that DImode values are not stored in IP_REGNUM.
16913
16914         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
16915         note with a USE.
16916         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
16917
16918 2002-01-22  Jason Merrill  <jason@redhat.com>
16919
16920         * c-semantics.c (genrtl_compound_stmt): Only check nesting
16921         consistency if this COMPOUND_STMT is scoped.
16922
16923 2002-01-22  Kazu Hirata  <kazu@hxi.com>
16924
16925         * predict.c: Fix formatting.
16926         * print-tree.c: Likewise.
16927         * protoize.c: Likewise.
16928         * real.h: Likewise.
16929         * rtl.h: Likewise.
16930         * sbitmap.h: Likewise.
16931         * scan.c: Likewise.
16932         * sched-deps.c: Likewise.
16933         * sched-vis.c: Likewise.
16934         * sdbout.c: Likewise.
16935         * sibcall.c: Likewise.
16936         * ssa.c: Likewise.
16937         * ssa-ccp.c: Likewise.
16938         * ssa-dce.c: Likewise.
16939         * stmt.c: Likewise.
16940         * stor-layout.c: Likewise.
16941         * system.h: Likewise.
16942
16943 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16944
16945         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
16946         if fits in bounds of base type.
16947
16948         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
16949         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
16950         (add_bound_info, default): If can't find a context, make a
16951         SAVE_EXPR.
16952         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
16953
16954 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
16955
16956         * c-typeck.c (parser_build_binary_op): If result from
16957         build_binary_op is ERROR_MARK just return error_mark_node without
16958         further processing.
16959
16960 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
16961
16962         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
16963         Split a.out-specific bits into...
16964         * config/netbsd-aout.h: ...this.
16965         * config/netbsd-elf.h: New file.
16966         * config/alpha/netbsd-elf.h: Remove.
16967         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
16968         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
16969         (STARTFILE_SPEC): Remove redundant definition.
16970         (ENDFILE_SPEC): Likewise.
16971         (LINK_SPEC): Likewise.
16972         (CPP_SPEC): Likewise.
16973         (ASM_SPEC): Likewise.
16974         (LIB_SPEC): Likewise.
16975         (SWITCH_TAKES_ARG): Likewise.
16976         (TARGET_MEM_FUNCTIONS): Likewise.
16977         (CPP_PREDEFINES): Redefine.
16978         (ASM_FINAL_SPEC): Remove redefinition.
16979         (ASM_COMMENT_START): Redefine.
16980         (FUNCTION_PROFILER): Define.
16981         (TARGET_VERSION): Redefine.
16982         Comment and formatting cleanup.
16983         * config/i386/netbsd.h: Include <netbsd-aout.h>.
16984         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
16985         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
16986         big- or little-endian.
16987         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
16988         * config.gcc (*-*-netbsd*): Add definitions common to all
16989         NetBSD configs.
16990         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
16991         gnu_ld definitions.  Add netbsd-elf.h to and remove
16992         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
16993         tmake_file, and don't lose previous tmake_file contents.
16994         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
16995         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
16996         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
16997         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
16998         (mipsel-*-netbsd*): Rename this to...
16999         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
17000         mips/little.h to tm_file for mips*el-*.
17001         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
17002         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
17003         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
17004
17005 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17006
17007         * pa-protos.h (reg_before_reload_operand): New function prototype.
17008         * pa.c (reg_before_reload_operand): New function implementation.
17009         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
17010         contraints to "*m".
17011
17012 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17013
17014         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
17015
17016 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17017
17018         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
17019         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
17020         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
17021         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
17022         (ENDFILE_SPEC): Undefine.
17023         (STARTFILE_SPEC): Redefine for PA.
17024
17025 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17026
17027         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
17028
17029 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
17030
17031         * config.gcc: Add entries to supported PowerPC --with-cpu
17032         types.
17033
17034 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
17035
17036         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
17037         true for 64-bit mode only SSE registers in 32-bit mode.
17038
17039 2002-01-21  Kazu Hirata  <kazu@hxi.com>
17040
17041         * unwind-dw2.c: Fix formatting.
17042         * unwind-dw2-fde.c: Likewise.
17043         * unwind-dw2-fde.h: Likewise.
17044         * unwind-pe.h: Likewise.
17045         * varasm.c: Likewise.
17046         * varray.h: Likewise.
17047
17048 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
17049
17050         Remove workaround for register stack overwrite bug in mmix.
17051         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
17052         support for TARGET_REG_STACK_FILL_BUG.
17053         * config/mmix/mmix.h: Remove member has_call_without_parameters.
17054         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
17055         Delete.
17056         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
17057         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
17058         -mno-reg-stack-fill-bug-workaround.
17059         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
17060         machine member has_call_without_parameters.
17061         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
17062         -mreg-stack-fill-bug-workaround and
17063         -mno-reg-stack-fill-bug-workaround.
17064         (MMIX Options): Ditto.
17065
17066 2002-01-21  Kazu Hirata  <kazu@hxi.com>
17067
17068         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
17069         as appropriate.
17070         Remove redundant code.
17071
17072 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
17073
17074         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
17075         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17076         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17077         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
17078         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
17079         out target macro definitions and non-target-specific comments
17080         mostly taken from old versions of the manual.
17081
17082 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17083
17084         * config/h8300/h8300.h: Fix comment formatting.
17085         * config/ia64/aix.h: Likewise.
17086         * config/ia64/ia64-protos.h: Likewise.
17087         * config/ia64/ia64.c: Likewise.
17088         * config/ia64/ia64.h: Likewise.
17089         * config/ia64/ia64intrin.h: Likewise.
17090         * config/ia64/linux.h: Likewise.
17091         * config/ia64/unwind-aix.c: Likewise.
17092         * config/ia64/unwind-ia64.c: Likewise.
17093
17094 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17095
17096         * config/h8300/h8300.c: Revise comments about shift code.
17097
17098 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17099
17100         * config/h8300/h8300.c (function_arg): Update a comment.
17101
17102 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17103
17104         * config/h8300/h8300.md: Update the comments at the beginning
17105         of the file.
17106
17107 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17108
17109         * config/i370/i370.c: Fix comment formatting.
17110         * config/i370/i370.h: Likewise.
17111         * config/i370/i370.md: Likewise.
17112         * config/i370/linux.h: Likewise.
17113
17114 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17115
17116         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17117
17118         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17119         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17120         in incomplete case.
17121
17122 2002-01-20  Graham Stott  <grahams@redhat.com>
17123
17124         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17125
17126 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17127
17128         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17129
17130 2002-01-19  Tom Rix  <trix@redhat.com>
17131
17132         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17133
17134 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
17135
17136         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
17137
17138         * function.c (assign_stack_local_1): Adjust x_frame_offset with
17139         STARTING_FRAME_PHASE.
17140         (STARTING_FRAME_PHASE): New.
17141         (instantiate_virtual_regs): Check saneness of
17142         STARTING_FRAME_PHASE.
17143
17144         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
17145
17146 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
17147
17148         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17149
17150 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17151
17152         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17153         be used for bootstrapping GCC 3.0.
17154
17155 2002-01-18  Kazu Hirata  <kazu@hxi.com>
17156
17157         * config/h8300/h8300.md: Fix an insn length.
17158
17159 2002-01-18  Kazu Hirata  <kazu@hxi.com>
17160
17161         * bitmap.h: Fix comment formatting.
17162         * combine.c: Likewise.
17163         * cppfiles.c: Likewise.
17164         * c-pragma.h: Likewise.
17165         * c-typeck.c: Likewise.
17166         * df.c: Likewise.
17167         * dwarf2out.c: Likewise.
17168         * function.c: Likewise.
17169         * gcc.c: Likewise.
17170         * genattrtab.c: Likewise.
17171         * gthr-win32.h: Likewise.
17172         * haifa-sched.c: Likewise.
17173         * predict.c: Likewise.
17174         * rtlanal.c: Likewise.
17175         * rtl.h: Likewise.
17176         * unwind-dw2-fde.h: Likewise.
17177         * unwind-pe.h: Likewise.
17178         * vmsdbgout.c: Likewise.
17179
17180 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17181
17182         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17183         if type_required and passed decl.
17184
17185 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
17186
17187         * config.gcc (cpu_type): Include altivec.h in powerpc
17188         extra_headers.
17189         Same for darwin.
17190
17191         * config/rs6000/altivec.h: New.
17192
17193 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
17194
17195         * doc/install.texi (*-ibm-aix*): Update assembler and exception
17196         handling information.
17197         * doc/trouble.texi (Interoperation): Add libstdc++ information
17198         for AIX.
17199         (Misunderstandings): Add template instantiation and static template
17200         member information for AIX.
17201
17202 2002-01-17  Jason Merrill  <jason@redhat.com>
17203
17204         * dbxout.c (dbxout_type): Support const and volatile.
17205
17206         * except.c (add_partial_entry): Remove backwards compatibility code.
17207         (end_protect_partials): Likewise.
17208
17209 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
17210
17211         * config/ia64/ia64.md (prologue_use): New.
17212         * config/ia64/ia64.c (ia64_expand_prologue): Use
17213         gen_prologue_use instead of gen_rtx_USE.
17214         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17215         as CODE_FOR_pred_rel_mutex.
17216         (ia64_sched_reorder2): Likewise.
17217
17218 2002-01-16  Eric Christopher  <echristo@redhat.com>
17219
17220         * config/mips/r3900.h: Reformat.
17221         (SUBTARGET_CPP_SIZE_SPEC): Remove.
17222         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17223         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17224         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17225         * config/mips/t-elf: Remove mips3 multilib.
17226
17227 2002-01-16  H.J. Lu <hjl@gnu.org>
17228
17229         * config/mips/linux.h: Include "mips/abi64.h".
17230
17231 2002-01-16  H.J. Lu <hjl@gnu.org>
17232
17233         * config/mips/t-linux: New.
17234
17235         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17236
17237         * config/mips/linux.h: Don't include "gofast.h".
17238         (INIT_SUBTARGET_OPTABS): Removed.
17239
17240 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17241
17242         * config/h8300/h8300-protos.h: Replace emit_a_shift with
17243         output_a_shift.
17244         * config/h8300/h8300.c: Likewise.
17245         * config/h8300/h8300.md: Likewise.
17246
17247 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17248
17249         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17250         spaces after an opcode name.
17251         (pushqi1_h8300hs): Likewise.
17252         (pushhi1_h8300hs): Likewise.
17253
17254 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17255
17256         * doc/extend.texi: Replace "option" with "attribute"
17257         appropriately.
17258
17259 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
17260
17261         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17262         (and:DI () (const_int -8)).
17263         (split_small_symbolic_mem_operand): Split
17264         (mem (and:DI () (const_int -8)).
17265
17266 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
17267
17268         PR target/5309:
17269         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
17270         same way as TYPE_IMUL.
17271         (ultrasparc_sched_reorder): Likewise.
17272         * config/sparc/sparc.md (type): Add comment to update
17273         ultrasparc_sched_reorder when making changes.
17274
17275 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17276
17277         * doc/invoke.texi: Change the dump file name of block
17278         reordering pass from 28.bbro to 29.bbro.
17279         Mention -dk option.
17280
17281 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
17282
17283         * i386.md (minsf splitter): Fix pasto.
17284
17285 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
17286
17287         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17288         to frame pointer initialisation instruction.
17289         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17290         initialisation instruction.
17291         (soft_df_operand): Do not accept the IP register.
17292         (nonimmediate_soft_df_operand): Do not accept the IP register.
17293
17294 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
17295
17296         PR target/5357:
17297         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17298         MASK_V8 being both set.
17299
17300 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
17301
17302         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17303         insn for GOT register; add REG_MAYBE_DEAD notes instead.
17304         config/s390/s390.md (call, call_value): Add GOT register to
17305         CALL_INSN_FUNCTION_USAGE where needed.
17306         (call_exp, call_value_exp): New.
17307
17308 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
17309
17310         * config/arm/arm.c: General formatting tidy up.
17311
17312 2002-01-16  Graham Stott  <grahams@redhat.com>
17313
17314         * calls.c (try_to_integrate): Use "(size_t)" intermediate
17315         cast and when casting an integer literal to "rtx" pointer.
17316         (expand_call): Likewise.
17317         * flow.c (try_pre_increment): Likewise.
17318         (find_use_as_address): Likewise.
17319         * integrate.c (expand_iline_function): Likewise.
17320         * regmove.c (try_auto_increment): Likewise.
17321
17322 2002-01-16  Graham Stott  <grahams@redhat.com>
17323
17324         * sched-rgn.c (passed): Use sbitmap_free.
17325         (header): Likewise.
17326         (inner): Likewise.
17327         (in_queue): Likewise.
17328         (in_stack): Likewise.
17329
17330 2002-01-15  Eric Christopher  <echristo@redhat.com>
17331
17332         * flow.c (propagate_one_insn): Change to use fatal_insn.
17333
17334 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17335
17336         * expmed.c (extract_fixed_bit_field): Remove unused code.
17337         * system.h: Poison SLOW_ZERO_EXTEND.
17338         * doc/tm.texi: Remove.
17339         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17340         * config/arm/arm.h: Likewise.
17341         * config/avr/avr.h: Likewise.
17342         * config/clipper/clipper.h: Likewise.
17343         * config/convex/convex.h: Likewise.
17344         * config/d30v/d30v.h: Likewise.
17345         * config/dsp16xx/dsp16xx.h: Likewise.
17346         * config/elxsi/elxsi.h: Likewise.
17347         * config/fr30/fr30.h: Likewise.
17348         * config/h8300/h8300.h: Likewise.
17349         * config/i370/i370.h: Likewise.
17350         * config/i386/i386.h: Likewise.
17351         * config/m68k/m68k.h: Likewise.
17352         * config/mips/mips.h: Likewise.
17353         * config/ns32k/ns32k.h: Likewise.
17354         * config/pdp11/pdp11.h: Likewise.
17355         * config/pj/pj.h: Likewise.
17356         * config/s390/s390.h: Likewise.
17357         * config/sh/sh.h: Likewise.
17358         * config/stormy16/stormy16.h: Likewise.
17359         * config/v850/v850.h: Likewise.
17360         * config/vax/vax.h: Likewise.
17361         * config/we32k/we32k.h: Likewise.
17362
17363 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
17364
17365         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17366         (altivec_lvsl): Change constraint to b.
17367         (altivec_lvsr): Same.
17368         (altivec_lvebx): Same.
17369         (altivec_lvehx): Same.
17370         (altivec_lvewx): Same.
17371         (altivec_lvxl): Same.
17372         (altivec_lvx): Same.
17373         (altivec_stvx): Add parallel.
17374         (altivec_stvxl): Same.
17375         (altivec_stvehx): Same.
17376         (altivec_stvebx): Same.
17377         (altivec_stvebx): Same.
17378
17379 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
17380
17381         * config.gcc: Change altivec.h to altivec-defs.h.
17382
17383         * config/rs6000/altivec.h: Delete.
17384
17385         * config/rs6000/altivec-defs.h: Add.
17386
17387 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17388
17389         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17390         and UMOD modes.
17391
17392         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17393         less than or equal to eight bytes.
17394
17395         * vax.md (andsi3): Remove constraints and change SET destination
17396         operand type to nonimmediate_operand.
17397         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
17398         when it is a CONST_INT.
17399
17400 2002-01-15  Jason Merrill  <jason@redhat.com>
17401
17402         * c-common.def (FILE_STMT): New code.
17403         * c-common.c (statement_code_p): It's a statement.
17404         * c-common.h (stmt_tree_s): Add x_last_filename.
17405         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17406         (last_expr_filename): New macro.
17407         * c-semantics.c (begin_stmt_tree): Initialize it.
17408         (add_stmt): If the filename changed, also insert a
17409         FILE_STMT.
17410         (expand_stmt): Handle seeing one.
17411
17412 2002-01-15  Eric Christopher  <echristo@redhat.com>
17413
17414         * flow.c (propagate_one_insn): Add error message and print out
17415         insn for debugging.
17416
17417 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
17418
17419         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17420         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17421         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17422         TRAMPOLINE_ALIGNMENT.
17423         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
17424         to be in bits.
17425         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17426         PCC_BITFIELD_TYPE_MATTERS.
17427         * config/interix.h (STDC_VALUE): Remove.  Use
17428         STDC_0_IN_SYSTEM_HEADERS.
17429         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17430         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17431         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17432
17433 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17434
17435         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17436         not work on this platform currently.
17437
17438 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
17439
17440         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17441         readonly_warning in _().
17442
17443 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
17444
17445         * gcc.c (delete_if_ordinary): Backout previous change.
17446
17447 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17448
17449         * config/h8300/h8300.c (print_operand): Remove support for
17450         unused operand characters.
17451
17452         * read-rtl.c: Fix formatting.
17453         * real.c: Likewise.
17454         * recog.c: Likewise.
17455         * regclass.c: Likewise.
17456         * regmove.c: Likewise.
17457         * reg-stack.c: Likewise.
17458         * reload1.c: Likewise.
17459         * rtlanal.c: Likewise.
17460
17461 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17462
17463         * config/i386/i386.c: Fix formatting.
17464
17465 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
17466
17467         * c-typeck.c (process_init_element): Don't save_expr
17468         COMPOUND_LITERAL_EXPR if just its initializer will be used.
17469
17470 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
17471
17472         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17473         emit optional traceback table if optimize_size or TARGET_ELF.
17474         * config/rs6000/rs6000.md (prefetch): New.
17475
17476 2002-01-15  Andreas Jaeger  <aj@suse.de>
17477
17478         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17479
17480 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17481
17482         * mips-tfile.c: Fix formatting.
17483
17484 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
17485
17486         * unroll.c (final_reg_note_copy): Fix previous commit.
17487
17488 2002-01-14  Kazu Hirata  <kazu@hxi.com>
17489
17490         * config/h8300/h8300-protos.h: Remove the prototype for
17491         eq_operator.
17492         * config/h8300/h8300.c (eq_operator): Remove.
17493
17494 2002-01-14  Richard Henderson  <rth@redhat.com>
17495
17496         * config/i386/i386.md (prefetch): Tidy.
17497         (prefetch_3dnow): Fix locality operand.
17498
17499 2002-01-14  Richard Henderson  <rth@redhat.com>
17500
17501         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17502         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17503
17504 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
17505
17506         * reload1.c (reload_combine): Pass reg_sum replacement through
17507         copy_rtx in loop performing multiple changes.
17508
17509 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
17510
17511         * except.c (remove_unreachable_regions): New.
17512         (free_eh_status): Clear exception_handler_labels.
17513         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17514         (find_exception_handler_labels): Don't add the same label more than
17515         once.
17516         (remove_exception_handler_label): Don't die if
17517         find_exception_handler_labels hasn't been called for the current
17518         function yet.
17519
17520 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
17521
17522         * toplev.c (rest_of_compilation): Rebuild jump labels after
17523         gcse.
17524
17525 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
17526
17527         * doc/extend.texi: Move documentation of X86 built-in functions
17528         here.
17529         * doc/invoke.texi: From here.
17530         * doc/sourcebuild.texi: Document location of documentation for
17531         machine built-in functions.
17532
17533 2002-01-13  Christopher Faylor  <cgf@redhat.com>
17534
17535         * cppfiles.c (TEST_THRESHOLD): New macro.
17536         (SHOULD_MMAP): Ditto.
17537         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17538         be used.
17539
17540 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
17541
17542         * unroll.c (final_reg_note_copy): Properly handle
17543         REG_LABEL
17544         (unroll_loops): Fix LOOP_CONDITION heuristics.
17545
17546 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
17547
17548         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17549         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17550
17551 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
17552
17553         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17554         threaded loop.
17555
17556 2002-01-14  Tom Rix  <trix@redhat.com>
17557
17558         * config/rs6000/rs6000.md: Fix typo with sradi.
17559
17560 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
17561
17562         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17563         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17564         (clrstrdi, clrstrsi): Adapt callers.
17565
17566         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17567
17568         (movti splitter): Never use register 0 as base register.
17569
17570 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
17571
17572         * combine.c (simplify_shift_const): Always generate new rtx
17573         for shift expression instead of reusing given expression.
17574
17575 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17576
17577         * config/alpha/alpha.c (alpha_expand_mov): Don't call
17578         alpha_legitimize_address unless mode is Pmode.
17579
17580 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
17581
17582         * doc/md.texi (Modifiers): Document the '*' constraint for the
17583         user.
17584
17585         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17586         * doc/extend.texi (Function Attributes): 'interrupt' is valid
17587         for xstormy16 too.
17588
17589 2002-01-13  Richard Henderson  <rth@redhat.com>
17590
17591         * reload.c (find_reloads): Use a hard reg destination as reload reg
17592         for an input reload of the source.
17593
17594 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17595
17596         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17597         more generic.
17598
17599 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
17600
17601         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17602         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17603
17604         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17605
17606 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17607
17608         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17609
17610 2002-01-12  Tom Rix  <trix@redhat.com>
17611
17612         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
17613         TARGET_POWERPC64.
17614
17615 2002-01-12  Richard Henderson  <rth@redhat.com>
17616
17617         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17618
17619         * doc/invoke.texi: Update Alpha options.
17620
17621         * doc/invoke.texi: Update i386 built-in function lists.
17622
17623 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
17624
17625         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17626         referencing outside.
17627
17628 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17629
17630         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17631         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17632         offsets, and change line folding.
17633         * optabs.c (expand_binop): Remove warnings.
17634         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
17635
17636 2002-01-12  Graham Stott <grahams@redhat.com>
17637
17638         * attribs.c (handle_deprecated_attribute): constify WHAT.
17639         * diagnostic.c (warn_deprecated_use): Add braces, fixes
17640         dangling else warning and constify WHAT.
17641         * except.h (struct function, struct inline_remap): Move
17642         struct tag forward defs before all prototypes.
17643         (duplicate_eh_regions): Whitespace.
17644
17645 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
17646
17647         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17648         MODE_BASE_REG_CLASS.
17649         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17650
17651 2002-01-12  Richard Henderson  <rth@redhat.com>
17652
17653         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17654         (ix86_expand_vector_move): New.
17655         (bdesc_2arg): Remove andps, andnps, orps, xorps.
17656         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
17657         Remove old prefetch builtins.  Special case the logicals removed above.
17658         (ix86_expand_builtin): Likewise.
17659         (safe_vector_operand): Use V4SFmode, not TImode.
17660         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
17661         (ix86_expand_timode_binop_builtin): New.
17662         * config/i386/i386-protos.h: Update.
17663         * config/i386/i386.h (enum ix86_builtins): Update.
17664         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17665         Use ix86_expand_vector_move in vector move expanders.
17666         (movti_internal, movti_rex64): Add xorps alternative.
17667         (sse_clrv4sf): Rename and adjust from sse_clrti.
17668         (prefetch): Don't work so hard.
17669         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17670         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17671         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
17672
17673 2002-01-11  Richard Henderson  <rth@redhat.com>
17674
17675         * config/i386/mmintrin.h: New file.
17676         * config/i386/xmmintrin.h: New file.
17677         * config.gcc (i?86-*-*): Add extra_headers.
17678         * simplify-rtx.c (simplify_unary_operation): Handle saturating
17679         truncation codes.
17680         (simplify_binary_operation): Handle saturating arithmetic codes.
17681         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
17682         not the lowpart subreg.
17683         (ix86_expand_builtin): Return a TImode dummy register instead of 0
17684         on error.
17685         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
17686
17687 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17688
17689         * conflict.c (conflict_graph_compute): Free regsets when finished.
17690         * ssa.c (compute_coalesced_reg_partition): Likewise.
17691
17692 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17693
17694         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
17695         every where we allocate a register.
17696
17697 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17698
17699         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
17700         * lcm.c (compute_earliest, compute_farthest): Likewise.
17701
17702 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
17703
17704         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
17705
17706 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
17707
17708         * doc/rtl.texi (Insns): Fix 2 typos.
17709
17710 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
17711
17712         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
17713         options.  Use @table @gcctabopt for MMIX options.  Add index
17714         entries for MMIX options.  Start new paragraph with first
17715         heading of the machine-dependent options.
17716
17717 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17718
17719         PR other/5299
17720         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
17721         * combine.c (force_to_mode): Same.
17722         * reload1.c (clear_reload_reg_in_use): Same.
17723
17724 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
17725
17726         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
17727         and 'subtargets'.
17728
17729 2002-01-11  Andreas Jaeger  <aj@suse.de>,
17730             Brad Lucier <lucier@math.purdue.edu>
17731
17732         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
17733         mcpu.
17734
17735 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
17736
17737         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
17738         Protect with IN_LIBGCC.
17739         (LINK_EH_SPEC): Add required trailing space.
17740
17741 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
17742
17743         * c-tree.h: Move function declarations so that they are listed
17744         under the filename which contains them.
17745         (check_identifier, finish_decl_top_level,
17746         lookup_name_current_level_global, shadow_record_fields): Remove.
17747
17748 2002-01-11  Andreas Jaeger  <aj@suse.de>
17749
17750         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
17751         march.
17752
17753 2002-01-10  Richard Henderson  <rth@redhat.com>
17754
17755         * config/alpha/alpha.c (print_operand): Add 'J'.
17756         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
17757         new operand with the sequence number for the lituse.  When splitting
17758         the insns, use gen_movdi_er_high_g and generate a sequence number.
17759         (gen_movdi_er_high_g): Print the sequence number if non-zero.
17760
17761 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
17762
17763         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
17764         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
17765         stvxl.
17766         (altivec_expand_builtin): Same.
17767         (altivec_expand_stv_builtin): New.
17768
17769         * config/rs6000/rs6000.h (rs6000_builtins): Same.
17770
17771         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
17772         ("altivec_lvehx"): New.
17773         ("altivec_lvewx"): New.
17774         ("altivec_lvxl"): New.
17775         ("altivec_lvx"): New.
17776         ("altivec_stvx"): New.
17777         ("altivec_stvebx"): New.
17778         ("altivec_stvehx"): New.
17779         ("altivec_stvewx"): New.
17780         ("altivec_stvxl"): New.
17781
17782 2002-01-10  Richard Henderson  <rth@redhat.com>
17783
17784         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
17785         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
17786         care not to delete instructions twice.
17787
17788 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
17789
17790         * toplev.c: Don't declare environ (it's not used anywhere).
17791         * configure.in: Don't check for declaration of environ.
17792         * config/i386/xm-mingw32.h: Don't #define environ.
17793         * config.in, configure: Regenerate.
17794
17795 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
17796
17797         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
17798         * configure: Regenerate.
17799
17800         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
17801         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
17802         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
17803         alpha/xm-vms.h.
17804         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
17805         LIMITS_H_TEST here, not in m68k/x-next.
17806         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
17807         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
17808
17809         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
17810         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
17811         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
17812
17813         * config/i386/x-djgpp: Renamed i386/t-djgpp.
17814         * config/m88k/x-dolph: Renamed m88k/t-dolph.
17815         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
17816         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
17817         replacement of quadlib.asm with quadlib.c.
17818
17819         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
17820         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
17821         config/rs6000/xm-beos.h: Delete file.
17822
17823         * config.gcc: Update to match above changes.
17824
17825 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17826
17827         * config/h8300/h8300.h: Fix comment typos.
17828         * config/h8300/h8300.md: Likewise.
17829         * config/h8300/lib1funcs.asm: Likewise.
17830
17831 2002-01-10  Dale Johannesen  <dalej@apple.com>
17832
17833         PR optimization/5269
17834         * unroll.c (precondition_loop_p): Make *increment be the correct
17835         sign when n_iterations known, to avoid confusing caller.
17836
17837 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17838
17839         * doc/extend.texi (deprecated): Fix a typo.
17840
17841 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
17842
17843         * basic-block.h (update_br_prob_note): Declare.
17844         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
17845         (try_forward_edges): Care negative frequencies and update note.
17846         (outgoing_edges_match): Tweek conditional merging heuristics.
17847         (try_crossjump_to_edge): use update_br_prob_note.
17848         * cfglayout.c (fixup_reorder_chain): Likewise.
17849         * cfrtl.c (update_br_prob_note): New.
17850         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
17851
17852         * i386.c (ix86_decompose_address): Return -1 if address contains
17853         shift.
17854         (legitimate_address_p): Require ix86_decompose_address to return 1.
17855
17856         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
17857         (cprop_insn): Likewise.
17858
17859 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17860
17861         * toplev.c: Fix formatting.
17862         * tree.c: Likewise.
17863         * tree-dump.c: Likewise.
17864         * unroll.c: Likewise.
17865         * unwind-dw2.c: Likewise.
17866         * unwind-dw2-fde.c: Likewise.
17867         * unwind-dw2-fde-glibc.c: Likewise.
17868         * unwind-sjlj.c: Likewise.
17869
17870 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
17871
17872         * doc/invoke.texi: Document PDP-11 options.
17873
17874 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17875
17876         * config/h8300/h8300.h: Fix formatting.
17877
17878 2002-01-10  Ira Ruben   <ira@apple.com>
17879
17880         Add __attribute__ ((deprecated)).
17881         * extend.texi: Document __attribute__ ((deprecated)).
17882         * invoke.texi: Document -Wno-deprecated-declarations.
17883         * testsuite/g++.dg/other/deprecated.C: New C++ test.
17884         * testsuite/gcc.dg/deprecated.c: New C test.
17885         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
17886         (c_common_attribute_table): Add "deprecated" entry.
17887         (handle_deprecated_attribute): New function.
17888         * c-decl.c (deprecated_states): New enum.
17889         deprecated_state: State of "deprecated" handling.
17890         (start_decl): Set deprecated_state based on attributes.
17891         (grokdeclarator): Test for deprecated uses, propagate attribute.
17892         * c-typeck.c (build_component_ref): Test for deprecated fields.
17893         (build_external_ref): Test for deprecated primaries.
17894         * diagnostic.c (warn_deprecated_use) New function to issue
17895         warnings about __attribute__ ((depricated)) references.
17896         * flags.h (warn_deprecated_decl): Extern declared for
17897         -W[no-]deprecated-declarations option.
17898         * print-tree.c (print_node): Show deprecated flag status.
17899         * toplev.c (warn_deprecated_decl): Defined.
17900         (W_options): Added "deprecated-declaration".
17901         * toplev.h (warn_deprecated_use): Extern declared.
17902         * tree.h (struct tree_common): Define deprecated_flag.
17903         (TREE_DEPRECATED): New macro to access flag.
17904         * cp/call.c (build_call): Test for deprecated calls.
17905         * cp/class.c (add_implicitly_declared_members): Set global
17906         flag to tell grokdeclarator to not issue deprecated warnings.
17907         * cp/cp-tree.h: Add extern for adding_implicit_members.
17908         * cp/decl.c (deprecated_states): New enum.
17909         (start_decl): Set deprecated_state based on attributes.
17910         (grokdeclarator): Test for deprecated uses, propagate attribute.
17911         * cp/lex.c (do_identifier): Test for deprecated primaries.
17912         * cp/typeck.c (build_component_ref): Test for deprecated fields.
17913
17914 2002-01-10  Ira Ruben   <ira@apple.com>
17915
17916         Fix to assign attributes to inline member functions.
17917         * cp/decl.c (start_method): Handle attrlist.
17918
17919 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17920
17921         * combine.c (expand_field_assignment): Use subreg_lsb().
17922
17923 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
17924
17925         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
17926         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
17927         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
17928         Recurse for any operand of AND as long as constant is non-zero.
17929
17930 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17931
17932         * config/h8300/h8300.md: Remove constraints from expanders.
17933
17934 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17935
17936         * varasm.c: Fix formatting.
17937         * varray.c: Likewise.
17938         * vmsdbgout.c: Likewise.
17939         * xcoffout.c: Likewise.
17940
17941 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
17942
17943         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
17944         update edge probabilities to match.
17945
17946 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
17947
17948         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
17949         dependencies.
17950         * doc/languages.texi, doc/sourcebuild.texi: New files.
17951         * doc/configfiles.texi: Make a subsubsection.  Update.
17952         * doc/configterms.texi: Add @node.  Remove warning that this isn't
17953         instructions for building GCC.
17954         * doc/makefile.texi: Make a subsection.
17955         * doc/gccint.texi: Update.
17956
17957 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
17958
17959         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
17960
17961 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
17962
17963         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
17964
17965 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
17966
17967         * optabs.c (expand_fix): Look for wider integer modes first.
17968
17969         * i386.md (mov?f): Avoid the fake const double trick for medium
17970         memory model.
17971         (min?f*/max?f*): Prohibit memory operands for i387 variant.
17972         (fop_df_4): Disable for SSE compilation.
17973
17974 2002-01-10  Graham Stott  <grahams@redhat.com>
17975
17976         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
17977         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
17978
17979 2002-01-10  Richard Henderson  <rth@redhat.com>
17980
17981         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
17982
17983 2002-01-10  Richard Henderson  <rth@redhat.com>
17984
17985         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
17986         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
17987
17988 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17989
17990         * combine.c (can_combine_p): Fix a comment typo.
17991
17992 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
17993
17994         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
17995         empty list correctly.  Change loop index $t to $f for
17996         consistency with rest of Makefile.
17997
17998 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
17999
18000         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
18001         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18002
18003         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
18004         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
18005         (altivec_init_builtins): Same.
18006         (altivec_expand_unop_builtin): Return NULL_RTX on error.
18007         (altivec_expand_binop_builtin): Same.
18008         (altivec_expand_ternop_builtin): Same.
18009         (bdesc_dst): New.
18010
18011         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
18012         ("altivec_vctuxs"): Fix typo.
18013         ("altivec_vnmsubfp"): Same.
18014         ("altivec_dssall"): New.
18015         ("altivec_mfvscr"): New.
18016         ("altivec_dss"): New.
18017         ("altivec_lvsl"): New.
18018         ("altivec_lvsr"): New.
18019         ("altivec_dstt"): New.
18020         ("altivec_dstst"): New.
18021         ("altivec_dststt"): New.
18022         ("altivec_dst"): New.
18023
18024         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
18025         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18026
18027 2002-01-09  Richard Henderson  <rth@redhat.com>
18028
18029         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
18030
18031 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
18032
18033         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
18034         function.
18035         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
18036         prototype.
18037         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
18038
18039 2002-01-09  Kazu Hirata  <kazu@hxi.com>
18040
18041         * read-rtl.c: Fix formatting.
18042         * real.c: Likewise.
18043         * regclass.c: Likewise.
18044         * regrename.c: Likewise.
18045         * reg-stack.c: Likewise.
18046         * reload1.c: Likewise.
18047         * reload.c: Likewise.
18048         * rtl.c: Likewise.
18049
18050 2002-01-09  Kazu Hirata  <kazu@hxi.com>
18051
18052         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
18053         to extract items in the expr_list chain.
18054
18055 2002-01-09  Richard Henderson  <rth@redhat.com>
18056
18057         * config/vax/vax.c (vax_rtx_cost): Never abort.
18058
18059         * config/vax/vax.h (REAL_ARITHMETIC): Define.
18060
18061 2002-01-09  Jan Hubicka  <jh@suse.cz>
18062
18063         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
18064
18065 2002-01-09  Richard Henderson  <rth@redhat.com>
18066
18067         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
18068         Unify code from various alternatives.
18069
18070 2002-01-09  Richard Henderson  <rth@redhat.com>
18071
18072         * regrename.c (copy_value): Ignore the copy if the source register
18073         is present in the value chain with a narrower mode.
18074
18075 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
18076
18077         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
18078         for the c4x target. Also improve layout.
18079
18080 2002-01-09  Richard Henderson  <rth@redhat.com>
18081
18082         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
18083         * config/m32r/m32r.md (and ior xor splitters): Swap operands
18084         to match insn patterns.
18085
18086 2002-01-09  Richard Henderson  <rth@redhat.com>
18087
18088         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
18089         (copyprop_hardreg_forward_1): Likewise.
18090
18091 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18092
18093         * pa.md (decrement_and_branch_until_zero): Change predicate for
18094         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
18095
18096 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
18097
18098         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
18099         gets undefined. For Darwin.
18100
18101 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18102
18103         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
18104
18105 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18106
18107         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
18108
18109 2002-01-08  Richard Henderson  <rth@redhat.com>
18110
18111         * regrename.c (copy_value): Ignore overlapping copies.
18112
18113 2002-01-08  Richard Henderson  <rth@redhat.com>
18114
18115         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18116         as needed to avoid shared structure.
18117
18118 2002-01-08  Kazu Hirata  <kazu@hxi.com>
18119
18120         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18121         H8/300H and H8/S.
18122
18123 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18124
18125         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18126         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18127         documentation of obsolete macros.
18128         * system.h: Poison these macros.
18129         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18130         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18131         config/c4x/c4x.h, config/clipper/clipper.h,
18132         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18133         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18134         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18135         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18136         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18137         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18138         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18139         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18140         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18141         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18142         config/sparc/sparc.h, config/stormy16/stormy16.h,
18143         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18144         definitions and commented out definitions of obsolete macros.
18145         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18146         of MAX_INT_TYPE_SIZE.
18147
18148 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
18149
18150         * config/s390/s390.c (s390_preferred_reload_class): Never
18151         return ADDR_REGS if it isn't a subset of the given class.
18152         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18153         FP_REGS, but all superclasses as well.
18154
18155         * config/s390/s390.c (s390_function_profiler): Fix thinko.
18156
18157         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18158         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18159         must not be a const_int.
18160
18161 2002-01-08  Richard Henderson  <rth@redhat.com>
18162
18163         * Makefile.in (toplev.o): Depend on options.h.
18164         (gcc.o): Depend on specs.h.
18165
18166 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
18167
18168         * expr.c (store_expr): Convert VOIDmode constants back to target's
18169         mode.
18170
18171 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18172
18173         * doc/invoke.texi: Markup gcc as @command.  Refer to
18174         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18175         of http://gcc.gnu.org/thanks.html.
18176
18177 2002-01-08  Dale Johannesen  <dalej@apple.com>
18178
18179         * config/rs6000/rs6000.md: Add missing int register
18180         target case to movdf_low.
18181
18182 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
18183
18184         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18185         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
18186         (cppinit.o): Depend on except.h.
18187         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18188         s-specs): New rules.
18189
18190         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18191         Don't create specs.h/options.h/gencheck.h here.  Remove
18192         unnecessary variable settings from last argument of AC_OUTPUT.
18193         * config.in, configure: Regenerate.
18194         * intl.c: Hardcode package name as "gcc".
18195
18196         * cppinit.c: Include except.h.
18197         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18198         appropriate.
18199         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18200         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18201         (!)USING_SJLJ_EXCEPTIONS.
18202         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18203
18204 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18205
18206         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18207         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18208         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18209         documentation of obsolete macros.
18210         * system.h: Poison these macros.
18211         * config/d30v/d30v.h, config/ns32k/encore.h,
18212         config/stormy16/stormy16.h: Remove definitions and commented out
18213         definitions of obsolete macros.
18214
18215 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
18216
18217         * objc/objc-act.c (handle_class_ref): Mark the declaration of
18218         %sobjc_class_ref_%s as used - to prevent unwanted compiler
18219         warnings.
18220
18221 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
18222
18223         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18224         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18225         to insn adjusting stack/frame pointer.
18226         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
18227         accept operands that cause the insn to be non-splittable.
18228
18229 2002-01-08  Graham Stott  <grahams@redhat.com>
18230
18231         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18232         (C_TYPE_FIELDS_VOLATILE): Likewise.
18233         (C_TYPE_BEING_DEFINED): Likewise.
18234         (C_IS_RESERVED_WORD): Likewise.
18235         (C_TYPE_VARIABLE_SIZE): Likewise.
18236         (C_DECL_VARIABLE_SIZE): Likewise.
18237         (C_MISSING_PROTOTYPE_WARNED): Likewise.
18238         (C_SET_EXP_ORIGINAL_CODE): Likewise.
18239         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18240         parenthesis.
18241         (C_DECL_ANTICIPATED): Likewise.
18242         (c_build_type_variant): Add parenthesis.
18243
18244 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18245
18246         * gcc.c (option_map): Remove --version.
18247         (process_command): Handle -fversion following the GNU Coding
18248         Standards.  Partially addresses PR other/704.
18249
18250 2002-01-08  Graham Stott  <grahams@redhat.com>
18251
18252         * combine.c (combine_instructions): Fix typo.
18253
18254 2002-01-08  Graham Stott  <grahams@redhat.com>
18255
18256         * debug.h: Use "tree" and "rtx" throughout.
18257
18258         * debug.c: Likewise.
18259
18260 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
18261
18262         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18263         constant pool, use the pool's version of the symbol instead.
18264
18265 2002-01-07  Richard Henderson  <rth@redhat.com>
18266
18267         * regrename.c (find_oldest_value_reg): Ignore the value chain if
18268         the original register was copied in a mode with a fewer number of
18269         hard registers than the desired mode.
18270         (copyprop_hardreg_forward_1): Likewise.
18271         (debug_value_data): Fix loop test.
18272         * toplev.c (parse_options_and_default_flags): Reenable
18273         -fcprop-registers at -O1.
18274
18275 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
18276
18277         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18278         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
18279
18280         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18281         predicates.
18282
18283         * config/rs6000/rs6000.md: Add altivec predicate patterns.
18284
18285 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18286
18287         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18288         (pa_output_function_prologue): Output local label at the beginning of
18289         the prologue when profiling.
18290         (hppa_profile_hook): Use the local label rather than the function label.
18291         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18292
18293 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
18294
18295         * config/rs6000/rs6000.c (print_operand): Remove extra space.
18296         (altivec_expand_unop_builtin): Fix thinko.
18297         (altivec_expand_binop_builtin): Same.
18298         (altivec_expand_ternop_builtin): Same.
18299         (altivec_expand_builtin): Same.
18300
18301 2002-01-07  Richard Henderson  <rth@redhat.com>
18302
18303         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18304
18305 2002-01-07  Jason Merrill  <jason@redhat.com>
18306
18307         * unwind-dw2.c (execute_cfa_program): Use < again.
18308
18309 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
18310
18311         * predict.c (combine_predictions_for_insn): Avoid division by zero.
18312
18313 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
18314
18315         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18316         Don't allow -1 - x -> ~x simplifications in the first pass.
18317
18318 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
18319
18320         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18321         arguments.
18322         (altivec_expand_binop_builtin): Same.
18323         (altivec_expand_unop_builtin): Same.
18324         (print_operand): Fix typo.
18325         (bdesc_1arg): Add vupk* variants.
18326
18327         * rs6000.h (rs6000_builtins): Add vupk* enums.
18328
18329         * rs6000.md: Add altivec_vupk* variants.
18330
18331 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
18332
18333         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18334         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18335         and last update dates.
18336
18337 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
18338
18339         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18340
18341 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
18342
18343         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18344         * config/avr/avr.h (CPP_SPEC): Likewise.
18345         (LINK_SPEC): Likewise.
18346         (CRT_BINUTILS_SPECS): Likewise.
18347         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18348         * doc/invoke.texi (AVR Options): Document them.
18349
18350 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
18351
18352         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18353         LABEL_NUSES.
18354
18355 2002-01-07  Graham Stott  <grahams@redhat.com>
18356
18357         * config/i386/i386.h: Update copyright date.
18358         (HALF_PIC_PTR): Add parenthesis.
18359         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18360         (CONSTANT_ALIGNMENT): Add parenthesis.
18361         (DATA_ALIGNMENT): Likewise.
18362         (LOCAL_ALIGNMENT): Likewise.
18363         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18364         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18365         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18366         (HARD_REGNO_NREGS): Add paranethesis.
18367         (VALID_SSE_REG_MODE): Whitespace.
18368         (VALID_MMX_REG_MODE): Whitespace.
18369         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18370         (ix86_hard_regno_mode_ok): Add parenthesis.
18371         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18372         (RETURN_IN_MEMORY): Whitespace.
18373         (N_REG_CLASSES): Add parenthesis.
18374         (INTEGER_CLASS_P): Add parenthesis and wrap.
18375         (FLOAT_CLASS_P): Likewise.
18376         (SSE_CLASS_P): Likewise.
18377         (MMX_CLASS_P): Likewise.
18378         (MAYBE_INTEGER_CLASS_P): Likewise.
18379         (MAYBE_FLOAT_CLASS_P): Likewise.
18380         (MAYBE_SSE_CLASS_P): Likewise.
18381         (MAYBE_MMX_CLASS_P): Likewise.
18382         (Q_CLASS_P): Likewise.
18383         (GENERAL_REGNO_P): Uppercase macro parameter.
18384         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18385         (FP_REGNO_P): Likewise.
18386         (ANY_FP_REGNO_P): Uppercase macro parameter.
18387         (SSE_REGNO_P): Likewise.
18388         (SSE_REGNO): Likewise.
18389         (SSE_REG_P): Likewise.
18390         (SSE_FLOAT_MODE_P): Likewise.
18391         (MMX_REGNO_P): Likewise.
18392         (MMX_REG_P):Likewise.
18393         (STACK_REG_P): Likewise.
18394         (NON_STACK_REG_P): Likewise.
18395         (STACK_TOP_P): Likewise.
18396         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18397         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18398         (SECONDARY_MEMORY_NEEDED): Likewise.
18399         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18400         (MD_ASM_CLOBBERS): Whitespace and wrap.
18401         (MUST_PASS_IN_STACK): Whitespace and wrap.
18402         (RETURN_POPS_ARGS): Add parenthesis.
18403         (INIT_CUMULATIVE_ARGS): Likewise.
18404         (FUNCTION_ARG): Likewise.
18405         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18406         (SETUP_INCOMING_VARARGS): Likewise.
18407         (BUILD_VA_LIST_TYPE):  Add parenthesis.
18408         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18409         parenthsis.
18410         (EXPAND_BUILTIN_VA_ARG): Likewise.
18411         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18412         (INITIALIZE_TRAMPOLINE): Add parenthesis.
18413         (INITIAL_ELIMINATION_OFFSET): Likewise.
18414         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18415         (REGNO_OK_FOR_BASE_P): Likewise.
18416         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18417         (REGNO_OK_FOR_DIREG_P): Likewise.
18418         (REG_OK_FOR_INDEX_P): Whitespace.
18419         (REG_OK_FOR_BASE_P): Whitespace.
18420         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18421         parenthesis.
18422         (FIND_BASE_TERM): Fix typo.
18423         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
18424         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18425         (SYMBOLIC_CONST; Whitespace.
18426         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
18427         (ENCODE_SECTION_INFO): Whitespace.
18428         (FINALIZE_PIC): Remove do { ... } while (0).
18429         (PROMOTE_MODE): Wrap in do { ... } while (0).
18430         (CONST_COSTS): Whitespace.
18431         (RTX_COSTS): Add paramethesis, whitespace and wrap.
18432         (REGISTER_MOVE_COST): Add parenthesis.
18433         (MEMORY_MOVE_COST): Likewise.
18434         (EXTRA_CC_MODES): Whitespace.
18435         (SELECT_CC_MODE): Add parenthesis and whitespace.
18436         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18437         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18438         (ASM_OUTPUT_LABEL): Add paramethesis.
18439         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18440         (ASM_OUTPUT_REG_POP): Likewise.
18441         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18442         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18443
18444         * config/i386/i386.c: Update copyright.
18445         (CHECK_STACK_LIMIT): Add parenthesis.
18446         (AT_BP): Uppercase macro parameter.
18447         (x86_64_int_parameter_registers): Constify.
18448         (x86_64_int_return_registers): Likewise.
18449         (ix86_compare_op0): Use rtx.
18450         (construct_container): Constify INTREG parameter.
18451         (function_arg): Use rtx.
18452
18453         * diagnostic.h: Update copyright date.
18454         (output_buffer_state): Add parenthesis.
18455         (output_buffer_format_args): Likewise.
18456
18457         * combine.c (combine_instructions): Replace XEXP (links, 0)
18458         with link.
18459
18460 2002-01-06  H.J. Lu <hjl@gnu.org>
18461
18462         * cfgcleanup.c (thread_jump): Fix 2 typos.
18463
18464 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
18465
18466         * config.gcc: Add support for --enable-altivec.
18467
18468 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18469
18470         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18471
18472 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
18473
18474         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18475         __objc_class_name_*.
18476
18477 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18478
18479         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18480
18481 2002-01-06  Richard Henderson  <rth@redhat.com>
18482
18483         * reorg.c (emit_delay_sequence): Remove death notes, not merely
18484         nop them out.  Increment label reference count for REG_LABEL.
18485         (fill_slots_from_thread): Frob label reference count around
18486         delete_related_insns.
18487
18488 2002-01-05  Richard Henderson  <rth@redhat.com>
18489
18490         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18491         jump threading.
18492
18493 2002-01-05  Richard Henderson  <rth@redhat.com>
18494
18495         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18496         * integrate.c (output_inline_function): Likewise.
18497         * toplev.c (rest_of_compilation): Do it here instead.  Move call
18498         to remove_unnecessary_notes after emitting abstract instance.
18499         Force an emitted nested function to have its parent emited as well.
18500         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18501         for null.
18502         (rtl_for_decl_location): Do not look at reload data structures
18503         before reload has run.
18504
18505 2002-01-05  Kazu Hirata  <kazu@hxi.com>
18506
18507         * cse.c: Fix formatting.
18508         * dwarf2asm.c: Likewise.
18509         * dwarf2out.c: Likewise.
18510         * explow.c: Likewise.
18511         * expmed.c: Likewise.
18512         * function.c: Likewise.
18513         * gcov.c: Likewise.
18514         * gencheck.c: Likewise.
18515         * genrecog.c: Likewise.
18516         * ggc-common.c: Likewise.
18517         * ggc-page.c: Likewise.
18518         * global.c: Likewise.
18519
18520 2002-01-05  Kazu Hirata  <kazu@hxi.com>
18521
18522         * combine.c: Fix formatting.
18523
18524 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
18525
18526         PR middle-end/1557
18527         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18528
18529 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
18530
18531         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18532         as 1 for __powerpc64__ as well.
18533
18534         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18535
18536         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18537         return it.
18538
18539 2002-01-05  Daniel Berlin  <dan@dberlin.org>
18540
18541         * lcm.c: Revert change, due to performance regression it causes on
18542         SPEC because it's slightly more conservative (sigh, I hate
18543         edge-based LCM).
18544
18545 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
18546
18547         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18548
18549 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
18550
18551         * doc/cppinternals.texi: Update.
18552
18553 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
18554
18555         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18556         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18557         negatives.
18558         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
18559         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18560         kludge for pre-october-14th mmix versions to handle new-found bug
18561         with PUSHJ/PUSHGO and the register stack.
18562         * config/mmix/mmix.h (struct machine_function): Rename member
18563         has_call_value_without_parameters to has_call_without_parameters.
18564         All referers changed.
18565         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18566         TARGET_MASK_BRANCH_PREDICT): New macros.
18567         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18568         -mno-reg-stack-fill-bug-workaround.
18569         * config/mmix/mmix.md ("call"): Set struct machine member
18570         has_call_without_parameters.
18571
18572 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
18573
18574         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18575
18576 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
18577
18578         * cfgcleanup.c: Include tm_p.h
18579         (mark_effect): Fix handling of hard register; fix handling of SET
18580
18581 2002-01-04  Kazu Hirata  <kazu@hxi.com>
18582
18583         * config/h8300/h8300.md (anonymous patterns): Check that
18584         operands are registers before using REGNO on them.
18585
18586 2002-01-03  Roland McGrath  <roland@frob.com>
18587
18588         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18589
18590 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
18591
18592         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18593         * c-common.h (genrtl_expr_stmt_value): Likewise.
18594         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18595         (expand_expr_stmt_value): Add maybe_last argument.
18596         Don't warn about statement with no effect if it is the last statement
18597         in expression statement.
18598         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18599         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18600         expand_expr_stmt_value.
18601         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18602         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18603         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18604         as maybe_last to expand_expr_stmt_value.
18605
18606 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
18607
18608         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18609         be passed in, do not build it.
18610         (c_begin_if_stmt): New function.
18611         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18612         * c-common.h (c_expand_start_cond): Update prototype.
18613         (c_begin_if_stmt): Prototype new function.
18614         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18615         * c-parse.in (if_prefix): Use c_begin_if_stmt,
18616         c_begin_while_stmt and c_finish_while_stmt_cond.
18617
18618 2002-01-04  William Cohen  <wcohen@redhat.com>
18619
18620         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18621         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18622         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18623         * config/pa/som.h (ASM_FILE_START): Likewise.
18624
18625 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
18626
18627         * lcm.c: Include df.h.
18628         Add available_transfer_function prototype.
18629         (compute_available): Rework to use iterative dataflow framework.
18630         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18631         with bb_info in df.h
18632         (available_transfer_function): New function.
18633
18634         * Makefile.in (lcm.o): add df.h to dependencies.
18635
18636 2002-01-04  Richard Henderson  <rth@redhat.com>
18637
18638         * config/alpha/alpha.c (some_operand): Accept HIGH.
18639         (input_operand): Likewise; accept simple references to globals.
18640         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18641         (alpha_const_double_ok_for_letter_p): Likewise.
18642         (alpha_extra_constraint): Likewise.
18643         (alpha_preferred_reload_class): Likewise.  Do not force
18644         symbolic constants to memory.
18645         (alpha_legitimate_address_p): Accept simple references
18646         to small_symbolic_operand.
18647         (alpha_legitimize_address): New arg scratch.  Be prepared to be
18648         called when no_new_pseudos.  Emit simple symbolic references.
18649         Split integers into low, high, and rest.
18650         (alpha_expand_mov): Use alpha_legitimize_address.
18651         (some_small_symbolic_mem_operand): New.
18652         (split_small_symbolic_mem_operand): New.
18653         * config/alpha/alpha-protos.h: Update.
18654         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18655         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18656         (EXTRA_CONSTRAINT): Likewise.
18657         (PREFERRED_RELOAD_CLASS): Likewise.
18658         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18659         (PREDICATE_CODES): Update.
18660         * config/alpha/alpha.md: New post-reload splitters to convert
18661         simplfied symbolic operands to the form that references $29.
18662         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18663         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18664
18665 2002-01-03  Richard Henderson  <rth@redhat.com>
18666
18667         * local-alloc.c (function_invariant_p): Update commentary.
18668
18669 2002-01-04  H.J. Lu <hjl@gnu.org>
18670
18671         * toplev.c (rest_of_compilation): Fix a typo when calling
18672         cleanup_cfg.
18673
18674 2002-01-03  Kazu Hirata  <kazu@hxi.com>
18675
18676         * c-common.c: Fix formatting.
18677         * diagnostic.c: Likewise.
18678         * doloop.c: Likewise.
18679         * dwarf2out.c: Likewise.
18680
18681 2002-01-03  Kazu Hirata  <kazu@hxi.com>
18682
18683         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
18684         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
18685
18686 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
18687
18688         * cpperror.c: Update comments and copyright.
18689         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
18690         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
18691
18692 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18693
18694         * collect2.c (main): Use strcmp when testing for "-shared".
18695
18696 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
18697
18698         * cppmacro.c: Don't include intl.h.  Update comments.
18699         (new_number_token): Allocate enough buffer for 64-bit unsigned
18700         integers; update prototype.
18701         * cppmain.c: Update comments.
18702
18703 2002-01-03  William Cohen  <wcohen@redhat.com>
18704
18705         * function.h (struct function): Add profile.
18706         (current_function_profile): New.
18707         doc/extend.texi: Update documentation.
18708         * final.c (final_start_function): Use current_function_profile
18709         instead of profile_flag.
18710         (profile_after_prologue): Likewise.
18711         * function.c (expand_function_start): Likewise.
18712         (expand_function_start): Likewise.
18713         * config/alpha/alpha.c (direct_call_operand):
18714         (alpha_does_function_need_gp): Likewise.
18715         (alpha_expand_prologue): Likewise.
18716         * config/arm/arm.c (arm_expand_prologue): Likewise.
18717         thumb_expand_prologue: Likewise.
18718         * config/d30v/d30v.c (d30v_stack_info): Likewise.
18719         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
18720         (fr30_expand_prologue): Likewise.
18721         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
18722         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
18723         * config/i386/i386.h (FINALIZE_PIC): Likewise.
18724         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
18725         * config/i960/i960.c (i960_output_function_prologue): Likewise.
18726         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
18727         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
18728         (m32r_expand_prologue): Likewise.
18729         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
18730         (m88k_expand_prologue): Likewise.
18731         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
18732         * config/mips/mips.c (compute_frame_size): Likewise.
18733         (mips_expand_prologue): Likewise.
18734         (mips_can_use_return_insn): Likewise.
18735         * config/pa/elf.h (ASM_FILE_START): Likewise.
18736         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18737         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18738         * config/pa/som.h (ASM_FILE_START): Likewise.
18739         * config/romp/romp.c (romp_using_r14): Likewise.
18740         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
18741         (rs6000_stack_info): Likewise.
18742         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18743         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
18744         * config/v850/v850.c (compute_register_save_size): Likewise.
18745
18746 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
18747
18748         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
18749         gen_lowpart_common fails, use gen_lowpart_SUBREG.
18750
18751 2002-01-03  Turly O'Connor  <turly@apple.com>
18752
18753         * darwin.c (machopic_output_possible_stub_label): Don't generate
18754         stub routines for pseudo-stubs which we've just defined.
18755
18756 2002-01-03  Kazu Hirata  <kazu@hxi.com>
18757
18758         * builtins.c: Fix formatting.
18759         * c-typeck.c: Likewise.
18760         * combine.c: Likewise.
18761         * expr.c: Likewise.
18762         * loop.c: Likewise.
18763
18764 2002-01-03  Andreas Schwab  <schwab@suse.de>
18765
18766         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
18767         and return true if _cpp_push_next_buffer pushed a new include
18768         file.
18769         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
18770         _cpp_pop_file_buffer did not push a new file.
18771         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
18772
18773 2002-01-02  Eric Christopher  <echristo@redhat.com>
18774
18775         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
18776         FIND_REG_INC_NOTE call. Update copyright.
18777         * loop.c (canonicalize_condition): Ditto.
18778         * reorg.c (delete_scheduled_jump): Ditto.
18779
18780 2002-01-03  Kazu Hirata  <kazu@hxi.com>
18781
18782         * gcse.c: Fix formatting.
18783
18784 2002-01-03  Graham Stott  <grahams@redhat.com>
18785
18786         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
18787         forward defs for struct tags rtx_def, union_tree, rtvec_def
18788         also output corresponding typedefs for rtx, tree, and rtvec.
18789
18790         * system.h: Move forward defs for struct tags rtx_def, union_tree,
18791         rtvec_def along with corresponding typedefs for rtx, tree, and
18792         rtvec to config.h, hconfig.h, tconfig.h.
18793
18794 2002-01-03  Graham Stott  <grahams@redhat.com>
18795
18796         * tree.h: Update copyright date.
18797         (IS_EXPR_CODE_CLASS): Add parenthesis.
18798         (TREE_SET_CODE): Add whitespace.
18799         (TREE_CHECK): Add parenthesis.
18800         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
18801         (CST_OR_CONSTRUCTOR_CHECK):
18802         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
18803         (TREE_SYMBOL_REFERENCED): Whitespace.
18804         (INT_CST_LT): Likewise.
18805         (INT_CST_LT_UNSIGNED): Likewise.
18806         (tree_real_cst): Unwrap comment.
18807         (tree_string): Likewise.
18808         (tree_complex): Likewise.
18809         (IDENTIFIER_POINTER): correct cast.
18810         (SAVE_EXPR_CONTEXT): Whitespace.
18811         (EXPR_WFL_FILENAME_NODE): Likewise.
18812         (EXPR_WFL_FILENAME): Remove parenthesis.
18813         (DECL_ORIGIN): Add parenthesis.
18814         (DECL_FROM_INLINE): Use NULL_TREE.
18815         (build_int_2): Whitespace.
18816         (build_type_variant): Add parenthesis.
18817
18818         * gcc/jcf-parse.c: Update copyright date.
18819         (yyparse): Constify resource_filename.
18820
18821 2002-01-03  Graham Stott  <grahams@redhat.com>
18822
18823         * rtl.h: Update copyright date.
18824         (RTL_CHECK1): Wrap long line.
18825         (RTL_CHECK2): Likewise.
18826         (RTL_CHECKC1): Wrap long line and whitespace.
18827         (RTL_CHECKC2): Likewise.
18828         (XWINT): Whitespace.
18829         (XINT): Likewise.
18830         (XSTR): Likewise.
18831         (XEXP): Likewise.
18832         (XVEC): Likewise.
18833         (XMODE): Likewise.
18834         (XBITMAP): Likewise.
18835         (XTREE): Likewise.
18836         (XBBDEF): Likewise.
18837         (XTMPL): Likewise.
18838         (X0WINT): Likewise.
18839         (X0INT):Likewise.
18840         (X0UINT): Likewise.
18841         (X0STR): Likewise.
18842         (X0EXP): Likewise.
18843         (X0VEC): Likewise.
18844         (X0MODE): Likewise.
18845         (X0BITMAP): Likewise.
18846         (X0TREE): Likewise.
18847         (X0BBDEF): Likewise.
18848         (X0ADVFLAGS): Likewise.
18849         (X0CSELIB): Likewise.
18850         (X0MEMATTR): Likewise.
18851         (XCWINT): Likewise.
18852         (XCINT): Likewise.
18853         (XCUINT): Likewise.
18854         (XCSTR): Likewise.
18855         (XCEXP): Likewise.
18856         (XCVEC): Likewise.
18857         (XCMODE): Likewise.
18858         (XCBITMAP): Likewise.
18859         (XCTREE): Likewise.
18860         (XCBBDEF): Likewise.
18861         (XCADVFLAGS): Likewise.
18862         (XCCSELIB): Likewise.
18863         (XC2EXP): Likewise.
18864         (INSN_UID): Likewise.
18865         (PREV_INSN): Likewise.
18866         (PATTERN): Likewise.
18867         (INSN_CODE): Likewise.
18868         (PUT_REG_NOTE_KIND): Likewise.
18869         (CODE_LABEL_NUMBER): Likewise.
18870         (NOTE_SOURCE_FILE): Likewise.
18871         (NOTE_BLOCK): Likewise.
18872         (NOTE_EH_HANDLER): Likewise.
18873         (NOTE_RANGE_INFO): Likewise.
18874         (NOTE_LIVE_INFO): Likewise.
18875         (NOTE_BASIC_BLOCK): Likewise.
18876         (NOTE_EXPECTED_VALUE): Likewise.
18877         (NOTE_LINE_NUMBER): Likewise.
18878         (LABEL_NAME): Likewise.
18879         (LABEL_NUSES): Likewise.
18880         (LABEL_ALTERNATE_NAME): Likewise.
18881         (ADDRESSOF_DECL): Likewise.
18882         (JUMP_LABEL): Likewise.
18883         (LABEL_NEXTREF): Likewise.
18884         (REGNO): Likewise.
18885         (ORIGINAL_REGNO: Likewise.
18886         (HARD_REGISTER_NUM_P): Add parenthesis.
18887         (SUBREG_REG): Whitespace.
18888         (SUBREG_BYTE): Likewise.
18889         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
18890         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
18891         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
18892         (ASM_OPERANDS_INPUT_VEC): Likewise.
18893         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
18894         (ASM_OPERANDS_INPUT): Likewise.
18895         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
18896         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
18897         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
18898         (ASM_OPERANDS_INPUT_MODE): Likewise.
18899         (ASM_OPERANDS_SOURCE_FILE): Likewise.
18900         (ASM_OPERANDS_SOURCE_LINE): Likewise.
18901         (MEM_SET_IN_STRUCT_P): Minor reformat.
18902         (TRAP_CONDITION): Whitespace.
18903         (TRAP_CODE): Likewise.
18904         (COND_EXEC_TEST): Likewise.
18905         (COND_EXEC_CODE): Likewise.
18906         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
18907         (PHI_NODE_P): Add parenthesis.
18908         (plus_constant): Whitespace and add parenthesis.
18909
18910 2002-01-03  Kazu Hirata  <kazu@hxi.com>
18911
18912         * config/avr/avr.c: Fix comment typos.
18913         * config/c4x/c4x.md: Likewise.
18914         * config/dsp16xx/dsp16xx.h: Likewise.
18915         * config/dsp16xx/dsp16xx.md: Likewise.
18916         * config/i386/i386.md: Likewise.
18917         * config/ia64/ia64.c: Likewise.
18918         * config/m32r/m32r.h: Likewise.
18919         * config/m68hc11/m68hc11.md: Likewise.
18920         * config/mmix/mmix.c: Likewise.
18921         * config/mn10200/mn10200.c: Likewise.
18922         * config/romp/romp.c: Likewise.
18923         * config/sh/sh.c: Likewise.
18924         * config/stormy16/stormy16.c: Likewise.
18925         * config/stormy16/stormy16.h: Likewise.
18926         * config/stormy16/stormy16.md: Likewise.
18927
18928 2002-01-03  Graham Stott  <grahams@redhat.com>
18929
18930         * loop.h: Update copyright date.
18931         (LOOP_MOVABLES): Fix typo.
18932         (LOOP_REGS): Likewise.
18933         (LOOP_IVS): Likewise.
18934
18935 2002-01-03  Graham Stott  <grahams@redhat.com>
18936
18937         * cppinit.c: Update copyright date.
18938         Don't include output.h
18939         * Makefile.in: Update copyright date.
18940         Update dependency.
18941
18942 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18943
18944         PR c/5226
18945         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
18946         (-pthread) Add to RS/6000 options.
18947
18948 2002-01-02  Kazu Hirata  <kazu@hxi.com>
18949
18950         * except.c: Fix comment typos.
18951         * loop.c: Likewise.
18952         * varasm.c: Likewise.
18953         * doc/tm.texi: Fix a typo.
18954
18955 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
18956
18957         * c-typeck.c (output_init_element): Allow initializing static storage
18958         duration objects with compound literals.
18959
18960 2002-01-02  Richard Henderson  <rth@redhat.com>
18961
18962         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
18963         after abusing it.
18964
18965 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18966
18967         * gcc.c (default_compilers): Const-ify.
18968         * mips-tdump.c (stab_names): Likewise.
18969         * mips-tfile.c (map_coff_types, map_coff_storage,
18970         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
18971         pseudo_ops_t, pseudo_ops): Likewise.
18972         * protoize.c (default_include): Likewise
18973
18974         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
18975         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
18976         Add array size in declaration.
18977         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
18978         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
18979         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
18980         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
18981         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
18982         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
18983         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
18984         emtens, make_nan): Const-ify.
18985         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
18986         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
18987
18988 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
18989
18990         * config.gcc (ia64-*-*): Set extra_headers.
18991         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
18992         * config/alpha/t-osf: Remove.
18993         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
18994
18995 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
18996
18997         * config/rs6000/t-aix43: Revert previous change.
18998
18999 2002-01-02  Jason Merrill  <jason@redhat.com>
19000
19001         * c-decl.c (c_expand_body): Call outlining_inline_function when
19002         emitting an inline function out of line.
19003
19004 2002-01-02  Richard Henderson  <rth@redhat.com>
19005
19006         * dwarf2out.c (limbo_die_node): Add created_for member.
19007         (new_die): New argument created_for.  Update all callers.
19008         (mark_limbo_die_list): New.
19009         (dwarf2out_init): Register limbo_die_list as a root.
19010         (dwarf2out_finish): Force insert limbo dies into their function
19011         context.
19012
19013 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
19014
19015         PR c++/5089
19016         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
19017
19018 2002-01-02  Kazu Hirata  <kazu@hxi.com>
19019
19020         * config/h8300/fixunssfsi.c: Update copyright.
19021         Fix comment typos.
19022         Fix formatting.
19023         * config/h8300/h8300.c: Update copyright.
19024         Eliminate warnings.
19025
19026 2002-01-02  Kazu Hirata  <kazu@hxi.com>
19027
19028         * config/romp/romp.c: Fix comment formatting.
19029         * config/romp/romp.h: Likewise.
19030         * config/romp/romp.md: Likewise.
19031         * config/s390/s390.c: Likewise.
19032         * config/stormy16/stormy16.c: Likewise.
19033         * config/stormy16/stormy16.h: Likewise.
19034
19035 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
19036
19037         * c-common.h (genrtl_expr_stmt_value): Declare.
19038         * c-semantics.c (genrtl_goto_stmt): Redirect to...
19039         (genrtl_goto_stmt_value): ... this new function.  Pass new
19040         argument down to expand_expr_stmt_value, taking
19041         TREE_ADDRESSABLE into account.
19042         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
19043         STMT_EXPR as addressable, i.e., one whose result we want.
19044         * expr.c (expand_expr): Don't save expression statement value
19045         of labeled_blocks or loop_exprs.
19046         * stmt.c (expand_expr_stmt): Redirect to...
19047         (expand_expr_stmt_value): ... this new function.  Use new
19048         argument to tell whether to save expression value.
19049         (expand_end_stmt_expr): Reset last_expr_type and
19050         last_expr_value if we don't have either.
19051         * tree-inline.c (declare_return_variable): Mark its use
19052         statement as addressable.
19053         * tree.h: Document new use of TREE_ADDRESSABLE.
19054         (expand_expr_stmt_value): Declare.
19055
19056 2002-01-01  Tom Rix  <trix@redhat.com>
19057
19058         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
19059         rs6000_emit_allocate_stack.
19060
19061 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
19062
19063         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
19064         ${srcdir}/ginclude/ to every entry in extra_headers.
19065         * configure: Regenerate.
19066         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
19067         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
19068         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
19069         * ginclude/proto.h: Rename to config/convex/proto.h.
19070
19071 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19072
19073         * attribs.c (handle_vector_size_attribute): Use host_integerp
19074         and tree_int_cst; remove warnings.
19075         * caller-save.c (insert_restore): Add cast to get rid of warning.
19076         (insert_save): Likewise.
19077         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19078         * regmove.c (find_matches): Add temporary var to kill a warning.
19079
19080 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
19081
19082         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
19083         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
19084         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
19085         (vms-dwarf2eh.o): Add Makefile rule.
19086         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
19087         * config/alpha/vms-dwarf2eh.asm: New file.
19088
19089         * gcc.c (delete_if_ordinary): Delete all versions.
19090
19091 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
19092
19093         * config/mmix/mmix.md: Update FIXME to not mention
19094         define_constants.
19095         (MMIX_rJ_REGNUM): New define_constants constant.
19096         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
19097         "*movdicc_real"): Adjust contraints formatting.
19098         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
19099         for branch prediction.
19100         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
19101         output template.
19102         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
19103         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
19104         number.  Delete related FIXMEs.
19105         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
19106         from number to MMIX_rJ_REGNUM.
19107         (TARGET_MASK_BRANCH_PREDICT): New.
19108         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
19109         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
19110         value.  Add -mbranch-predict and -mno-branch-predict.
19111         (TARGET_VERSION): Drop date.
19112         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19113         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19114         for finding out global symbols.
19115         (mmix_asm_output_labelref): Revert condition for global symbol.
19116         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19117         (mmix_print_operand_punct_valid_p): A '+' is valid.
19118
19119 See ChangeLog.6 for earlier changes.