OSDN Git Service

* config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2
3         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
4         and include netbsd_entry_point.
5         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
6         (NETBSD_ENTRY_POINT): Define.
7
8 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
9
10         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
11         if not already defined. 
12         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
13
14 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15
16         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
17         in a noreturn function.
18         (avr_output_function_prologue, avr_output_function_epilogue):
19         Correct function size calculation.  Do not crash on empty function.
20         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
21
22 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
23
24         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
25         netbsd_link_spec and netbsd_entry_point.
26         (LINK_SPEC): Use %(netbsd_link_spec).
27         (NETBSD_ENTRY_POINT): Define.
28
29 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
30
31         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
32         linker emulation.
33         (LINK_ARCH64_SPEC): Likewise.
34         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
35         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
36
37 2002-06-08  Marc Espie  <espie@openbsd.org>                                   
38         * lists.c (free_list):  Fix typo in comment.                            
39
40 2002-06-08  Andreas Jaeger  <aj@suse.de>
41
42         * lcm.c (optimize_mode_switching): Add unused attribute for
43         variable.
44
45         * sched-deps.c (sched_analyze): Remove unused variable.
46
47 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
48
49         * diagnostic.def: Don't capitalize diagnostict descriptors.
50
51 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
52
53         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
54         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
55         (NETBSD_ENTRY_POINT): Define.
56
57 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
58
59         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
60         NETBSD_LINK_SPEC_ELF.
61         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
62         (NETBSD_ENTRY_POINT): Define.
63         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
64         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
65         netbsd_entry_point.
66         (NETBSD_ENTRY_POINT): Define.
67
68 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
69
70         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
71         netbsd_link_spec and netbsd_entry_point.
72         (LINK_SPEC): Use %(netbsd_link_spec).
73         (NETBSD_ENTRY_POINT): Define.
74
75 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
76
77         * config/netbsd-elf.h (LINK_SPEC): Rename to...
78         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
79         to specify program entry point.
80
81 2002-06-07  Jeff Law <law@redhat.com
82
83         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
84         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
85         than creating a new register.
86         (distribute_notes): Likewise.
87         * df.c (df_reg_use_gen): Likewise.
88         (df_reg_clobber_gen): Likewise.
89         (df_ref_record): Likewise.
90         * expr.c (use_regs): Likewise.
91         * flow.c (propagate_one_insn): Likewise.
92         (mark_set_1): Likewise.
93         (mark_used_reg): Likewise.
94         * reload.c (emit_reload_insns): Likewise.
95
96 2002-06-07  Roger Sayle  <roger@eyesopen.com>
97
98         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
99         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
100         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
101         comparison code comp can be reversed.
102
103 2002-06-07  Roger Sayle  <roger@eyesopen.com>
104
105         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
106         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
107         equivalent x > -1.0 when -ffast-math.
108
109 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
110
111         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
112         * config/mips/t-netbsd: New file.
113
114 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
115
116         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
117         options their own entries.
118         (parse_option): Clarify comment.
119         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
120         special case.  Replace if/strcmp chain for -W options with
121         use of new OPT_* entries for them.
122         (cpp_handle_options): Update to match.
123         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
124         * c-decl.c: Update call to cpp_handle_option.
125
126 2002-06-07  Akim Demaille  <akim@epita.fr>
127
128         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
129         Whitespace changes.
130
131 2002-06-07  Jeffrey Law  <law@redhat.com>
132
133         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
134         on empty lists.
135
136 2002-06-07  H.J. Lu  (hjl@gnu.org)
137
138         * configure.in: Add --enable-__cxa_atexit.
139         * configure: Regenerated.
140         * config.in: Likewise.
141
142         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
143         not defined.
144
145 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
146
147         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
148
149 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
150
151         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
152
153 2002-06-07  Jason Merrill  <jason@redhat.com>
154
155         * cppexp.c (num_equality_op): Use a temporary variable to work
156         around gcc 3.0.4 bug.
157
158 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
159
160         * diagnostic.c (diagnostic_build_prefix): Tidy.
161
162 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
163
164         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
165         scan_parameters, save_replacement_text, replacement_length): New.
166         (scan_out_logical_line): Take a macro and save parameters if
167         non-NULL.
168         (_cpp_logical_line_trad): Update.
169         (_cpp_create_trad_definition): Update to handle function-like
170         macros.
171         * cpplex.c (new_buff): Update.
172         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
173         * cpphash.h: ...here.
174         (CPP_ALIGN2, _cpp_save_parameter): New.
175         * cppmacro.c (save_parameter): Rename, export.
176         (parse_params): Update.
177
178 2002-06-07  Andreas Jaeger  <aj@suse.de>
179
180         * config/mmix/mmix.c: Remove extra broken prototype for
181         mmix_init_machine_status.
182
183 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
184
185         * gengtype.c: Add comments before all the routines.
186
187 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
188
189         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
190         from and add t-sh64 to ${tmake_file}.
191         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
192         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
193         * config/sh/t-netbsd-sh5-32: Remove.
194         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
195         MULTILIB_ENDIAN.
196         (MULTILIB_DIRNAMES): Define.
197
198 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
199
200         * i386.md (and promoting splitters): Disable QI to SImode promoting
201         when doing so changes immediate to be 32bit.
202
203         * rtl.h (emit_*_scope): Declare.
204         * emit-rtl.c (emit_*_scope): New global functions.
205         (try_split): Copy scope.
206         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
207         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
208         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
209         noce_process_if_block, find_cond_trap): Copy scopes.
210         * recog.c (peephole2_optimize): likewise.
211
212 2002-06-06  Jeffrey Law  <law@redhat.com>
213
214         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
215
216 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
217
218         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
219
220 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
221
222         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
223         ($(docdir)/gccinstall.info): New target.
224         (info): Depend on it.
225         (gccinstall.dvi): New target.
226         (dvi): Depend on it.
227         * doc/.cvsignore: Ignore new info files.
228         * doc/install.texi (@setfilename): Reflect new info filename.
229
230 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
231
232         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
233         on an UNSPEC.
234
235 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
236
237         PR objc/6834
238         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
239         c_common_get_alias_set.
240         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
241
242 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
243
244         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
245         functions.
246         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
247         * avr/avr.c (avr_output_function_epilogue): Use above to determine
248         function size.
249         * pa/pa.c (pa_output_function_prologue): Likewise.
250
251 2002-06-05  David S. Miller  <davem@redhat.com>
252
253         * integrate.c (subst_constants): Handle 'B' RTL format.
254
255 2002-06-05  Eric Christopher  <echristo@redhat.com>
256
257         * varasm.c (make_decl_rtl): Fix comment for removed
258         halfpic.c.
259
260 2002-06-05  Eric Christopher  <echristo@redhat.com>
261
262         * Makefile.in: Remove missed halfpic bits.
263
264 2002-06-05  Eric Christopher  <echristo@redhat.com>
265
266         * toplev.c: Remove half-pic.
267         * config/mips/mips.c: Ditto.
268         * config/mips/mips.h: Ditto. Remove unused defines.
269         * config/mips/openbsd.h: Update comment to reflect above.
270         * config/mips/mips.md: Remove half-pic constraints.
271         * halfpic.h: Delete.
272         * halfpic.c: Ditto.
273
274 2002-06-05  Jeffrey Law  <law@redhat.com>
275
276         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
277         rejects (mem (lo_sum (reg) (unspec))), but will allow
278         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
279
280 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
281
282         * cpphash.h (_cpp_create_definition): Update prototype.
283         (_cpp_push_text_context, _cpp_create_trad_definition): New.
284         ( cpp_lex_identifier_trad): New.
285         (_cpp_set_trad_context): New.
286         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
287         * cpplib.c (SEEN_EOL): Update.
288         (lex_macro_node): Update for -traditional.
289         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
290         * cppmacro.c (_cpp_create_definition): Split into
291         create_iso_definition() and _cpp_create_trad_definition().
292         (warn_of_redefinition): Update prototype; handle traditional
293         macros.
294         (_cpp_push_text_context): New.
295         * cpptrad.c (skip_whitespace, push_replacement_text): New.
296         (lex_identifier): Call ht_lookup with correct start.
297         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
298         _cpp_set_trad_context): New.
299         (scan_out_logical_line): Update to handle changing contexts.
300
301 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
302
303         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
304         (shl*-*-elf*): Add.
305         * config/sh/t-be (MULTILIB_ENDIAN): Set.
306         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
307         * t-sh (MULTILIB_ENDIAN): Set.
308         (MULTILIB_OPTIONS): Use it.
309         * t-sh64 (MULTILIB_OPTIONS): Likewise.
310         (MULTILIB_DIRNAMES): Likewise.
311
312 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
313
314         * toplev.h (report_error_function): Remove.
315
316         * diagnostic.h (location_t): New datatype.
317         (text_info): Likewise.
318         (diagnostic_info): Likewise.
319         (output_prefix): New macro.
320         (diagnostic_last_function_changed): Likewise.
321         (diagnostic_set_last_function): Likewise.
322         (diagnostic_last_module_changed): Likewise.
323         (diagnostic_set_last_module): Likewise.
324         (report_diagnostic): Now macro.
325         (diagnostic_set_info): Declare.
326
327         * diagnostic.c (report_problematic_module): Rename to
328         diagnostic_repor_current_module.
329         (set_diagnostic_context): Remove.
330         (count_error): Rename to diagnostic_error_count.
331         (error_function_changed): Remove.
332         (record_last_error_function): Likewise.
333         (error_module_changed): Likewise.
334         (record_last_error_module): Likewise.
335         (context_as_prefix): Rename to diagnostic_build_prefix.
336         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
337         (diagnostic_set_info): New function.
338
339         * objc/objc-act.c: #include diagnostic.h
340         (error_with_ivar): Adjust call to count_error.
341         (warn_with_method): Likewise.
342         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
343
344 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
345
346         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
347         lang_hooks.types.make_type instead of make_node; set up
348         __va_list_tag type decl.
349         (xtensa_builtin_saveregs): Remove broken use of
350         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
351         for saved registers; add varargs alias set.
352
353 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
354
355 config:
356         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
357         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
358         CPP_PREDEFINES and part of CPP_SPEC.
359         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
360         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
361
362 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
363
364         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
365
366 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
367
368         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
369
370 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
371
372         * gengtype-yacc.y: Make sure all rules end with a semicolon.
373
374 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
375
376         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
377         typo in function prototype and include "ggc.h" header.
378
379 2002-06-04  Richard Henderson  <rth@redhat.com>
380
381         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
382         (print_operand) ['U']: Likewise.
383         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
384         (alpha_expand_unaligned_store_words): Likewise.
385         (alpha_expand_builtin_vector_binop): Fix typo.
386         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
387         umulh, and cix insns.
388         (one_arg_builtins): Add cix builtins.
389         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
390         (alpha_expand_builtin): Fix typo in arity.
391         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
392         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
393         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
394         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
395         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
396         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
397         builtin_ctlz, builtin_ctpop): New.
398         * doc/extend.texi (Alpha Built-in Functions): Update.
399
400 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
401
402         * gengtype.c (write_gc_root): Don't unnecessarily prevent
403         global variable-length arrays being roots.
404
405         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
406         * configure.in (config_gtfiles): New variable.
407         (all_gtfiles): Initialise from config_gtfiles.
408         * configure: Regenerate.
409
410 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
411
412 config/i386:
413         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
414         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
415         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
416         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
417         win32.h (CPP_SPEC): Remove cpp_cpu.
418         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
419         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
420
421 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
422
423         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
424
425 2002-06-04  Jeff Law <law@redhat.com.
426             David Edelsohn <edelsohn@gnu.org>
427             Michael Matz <matz@kde.org>
428
429         * sched-int.h (struct deps): New field libcall_block_tail_insn.
430         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
431         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
432         is set, then mark the current insn as being part of a libcall
433         scheduling group.
434         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
435
436         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
437         insns against the issue rate.
438
439 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
440
441         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
442         * final.c (final_scan_insn): Likewise.
443         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
444         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
445         * haifa-sched.c (unlink_other_notes): Likeewise.
446         (reemit_notes): Likewise.
447         * print-rtl.c (print_rtx): Likewise.
448         * sched-deps (sched-analyze): Likewise.
449         * rtl.c (note_insn_name): Likewise.
450         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
451         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
452         (RANGE_*): Kill.
453
454 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
455
456         * varasm.c (mark_constants): Handle RTX format 'B'.
457
458 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
459
460         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
461         (struct cpp_context): Add traditional fields.
462         * cppmacro.c (paste_all_tokens, push_ptoken_context,
463         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
464         * cpptrad.c (skip_comment, lex_identifier,
465         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
466
467 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
468
469         * gbl-ctors.h: Fix formatting.
470         * gcc.c: Likewise.
471         * gccspec.c: Likewise.
472         * gcov.c: Likewise.
473         * gcov-io.h: Likewise.
474         * gcse.c: Likewise.
475         * ggc-common.c: Likewise.
476         * ggc.h: Likewise.
477         * ggc-page.c: Likewise.
478         * ggc-simple.c: Likewise.
479         * global.c: Likewise.
480         * graph.h: Likewise.
481         * gthr-dce.h: Likewise.
482         * gthr.h: Likewise.
483         * gthr-posix.h: Likewise.
484         * gthr-rtems.h: Likewise.
485         * gthr-solaris.h: Likewise.
486         * gthr-win32.h: Likewise.
487
488 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
489
490         Merge from pch-branch:
491
492         * gengtype.h (UNION_OR_STRUCT_P): New macro.
493         * gengtype.c (write_gc_structure_fields): Use it.
494         (write_gc_root): Use it here too.
495
496         * gengtype.c (write_gc_structure_fields): Assume that lengths
497         of typenames fit into an 'int'; don't pass a size_t to "%d" in
498         printf.
499         (write_gc_marker_routine_for_structure): Likewise.
500         (write_gc_types): Likewise.
501         (write_gc_root): Likewise.
502
503         * varray.h (VARRAY_CLEAR): New.
504         (varray_clear): Prototype.
505         * varray.c (varray_clear): New.
506         * cselib.c (reg_values_old): New.
507         (used_regs_old): New.
508         (cselib_init): Use cached varrays if available to avoid
509         generating large amounts of garbage.
510         (cselib_finish): Don't throw away old varrays.
511
512         * final.c (insn_addresses_): Move out of ifdef.
513
514         * varray.c (uses_ggc): Make more varray kinds GCable.
515         * varray.h (union varray_data_tag): Let gengtype see
516         fields 'generic' and 'te'.
517         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
518         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
519         (reg_to_stack): Don't call VARRAY_FREE.
520         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
521         (insn_addresses_): Use gengtype to mark.
522         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
523         pointers; handle generic pointers in unused union fields.
524         (get_output_file_with_visibility): Include cselib.h,
525         insn-addr.h in gtype-desc.c.
526         * function.c (prologue): Use gengtype to mark.
527         (epilogue): Likewise.
528         (sibcall_epilogue): Likewise.
529         * dependence.c: Include gt-dependence.h, ggc.h.
530         (struct def_use): Use gengtype to mark.
531         (struct loop): Likewise.
532         (struct induction): Likewise.
533         (struct dependence): Likewise.
534         (def_use_chain): Likewise.
535         (dep_chain): Likewise.
536         (loop_chain): Likewise.
537         (induction_chain): Likewise.
538         (init_dependence_analysis): Don't free anything, just clear pointers.
539         (build_def_use): Use GGC to allocate def_use.
540         (add_loop): Use GGC to allocate loop.
541         (find_induction_variable): Use GGC to allocate induction.
542         (check_node_dependence): Use GGC to allocate induction, dependence.
543         (dump_node_dependence): Don't free varrays.
544         (end_dependence_analysis): Likewise.
545         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
546         (struct elt_loc_list): Likewise.
547         (struct elt_list): Likewise.
548         * cselib.c: Don't include obstack.h.
549         (hash_table): Use gengtype to mark.
550         (reg_values): Use gengtype to mark.
551         (used_regs): Use gengtype to mark.
552         (cselib_obstack): Delete.
553         (cselib_startobj): Delete.
554         (empty_vals): Mark as deletable.
555         (empty_elt_lists): Mark as deletable.
556         (empty_elt_loc_lists): Mark as deletable.
557         (new_elt_list): Use GGC to allocate struct elt_list.
558         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
559         (clear_table): Don't delete obstack; don't unnecessarily clear
560         deletable variables.
561         (new_cselib_val): Use GGC to allocate struct cselib_val.
562         (cselib_init): Don't set up obstacks.  Use GGC to allocate
563         hash table.
564         (cselib_finish): Just clear variables, don't free anything.
565         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
566         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
567         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
568         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
569         (gt-reg-stack.h): New rule.
570         (gt-dependence.h): New rule.
571         (gtype-desc.o): Add cselib.h, insn-addr.h.
572
573         * varray.c: Use only necessary headers.
574         (element_size): New.
575         (uses_ggc): New.
576         (varray_init): Take type, not size.  Use GGC if appropriate.
577         (varray_grow): Update for change to struct varray_head_tag.
578         Use GGC if appropriate.
579         * varray.h (struct const_equiv_data): Use gengtype.
580         (enum varray_data_enum): New.
581         (union varray_data_tag): Use gengtype.
582         (struct varray_head_tag): Use gengtype.  Replace size field with
583         enum varray_data_enum.
584         (varray_init): Update prototype.
585         (VARRAY_SCHED_INIT): Delete.
586         (VARRAY_*_INIT): Update for change to varray_init.
587         (VARRAY_SCHED): Delete.
588         (VARRAY_PUSH_SCHED): Delete.
589         (VARRAY_TOP_SCHED): Delete.
590         * tree.h: Update for change to length specifier.
591         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
592         (clone_body): Likewise.
593         * ssa.h (ssa_definition): Use gengtype to mark.
594         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
595         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
596         * rtl.h (struct rtvec_def): Update for change to length specifier.
597         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
598         (struct initial_value_struct): Update for change to length specifier.
599         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
600         (ggc_add_tree_varray_root): Delete prototype.
601         (ggc_mark_rtx_varray): Delete prototype.
602         (ggc_mark_tree_varray): Delete prototype.
603         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
604         (ggc_add_tree_varray_root): Delete.
605         (ggc_mark_rtx_varray): Delete.
606         (ggc_mark_tree_varray): Delete.
607         (ggc_mark_rtx_varray_ptr): Delete.
608         (ggc_mark_tree_varray_ptr): Delete.
609         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
610         (create_varray): Delete prototype.
611         * gengtype.c (varrays): Delete.
612         (create_varray): Delete.
613         (adjust_field_type): Detect array of string pointers.
614         (process_gc_options): Remove code to handle varray_type option.
615         (set_gc_used_type): Remove TYPE_VARRAY case.
616         (output_escaped_param): New.
617         (write_gc_structure_fields): Use output_escaped_param on all
618         parameters.  Handle 'skip' with 'use_param' option.  Handle
619         arrays of strings.  Remove TYPE_VARRAY handling.
620         (write_gc_roots): Use boolean to detect 'length' option.
621         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
622         (struct_fields): Call adjust_field_type on array fields.
623         (type): Remove VARRAY_TYPE case.
624         (type_option): Likewise.
625         * gengtype-lex.l: Don't consider varray_type a keyword.
626         * function.h: Update for change to length specifier.
627         (free_eh_status): Delete prototype.
628         * function.c (free_after_compilation): Don't call free_eh_status.
629         (reorder_blocks): Don't use VARRAY_FREE.
630         * except.c (struct eh_status): Update for change to length specifier.
631         remove varray_type specifier.
632         (free_eh_status): Delete.
633         * dwarf2out.c: Include gt-dwarf2out.h.
634         (used_rtx_varray): Use gengtype to mark, move
635         outside ifdefs.
636         (incomplete_types): Likewise.
637         (decl_scope_table): Likewise.
638         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
639         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
640         * c-tree.h (struct lang_type): Update for change to length specifier.
641         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
642         * c-objc-common.c: Include gt-c-objc-common.h.
643         (deferred_fns): Mark for gengtype.
644         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
645         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
646         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
647         (gtype-desc.o): Update dependencies.
648         (dwarf2out.o): Add gt-dwarf2out.h.
649         (varray.o): Update dependencies.
650         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
651         (gt-c-objc-common.h): New rule.
652         (gt-dwarf2out.h): New rule.
653         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
654
655         * doc/gty.texi (GTY Options): Correct spelling.
656         (GGC Roots): Likewise.
657         * Makefile.in (TEXI_CPP_FILES): New.
658         (TEXI_GCC_FILES): New.
659         (TEXI_GCCINT_FILES): New.
660         (TEXI_CPPINT_FILES): New.
661         ($(docdir)/cpp.info): Use new macros.
662         ($(docdir)/gcc.info): Likewise.
663         ($(docdir)/gccint.info): Likewise.
664         ($(docdir)/cppinternals.info): Likewise.
665         (cpp.dvi): Likewise.
666         (gcc.dvi): Likewise.
667         (gccint.dvi): Likewise.
668         (cppinternals.dvi): Likewise.
669
670         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
671         * doc/gccint.texi (Top): Include gty.texi.
672         * doc/gty.texi: New file.
673
674         * bitmap.c: Include ggc.h, gt-bitmap.h.
675         (bitmap_ggc_free): New.
676         (bitmap_elem_to_freelist): New.
677         (bitmap_element_free): Use bitmap_elem_to_freelist.
678         (bitmap_element_allocate): Allow use of GGC.
679         (bitmap_clear): Use bitmap_elem_to_freelist.
680         (bitmap_copy): Update for change to bitmap_element_allocate.
681         (bitmap_set_bit): Likewise.
682         (bitmap_operation): Update for changes elsewhere.
683         (bitmap_initialize): Allow to create bitmaps that will use GGC.
684         * bitmap.h (struct bitmap_element_def): Use gengtype.
685         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
686         (bitmap_initialize): Add extra parameter.
687         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
688         (BITMAP_ALLOCA): Delete.
689         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
690         (BITMAP_GGC_ALLOC): New.
691         * Makefile.in (gtype-desc.o): Add bitmap.h.
692         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
693         (GTFILES): Add bitmap.c.
694         (gt-bitmap.h): New rule.
695         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
696         * basic-block.h: Update for changes to bitmap_initialize.
697         * except.c (exception_handler_label_map): Move into...
698         (struct eh_status): Here.
699         (struct eh_region): Make 'aka' GCable.
700         (free_eh_status): Don't need to specially handle
701         exception_handler_label_map.
702         (add_ehl_entry): Update for changes to exception_handler_label_map.
703         (find_exception_handler_labels): Likewise.
704         (remove_exception_handler_label): Likewise.
705         (maybe_remove_eh_handler): Likewise.
706         (for_each_eh_label): Likewise.
707         (remove_eh_handler): Allocate 'aka' using GGC.
708         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
709         to list of includes.
710
711         * gengtype.c (write_gc_marker_routine_for_structure): Name
712         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
713         (write_gc_types): Arrange for the tests with NULL to be inlined.
714         (write_gc_roots): Update uses of procedure pointers.
715         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
716
717         * Makefile.in (explow.o): Add dependency on gt-explow.h.
718         (sdbout.o): Add dependency on gt-sdbout.h.
719
720         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
721         (mem_attrs_htab): Likewise.
722         (init_emit_once): Don't call ggc_add_deletable_htab.
723         * fold-const.c (size_htab): Use gengtype to clear unused entries.
724         (size_int_type_wide): Don't call ggc_add_deletable_htab.
725         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
726         parameters, use them, change callers.
727         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
728         (write_gc_roots): Handle 'if_marked' option.
729         (main): Don't need to call set_gc_used_type any more.
730         * ggc.h (ggc_htab_marked_p): Delete.
731         (ggc_htab_mark): Delete.
732         (struct ggc_cache_tab): New.
733         (gt_ggc_cache_rtab): New declaration.
734         * ggc-common.c (struct d_htab_root): Delete.
735         (d_htab_roots): Delete.
736         (ggc_add_deletable_htab): Delete.
737         (ggc_htab_delete): Handle new htab-deleting mechanism.
738         (ggc_mark_roots): Use new htab-deleting mechanism.
739         * tree.c (type_hash_table): Use gengtype to clear unused entries.
740         Make static.
741         (init_obstacks): Don't call ggc_add_deletable_htab.
742
743         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
744         (struct hashed_entry): Likewise.
745         (nst_method_hash_list): Likewise.
746         (cls_method_hash_list): Likewise.
747         (HASH_ALLOC_LIST_SIZE): Delete.
748         (ATTR_ALLOC_LIST_SIZE): Delete.
749         * objc/objc-act.c (hash_init): Use ggc to allocate
750         nst_method_hash_list, cls_method_hash_list.
751         (hash_enter): Use ggc to allocate; allocate one entry at a time.
752         (hash_add_attr): Likewise.
753         (ggc_mark_hash_table): Delete.
754         (objc_act_parse_init): Delete.
755         (objc_init): Delete reference to objc_act_parse_init.
756         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
757         obstack.h.  Replace references to 'struct hash_table' with htab_t.
758         (struct symbol_hash_entry): Replace hash header with key field.
759         (struct file_hash_entry): Replace hash header with key field.
760         (struct demangled_hash_entry): Replace hash header with key field.
761         (hash_string_eq): New.
762         (hash_string_hash): New.
763         (symbol_hash_newfunc): Delete.
764         (symbol_hash_lookup): Modify to use htab_t.
765         (file_hash_newfunc): Delete.
766         (file_hash_lookup): Modify to use htab_t.
767         (demangled_hash_newfunc): Delete.
768         (demangled_hash_lookup): Modify to use htab_t.
769         (tlink_init): Modify to use htab_t.
770         * hash.h: Delete.
771         * hash.c: Delete.
772         * ggc.h: Delete forward structure declarations.
773         Delete prototypes for deleted functions.
774         * ggc-common.c: Don't include hash.h.
775         (ggc_add_tree_hash_table_root): Delete.
776         (ggc_mark_tree_hash_table_entry): Delete.
777         (ggc_mark_tree_hash_table): Delete.
778         (ggc_mark_tree_hash_table_ptr): Delete.
779         * gengtype.c (write_gc_structure_fields): Allow param_is option.
780         (write_gc_marker_routine_for_structure): Use visibility of
781         the parameter if there is one.
782         * function.c: Replace hash.h with hashtab.h.  Replace references
783         to 'struct hash_table *' with htab_t.
784         (struct insns_for_mem_entry): Include a plain key.
785         (fixup_var_refs_insns_with_hash): Update to use htab_t.
786         (insns_for_mem_newfunc): Delete.
787         (insns_for_mem_hash): Update to use htab_t.
788         (insns_for_mem_comp): Likewise.
789         (insns_for_mem_walk): Likewise.
790         * c-lang.c: Include ggc.h.
791         * Makefile.in (OBJS): Remove hash.o.
792         (c-lang.o): Add GGC_H.
793         (COLLECT2_OBJS): Remove hash.o.
794         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
795         (ggc-common.o): Remove hash.h.
796         (function.o): Remove hash.h, add HASHTAB_H.
797         (genautomata.o): Remove hash.h, add HASHTAB_H.
798
799         * varasm.c (mark_const_str_htab_1): Delete.
800         (mark_const_str_htab): Delete.
801         (const_str_htab_del): Delete.
802         (const_str_htab): Use gengtype to mark.
803         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
804         allocate them.
805         * tree.c (mark_tree_hashtable_entry): Delete.
806         (mark_tree_hashtable): Delete.
807         * tree.h (mark_tree_hashtable): Delete prototype.
808         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
809         (ggc_mark): Likewise.
810         (ggc_calloc): New.
811         (htab_create_ggc): New.
812         * ggc-common.c (ggc_calloc): New.
813         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
814         (struct type): Add param_struct structure.
815         * gengtype.c (param_structs): New.
816         (adjust_field_type): Handle param_is option.
817         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
818         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
819         (write_gc_structure_fields): Add new PARAM parameter.  Update
820         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
821         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
822         Use it to generate function name.  Update callers.
823         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
824         Process them.
825         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
826         option.
827         (main): Define PTR as pointer-to-scalar.  Don't specially
828         mark deferred_string or ehl_map_entry.
829         * gengtype-yacc.y (PARAM_IS): Add new token.
830         (externstatic): Use adjust_field_type.
831         (type_option): Add PARAM_IS.
832         * gengtype-lex.l: Add rule for typedef of function pointers.
833         Add rule for PARAM_IS.
834         (IWORD): Add size_t.
835         * except.c (exception_handler_label_map): Use gengtype to mark.
836         (type_to_runtime_map): Likewise.
837         (mark_ehl_map_entry): Delete.
838         (mark_ehl_map): Delete.
839         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
840         (t2r_mark_1): Delete.
841         (t2r_mark): Delete.
842         * Makefile.in (gtype-desc.o): Correct dependencies.
843         (GTFILES): Add hashtab.h.
844         (genautomata.o): Actually uses hashtab.h.
845
846         * Makefile.in (stringpool.o): Add $(GGC_H).
847         (dwarf2asm.o): Likewise.
848         (GTFILES): Add hashtable.h.
849         * c-common.h (struct c_common_identifier): Use gengtype.
850         * c-decl.h (c_mark_tree): Delete.
851         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
852         * c-tree.h (struct lang_identifier): Use gengtype.
853         (union lang_tree_node): New.
854         (c_mark_tree): Delete prototype.
855         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
856         dwarf2_debug_hooks.
857         * gengtype-lex.l (IWORD): Allow 'bool'.
858         (ptr_alias): Match.
859         * gengtype-yacc.y (ALIAS): New token.
860         (type_option): New rule.
861         (option): Use type_option.
862         * gengtype.c (process_gc_options): New.
863         (set_gc_used_type): Use it.
864         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
865         Add new variable 't' to hold the type of the field being processed.
866         Add more error checking.  Use UNION_P when looking at 'desc' option.
867         Handle language-specific structures containing other
868         language-specific structures.
869         (write_gc_types): Handle 'ptr_alias' option.
870         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
871         * ggc-common.c (ggc_pending_trees): Delete.
872         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
873         (ggc_mark_trees): Delete.
874         (gt_ggc_m_tree_node): Delete.
875         * ggc.h (ggc_pending_trees): Delete.
876         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
877         * hashtable.h (ht_identifier): Use gengtype.
878         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
879         * langhooks.h (struct lang_hooks): Delete mark_tree.
880         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
881         anyway.
882         * system.h: Poison LANG_HOOKS_MARK_TREE.
883         * tree.c (tree_node_structure): New.
884         * tree.h (struct tree_common): Use gengtype.
885         (struct tree_int_cst): Likewise.
886         (struct tree_real_cst): Likewise.
887         (struct tree_string): Likewise.
888         (struct tree_complex): Likewise.
889         (struct tree_vector): Likewise.
890         (struct tree_identifier): Likewise.
891         (struct tree_list): Likewise.
892         (struct tree_vec): Likewise.
893         (struct tree_exp): Likewise.
894         (struct tree_block): Likewise.
895         (struct tree_type): Likewise.
896         (struct tree_decl): Likewise.
897         (enum tree_structure_enum): New.
898         (union tree_node): Use gengtype, with an alias.
899         (tree_node_structure): Prototype.
900         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
901
902         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
903         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
904         to LANG_HOOKS_FUNCTION_FINAL.
905         * Makefile.in (GTFILES): Add bitmap.h.
906         * except.c (struct eh_region): Mark field 'aka' to be skipped.
907
908         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
909         (alpha_init_machine_status): Give proper type.
910         * Makefile.in (c-lang.o): Depend on gtype-c.h.
911         (optabs.o): Depend on gt-optabs.h.
912         (GTFILES): Add optabs.o.
913         (gt-optabs.h): Add rule.
914         * optabs.c: Include gt-optabs.h.
915
916         * gengtype.c (set_gc_used_type): Correct some errors in last change.
917         (write_gc_structure_fields): If a field which should be NULL is
918         not, abort.
919         * c-pragma.c: Move struct align_stack and variable alignment_stack
920         out from the ifdef.
921
922         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
923         * config/xtensa/xtensa.c: Include gt-cris.h.
924         (struct machine_function): Use gengtype to mark.
925         * config/mmix/mmix.h (struct machine_function): Use gengtype
926         to mark.
927         * config/cris/t-cris: Add dependencies for gt-cris.h.
928         * config/cris/cris.c: Include gt-cris.h.
929         (struct machine_function): Use gengtype to mark.
930         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
931         to mark.
932         * doc/tm.texi (Per-Function Data): Delete references to
933         mark_machine_status.
934         * config/ia64/ia64.c (ia64_override_options): Don't set
935         mark_machine_status.
936         * config/i386/i386.c (override_options): Likewise.
937         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
938         * config/arm/arm.c (arm_init_expanders): Likewise.
939         * config/alpha/alpha.c (override_options): Likewise.
940         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
941         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
942         (write_gc_structure_fields): Don't handle 'really' option.
943         Handle 'maybe_null' option.
944         (write_gc_types): Handle 'maybe_null' option.
945         * function.h (struct function): Don't use "really".
946         (mark_machine_status): Delete declaration.
947         (mark_lang_status): Delete declaration.
948         (gt_ggc_mr_machine_function): Delete prototype.
949         (gt_ggc_mr_language_function): Delete prototype.
950         * function.c (mark_machine_status): Delete.
951         (mark_lang_status): Delete.
952         (gt_ggc_mr_machine_function): Delete.
953         (gt_ggc_mr_language_function): Delete.
954         * c-tree.h (mark_c_function_context): Delete prototype.
955         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
956         * c-decl.c (struct language_function): Rename from struct
957         c_language_function.  Update uses.  Use gengtype to mark.
958         (mark_c_function_context): Delete.
959         * c-common.h (struct c_language_function): Rename from struct
960         language_function.
961         (mark_stmt_tree): Delete prototype.
962         (c_mark_lang_decl): Delete prototype.
963         (mark_c_language_function): Delete prototype.
964         * c-common.c (mark_stmt_tree): Delete.
965         (c_mark_lang_decl): Delete.
966         (mark_c_language_function): Delete.
967
968         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
969         (lang_bitmap): New typedef.  Use where appropriate.
970         (struct type): Add gc_used field, lang_struct field.
971         (UNION_P): New macro.
972         (new_structure): New prototype.
973         (find_structure): Remove 'pos' parameter.  Change all callers.
974         * gengtype-lex.l: Update for changes to find_structure.
975         * gengtype-yacc.y (typedef_struct): Use new_structure.
976         (yacc_ids): Suppress warning.
977         (type): Use new_structure.
978         * gengtype.c (string_type): Update for changes to struct type.
979         (find_structure): Just find a structure, don't worry about
980         creating one.
981         (new_structure): New.
982         (note_yacc_type): Use new_structure.
983         (set_gc_used_type): New.
984         (set_gc_used): New.
985         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
986         (write_gc_types): Handle TYPE_LANG_STRUCT.
987         (write_gc_marker_routine_for_structure): New.
988         (main): Call set_gc_used.  Add some calls to set_gc_used_type
989         for places where GCC doesn't use gengtype properly yet.
990         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
991         (gt_ggc_m_tree_node): Likewise.
992
993         * varasm.c (copy_constant): Call expand_constant if we hit
994         something we can't recognise.
995
996         * ggc-common.c (ggc_mark_rtvec_children): Delete.
997         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
998         (lang_mark_false_label_stack): Delete.
999         * rtl.h (struct rtvec_def): Use gengtype to mark.
1000         * ggc.h (ggc_mark_rtvec): Delete.
1001         (gt_ggc_m_rtvec_def): Delete.
1002         (ggc_mark_nonnull_tree): Delete.
1003         (ggc_mark_rtvec_children): Delete prototype.
1004         (lang_mark_false_label_stack): Delete declaration.
1005
1006         * gengtype.h (note_yacc_type): Add prototype.
1007         * gengtype.c (note_yacc_type): New function.
1008         * gengtype-lex.l: Add lexer support for yacc files.
1009         * gengtype-yacc.y (start): Extract union from yacc files.
1010         (yacc_union): New rule.
1011         (yacc_typematch): New rule.
1012         (yacc_ids): New rule.
1013         (enum_items): Tweak for efficiency.
1014         (optionseq): Likewise.
1015
1016         * c-common.h (struct language_function): Use gengtype.
1017         (struct c_lang_decl): Likewise.
1018         * c-tree.h (struct lang_decl): Likewise.
1019         (struct lang_type): Likewise.
1020         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
1021         tree language substructures.
1022
1023         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
1024         ggc_mark_tree.
1025         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
1026
1027         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
1028
1029         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
1030         mark. Remove 'data.block.cleanup_ptr' field.
1031         (struct stmt_status): Use usual technique to mark struct nesting.
1032         (gt_ggc_mr_nesting_cond): Delete.
1033         (gt_ggc_mr_nesting_loop): Delete.
1034         (gt_ggc_mr_nesting_block): Delete.
1035         (gt_ggc_mr_nesting_case_stmt): Delete.
1036         (expand_start_cond): Set discriminator.
1037         (expand_start_loop): Likewise.
1038         (expand_start_null_loop): Likewise.
1039         (expand_start_bindings_and_block): Set discriminator.  Don't set
1040         deleted fields.
1041         (expand_decl_cleanup): Replace 'cleanup_ptr' with
1042         &thisblock->data.block.cleanups.
1043         (expand_start_case): Set discriminator.
1044         (expand_start_case_dummy): Set discriminator.
1045
1046         * ggc-callbacks.c: Remove.
1047
1048         * gengtype.h (struct type): Add 'u.s.bitmap' field.
1049         (find_structure): Add 'pos' parameter.
1050         * gengtype-lex.l: Update callers to find_structure.
1051         * gengtype-yacc.y: Likewise.
1052         * gengtype.c (find_structure): Allow for structures to be defined
1053         in multiple language backends.
1054         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
1055         (counter): Rename to gc_counter.
1056         (write_gc_structure_fields): Fail when writing out fields for
1057         an incomplete structure.  Ignore arrays of scalars.  Handle
1058         'tree_vec' special.
1059         (write_gc_types): Reset counter for each procedure written.
1060
1061         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
1062         (free_case_nodes): Delete.
1063         (expand_end_case_type): Delete call to free_case_nodes.
1064
1065         * Makefile.in (cselib.o): Include gt-<filename>.h.
1066         (gcse.o): Likewise.
1067         (profile.o): Likewise.
1068         (alias.o): Likewise.
1069         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
1070         alphabetize backend files.
1071         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
1072         * alias.c: Use gengtype for roots.
1073         * c-common.h (struct stmt_tree_s): Use gengtype.
1074         * c-decl.c: Use gengtype for roots.
1075         * cselib.c: Use gengtype for roots.
1076         * expr.c: Use gengtype for roots.
1077         * fold-const.c: Use gengtype for roots.
1078         * gcse.c: Use gengtype for roots.
1079         * gengtype-lex.l: Handle typedefs of function types.
1080         Allow for empty array bounds.
1081         Allow processing to stop on initialisers.
1082         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
1083         (semiequal): New rule.
1084         * gengtype.c (create_file): Tidy output files.
1085         (get_output_file_with_visibility): Fix paren warning.  Fix bug
1086         involving multiple input files mapping to one output file.
1087         (write_gc_structure_fields): Skip arrays of scalars.
1088         (write_gc_types): Tidy output files.
1089         (write_gc_root): New function.
1090         (write_gc_roots): Fix bugs, add support for roots that are
1091         structures.
1092         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
1093         (ggc_mark_tree_ptr): Delete.
1094         (ggc_add_rtx_root): Delete.
1095         (ggc_add_tree_root): Delete.
1096         (ggc_del_root): Delete.
1097         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
1098         allocate struct initial_value_struct.
1099         * profile.c: Use gengtype for roots.
1100         * sdbout.c: Use gengtype for roots.
1101         * varasm.c (mark_weak_decls): Delete unused prototype.
1102         (mark_const_hash_entry): Delete unused function.
1103         * config/darwin-protos.h: Use gengtype for roots.
1104         (machopic_add_gc_roots): Delete.
1105         * config/arm/arm.c: Use gengtype for roots.
1106         * config/arm/arm.h: Use gengtype for roots.
1107         * config/c4x/c4x-protos.h: Use gengtype for roots.
1108         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
1109         * config/d30v/d30v-protos.h: Use gengtype for roots.
1110         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
1111         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
1112         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
1113         * config/ia64/ia64-protos.h: Use gengtype for roots.
1114         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
1115         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
1116         * config/m68hc11/m68hc11.c (z_reg): Make global.
1117         (z_reg_qi): Make global.
1118         (m68hc11_add_gc_roots): Delete.
1119         * config/mcore/mcore-protos.h: Use gengtype for roots.
1120         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
1121         * config/mips/mips.c (mips_add_gc_roots): Delete.
1122         * config/mips/mips.h: Use gengtype for roots.
1123         * config/mmix/mmix.c (override_options): Use gengtype for roots.
1124         * config/mmix/mmix.h: Use gengtype for roots.
1125         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
1126         * config/mn10200/mn10200.h: Use gengtype for roots.
1127         * config/pa/pa.c: Use gengtype for roots, marking.
1128         (struct deferred_plabel): Use GGC, gengtype.
1129         (pa_add_gc_roots): Delete.
1130         (mark_deferred_plabels): Delete.
1131         * config/pj/pj-protos.h: Use gengtype for roots.
1132         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
1133         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
1134         machopic_add_gc_roots.
1135         * config/rs6000/rs6000.h: Use gengtype for roots.
1136         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
1137         (gt-darwin.h): Add rule.
1138         * config/sh/sh.c: Use gengtype for roots.
1139         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
1140         (gt-sh.h): Add rule.
1141         * config/sparc/sparc.c: Use gengtype for roots.
1142         (sparc_add_gc_roots): Delete.
1143         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
1144         (mark_ultrasparc_pipeline_state): Delete.
1145         * config/sparc/sparc.h: Use gengtype for roots.
1146
1147         * Makefile.in (c-parse.o): Update dependencies.
1148         (c-common.o): Likewise.
1149         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
1150         Add dependencies for the files they generate.
1151         * c-common.c: Replace ggc_add_* uses with GTY annotations.
1152         * c-common.h: Likewise.
1153         * c-decl.c: Likewise.
1154         (gt_ggc_mp_binding_level): Delete.
1155         * c-lang.c: Include gtype-c.h.
1156         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
1157         gt-c-parse.h.
1158         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
1159         (gt_ggc_mp_align_stack): Delete.
1160         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
1161         * function.c: Replace ggc_add_* uses with GTY annotations.
1162         (gt_ggc_mp_function): Delete.
1163         * function.h: Replace ggc_add_* uses with GTY annotations.
1164         * gengtype.c (lang_names): New.
1165         (NUM_BASE_FILES): New.
1166         (open_base_files): Create language base files.
1167         (startswith): New.
1168         (get_file_basename): New.
1169         (get_base_file_bitmap): New.
1170         (get_output_file_with_visibility): Rename from get_output_file.
1171         Add more mappings for various C/Objc filenames.
1172         (finish_root_table): New.
1173         (write_gc_roots): Handle dependencies and scoping properly.
1174         * gengtype.h: Add prototypes for new functions.
1175         * ggc-common.c (struct deletable_root): Delete.
1176         (deletables): Delete.
1177         (ggc_add_deletable_root): Delete.
1178         (ggc_mark_roots): No need to deal with deleted functionality.
1179         * ggc.h (ggc_add_deletable_root): Delete prototype.
1180         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
1181         (gtype-objc.h): Add rule to create.
1182         * objc/config-lang.in (gtfiles): New.
1183         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
1184         ggc_add_* with GTY markers.  Include gtype-objc.h.
1185         (ggc_mark_imp_list): Delete.
1186         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1187         * objc/objc-lang.c: Random Whitespace Change.
1188
1189         * except.h (exception_handler_labels): Delete.
1190         (get_exception_handler_labels): New.
1191         * except.c (exception_handler_labels): Delete.
1192         (struct eh_status): Add exception_handler_labels field.
1193         (doing_eh): Don't add exception_handler_labels as root.
1194         (free_eh_status): Don't need to free exception_handler_labels.
1195         (get_exception_handler_labels): New.
1196         (find_exception_handler_labels): Update for move of
1197         exception_handler_labels.
1198         (remove_exception_handler_label): Likewise.
1199         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1200         * jump.c (rebuild_jump_labels): Likewise.
1201         * loop.c (find_and_verify_loops): Likewise.
1202         * sched-rgn.c (is_cfg_nonregular): Likewise.
1203
1204         * gengtype.c (write_gc_structure_fields): Handle variable-length
1205         TYPE_ARRAYs.
1206
1207         * varasm.c (struct weak_syms): Use GGC, gengtype.
1208         (mark_weak_decls): Delete.
1209         (weak_decls): Likewise.
1210         (add_weak): Likewise.
1211         (remove_from_pending_weak_list): Likewise.
1212         (init_varasm_once): Likewise.
1213
1214         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1215         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1216         stor-layout.c, regclass.c, and lists.c.
1217         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1218         gt-regclass.h and gt-lists.h on s-gtype.
1219         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
1220         * except.c: Use gengtype for roots.
1221         * explow.c: Use gengtype for roots.  Include gt-explow.h.
1222         * expr.h (init_stor_layout_once): Delete prototype.
1223         * function.c: Use gengtype for roots.
1224         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1225         * gengtype-yacc.y (start): Can also be an externstatic.
1226         (externstatic): New production.
1227         (struct_fields): Correct array bounds inversion for 2-d arrays.
1228         * gengtype.c (variables): New variable.
1229         (note_variable): New function.
1230         (get_output_file): Include libfuncs.h into gtype-desc.c.
1231         (get_output_file_name): New function.
1232         (write_gc_structure_fields): Suppress warnings.
1233         (write_gc_types): Make static.
1234         (put_mangled_filename): New function.
1235         (write_gc_roots): New function.
1236         (main): Call write_gc_roots.
1237         * gengtype.h (note_variable): Prototype.
1238         (get_output_file_name): Prototype.
1239         (write_gc_types): Delete prototype.
1240         * ggc.h: Clean up unnecessary structure predefinitions.
1241         (struct ggc_root_tab): Define.
1242         (gt_ggc_m_rtx_def): Make function, not macro.
1243         (gt_ggc_m_tree_node): Likewise.
1244         * libfuncs.h: Use gengtype for roots.
1245         * lists.c: Use gengtype for roots.  Include gt-lists.h.
1246         (init_EXPR_INSN_LIST_cache): Delete.
1247         * optabs.c: Use gengtype for roots.
1248         (gt_ggc_mp_optab): Delete.
1249         * optabs.h: Use gengtype for roots.
1250         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
1251         * rtl.h: Use gengtype for roots.
1252         (init_EXPR_INSN_LIST_cache): Delete prototype.
1253         * stor-layout.c: Use gengtype for roots.
1254         Include gt-stor-layout.h.
1255         (init_stor_layout_once): Delete.
1256         * toplev.c: Use gengtype for roots.  Delete calls to deleted
1257         routines.
1258         * tree.c: Use gengtype for roots.
1259         * tree.h: Use gengtype for roots.
1260         * varasm.c: Use gengtype for roots.
1261
1262         * Makefile.in (GTFILES): Add @all_gtfiles@.
1263         * configure: Regenerate.
1264         * configure.in: Construct all_gtfiles from the gtfiles definitions
1265         in config-lang.in.
1266         * gengtype-yacc.y (type): Warn about duplicate structure names.
1267         * gengtype.c (get_output_file): Handle .c files in language
1268         subdirectories.
1269
1270         * Makefile.in (GTFILES): Run gengtype on all the config files
1271         and on the target .c file.
1272         * except.c (mark_eh_region): Delete.
1273         (init_eh_for_function): Use GGC on struct eh_status.
1274         (mark_eh_status): Delete.
1275         (free_eh_status): Use GGC.
1276         (expand_eh_region_start): Use GGC to
1277         (collect_eh_region_array): Allocate last_region_number using GGC.
1278         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1279         (remove_eh_handler): Let GGC free struct eh_region.
1280         (add_call_site): Use GGC to reallocate call_site_record array.
1281         * function.c (init_machine_status): Update calling sequence.
1282         (mark_machine_status): Likewise.
1283         (mark_lang_status): Likewise.
1284         (prepare_function_start): Update init_machine_status call.
1285         (mark_function_status): Delete.
1286         (maybe_mark_struct_function): Delete.
1287         (ggc_mark_struct_function): Delete.
1288         (gt_ggc_mp_function): New.
1289         (gt_ggc_mr_machine_function): New.
1290         (gt_ggc_mr_language_function): New.
1291         (init_function_once): Use canonical names.
1292         * function.h (struct function): Use gengtype.
1293         (init_machine_status): Return the structure.
1294         (mark_machine_status): Take a 'void *'.
1295         (mark_lang_status): Likewise.
1296         * ggc-common.c (ggc_mark_trees): Use canonical name for
1297         ggc_mark_struct_function.
1298         * tree.h (ggc_mark_struct_function): Delete prototype.
1299         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1300         (alpha_init_machine_status): Likewise.
1301         (override_options): Use canonical name for alpha_mark_machine_status.
1302         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1303         * config/arm/arm.h (struct machine_function): Use gengtype.
1304         * config/arm/arm.c (arm_mark_machine_status): Delete.
1305         (arm_init_machine_status): Update calling sequence.
1306         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
1307         * config/cris/cris.c (cris_init_machine_status): Update
1308         calling sequence.
1309         * config/d30v/d30v.h (struct machine_function): Use gengtype.
1310         * config/d30v/d30v.c (d30v_init_machine_status): Update
1311         calling sequence.
1312         (d30v_mark_machine_status): Delete.
1313         * config/i386/i386.c: Include gt-i386.h.
1314         (struct machine_function): Use gengtype.
1315         (ix86_init_machine_status): Update calling sequence.
1316         (ix86_mark_machine_status): Delete.
1317         (override_options): Use canonical namke for ix86_mark_machine_status.
1318         * config/ia64/ia64.h (struct machine_function): Use gengtype.
1319         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
1320         sequence.
1321         (ia64_mark_machine_status): Delete.
1322         (ia64_override_options): Use canonical name for
1323         ia64_mark_machine_status.
1324         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
1325         sequence.
1326         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1327         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1328         * gengtype.c (get_output_file): Fix warning.
1329         (main): Add prototype to suppress warning.
1330         * tree.c: Remove tree_hash_mark prototype.
1331
1332         * tree.h (init_stmt): Delete prototype.
1333         * toplev.c (lang_independent_init): Don't call init_stmt.
1334         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1335         (stmt_obstack): Delete.
1336         (POPSTACK): No need to free 'struct nesting'.
1337         (gt_ggc_mr_nesting_cond): Use canonical names.
1338         (gt_ggc_mr_nesting_loop): Use canonical names.
1339         (gt_ggc_mr_nesting_block): Use canonical names.
1340         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1341         (mark_stmt_status): Delete.
1342         (init_stmt): Delete.
1343         (clear_last_expr): Clear both last_expr_type and last_expr_value.
1344         Use it everywhere that last_expr_type was cleared.
1345         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1346         (zap_lists): Delete.
1347         * ggc.h (ggc_add_deletable_root): Prototype.
1348         (mark_stmt_status): Remove prototype.
1349         * ggc-common.c (ggc_add_deletable_root): New.
1350         (ggc_mark_roots): Handle deletable roots.
1351         * function.c (ggc_mark_struct_function): Use canonical name
1352         for mark_stmt_status.
1353         * emit-rtl.c (free_sequence_stack): New.
1354         (start_sequence): Use a freelist for sequences.
1355         (end_sequence): Likewise.
1356         (init_emit_once): Add free_sequence_stack as a deleteable root.
1357         * c-pragma.c Include gt-c-pragma.h.
1358         (struct align_stack): Use gengtype.
1359         (push_alignment): Use GGC for struct align_stack.
1360         (mark_align_stack): Delete.
1361         (gt_ggc_mp_align_stack): New.
1362         (init_pragma): Use canonical name for mark_align_stack.
1363         * c-decl.c: Include gt-c-decl.h.
1364         (struct binding_level): Use gengtype.
1365         (make_binding_level): Use GGC; handle the freelist here.
1366         (pop_binding_level): New.
1367         (pushlevel): Move code into make_binding_level.
1368         (push_label_level): Likewise.
1369         (poplevel): Move code into pop_binding_level.
1370         (pop_label_level): Likewise.
1371         (mark_binding_level): Delete.
1372         (gt_ggc_mp_binding_level): New.
1373         (c_init_decl_processing): Use canonical name for mark_binding_level.
1374         Add free_binding_level as deletable root.
1375         (mark_c_function_context): Use canonical name for mark_binding_level.
1376         * Makefile.in (c-decl.o): Add gt-c-decl.h.
1377         (c-pragma.o): Add gt-c-pragma.h.
1378         (GTFILES): Add c-decl.c and c-pragma.c.
1379         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1380
1381         * tree.c (struct type_hash): Use gengtype.
1382         (init_obstacks): Use canonical name for type_hash_mark.
1383         (type_hash_mark): Delete.
1384         Include gt-tree.h.
1385         * rtl.h (struct mem_attrs): Use gengtype.
1386         * optabs.h (struct optab): Use gengtype.
1387         * optabs.c (expand_binop): Squish signed/unsigned warning.
1388         (mark_optab): Make local, use canonical name, use autogenerated
1389         marker procedure.
1390         (init_optabs): Use canonical name for mark_optab.
1391         (new_optab): Use GGC to allocate optabs.
1392         * ggc.h: Delete mark_optab prototype.
1393         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1394         mem_attrs marker procedure.
1395         * gengtype.c (get_output_file): Include headers in gtype-desc.c
1396         explicitly rather than deducing them from file names.
1397         (write_gc_structure_fields): Handle arrays of structures.
1398         (main): Return non-zero exit code if errors occur during output.
1399         * emit-rtl.c (mem_attrs_mark): Delete.
1400         (init_emit_once): Use canonical name for mem_attrs marker procedure.
1401         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1402         (tree.o): Depend on gt-tree.h.
1403         (GTFILES): Add rtl.h, optabs.h, tree.c.
1404         (gt-tree.h): Add it to s-gtype rule.
1405
1406         * .cvsignore: Ignore gengtype flex/bison generated files.
1407         * Makefile.in (GGC_H): Add gtype-desc.h.
1408         (OBJS): Add gtype-desc.o.
1409         (GEN): Add gengtype.
1410         (STAGESTUFF): Add gengtype.
1411         (varasm.o): Add gt-varasm.h.
1412         (stmt.o): Add gt-stmt.h.
1413         (except.o): Add gt-except.h.
1414         (integrate.o): Add gt-integrate.h.
1415         (GTFILES): New.
1416         Add new rules for new files.
1417         * configure: Regenerate.
1418         * configure.in: Correct defaults.h paths.
1419         * emit-rtl.c (mark_sequence_stack): Delete.
1420         (mark_emit_status): Delete.
1421         (start_sequence): Allocate sequence structures using GGC.
1422         (end_sequence): Allocate sequence structures using GGC.
1423         * except.c: Use gengtype for various structures.  Include
1424         gt-except.h.
1425         * expr.c (mark_expr_status): Delete.
1426         * function.c: Use gengtype for various structures.  Include
1427         gt-function.h.
1428         (mark_function_status): Use standard gt_ggc names for marker functions.
1429         (ggc_mark_struct_function): Likewise.
1430         * function.h: Use gengtype for various structures.
1431         * gengtype-lex.l: New file.
1432         * gengtype-yacc.y: New file.
1433         * gengtype.c: New file.
1434         * gengtype.h: New file.
1435         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
1436         the standard names.  Remove some now-unnecessary prototypes.
1437         * integrate.c: Use gengtype for various structures.  Include
1438         gt-integrate.h.
1439         (mark_hard_reg_initial_vals): Delete.
1440         * integrate.h (mark_hard_reg_initial_vals): Delete.
1441         * stmt.c: Use gengtype for various structures.  Include
1442         gt-stmt.h.
1443         (mark_case_node): Delete.
1444         (mark_goto_fixup): Delete.
1445         (mark_stmt_status): Use standard gt_ggc names for marker functions.
1446         * system.h: Define GTY to empty.   In flex/bison files,
1447         don't poison malloc or realloc, instead just define them to
1448         xmalloc and xrealloc.
1449         * varasm.c: Use gengtype for various structures.  Include
1450         gt-varasm.h.  Use standard gt_ggc names for marker functions.
1451         (mark_pool_constant): Delete.
1452         (mark_varasm_status): Delete.
1453         (decode_rtx_const): #if 0 out non-typesafe hack.
1454
1455         * function.h (free_lang_status): Mark as obsolete.
1456         * function.c (free_lang_status): Mark as obsolete.
1457         * c-decl.c (push_c_function_context): Use GC to allocate and free
1458         struct language_function.
1459         (pop_c_function_context): Likewise.
1460         * c-common.c (mark_c_language_function): Mark struct
1461         language_function.
1462
1463         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1464         Document that the machine_function structures must be allocated
1465         using GC.  Update mark_machine_status documentation.
1466         * function.h: Don't declare free_machine_status.
1467         * function.c (free_machine_status): Don't define.
1468         (free_after_compilation): Don't call free_machine_status.
1469         (ggc_mark_struct_function): Mark f->machine.  Call
1470         mark_machine_status only on non-NULL pointers.
1471         * system.h: Poison free_machine_status.
1472         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1473         struct machine_function.
1474         (xtensa_free_machine_status): Delete.
1475         (override_options): Don't set free_machine_status.
1476         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1477         free_machine_status.
1478         (rs6000_init_machine_status): Use GC on struct machine_function.
1479         (rs6000_free_machine_status): Delete.
1480         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1481         machine_function.
1482         (ia64_mark_machine_status): Likewise.
1483         (ia64_free_machine_status): Delete.
1484         (ia64_override_options): Don't set free_machine_status.
1485         * config/i386/i386.c (override_options): Don't set
1486         free_machine_status.
1487         (ix86_init_machine_status): Use GC on struct machine_function.
1488         (ix86_mark_machine_status): Likewise.
1489         (ix86_free_machine_status): Delete.
1490         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1491         machine_function.
1492         (d30v_mark_machine_status): Likewise.
1493         (d30v_free_machine_status): Delete.
1494         (d30v_init_expanders): Don't set free_machine_status.
1495         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1496         machine_function.
1497         (arm_init_machine_status): Likewise.
1498         (arm_free_machine_status): Delete.
1499         (arm_init_expanders): Don't set free_machine_status.
1500         * config/alpha/alpha.c (override_options): Don't set
1501         free_machine_status.
1502         (alpha_init_machine_status): Use GC on struct machine_function.
1503         (alpha_mark_machine_status): Likewise.
1504         (alpha_free_machine_status): Delete.
1505
1506         * varasm.c (compare_constant): Fix typo.
1507
1508         * varasm.c: Don't include obstack.h.
1509         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1510         (struct rtx_const): Give substructures names, improve formatting.
1511         (struct constant_descriptor): Delete.
1512         (struct constant_descriptor_tree): New, based on constant_descriptor.
1513         (const_hash_table): Is a hash table of trees.
1514         (mark_const_hash_entry): Is used for hashes of trees.  Mark
1515         constant_descriptor_tree structure.
1516         (mark_const_str_htab_1): Mark deferred_string structure.
1517         (compare_constant): Rewrite to compare trees.
1518         (compare_constant_1): Delete.
1519         (record_constant): Delete.
1520         (record_constant_1): Delete.
1521         (output_constant_def): Use struct constant_descriptor_tree.
1522         Don't duplicate trees twice.
1523         (struct constant_descriptor_rtx): New.
1524         (struct pool_constant): Used for rtx constants.
1525         (init_varasm_status): Update for change to struct varasm_status.
1526         (mark_varasm_status): Likewise.
1527         (free_varasm_status): Delete.
1528         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1529         (record_constant_rtx): Likewise.
1530         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1531         (force_const_mem): Likewise.
1532         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1533         * function.c (free_after_compilation): Don't use free_varasm_status.
1534         * function.h: Don't prototype free_varasm_status.
1535
1536         * ggc-common.c (ggc_realloc): Handle X being NULL.
1537
1538         * ggc-common.c (ggc_realloc): New function.
1539         * ggc.h: Prototype it.
1540         * emit-rtl.c (free_emit_status): Delete.
1541         (init_emit): Allocate emit subarrays using GC.
1542         (gen_reg_rtx): Reallocate subarrays using GC.
1543         (init_emit): Use GC to allocate 'struct emit_status' and its
1544         subarrays.
1545         (mark_emit_status): Mark structure and its subarrays.
1546         * stmt.c (free_stmt_status): Delete.
1547         * expr.c (free_expr_status): Delete.
1548         * function.h: Remove prototypes for deleted functions.
1549         * function.c (free_after_compilation): Don't use deleted functions.
1550         Don't call free() on x_parm_reg_stack_loc.
1551         (free_after_parsing): Don't use free_stmt_status.
1552         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1553         (mark_function_status): Mark x_parm_reg_stack_loc.
1554
1555         * varasm.c (init_varasm_status): Use GC to allocate
1556         'struct varasm_status' and its fields x_const_rtx_hash_table
1557         and x_const_rtx_sym_hash_table.
1558         (mark_varasm_status): Mark them.
1559         (free_varasm_status): Use GC to free them.
1560         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1561         (mark_expr_status): Mark the structure itself.
1562         (free_expr_status): Use GC to free the structure.
1563         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1564         (mark_stmt_status): Mark the 'struct stmt_status' itself.
1565         (init_stmt_for_function): Allocate the structure for GC.
1566
1567         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1568         (equate_type_number_to_die): Likewise.
1569         * tree.h (TYPE_SYMTAB_DIE): New macro.
1570         (struct die_struct): Predeclare.
1571         (struct tree_type): Add field symtab.die.   Add a tag
1572         to the union type of field symtab.
1573
1574         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1575         'struct rtvec_def *', not 'struct rtvec_def'.
1576
1577         * function.h (original_arg_vector): Make a real rtvec.
1578         * function.c (ggc_mark_struct_function): Adjust.
1579         * integrate.c (expand_inline_function): Adjust.
1580
1581 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1582
1583         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1584         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1585         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1586         (TARGET_VERSION_CPU): Define according to the
1587         default target.
1588         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1589         TARGET_VERSION_CPU.
1590         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1591         if TARGET_SHMEDIA64.
1592         (LINK_DEFAULT_CPU_EMUL): Define according to the
1593         default target.
1594         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1595         (SUBTARGET_LINK_SPEC): Define.
1596         (LINK_SPEC): Use SH_LINK_SPEC.
1597         (ASM_SPEC): Remove.
1598         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1599         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1600         and TARGET_SHMEDIA64 which abort, for now.
1601         * config/sh/t-netbsd-sh5: New file.
1602         * config/sh/t-netbsd-sh5-32: New file.
1603         * config/sh/t-netbsd-sh5-64: New file.
1604
1605 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1606             Richard Henderson  <rth@redhat.com>
1607
1608         * config/alpha/alpha.c (reg_or_const_int_operand): New.
1609         (some_operand, input_operand): Accept CONST_VECTOR.
1610         (alpha_extra_constraint): Add 'W'.
1611         (alpha_expand_zap_mask): New.
1612         (alpha_expand_builtin_vector_binop): New.
1613         (enum alpha_builtin): New.
1614         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1615         (alpha_init_builtins, alpha_expand_builtin): New.
1616         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1617         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1618         (PREDICATE_CODES): Update.
1619         * config/alpha/alpha-protos.h: Update.
1620         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1621         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1622         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1623         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1624         (movv2si, movv2si_fix, movv2si_nofix): New.
1625         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1626         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1627         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1628         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1629         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1630         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1631         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1632         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1633         builtin_unpkbw, unpkbw): New.
1634         * doc/extend.texi (Alpha Built-in Functions): New.
1635
1636 2002-06-03  Richard Henderson  <rth@redhat.com>
1637
1638         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1639         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1640
1641 2002-06-03  Richard Henderson  <rth@redhat.com>
1642
1643         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1644
1645         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1646         (const0_operand): New.
1647         (reg_or_fp0_operand, fp0_operand): Remove.
1648         * config/alpha/alpha.h (PREDICATE_CODES): Update.
1649         * config/alpha/alpha-protos.h: Update.
1650         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1651         and fp0_operand with reg_or_0_operand and const0_operand.
1652
1653 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
1654
1655         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1656
1657 2002-06-03  Roger Sayle  <roger@eyesopen.com>
1658
1659         * gcse.c (cprop_jump): Use single_set to get the pattern
1660         from the setcc argument.
1661
1662 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
1663
1664         * diagnostic.h (diagnostic_count): Move from output_buffer to
1665         diagnostic_context.
1666         (diagnostic_kind_count): Adjust definition.
1667
1668 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
1669
1670         * except.c (except.c): Do not rebuild CFG.
1671         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1672         optimization.
1673
1674 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
1675
1676         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1677         * toplev.c: Include cfglahout.h
1678         * Makefile.in (toplev.c): Add dependnecy.
1679
1680 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1681
1682         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1683         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1684         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1685
1686 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
1687
1688         * config/ns32k/netbsd.h: Update copyright years.
1689         (TARGET_OS_CPP_BUILTINS): Define.
1690         (CPP_PREDEFINES): Remove.
1691         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1692         (TARGET_CPU_CPP_BUILTINS): Define.
1693
1694 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
1695
1696         * emit-rtl.c: Fix formatting.
1697         * errors.h: Likewise.
1698         * except.c: Likewise.
1699         * explow.c: Likewise.
1700         * expmed.c: Likewise.
1701         * expr.c: Likewise.
1702         * expr.h: Likewise.
1703
1704 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
1705
1706         * config/h8300/elf.h: Fix formatting.
1707         * config/h8300/rtems.h: Likewise.
1708
1709 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
1710
1711         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1712
1713 2002-06-02  Tom Tromey  <tromey@redhat.com>
1714
1715         * fixinc/fixincl.x: Rebuilt.
1716         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1717
1718 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1719
1720 config/i370:
1721         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1722         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1723         * mvs.h: Similarly.
1724         * oe.h: Similarly.
1725
1726 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
1727
1728         * final.c (final):  Allow notes to not have computed addresses;
1729         kill no longer needed STACK_REGS ifdef.
1730
1731 2002-06-02  Richard Henderson  <rth@redhat.com>
1732
1733         * gcse.c (bypass_conditional_jumps): Fix typo last change.
1734
1735 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1736
1737         * loop.c (emit_prefetch_instructions): Properly place the address
1738         computation.
1739
1740 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
1741
1742         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1743         (set_block_for_insn): Turn into macro.
1744         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1745         * cfglayout.c (insn_scopes): Kill.
1746         (scope_to_insns_initialize): Do not use insn_scopes.
1747         (scope_to_insns_finalize): Likewise.
1748         (duplicate_insn_chain): Likewise.
1749         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1750         * cfgrtl.c (basic_block_for_insn): Kill.
1751         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1752         (create_basic_block_structure): Use reorder_insns.
1753         (compute_bb_for_insn): Do not use basic_block_for_insn.
1754         (merge_blocks_nomove): Likewise.
1755         (update_bb_for_insn): Likewise.
1756         (verify_flow_info): Likewise.
1757         (set_block_for_insn): Kill.
1758         * combine.c (try_combine): Update gen_rtx_INSN call.
1759         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1760         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1761         scopes and BBs.
1762         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1763         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1764         Clear BB.
1765         (emit_insns_after): Simplify.
1766         (emit_copy_of_insn_after): Copy scope.
1767         * final.c (final_start_function): Lower scopes.
1768         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1769         * integrate.c (copy_insn_list): Cope scopes.
1770         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1771         * loop.c (loop_optimize): Do not care block notes.
1772         * print-rtl.c (print_rtx): Print BB.
1773         * recog.c (apply_change_group): Simplify.
1774         * rtl.c (copy_rtx): Handle 'B'.
1775         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1776         * rtl.h (Field accessors): Update indexes.
1777         * sched-ebb.c (schedule_ebbs): Do not lower notes.
1778         * sched-rgn.c (schedule_insns): Likewise.
1779         * toplev.c (rest_of_compilation): Lower notes.
1780         * unroll.c (unroll_loop): Do not care scoping notes.
1781         (copy_loop_body): Copy scopes.
1782
1783 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1784
1785 config/h8300:
1786         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1787         SUBTARGET_SPEC.
1788         * rtems.h: Similarly.
1789         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1790         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1791         (TARGET_CPU_CPP_BUILTINS): Use.
1792
1793 2002-06-02  Richard Henderson  <rth@redhat.com>
1794
1795         * alias.c: Include target.h.
1796         (mark_constant_function): Use targetm.binds_local_p instead
1797         of checking TREE_PUBLIC ourselves.
1798         * Makefile.in (alias.o): Add TARGET_H.
1799
1800 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1801
1802         * c-lex.c: Update copyright and file description.
1803
1804 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1805
1806         * config/fr30/fr30.h: Update to new CPP macros.
1807
1808 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1809
1810         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
1811
1812 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1813             Zack Weinberg <zack@codesourcery.com>
1814
1815         * c-common.c (c_common_init): Override cpplib's default
1816         warn_long_long setting.
1817         * c-lex.c (lex_number): Replace with interpret_integer,
1818         interpret_float, narrowest_unsigned_type and
1819         narrowest_signed_type, taking advantage of the new
1820         cpplib functionality.
1821         * cpperror.c (_cpp_begin_message): If a warning is turned
1822         into an error, avoid printing "warning:".
1823         * cppexp.c (cpp_num_sign_extend): New.
1824         * cppinit.c: Update comment.
1825         * cpplib.h (cpp_num_sign_extend): New.
1826         * tree.h: Update comment.
1827
1828 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
1829
1830         * diagnostic.h (struct diagnostic_context):  Add new member
1831         internal_error.
1832         (internal_error_function): Remove declaration.
1833         * diagnostic.c (internal_error_function): Remove definition..
1834         (internal_error): Adjust use.
1835
1836 2002-06-02  Richard Henderson  <rth@redhat.com>
1837
1838         * rtl.h (CC0_P): New.
1839         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
1840         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
1841         (bypass_block): Save old dest block for dump text.
1842         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
1843         Allow only true SET insns, not single_set.
1844
1845 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
1846
1847         * diagnostic.c (diagnostic_finish): Rename to output_flush.
1848         (clear_disgnostic_info): Rename to output_clear_data.  Use false
1849         instead of 0 for boolean value.
1850         Adjust function call throughout.
1851
1852 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
1853
1854         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
1855         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
1856
1857 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1858
1859         * d30v.h (CPP_PREDEFINES): Replace with
1860         (TARGET_CPU_CPP_BUILTINS): New.
1861
1862 2002-06-02  Roger Sayle  <roger@eyesopen.com>
1863
1864         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
1865
1866 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
1867
1868         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
1869
1870 2002-06-02  Richard Henderson  <rth@redhat.com>
1871
1872         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
1873
1874 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1875
1876         Support for C++ constructors/destructors.
1877         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
1878         instead of looping if main() returns.
1879         (asm_file_start): Output global symbols that cause .data and .bss
1880         initialization code to be linked in, unconditionally for now.
1881         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
1882         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
1883         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1884         (LIBSTDCXX): New.
1885         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
1886         (__tablejump__): New.
1887         (__do_copy_data, __do_clear_bss): New.
1888         (__do_global_ctors, __do_global_dtors): New.
1889         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
1890         _ctors, _dtors.
1891
1892 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1893
1894         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
1895         (CPP_SPEC, CPP_PREDEFINES): Kill.
1896         * c4x/rtems.h (CPP_PREDEFINES): Kill.
1897         (TARGET_OS_CPP_BUILTINS): New.
1898
1899 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
1900
1901         * Makefile.in (tracer.o): New.
1902         * params.def (TRACER_*): New options.
1903         * rtl.h (tracer): Declare.
1904         * timevar.def (TV_TRACER): New.
1905         * toplev.c (dump_file_index): Add DFI_tracer.
1906         (dump_file_info): Add tracer.
1907         (flag_tracer): New.
1908         (lang_indepdenent_options): Add tracer.
1909         (rest_of_compilation): Call tracer.
1910         * tracer.c: New file.
1911         * invoke.texi (-ftracer): Document.
1912         (--param tracer-*): Document.
1913
1914 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
1915
1916         * tree-inline.c (expand_call_inline): Make the statement
1917         expression we generate have a COMPOUND_STMT.
1918
1919 2002-06-01  Roger Sayle  <roger@eyesopen.com>
1920
1921         * gcse.c (cprop_cc0_jump): Function deleted.
1922         (cprop_jump): Take an additional argument which is the possibly
1923         NULL cc setting insn immediately before the conditional jump.
1924         When a MODE_CC set is present, substitute it into the JUMP_INSN
1925         before attempting the constant propagation.
1926         (cprop_insn):  Recognize cc setters followed by conditional jumps
1927         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
1928         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
1929         (find_bypass_set): New function based upon find_avail_set used by
1930         cprop, but finds constant expressions available at the end of
1931         basic blocks.
1932         (bypass_block): New function.  Given a basic block that begins
1933         with a conditional jump and multiple incoming edges, perform
1934         the jump bypass optimization.
1935         (bypass_conditional_jumps): New function.  Call bypass_block with
1936         each suitable basic block in the CFG using a simple single pass.
1937
1938 2002-06-01  Roger Sayle  <roger@eyesopen.com>
1939
1940         * tree.c (real_minus_onep): New function to test for -1.0.
1941         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
1942
1943 2002-06-01  Roger Sayle  <roger@eyesopen.com>
1944
1945         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
1946         and "!p && !q" into "(p|q) == 0" under suitable conditions.
1947
1948 2002-06-01  Andreas Jaeger  <aj@suse.de>
1949
1950         * cppexp.c (cpp_classify_number): Cast precission to int for
1951         correct printf format.
1952
1953 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1954
1955         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
1956         expected, but don't really exist: atmega83, atmega85, attiny10.
1957         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
1958         emulations for all devices.
1959         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
1960         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
1961
1962 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
1963
1964         * config/h8300/h8300-protos.h: Add a prototype for
1965         h8300_shift_needs_scratch_p.
1966         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
1967         * config/h8300/h8300.h (OK_FOR_R): New.
1968         (OK_FOR_S): Likewise.
1969         (OK_FOR_T): Likewise.
1970         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
1971         * config/h8300/h8300.md (anonymous shift patterns): Use
1972         constraints R, S, and T.
1973
1974 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1975
1976         * basic-block.h (struct basic_block_def): New field loop_father.
1977         (BB_VISITED): New flag.
1978         (struct loop): New field pred, removed field shared.
1979         (struct loops): New field parray.
1980         (LOOP_EXITS_DOMS): Removed.
1981         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
1982         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
1983         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
1984         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
1985         verify_loop_structure): Declare.
1986         * cfg.c (entry_exit_blocks): Initialize loop_father field.
1987         * cfganal.c (dfs_enumerate_from): New function.
1988         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
1989         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1990         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
1991         flow_loop_dump, flow_loops_dump, flow_loops_free,
1992         flow_loop_tree_node_add, flow_loop_level_compute,
1993         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
1994         flow_loop_outside_edge_p): Modified for new infrastructure.
1995         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
1996         redirect_edge_with_latch_update, flow_loop_free): New static functions.
1997         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
1998         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
1999         find_common_loop, verify_loop_structure, loop_latch_edge,
2000         loop_preheader_edge): New functions.
2001         (flow_loops_cfg_dump): Do not show dominators, as this information
2002         does not remain up to date long.
2003         (flow_loops_find): Store results in new format.
2004         * predict.c (propagate_freq, estimate_probability,
2005         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
2006         infrastructure.
2007
2008 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
2009
2010         * except.c (nothrow_function_p): Walk epilogue delay list
2011         checking the insn, not the chain for potential throws.
2012
2013 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
2014
2015         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
2016         (install): Refer to install-cpp directly.
2017         (uninstall-cpp): Folded into uninstall rule.
2018         * configure.in: Delete all code relating to --disable-cpp.
2019         * configure: Regenerate.
2020         * config/t-install-cpp: Delete.
2021
2022 2002-05-31  Richard Henderson  <rth@redhat.com>
2023
2024         * configure.in (HAVE_AS_TLS): Add alpha tests.
2025         * configure: Rebuild.
2026         * config/alpha/alpha.c (TARGET_AS_TLS): New.
2027         (alpha_tls_size, alpha_tls_size_string): New.
2028         (overide_options): Set it.  Always install machine_status hooks.
2029         (input_operand): Accept got tls predicates.
2030         (local_symbol_p): Merge into ...
2031         (local_symbolic_operand): ... here.  Reject tls symbols.
2032         (global_symbolic_operand): Likewise.
2033         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
2034         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
2035         (tp16_symbolic_operand, tp32_symbolic_operand): New.
2036         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
2037         (alpha_encode_section_info): Handle TLS symbols.
2038         (alpha_strip_name_encoding): Likewise.
2039         (alpha_legitimate_address_p): Likewise.
2040         (alpha_legitimize_address): Likewise.
2041         (alpha_expand_mov): Early exit to avoid nop moves.
2042         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
2043         (alpha_init_machine_status, alpha_mark_machine_status,
2044         alpha_free_machine_status): Always define.
2045         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
2046         (print_operand, print_operand_address): Add TLS relocs.
2047         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
2048         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
2049         (TARGET_SWITCHES): Add -mtls-kernel.
2050         (alpha_tls_size, alpha_tls_size_string): New.
2051         (TARGET_OPTIONS): Add -mtls-size=.
2052         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2053         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
2054         (ASM_OUTPUT_LABELREF): Skip %.
2055         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
2056         (PREDICATE_CODES): Update.
2057         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
2058         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
2059         UNSPEC_TP, UNSPECV_SET_TP): New.
2060         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
2061         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
2062         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
2063         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
2064         (call_value_osf_2_er): Accept anything as op4.
2065         * config/alpha/alpha-protos.h: Update.
2066         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
2067
2068 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
2069
2070         * cppinit.c (append_include_chain): Always pay attention to
2071         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
2072         marker on argument.
2073
2074 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
2075
2076         * target.h: Fix formatting.
2077         * timevar.h: Likewise.
2078         * tlink.c: Likewise.
2079         * toplev.c: Likewise.
2080         * toplev.h: Likewise.
2081         * tree.c: Likewise.
2082         * tree-dump.h: Likewise.
2083         * tree.h: Likewise.
2084         * tree-inline.h: Likewise.
2085         * unroll.c: Likewise.
2086         * unwind-dw2.c: Likewise.
2087         * unwind-dw2-fde.c: Likewise.
2088         * unwind-dw2-fde-glibc.c: Likewise.
2089         * unwind-dw2-fde.h: Likewise.
2090         * unwind.h: Likewise.
2091         * unwind-sjlj.c: Likewise.
2092         * varasm.c: Likewise.
2093         * varray.h: Likewise.
2094         * vmsdbg.h: Likewise.
2095         * vmsdbgout.c: Likewise.
2096         * xcoffout.h: Likewise.
2097
2098 2002-05-31  Igor Shevlyakov <igor@microunity.com>
2099
2100         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
2101         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
2102
2103 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
2104
2105         * gcc.c (cpp_unique_options): Remove "-d" options.
2106         (cpp_debug_options): New spec string.
2107         (default_compilers): Use it.
2108         * objc/lang-specs.h: Likewise.
2109
2110 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
2111
2112         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
2113         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
2114         * gcc/mklibgcc.in: Likewise.
2115         * gcc/config/arc/t-arc: Likewise.
2116         * gcc/configure.in: Likewise.
2117         * gcc/configure: Regenerate.
2118
2119 2002-05-31  Stan Shebs  <shebs@apple.com>
2120             Turly O'Connor  <turly@apple.com>
2121
2122         * c-decl.c (struct binding_level): Change int field n_incomplete
2123         to tree list incomplete_list.
2124         (clear_binding_level): Init field with NULL.
2125         (pushdecl): Add incomplete type to list.
2126         (mark_binding_level): Mark the incomplete list.
2127         (finish_struct): Scan the incomplete list for types instead
2128         of all decls in the current binding level.
2129
2130 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2131
2132         * pa.c (output_millicode_call): Add missing '%' characters.
2133         (output_call): Likewise.
2134
2135 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
2136
2137         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
2138         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2139
2140 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
2141
2142         * varasm.c (mark_constant_pool): Walk epilogue delay list
2143         checking the insn, not the chain for potential constants.
2144
2145 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
2146
2147         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
2148
2149 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
2150
2151         * i386.c (classify_argument): Properly handle base types.
2152
2153         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
2154         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
2155         registers.
2156
2157 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2158
2159         * gcse.c (gcse_emit_move_after): New.
2160         (pre_delete, hoist_store): Use it.
2161
2162         * reload1.c (emit_input_reload_insns): Use constrain_operands
2163         instead of constraint_accepts_reg_p to verify optimization.
2164         (constraint_accepts_reg_p): Kill
2165
2166         * reload1.c (reload_cse_delete_noop_set): Kill.
2167         (reload_cse_simplify): use delte_insn_and_edges.
2168
2169 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2170
2171         * cfgloop.c (flow_loops_find): Initialize first and last fields
2172         correctly.
2173
2174 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
2175
2176         * c-common.c (builtin_define_std): Correct logic.
2177
2178 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2179
2180         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
2181         (output_call): Likewise.
2182
2183 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2184
2185         * pa.c: Move output.h include after tree.h include.
2186         (pa_asm_output_mi_thunk): Constify identifier lab.
2187
2188 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
2189
2190         * config/ns32k/ns32k.h: Define named constants for the
2191         bits in target_flags and use them.
2192         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2193
2194 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2195
2196         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2197         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2198         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2199         default scheduling model.
2200         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2201         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2202         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2203         * doc/install.texi (hppa*-*-*): Document default scheduling.
2204
2205 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2206
2207         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2208
2209 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
2210
2211         * config.gcc (ns32k-*-netbsd*): Set tm_file to
2212         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2213         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2214         netbsd.h, or netbsd-aout.h.
2215
2216 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
2217
2218         * longlong.h (count_trailing_zeros): Add missing \, and clean up
2219         whitespace in __ns32000__ case.
2220
2221 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
2222
2223         * expr.c (expand_expr): Output partially zeroed out vectors with
2224         output_constant_def.
2225
2226 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
2227
2228         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2229         (sh-*-netbsdelf*)
2230         (shl*-*-netbsdelf*): New targets.
2231         * config/sh/netbsd-elf.h: New file.
2232         * config/sh/t-netbsd: New file.
2233
2234 2002-05-30  Richard Henderson  <rth@redhat.com>
2235             Eric Botcazou  <ebotcazou@multimania.com>
2236
2237         PR optimization/6822
2238         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2239         to unsigned int for op1 comparisons.  Use gen_int_mode.
2240
2241 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
2242
2243         * expmed.c (const_mult_add_overflow_p): New.
2244         * expr.h: Declare it.
2245         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2246         Don't eliminate the biv if the giv has a constant multiplier and
2247         the rhs argument of the comparison does satisfy the predicate.
2248         Use expand_mult_add to compute the replacement constant.
2249
2250 2002-05-30  Osku Salerma  <osku@iki.fi>
2251
2252         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2253         (c_common_get_alias_set): Handle it.
2254         * doc/extend.texi: Document it.
2255
2256 2002-05-30  Richard Henderson  <rth@redhat.com>
2257
2258         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2259         * toplev.c (process_options): Don't check it.
2260         * doc/tm.texi: Don't document it.
2261         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2262         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2263         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2264         frame pointer optimization if current_function_profile.
2265
2266 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
2267
2268         * langhooks.c: Fix formatting.
2269         * langhooks.h: Likewise.
2270         * lcm.c: Likewise.
2271         * libgcc2.c: Likewise.
2272         * lists.c: Likewise.
2273         * local-alloc.c: Likewise.
2274         * loop.c: Likewise.
2275         * loop.h: Likewise.
2276
2277 2002-05-30  Marc Espie <espie@openbsd.org>
2278
2279         * config.gcc (sparc64-*-openbsd*): New.
2280         * config/sparc/openbsd1-64.h: New.
2281         * config/sparc/openbsd64.h: New.
2282
2283 2002-05-30  Jeff Law <law@redhat.com>
2284
2285         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
2286         a dead insn with a REG_RETVAL note when the entire libcall is not
2287         dead and remove the associated REG_LIBCALL note at the same time.
2288
2289 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
2290
2291         * lcm.c (output.h): #include.
2292         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2293         as an ordinary block.
2294         (optimize_mode_switching): Don't pretend that the exit block is
2295         an ordinary block, or handle sucessors of entry block specially.
2296         Instead, split edges from entry block and to exit block, and
2297         put a computing definition on the thus gained post-entry-block,
2298         and a need on the pre-exit-block.
2299
2300 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
2301
2302         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2303         * rtl.texi: Document 'B'
2304
2305 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
2306
2307         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2308         at run-time.
2309         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2310
2311 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
2312
2313         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2314         const0_rtx instead of NULL_RTX when in error.
2315         (altivec_expand_abs_builtin): Same.
2316         (rs6000_expand_binop_builtin): Same.
2317         (altivec_expand_predicate_builtin): Same.
2318         (altivec_expand_stv_builtin): Same.
2319         (rs6000_expand_ternop_builtin): Same.
2320         (altivec_expand_builtin): Same.
2321
2322 2002-05-29  David S. Miller  <davem@redhat.com>
2323
2324         * rtl.h (clear_emit_caches): Delete.
2325         * integrate.c (output_inline_function): Don't call it.
2326         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2327         (clear_emit_caches): Delete definition.
2328         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2329
2330 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
2331
2332         * config/mmix/mmix.c: Include real.h.
2333         (mmix_constant_address_p): Remove redundant test before switch.
2334
2335 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2336
2337         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2338         only if not already defined.
2339
2340 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
2341
2342         * config/h8300/h8300-protos.h: Remove prototypes for
2343         ok_for_bclr and small_power_of_two.
2344         * config/h8300/h8300.c (small_power_of_two): Remove.
2345         (ok_for_blcr): Likewise.
2346         (fix_bit_operand): Make WHAT deal with an integer instead of a
2347         constraint character.
2348         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2349         (CONST_OK_FOR_P): Likewise.
2350         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2351         CONST_OK_FOR_P any more.
2352         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2353         of fix_bit_operand.
2354         (iorqi3): Likewise.
2355         (xorqi3): Likewise.
2356
2357 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2358
2359         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2360         (CPP_PREDEFINES): Make sure this is undefined.
2361         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2362         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
2363         or -U__MIPSEB__ before defining one or the other.  Instead,
2364         use %(subtarget_endian_default) if neither -EB nor -EL are
2365         specified.
2366         (SUBTARGET_EXTRA_SPECS): Define.
2367         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
2368         %(netbsd_cpp_spec).
2369
2370 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
2371
2372         * doc/md.texi (Patterns): Note pattern condition pitfall
2373         for unnamed insn.
2374
2375 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
2376
2377         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2378         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
2379         ternary operations from here...
2380         (rs6000_expand_builtin): ...to here.
2381         New argument expandedp.
2382         Change all instances of altivec_expand_binop_builtin to
2383         rs6000_expand_binop_builtin.
2384         (altivec_expand_unop_builtin): Rename to
2385         rs6000_expand_unop_builtin.
2386         (altivec_expand_binop_builtin): Rename to
2387         rs6000_expand_binop_builtin.
2388         (altivec_expand_ternop_builtin): Rename to
2389         rs6000_expand_ternop_builtin.
2390
2391 2002-05-29  Richard Henderson  <rth@redhat.com>
2392
2393         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2394         (TARGET_BI_ARCH): Likewise.
2395         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2396         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2397         (TARGET_64BIT_DEFAULT): Default to 0.
2398         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2399
2400 2002-05-29  Richard Henderson  <rth@redhat.com>
2401
2402         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2403         (get_pc_thunk_name): New.
2404         (output_set_got): Use it.
2405         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2406         into linkonce sections.
2407
2408 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2409
2410         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2411         (CPP_PREDEFINES): Make sure this is undefined.
2412         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2413         (CPP_SUBTARGET_SPEC): Don't provide different versions for
2414         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
2415         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2416         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
2417         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2418         (CPP_PREDEFINES): Make sure this is undefined.
2419         (SUBTARGET_EXTRA_SPECS): Define.
2420         (CPP_SPEC): Use %(netbsd_cpp_spec).
2421
2422 2002-05-29  Jeff Law <law@redhat.com>
2423
2424         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2425
2426         * flow.c (propagate_one_insn): Do not remove a dead insn if it
2427         contains a REG_RETVAL note.
2428
2429         * haifa-sched (sched_analyze): Remove another useless clearing
2430         of SCHED_GROUP_P I missed yesterday.
2431
2432         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2433         * pa.c (pa_asm_output_mi_thunk): New function.
2434         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2435
2436 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2437             Marek Michalkiewicz  <marekm@amelek.gda.pl>
2438
2439         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2440         (avr_asm_only_p): Make non-static.
2441         (enum avr_arch): Remove.
2442         (avr_arch_types): New.
2443         (avr_mcu_types): Update.
2444         (avr_override_options): Use avr_arch_types table instead of switch.
2445         * avr.h (CPP_PREDEFINES): Die.
2446         (avr_base_arch_macro, avr_extra_arch_macro): New.
2447         (TARGET_CPU_CPP_BUILTINS): New.
2448         (CPP_SPEC, EXTRA_SPECS): Simplify.
2449         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2450         CPP_AVR5_SPEC): Die.
2451
2452 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2453
2454         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2455         NETBSD_OS_CPP_BUILTINS_AOUT.
2456         (SUBTARGET_EXTRA_SPECS): Define.
2457         (CPP_SPEC): Use %(netbsd_cpp_spec).
2458
2459 2002-05-29  Richard Henderson  <rth@redhat.com>
2460
2461         * config/i386/i386.c (ix86_output_function_epilogue): New.
2462         (TARGET_ASM_FUNCTION_EPILOGUE): New.
2463         (pic_label_name): Remove.
2464         (pic_labels_used): New.
2465         (ix86_asm_file_end): Emit one pc load stub for each register used.
2466         (output_set_got): Generate deep pc load to any register.
2467         (ix86_select_alt_pic_regnum): New.
2468         (ix86_save_reg): Don't save pic register if we can find a valid
2469         call-clobbered replacement.
2470         (ix86_expand_prologue): If we found a valid replacement, renumber
2471         pic_offset_table_rtx.
2472         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2473         pic_offset_table_rtx after reload.
2474         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2475         * config/i386/i386.md (set_got): Make insn, not expander.
2476         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2477
2478 2002-05-29  Richard Henderson  <rth@redhat.com>
2479
2480         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2481         alignment for alloca.
2482
2483 2002-05-29  Richard Henderson  <rth@redhat.com>
2484
2485         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2486         (print_operand_address): Only add rip for symbolic addresses
2487         for which we do not have another relocation type.
2488
2489 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2490
2491         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2492         (EXTRA_SPECS): Add netbsd_cpp_spec.
2493         (CPP_SPEC): Use %(netbsd_cpp_spec).
2494         (CPP_PREDEFINES): Remove.
2495         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2496         (EXTRA_SPECS): Define.
2497         (CPP_SPEC): Use %(netbsd_cpp_spec).
2498         (CPP_PREDEFINES): Remove.
2499
2500 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2501
2502         PR preprocessor/6844
2503         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2504         NUL.
2505
2506 2002-05-29  Eric Christopher  <echristo@redhat.com>
2507
2508         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2509         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2510
2511 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
2512
2513         * config/fr30/fr30.md: Remove previous restriction on splits.
2514         Enforce conformance through gen_lowpart and cont_int_operand.
2515         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
2516         as the assembler does not support ".bss".
2517
2518 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2519
2520         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2521         (CPP_PREDEFINES): Remove.
2522         (SUBTARGET_EXTRA_SPECS): Define.
2523         (CPP_SPEC): Use %(netbsd_cpp_spec).
2524         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2525         (CPP_PREDEFINES): Remove.
2526         (SUBTARGET_EXTRA_SPECS): Define.
2527         (CPP_SPEC): Use %(netbsd_cpp_spec).
2528         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2529         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2530         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2531         Add netbsd_cpp_spec.
2532         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2533
2534 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2535             Zack Weinberg <zack@codesourcery.com>
2536
2537         * cppexp.c (cpp_num): Move to cpplib.h.
2538         (CPP_ERROR): Remove.
2539         (interpret_float_suffix, interpret_int_suffix): New.
2540         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2541         (cpp_classify_number, cpp_interpret_integer): New.
2542         (interpret_number): Remove.
2543         (eval_token): Update to use new routines.
2544         * cpphash.h (cpp_num_part): Move to cpplib.h.
2545         * cppinit.c (cpp_post_options): Set warn_long_long.
2546         * cpplib.h (struct cpp_options): Add warn_long_long.
2547         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2548         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2549         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2550         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2551         cpp_interpret_integer): New.
2552
2553 2002-05-29  Joel Sherrill <joel@OARcorp.com>
2554
2555         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2556
2557 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
2558
2559         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2560         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2561         (CPP_SUBTARGET_SPEC): Define.
2562         (SUBTARGET_EXTRA_SPECS): Define.
2563         (CPP_SPEC): Remove.
2564
2565 2002-05-29  Chris Lattner  <sabre@nondot.org>
2566
2567         * ssa.c (rename_insn_1): Rename uses of undefined registers to
2568         prevent confusion if/when the register is defined.
2569
2570 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
2571
2572         PR target/6838
2573         * config/cris/cris.md: Fix typos and thinkos in comments.
2574         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2575         second alternative.
2576         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2577         ("*mov_sideqi_mem"): Similar, but for operand 3.
2578         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2579         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2580         Remove spurious mode specifier on operand 2.
2581
2582 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
2583
2584         * config/h8300/h8300-protos.h: Remove the prototype for
2585         o_operand.
2586         Add prototypes for single_one_operand and single_zero_operand.
2587         * config/h8300/h8300.c (o_operand): Remove.
2588         (single_one_operand): New.
2589         (single_zero_operand): Likewise.
2590         (print_operand): For 'V' operand, and the operand with 0xff.
2591         For 'V' and 'W' operands, do not and the bit position with 7.
2592         * config/h8300/h8300.md (various anonymous patterns): Replace
2593         use of exact_log2 with single_one_operand/single_zero_operand.
2594
2595 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
2596
2597         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2598
2599 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
2600
2601         * config/s390/s390.c (legitimate_pic_operand_p): Do not
2602         accept symbolic LARL operands.
2603         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
2604         epilogue insns.
2605
2606 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
2607
2608         * config/s390/s390.md (cmpstr_64/31): Mark whole
2609         input registers as used.
2610
2611 2002-05-28  Richard Henderson  <rth@redhat.com>
2612
2613         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2614         not current_function_uses_pic_offset_table and
2615         current_function_uses_const_pool; examine current_function_profile.
2616         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
2617         input to blockage if needed.
2618         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2619         (legitimize_pic_address): Likewise.  Set regs_ever_live for
2620         pic_offset_table_rtx when invoked during reload.
2621         * config/i386/i386.h (FINALIZE_PIC): Remove.
2622         * config/i386/i386.md (tablejump): Reformat.  Do not set
2623         current_function_uses_pic_offset_table.
2624         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2625         (blockage): Accept anything as operand 0.
2626
2627 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
2628
2629         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2630         common CPP built-ins for all NetBSD a.out targets.
2631         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2632         common CPP built-ins for all NetBSD ELF targets.
2633         * config/netbsd.h: Add missing notice.
2634         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2635         for all NetBSD targets.
2636         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2637         for all NetBSD targets using an LP64 code model.
2638         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2639         NetBSD targets.
2640
2641 2002-05-28  Richard Henderson  <rth@redhat.com>
2642
2643         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2644         update if UPDATE_LIFE_LOCAL.
2645
2646 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2647
2648         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2649
2650 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
2651                           Jason R. Thorpe <thorpej@wasabisystems.com>
2652
2653         config/sh reorganization to factor out endianness and coff:
2654
2655         * config/sh/little.h: New file.
2656         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2657         defined, define to 0 to select big-endian.
2658         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
2659         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2660         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2661         * config/sh/t-be: New file.
2662         * config/sh/t-le: New file.
2663
2664         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2665         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2666         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2667         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2668         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2669         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2670         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2671         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2672         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2673         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2674         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2675         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2676         (LINK_SPEC): Define to SH_LINK_SPEC.
2677         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2678         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2679         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2680         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2681         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2682         * config/sh/coff.h: New file.
2683         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2684         (TARGET_OBJFMT_CPP_BUILTINS): Define.
2685         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2686         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2687         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2688         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2689         (PTRDIFF_TYPE): Likewise.
2690         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2691         (CPP_PREDEFINES): Don't define.
2692         (TARGET_OBJFMT_CPP_BUILTINS): Define.
2693         (LINK_SPEC): Define to SH_LINK_SPEC.
2694         (LINK_EMUL_PREFIX): Redefine.
2695         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2696         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2697         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2698         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2699         (TARGET_OS_CPP_BUILTINS): Define.
2700         (TARGET_DEFAULT): Redefine.
2701         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2702         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2703         (LINK_SPEC): Don't redefine.
2704         (LINK_DEFAULT_CPU_EMUL): Redefine.
2705         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2706         * sh.c (sh_asm_named_section): Don't declare / define.
2707         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2708         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2709         (sh64-*-elf* tm_file): Likewise.
2710         (sh-*-rtemself* tm_file): Likewise.
2711         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
2712         (sh-*-linux* tmake_file): Add sh/t-le.
2713         (sh-*-rtems* tm_file): Add sh/coff.h
2714         (sh-*-* tm_file): Likewise.
2715
2716 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
2717
2718         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2719         CONSTANT_POOL_ADDRESS_P.
2720
2721         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2722
2723 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
2724             Jeff Law <law@redhat.com>
2725
2726         * optabs.c (expand_binop): Fix nwords sign warnings.
2727         generate pseudo for add_optab.
2728
2729         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2730         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2731
2732 2002-05-28      Marc Espie <espie@openbsd.org>
2733
2734         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
2735         inherited from gas.h.
2736         (ASM_QUAD):  Undef.  OpenBSD does not support it.
2737
2738 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
2739
2740         * doc/install.texi (binaries): Change mingw binaries
2741         link to www.mingw.org.
2742
2743 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2744
2745         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2746
2747 2002-05-28  Richard Henderson  <rth@redhat.com>
2748
2749         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2750         bottom alignment for leaf functions.
2751
2752 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
2753
2754         * config/pa/milli32.S, config/pa/lib1funcs.asm,
2755         config/sparc/sol2-g1.asm: Delete unused files.
2756
2757 2002-05-28  Richard Henderson  <rth@redhat.com>
2758
2759         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2760
2761         * flow.c (calculate_global_regs_live): Rename call_used to
2762         invalidated_by_call.  Initialize from regs_invalidated_by_call
2763         instead of call_used_regs.
2764
2765         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2766         DECL_EXTERNAL.
2767
2768 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
2769
2770         * tree.h: Don't include real.h.
2771         Forward-declare struct realvaluetype.
2772         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2773         contain it.
2774         (TREE_REAL_CST_PTR): New accessor.
2775         (TREE_REAL_CST): Update.
2776         * real.h: Include machmode.h.
2777         (realvaluetype): Make it struct realvaluetype, not a typedef.
2778         (build_real): Prototype here.
2779
2780         * tree.c: Include real.h.
2781         (build_real): Allocate the REAL_VALUE_TYPE as a separate
2782         object in GC memory, set TREE_REAL_CST_PTR to point to it.
2783         (build_real_from_int_cst): Use build_real.
2784         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2785         REAL_CST.
2786
2787         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2788         fold-const.c, print-tree.c, real.c: Include real.h.
2789         * Makefile.in: Update dependency lists.
2790
2791 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2792
2793         * basic-block.h (last_basic_block): Declare.
2794         (expunge_block_nocompact): Declaration removed.
2795         (compact_blocks): Declare.
2796         * cfg.c (last_basic_block): New variable.
2797         (expunge_block_nocompact): Removed.
2798         (expunge_block): Do not compact basic blocks.
2799         (compact_blocks): New.
2800         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
2801         longer change.
2802         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
2803         last_basic_block.
2804         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
2805         real positions of blocks.
2806         (delete_unreachable_blocks): Simplified -- quadratic behavior now
2807         cannot occur.
2808         (cleanup_cfg): Compact blocks.
2809         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
2810         basic_block_info varray.
2811         (flow_delete_block): Comment update.
2812         (back_edge_of_syntactic_loop_p): Modify position check code.
2813         (verify_flow_info): Update checking.
2814         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
2815         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2816         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
2817         indices no longer change.
2818         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
2819         last_basic_block.
2820         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
2821         * profile.c (branch_prob): Compact blocks.
2822         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
2823         last_basic_block.
2824
2825 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
2826
2827         * config/h8300/h8300.md (two anonymous patterns): New.
2828
2829 2002-05-28  David S. Miller  <davem@redhat.com>
2830
2831         * config/sparc/sparc.md (cpu): Tidy.
2832         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
2833         'trap'.
2834         (in_call_delay): Delete reference to 'return' type.
2835         (eligible_for_return_delay, in_return_delay, define_delay
2836         referencing those): Delete.
2837         (rest of file): Use new type attributes as appropriate.
2838         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
2839         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
2840         * config/sparc/ultra1_2.md (us1_single): New reservation.
2841         (us1_ialuX): Likewise.
2842         * config/sparc/ultra3.md (us3_single): Likewise.
2843         (us3_ialuX): Likewise.
2844         (us3_imul, us3_idiv): Tweak.
2845
2846 2002-05-28  Richard Henderson  <rth@redhat.com>
2847
2848         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
2849         STRING_CST.
2850
2851 2002-05-28  Richard Henderson  <rth@redhat.com>
2852
2853         * config.gcc: Obsolete mn10200.
2854
2855 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
2856
2857         * cppexp.c (interpret_number): Optimize for single-digit
2858         and less-than-half-precision cases.
2859         (num_trim, num_positive, num_div_op): Cast constants.
2860
2861 2002-05-27  Bo Thorsen  <bo@suse.de>
2862
2863         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
2864         3.1 branch. The file was made by Jakub Jelinek.
2865         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
2866         support so multilib doesn't break. And don't define this at all
2867         when -Dinhibit_libc is used.
2868         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
2869         * config/i386/t-linux64: Implement full multilib support. Patch
2870         originally done by Andreas Jaeger and Jakub Jelinek.
2871
2872 2002-05-27  Roger Sayle  <roger@eyesopen.com>
2873
2874         * c-common.c: Add support for __attribute__((nothrow)) to specify
2875         that a function cannot throw an exception (using TREE_NOTHROW).
2876         (handle_nothrow_attribute): New function to process this attribute.
2877
2878         * doc/extend.texi: Document the new nothrow function attribute.
2879
2880 2002-05-27  H.J. Lu  (hjl@gnu.org)
2881
2882         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
2883         (num_positive): Likewise.
2884         (num_div_op): Likewise.
2885
2886 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2887
2888         * c-common.c (c_common_init): Always use intmax_t.
2889
2890 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2891
2892         * c-common.c (c_common_init): Use intmax_t for now.
2893
2894 2002-05-24  Andrew Haley  <aph@redhat.com>
2895
2896         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
2897         if T is a boolean type.
2898
2899 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2900
2901         * basic-block.h (last_basic_block): Defined as synonym for
2902         n_basic_blocks.
2903         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
2904         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2905         flow_dfs_compute_reverse_init): Replaced relevant occurences of
2906         n_basic_blocks with last_basic_block.
2907         * cfgbuild.c (make_edges): Likewise.
2908         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
2909         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
2910         * combine.c (combine_instructions): Likewise.
2911         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
2912         iterative_dataflow_bitmap): Likewise.
2913         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2914         calc_idoms, idoms_to_doms): Likewise.
2915         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
2916         Likewise.
2917         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
2918         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
2919         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
2920         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
2921         delete_null_pointer_checks, compute_code_hoist_vbeinout,
2922         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2923         compute_store_table, build_store_vectors): Likewise.
2924         * haifa-sched.c (sched_init): Likewise.
2925         * ifcvt.c (if_convert): Likewise.
2926         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
2927         pre_edge_lcm, compute_available, compute_nearerout,
2928         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
2929         Likewise.
2930         * predict.c (estimate_probability, process_note_prediction,
2931         note_prediction_to_br_prob): Likewise.
2932         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
2933         * recog.c (split_all_insns, peephole2_optimize): Likewise.
2934         * regrename.c (copyprop_hardreg_forward): Likewise.
2935         * resource.c (init_resource_info): Likewise.
2936         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
2937         init_regions, schedule_insns): Likewise.
2938         * ssa-ccp.c (ssa_const_prop): Likewise.
2939         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2940         * ssa.c (compute_dominance_frontiers,
2941         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
2942
2943         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
2944         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
2945         sizes consistently.
2946
2947 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
2948
2949         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
2950         new.
2951         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
2952         hoist_insn_after, hoist_insn_to_edge): New.
2953
2954 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
2955
2956         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
2957         (PROP_FINAL): Include.
2958         * flow.c (life_analysis, update_life_info,
2959         init_propagate_block_info, mark_set_1, mark_used_rgs):
2960         Support SCAN_DEAD_STORE.
2961
2962 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
2963
2964         * c-common.c (c_common_init): Set CPP arithmetic precision.
2965         * cppexp.c (cpp_num_part): Move typedef ...
2966         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
2967         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
2968         (sanity_checks): Update.
2969
2970 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
2971
2972         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
2973         (mkheaders): New rule.
2974         (install-mkheaders): New rule.
2975         * configure.in (all_outputs): Add mkheaders.
2976         * configure: Regenerate.
2977         * mkheaders.in: New file.
2978
2979 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
2980
2981         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
2982
2983 2002-05-26  Andreas Jaeger  <aj@suse.de>
2984
2985         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
2986
2987 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2988
2989         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
2990         right_shift): Remove.
2991         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
2992         HIGH_PART): New.
2993         (struct op): Use cpp_num.
2994         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
2995         num_part_mul, num_unary_op, num_binary_op, num_negate,
2996         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
2997         num_div_op, num_lshift, num_rshift, append_digit): New.
2998         (interpret_number, parse_defined, eval_token, reduce): Update
2999         for two-integer arithmetic.
3000         (binary_handler): New typedef.
3001         (optab): Update.
3002         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
3003         (_cpp_parse_expr, reduce): Update to handle two-integers.
3004         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
3005
3006 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3007
3008         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
3009         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
3010         branch insn into account, do not assume 1.
3011         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
3012         over single word insn.  Handle upper half of I/O space too.
3013         * config/avr/avr.md (*sbrx_branch): Use it.
3014         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
3015         (*sbix_branch, *sbix_branch_bit7): Likewise.
3016         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
3017         Use RTL peepholes to optimize register operand sign tests.
3018
3019 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3020
3021         * config/avr/avr.c (avr_asm_only_p): New variable.
3022         (avr_override_options): Set it here if AVR1.
3023         (asm_file_start): Test it here, report an error if set.
3024
3025 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
3026
3027         * alias.c: Fix formatting.
3028         * attribs.c: Likewise.
3029         * bb-reorder.c: Likewise.
3030         * bitmap.c: Likewise.
3031         * bitmap.h: Likewise.
3032         * builtins.c: Likewise.
3033
3034 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
3035
3036         * reload.c (find_valid_class): Accept new argument DEST,
3037         choose class accordingly.
3038         (push_reload): Update callers.
3039
3040 2002-05-26  Andreas Jaeger  <aj@suse.de>
3041
3042         * combine.c (combine_instructions): Do not indent #if for
3043         traditional C.
3044
3045 2002-05-25  Richard Henderson  <rth@redhat.com>
3046
3047         * c-pragma.c (apply_pragma_weak): Convert value identifier to
3048         string for decl_attributes.
3049         (handle_pragma_weak): Call assemble_alias if we're modifying
3050         an existing decl.
3051
3052 2002-05-25  Richard Henderson  <rth@redhat.com>
3053
3054         PR target/6788
3055         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
3056         using rtl instead of fprintf.
3057         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
3058         * config/sparc/sparc-protos.h: Update.
3059
3060 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3061
3062         * Makefile.in (C_COMMON_H): Fix.
3063         Update other targets.
3064         * c-common.c: Don't include c-lex.h.
3065         (builtin_define_with_value): Make static and prototype.
3066         (builtin_define_std): Move from c-lex.h.
3067         * c-common.h (init_c_lex): Move from c-lex.h.
3068         * c-decl.c: Don't include c-lex.h.
3069         (make_pointer_declarator): Move from c-parse.in.
3070         * c-lex.c: Don't include c-lex.h.
3071         * c-lex.h: Remove.
3072         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
3073         (make_pointer_declarator): Move to c-decl.c.
3074         * c-pragma.c: Don't include c-lex.h.
3075         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
3076         * c-tree.h (make_pointer_declarator): New.
3077 doc:
3078         * passes.texi, tm.texi: Update.
3079 objc:
3080         * Make-lang.in: Update and correct.
3081         * objc-act.c: Don't include c-lex.h or cpplib.h.
3082 treelang:
3083         * treetree.c: Don't include c-lex.h.
3084 config:
3085         * darwin-c.c: Don't include c-lex.h.
3086         * c4x/c4x-c.c: Don't include c-lex.h.
3087         * c4x/t-c4x: Update.
3088         * i370/i370-c.c: Don't include c-lex.h.
3089         * i370/t-i370: Update.
3090         * i960/i960-c.c: Don't include c-lex.h.
3091         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
3092         * i960/t-960bare: Update.
3093         * i960/t-vxworks: Update.
3094         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
3095         * rs6000/t-darwin: Update.
3096         * rs6000/t-rs6000-c-rule: Update.
3097         * v850/v850-c.c: Don't include c-lex.h.
3098         * v850/v850.c: Don't include c-lex.h or cpplib.h.
3099
3100
3101 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
3102
3103         * tree.def: Fix typos.
3104         * doc/install.texi: Likewise.
3105
3106 2002-05-25  Richard Henderson  <rth@redhat.com>
3107
3108         * configure.in (HAVE_AS_TLS): Add ia64 test.
3109         * configure: Rebuild.
3110         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
3111         (override_options): Set it.
3112         (TARGET_HAVE_TLS): New.
3113         (sdata_symbolic_operand): Look for 's'.
3114         (tls_symbolic_operand): New.
3115         (ia64_expand_load_address): Abort for tls symbols.
3116         (gen_tls_get_addr): New.
3117         (gen_thread_pointer): New.
3118         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
3119         (rtx_needs_barrier): Add new unspecs.
3120         (ia64_encode_section_info): Handle tls symbols.
3121         (ia64_strip_name_encoding): Strip two encoding chars.
3122         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
3123         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
3124         (TARGET_OPTIONS): Add tls-size.
3125         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
3126         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
3127         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
3128         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
3129         (movsf, movdf): Likewise.
3130         (movdi_symbolic): Use match_scratch.  Don't split if we won't
3131         have a scratch availiable.
3132         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
3133         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
3134         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
3135         * config/ia64/ia64-protos.h: Update.
3136         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3137         sdata_symbolic_operand.
3138         (ASM_OUTPUT_LABELREF): Strip two characters.
3139
3140 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
3141
3142         * combine.c (simplify_set): Remove an unnecessary subreg.
3143
3144 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3145
3146         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
3147
3148         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
3149
3150 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
3151
3152         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
3153
3154 2002-05-25  Roger Sayle  <roger@eyesopen.com>
3155
3156         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
3157         (cond (compare x y) 0) into the equivalent (cond x y).
3158
3159 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
3160
3161         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
3162
3163 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
3164
3165         * config.gcc: Remove all stanzas for previously obsoleted
3166         systems.  Where necessary, add explicit error stanzas to
3167         prevent removed systems from being misidentified as something
3168         else.  Begin a fresh obsoletions list, with the systems that
3169         were reprieved last round.
3170         * doc/install.texi: Remove all mention of dead targets.
3171         * fixinc/mkfixinc.sh: Likewise.
3172
3173         * config/arm/arm.h: Bit 31 of target_flags is no longer
3174         reserved.
3175
3176         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
3177         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
3178         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
3179         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
3180         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
3181         config/alpha/osf12.h, config/alpha/osf2or3.h,
3182         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
3183         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
3184         config/clipper/clipper-protos.h, config/clipper/clipper.c,
3185         config/clipper/clipper.h, config/clipper/clipper.md,
3186         config/clipper/clix.h, config/convex/convex-protos.h,
3187         config/convex/convex.c, config/convex/convex.h,
3188         config/convex/convex.md, config/convex/fixinc.convex,
3189         config/convex/proto.h, config/elxsi/elxsi-protos.h,
3190         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3191         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3192         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3193         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3194         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3195         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3196         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3197         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3198         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3199         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3200         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3201         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3202         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3203         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3204         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3205         config/m68k/altos3068.h, config/m68k/apollo68.h,
3206         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3207         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3208         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3209         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3210         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3211         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3212         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3213         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3214         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3215         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3216         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3217         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3218         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3219         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3220         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3221         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3222         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3223         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3224         config/mips/dec-osf1.h, config/mips/elflorion.h,
3225         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3226         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3227         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3228         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3229         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3230         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3231         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3232         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3233         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3234         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3235         config/ns32k/sequent.h, config/ns32k/tek6000.h,
3236         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3237         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3238         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3239         config/sparc/rtems.h, config/we32k/we32k-protos.h,
3240         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3241         Delete file.
3242
3243 2002-05-24  Richard Henderson  <rth@redhat.com>
3244
3245         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3246         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3247         * config/i386/i386.c (tls_model_chars): Add leading space.
3248         (tls_symbolic_operand): Don't bias by 1.
3249         (legitimize_address): Don't unbias by 1.
3250
3251 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3252
3253         * lcm.c (optimize_mode_switching): Change bb used as indices
3254         to bb->index.
3255
3256 2002-05-24  Richard Henderson  <rth@redhat.com>
3257
3258         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3259         of update_life_info_in_dirty_blocks.
3260
3261 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
3262
3263         PR other/6782
3264         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3265
3266 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3267
3268         PR preprocessor/6780
3269         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3270
3271 2002-05-24  Jim Blandy  <jimb@redhat.com>
3272
3273         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3274         entry with a type code of zero, marking the end of the compilation
3275         unit's macro info.
3276
3277 2002-05-24  Richard Henderson  <rth@redhat.com>
3278
3279         * varasm.c (asm_output_bss): Always output one byte.
3280         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3281
3282 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3283
3284         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3285         namespace.
3286
3287 2002-05-24  Andreas Jaeger  <aj@suse.de>
3288
3289         * ggc-page.c (alloc_page): Cast variables of type size_t to
3290         unsigned long, adjust printf format string.
3291         (ggc_alloc): Likewise.
3292         (ggc_print_statistics): Likewise.
3293         (ggc_print_statistics): Correct printf format string for SCALE to
3294         use unsigned long.
3295
3296 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
3297
3298         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3299
3300 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
3301             Zack Weinberg     <zack@codesourcery.com>
3302
3303         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3304         quoted strings.
3305         * dwarf2out.c (lookup_filename): Properly quote filename in .file
3306         directive in assembly file.
3307         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3308         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3309         * config/pj/pj.h (ASM_FILE_START): Likewise.
3310         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3311         * config/avr/avr.c (asm_file_end): Likewise.
3312         * toplev.c (output_quoted_string): Handle possibly signed plain
3313         char.
3314         * toplev.h (output_clean_symbol_name): Declare
3315         * toplev.c (output_clean_symbol_name): Define.
3316         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3317         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3318
3319 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
3320
3321         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3322
3323 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
3324
3325         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3326         of size of unsigned.
3327
3328 2002-05-23  Richard Henderson  <rth@redhat.com>
3329
3330         * configure.in (HAVE_AS_TLS): New test.
3331         * config.in, configure: Rebuild.
3332         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3333         (ix86_tls_dialect_string, ix86_tls_dialect): New.
3334         (override_options): Set it.
3335         (tls_model_chars, tls_symbolic_operand): New.
3336         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3337         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3338         (local_exec_symbolic_operand): New.
3339         (get_pic_label_name): Merge into output_set_got.
3340         (ix86_asm_file_end): Emit pic_label_name if defined.
3341         (legitimate_constant_p, constant_address_p): New.
3342         (legitimate_pic_operand_p): New.
3343         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3344         (legitimate_address_p): Likewise.
3345         (ix86_encode_section_info): Rename from i386_; handle tls decls.
3346         (ix86_strip_name_encoding): New.
3347         (get_thread_pointer): New.
3348         (legitimize_address): Handle tls symbols.
3349         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3350         Remove UNSPEC_PLT.
3351         (struct machine_function): Add some_ld_name.
3352         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3353         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
3354         (output_addr_const_extra): New.
3355         (maybe_get_pool_constant): New.
3356         (ix86_split_to_parts): Use it.
3357         (ix86_expand_move): Handle tls symbols.
3358         (ix86_tls_get_addr): New.
3359         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3360         (TARGET_OPTIONS): Add tls-dialect.
3361         (CONSTANT_ADDRESS_P): Use new out-of-line function.
3362         (LEGITIMATE_CONSTANT_P): Likewise.
3363         (LEGITIMATE_PIC_OPERAND_P): Likewise.
3364         (TARGET_STRIP_NAME_ENCODING): New.
3365         (ASM_OUTPUT_LABELREF): New.
3366         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3367         (OUTPUT_ADDR_CONST_EXTRA): New.
3368         (PREDICATE_CODES): Update.
3369         (ix86_tls_dialect, ix86_tls_dialect_string): New.
3370         * config/i386/i386.md: Regroup and renumber unspec constants.
3371         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3372         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3373         (tls_global_dynamic, tls_local_dynamic_base): New.
3374         (tls_local_dynamic_once): New.
3375         * config/i386/i386-protos.h: Update.
3376
3377 2002-05-23  Richard Henderson  <rth@redhat.com>
3378
3379         * genemit.c (gen_insn): Print file:lineno comment before function.
3380         (main): likewise.
3381         * gensupport.c (struct queue_elem): Add filename member.
3382         (queue_pattern): Initialize it; update all callers.
3383         (process_include): Don't free filename.
3384         (read_md_rtx): Set read_rtx_filename.
3385
3386 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
3387
3388         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
3389
3390 2002-05-23  Richard Henderson  <rth@redhat.com>
3391
3392         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3393
3394 2002-05-23  Richard Henderson  <rth@redhat.com>
3395
3396         * doc/extend.texi (C++98 Thread-Local Edits): Update with
3397         commentary from Mark.
3398
3399 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3400
3401         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3402         Use FOR_EACH_BB macros to iterate over basic block chain.
3403         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3404         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3405         Likewise.
3406         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3407         find_unreachable_blocks, create_edge_list, verify_edge_list,
3408         remove_fake_edges, add_noreturn_fake_exit_edges,
3409         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3410         Likewise.
3411         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3412         find_sub_basic_blocks): Likewise.
3413         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3414         Likewise.
3415         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3416         Likewise.
3417         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3418         Likewise.
3419         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3420         commit_edge_insertions, commit_edge_insertions_watch_calls,
3421         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3422         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3423         * conflict.c (conflict_graph_compute): Likewise.
3424         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3425         df_modified_p, df_refs_unlink, df_dump): Likewise.
3426         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3427         * final.c (compute_alignments): Likewise.
3428         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3429         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3430         count_or_remove_death_notes): Likewise.
3431         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3432         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3433         classic_gcse, compute_transp, cprop, compute_pre_data,
3434         compute_transpout, invalidate_nonnull_info,
3435         delete_null_pointer_checks_1, delete_null_pointer_checks,
3436         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3437         compute_store_table, build_store_vectors, store_motion): Likewise.
3438         * global.c (global_conflicts, mark_elimination): Likewise.
3439         * graph.c (print_rtl_graph_with_bb): Likewise.
3440         * haifa-sched.c (sched_init): Likewise.
3441         * ifcvt.c (if_convert): Likewise.
3442         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3443         compute_available, compute_nearerout, compute_rev_insert_delete,
3444         optimize_mode_switching): Likewise.
3445         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3446         * predict.c (estimate_probability, note_prediction_to_br_prob,
3447         propagate_freq, counts_to_freqs, expensive_function_p,
3448         estimate_bb_frequencies): Likewise.
3449         * profile.c (instrument_edges, get_exec_counts,
3450         compute_branch_probabilities, compute_checksum, branch_prob,
3451         find_spanning_tree): Likewise.
3452         * recog.c (split_all_insns, peephole2_optimize): Likewise.
3453         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3454         Likewise.
3455         * regclass.c (scan_one_insn, regclass): Likewise.
3456         * regmove.c (mark_flags_life_zones, regmove_optimize,
3457         record_stack_memrefs): Likewise.
3458         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3459         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3460         * resource.c (find_basic_block): Likewise.
3461         * sched-ebb.c (schedule_ebbs): Likewise.
3462         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3463         find_single_block_region, find_rgns, schedule_insns)
3464         * sibcall.c (optimize_sibling_and_tail_recursive_call)
3465         * ssa-ccp.c (optimize_unexecutable_edges,
3466         ssa_ccp_df_delete_unreachable_insns): Likewise.
3467         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3468         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3469         rename_block, convert_to_ssa, compute_conservative_reg_partition,
3470         compute_coalesced_reg_partition, rename_equivalent_regs,
3471         convert_from_ssa): Likewise.
3472         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3473         process_for_unwind_directive): Likewise.
3474
3475         * df.c (FOR_ALL_BBS): Removed.
3476         * gcse.c (struct null_pointer_info): Type of current_block field
3477         changed.
3478         (struct reg_avail_info): Type of last_bb field changed.
3479         * config/ia64/ia64.c (block_num): Removed.
3480         (need_copy_state): Type changed.
3481         (last_block): New.
3482
3483 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3484
3485         * cppinit.c (mark_named_operators): Split out from init_builtins.
3486         (cpp_finish_options): Call it from here instead.
3487
3488 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
3489
3490         * builtin-attrs.def: Update copyright years.
3491         (ATTR_NONNULL): New attribute identifier.
3492         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3493         attribute tree lists.
3494         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3495         format operand.
3496         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3497         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3498         attribute lists.  Chain the appropriate nonnull attribute.
3499         * c-format.c (check_format_arg): Remove null format string
3500         warning.
3501         * testsuite/gcc.dg/format/null-1.c: New test.
3502
3503 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3504
3505         * Makefile.in (ADAC): Define.
3506         (SYSLIBS): Define.
3507         (.SUFFIXES): Move before language makefile fragments.
3508         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3509
3510 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
3511
3512         * varasm.c (make_decl_rtl): Don't allow weak variables to be
3513         placed in common.
3514
3515 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
3516
3517         * cfg.c (dump_flow_info): Print results of
3518         maybe_hot/probably_never_executed predicates.
3519         * toplev.c (open_dump_file): Print function frequency.
3520
3521 2002-05-23  David S. Miller  <davem@redhat.com>
3522
3523         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3524         regsets.
3525
3526 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
3527
3528         * c-common.c (warn_nonnull): Declare.
3529         (c_common_attribute_table): Add "nonnull" attribute.
3530         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3531         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3532         check_function_arguments_recurse): New functions.
3533         * c-common.h (warn_nonnull): Declare extern.
3534         (check_function_arguments, check_function_arguments_recurse): New
3535         prototypes.
3536         * c-decl.c (c_decode_option): Add -Wnonnull option.
3537         * c-format.c (set_Wformat): Set warn_nonnull if enabling
3538         format checking.
3539         (format_check_context): New structure.
3540         (check_format_info_recurse): Remove recursion and rename to...
3541         (check_format_arg): ...this.  Update comment.
3542         (check_format_info): Use check_function_arguments_recurse.
3543         * c-typeck.c (build_function_call): Call check_function_arguments
3544         instead of check_function_format.
3545         * doc/extend.texi: Document "nonnull" attribute.
3546         * doc/invoke.texi: Docuemnt -Wnonnull option.
3547         * testsuite/gcc.dg/nonnull-1.c: New test.
3548         * testsuite/gcc.dg/nonnull-2.c: New test.
3549
3550 2002-05-23  David S. Miller  <davem@redhat.com>
3551
3552         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3553         * cfgcleanup.c (cleanup_cfg): If it is set do not
3554         attempt to delete trivially dead insns.
3555         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3556         * toplev.c (rest_of_compilation): Document non-trivial aspect
3557         the RTL before optimize_save_area_alloca is run.
3558
3559 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3560
3561         * c-lex.c (indent_level): Remove.
3562         (cb_file_change, c_lex): Remove indent level handling.
3563         * c-lex.h (indent_level): Remove.
3564         * input.h (struct file_stack): Remove indent_level.
3565         * toplev.c (push_srcloc): Remove indent_level handling.
3566
3567 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3568
3569         PR target/6753
3570         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3571         of x in constraints for clarity.
3572         (sse_mov?fcc split): abort if op2 == op3.
3573         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3574         sse_movsfcc_const0_4): Add earlyclobber.
3575         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3576         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
3577         Use Y instead of x in constraints.
3578
3579 2002-05-23  Richard Henderson  <rth@redhat.com>
3580
3581         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3582         (C++98 Thread-Local Edits): New subsection.
3583
3584         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3585         (ix86_arch): Set type to enum processor_type.
3586
3587         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
3588         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3589
3590 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
3591
3592         * configure.in: Fix as version test for binutils 2.12.1 releases
3593         (without dates).
3594         * configure: Rebuilt.
3595
3596 2002-05-23  Richard Henderson  <rth@redhat.com>
3597
3598         * config/i386/i386.c (get_pic_label_name): New.
3599         (load_pic_register): Remove.
3600         (output_set_got): New.
3601         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3602         * config/i386/i386.md (UNSPEC_SET_GOT): New.
3603         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3604         (prologue_set_got, prologue_get_pc): Remove.
3605         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3606         (builtin_setjmp_receiver): Use gen_set_got.
3607         * config/i386/i386-protos.h: Update.
3608
3609 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
3610
3611         * gcse.c (hash_expr): Do not use alias set for hashing.
3612
3613 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
3614
3615         * dbxout.c (dbxout_class_name_qualifiers): New function.
3616         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3617
3618 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3619
3620         * cpperror.c (_cpp_begin_message): No special casing
3621         of CPP_FATAL_LIMIT.
3622         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3623         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3624         * cpplib.c (do_include_common): Use DL_ERROR.
3625         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3626         (DL_ICE): Renumber.
3627         * fix-header.c (read_scan_file): Update.
3628
3629 2002-05-22  Richard Henderson  <rth@redhat.com>
3630
3631         * config/i386/i386.c (ix86_expand_call): New function, extracted
3632         from md call patterns.  Add pic_offset_table_rtx to
3633         CALL_INSN_FUNCTION_USAGE when needed.
3634         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3635         (call_value_pop, call_value, untyped_call): Likewise.
3636         (call_exp, call_value_exp): Remove.
3637         * config/i386/i386-protos.h: Update.
3638
3639 2002-05-22  Richard Henderson  <rth@redhat.com>
3640
3641         * varasm.c (default_section_type_flags): Check for VAR_DECL
3642         before using DECL_THREAD_LOCAL.
3643
3644 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
3645
3646         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3647         (STARTFILE_SPEC): Delete PE crt0.o.
3648         * config/rs6000/aix51.h: Same.
3649         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3650         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3651         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
3652         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3653         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3654
3655 2002-05-22  Richard Henderson  <rth@redhat.com>
3656
3657         * varasm.c (default_section_type_flags): Handle tls data and
3658         default sections.
3659         (default_unique_section): Handle tls sections.
3660
3661 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
3662
3663         * configure.in (CROSS): Define NATIVE_CROSS.
3664         * configure: Regenerate.
3665         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3666         (startfile_prefix_spec): New var.
3667         (static_specs): Add startfile_prefix_spec.
3668         (do_spec_2): Split out from..
3669         (do_spec): ..here.
3670         (main): Process startfile_prefix_spec.
3671         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3672         dynamic linker.
3673         (STARTFILE_PREFIX_SPEC): Define.
3674         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
3675         absolute paths.
3676
3677 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
3678
3679         * cpperror.c: Fix formatting.
3680         * cppexp.c: Likewise.
3681         * cppfiles.c: Likewise.
3682         * cpphash.c: Likewise.
3683         * cpphash.h: Likewise.
3684         * cppinit.c: Likewise.
3685         * cpplex.c: Likewise.
3686         * cpplib.c: Likewise.
3687         * cppmacro.c: Likewise.
3688         * cppmain.c: Likewise.
3689         * cppspec.c: Likewise.
3690
3691 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
3692
3693         * combine.c (force_to_mode): Use gen_int_mode.
3694         Don't clear CONST_INT bits outside of mode.
3695
3696 2002-05-22  Richard Henderson  <rth@redhat.com>
3697
3698         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3699         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3700
3701 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
3702
3703         PR c/6643
3704         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3705         if DECL_SIZE_UNIT is INTEGER_CST.
3706
3707 2002-05-22  Richard Henderson  <rth@redhat.com>
3708
3709         * flow.c (life_analysis): Delete broken reg_label check.
3710
3711 2002-05-22  Richard Henderson  <rth@redhat.com>
3712
3713         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3714         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3715
3716 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
3717
3718         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3719         (embed-bb.c): New rule.
3720         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
3721         * config/sh/embed_bb.c: Delete.
3722
3723 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
3724
3725         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3726
3727 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
3728
3729         * config/h8300/h8300.md (*andorqi3): New.
3730
3731 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3732
3733         PR preprocessor/6517
3734         * Makefile.in: Update.
3735         * c-common.c (c_common_post_options): Add preprocessor
3736         errors to the error count.
3737         * c-lang.c (c_post_options): Kill.
3738         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3739         * hooks.h: Add header guards.
3740         * langhooks-def.h: Include hooks.h.
3741         (LANG_HOOKS_POST_OPTIONS): Update.
3742         * langhooks.h (struct lang_hooks): Update post_options.
3743         * toplev.c (parse_options_and_default_flags): Update.
3744 objc:
3745         * objc-lang.c (objc_post_options): Kill.
3746         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3747
3748 2002-05-21  Bruce Korb  <bkorb@gnu.org>
3749
3750         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
3751         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
3752         * fixinc/fixincl.x: regen.
3753
3754 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
3755
3756         * cfgbuild.c: Fix formatting.
3757         * cfg.c: Likewise.
3758         * cfgcleanup.c: Likewise.
3759         * cfglayout.c: Likewise.
3760         * cfgloop.c: Likewise.
3761         * cfgrtl.c: Likewise.
3762
3763 2002-05-21  Richard Henderson  <rth@redhat.com>
3764
3765         * c-common.h (enum rid): Add RID_THREAD.
3766         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
3767         (grokdeclarator): Grok __thread.
3768         * c-parse.in (reswords): Add __thread.
3769         (rid_to_yy): Add RID_THREAD.
3770
3771         * tree.h (DECL_THREAD_LOCAL): New.
3772         (struct tree_decl): Add thread_local_flag.
3773         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
3774         * tree.c (staticp): TLS variables are not static.
3775
3776         * target-def.h (TARGET_HAVE_TLS): New.
3777         * target.h (have_tls): New.
3778         * output.h (SECTION_TLS): New.
3779         * varasm.c (assemble_variable): TLS variables can't be common for now.
3780         (default_section_type_flags): Handle .tdata and .tbss.
3781         (default_elf_asm_named_section): Handle SECTION_TLS.
3782         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
3783
3784         * flags.h (flag_tls_default): Declare.
3785         * toplev.c (flag_tls_default): Define.
3786         (display_help): Display help for it.
3787         (decode_f_option): Set it.
3788
3789         * doc/extend.texi (Thread-Local): New node describing language-level
3790         thread-local storage.
3791         * doc/invoke.texi (-ftls-model): Document.
3792
3793         * fixinc/inclhack.def (thread_keyword): New.
3794         * fixinc/fixincl.x: Rebuild.
3795
3796 2002-05-21  Jeffrey A Law  <law@redhat.com>
3797
3798         * optabs.c (expand_binop): For double-word integer multiplies,
3799         do not compute intermediate results into something that is
3800         not a register (such as a SUBREG or MEM).
3801
3802         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
3803         (ix86_sched_reorder): Make sure to initialize scheduling
3804         data even when there's only one insn in the ready queue.
3805
3806 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
3807
3808         * genautomata.c (reserv_sets_hash_value): Fix a typo.
3809
3810 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
3811
3812         * genautomata.c (reserv_sets_hash_value): Define hash_value as
3813         set_el_t.  Transform the hash value into unsigned.
3814         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
3815         (transform_3): Add code to process `(A,B)+(D,E)'.
3816
3817 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
3818
3819         * reload1.c (do_output_reload): Run delete_output_reload
3820         only if optimizing.
3821
3822 2002-05-21  Roger Sayle  <roger@eyesopen.com>
3823
3824         PR middle-end/6600
3825         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
3826         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
3827         (can_store_by_pieces): ... and here to limit the largest mode used.
3828         Add a comment to document this function.
3829
3830 2002-05-21  Richard Henderson  <rth@redhat.com>
3831
3832         * flow.c (life_analysis): Fix test for deleted label.
3833
3834 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3835
3836         * doc/tm.texi: Fix typo.
3837
3838 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
3839
3840         * c-common.c (c_common_init): Set options->unsigned_char from
3841         flag_signed_char.
3842         (cb_register_builtins): Define __STRICT_ANSI__ and
3843         __CHAR_UNSIGNED__ here...
3844         * cppinit.c (init_builtins): Not here.
3845         (cpp_create_reader): unsigned_char option defaults to 0, not
3846         !DEFAULT_SIGNED_CHAR.
3847         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
3848         and -funsigned-char.
3849
3850         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
3851         * cpphash.c (_cpp_init_hashtable): Don't set it.
3852         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
3853         directly.  Clarify comment.
3854
3855 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3856
3857         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
3858         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
3859         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
3860         BASIC_BLOCK (n_basic_blocks - 1).
3861         * cfganal.c (can_fallthru, flow_call_edges_add,
3862         flow_preorder_transversal_compute): Too.
3863         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3864         find_sub_basic_blocks): Too.
3865         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
3866         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
3867         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
3868         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
3869         * combine.c (this_basic_block): Type changed to basic_block.
3870         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
3871         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3872         get_last_value, distribute_notes, distribute_links): Too.
3873         * final.c (compute_alignments): Too.
3874         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
3875         * function.c (thread_prologue_and_epilogue_insns): Too.
3876         * gcse.c (compute_code_hoist_vbeinout): Too.
3877         * global.c (build_insn_chain): Too.
3878         * ifcvt.c (find_if_block, find_cond_trap): Too.
3879         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
3880         * regmove.c (regmove_optimize): Too.
3881         * resource.c (find_basic_block): Too.
3882         * sched-ebb.c (schedule_ebbs): Too.
3883         * ssa-dce.c (find_control_dependence, find_pdom): Too.
3884
3885 2002-05-21  Andreas Jaeger  <aj@suse.de>
3886
3887         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
3888
3889 2002-05-21  Richard Henderson  <rth@redhat.com>
3890
3891         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
3892         unspec names, not numbers.
3893
3894 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
3895
3896         * doc/sourcebuild.texi: Mention snapshot-README and
3897         snapshot-index.html as needing updating for new front ends.
3898
3899 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3900
3901         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
3902         disabling checking, and avoid multiple evaluation of RTX.
3903
3904 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
3905
3906         * bitmap.c (bitmap_find_bit): Return early if we have the correct
3907         element cached.
3908
3909 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
3910
3911         * profile.c (gen_edge_profiler):  Set alias set before the memory is
3912         used.
3913
3914 2002-05-20  David S. Miller  <davem@redhat.com>
3915
3916         * cselib.c (max_value_regs): New.
3917         (cselib_lookup, cselib_invalidate_regno): Initialize it when
3918         adding new entries to the REG_VALUES table and we are dealing with
3919         a hard register.
3920         (clear_table): Initialize it.
3921         (cselib_invalidate_regno): Use it to determine which hard
3922         registers to scan when mode is not VOIDmode.
3923
3924 2002-05-20  Duraid Madina   <duraid@fl.net.au>
3925
3926         * tradcpp.c (fixup_newlines): Use old-style function header.
3927
3928 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
3929
3930         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
3931
3932 2002-05-20  H.J. Lu  (hjl@gnu.org)
3933
3934         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
3935
3936         * config/mips/mips.h (DFMODE_NAN): Defined.
3937         (SFMODE_NAN): Likewise.
3938
3939 2002-05-20  Dale Johannesen  <dalej@apple.com>
3940
3941         * combine.c (cant_combine_insn_p):  Back out my
3942         previous patch.
3943
3944 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
3945
3946         * params.c: Fix formatting.
3947         * params.h: Likewise.
3948         * predict.c: Likewise.
3949         * prefix.c: Likewise.
3950         * print-rtl.c: Likewise.
3951         * print-tree.c: Likewise.
3952         * profile.c: Likewise.
3953
3954 2002-05-20  H.J. Lu  (hjl@gnu.org)
3955
3956         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
3957
3958 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
3959
3960         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
3961         switches straight on to the assembler, do not abbreviate them.
3962         * config/arm/elf.h (ASM_SPEC): As above.
3963         * config/arm/semi.h (ASM_SPEC): As above.
3964         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
3965         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
3966         -mcpu=xscale on to the assembler by default.
3967         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
3968
3969 2002-05-20  Richard Henderson  <rth@redhat.com>
3970
3971         * cse.c (canon_hash): Reorder do_not_record test.  Always
3972         allow pic_offset_table_rtx.
3973
3974 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
3975
3976         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
3977         (expand_binop): Ditto (3 times).
3978
3979 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
3980
3981         * Makefile.in (distclean): Remove QMTest stuff.
3982         (QMTEST_PATH): New variable.
3983         (QMTESTFLAGS): Likewise.
3984         (QMTESTRUNFLAGS): Likewise.
3985         (QMTEST): Likewise.
3986         (QMTEST_GPP_TESTS): Likewise.
3987         (QMTEST_DIR): Likewise.
3988         (QMTEST_DIR/context): New target.
3989         (qmtest-g++): Likeise.
3990         (qmtest-gui): Likewise.
3991         (QMTEST_DIR/gpp-expected.qmr): Likewise.
3992
3993 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
3994
3995         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
3996         an altivec register if TARGET_ALTIVEC.
3997
3998         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
3999         to ALTIVEC_VECTOR_MODE.
4000         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
4001         (rs6000_va_arg): Vectors may go in registers if they are not
4002         altivec vectors.
4003
4004 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
4005
4006         * protoize.c: Fix formatting.
4007
4008 2002-05-19  Richard Henderson  <rth@redhat.com>
4009
4010         * gensupport.c (init_include_reader): Merge into ...
4011         (process_include): ... here.  Simplify composite path creation.
4012         Plug memory leaks.  Fix file/line number tracking.  Do not
4013         process_define_cond_exec.  Return void.
4014         (process_rtx): Don't check process_include return value.
4015
4016 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4017
4018         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
4019         fields.
4020         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4021         traversing basic block chain.
4022         (create_basic_block_structure, create_basic_block): Declaration changed.
4023         (link_block, unlink_block): Declare.
4024         * cfg.c (entry_exit_blocks): Initialize new fields.
4025         (link_block, unlink_block): New.
4026         (expunge_block_nocompact): Unlink basic block.
4027         (dump_flow_info): Print prev_bb/next_bb fields.
4028         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
4029         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
4030         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
4031         * cfgrtl.c (create_basic_block_structure, create_basic_block,
4032         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
4033         (verify_flow_info): Check that list agrees with numbering.
4034
4035 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
4036
4037         * c-common.c (preprocessing_asm): New macro.
4038         * c-lex.h (builtin_define, builtin_assert): Use pfile.
4039 doc:
4040         * tm.texi: Update.
4041 config/alpha:
4042         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
4043         (CPP_SPEC): Simplify.
4044         (TARGET_CPU_CPP_BUILTINS): Update.
4045         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
4046         (CPP_SPEC): Simplify.
4047         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
4048         (TARGET_OS_CPP_BUILTINS): Update.
4049         * osf.h (CPP_XFLOAT_SPEC): Kill.
4050         (TARGET_OS_CPP_BUILTINS): Update.
4051         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
4052         * osf5.h (CPP_XFLOAT_SPEC): Kill.
4053         * vms.h (CPP_SUBTARGET_SPEC): Kill.
4054         (TARGET_OS_CPP_BUILTINS): Update.
4055
4056 2002-05-19  Richard Henderson  <rth@redhat.com>
4057
4058         * varasm.c (default_binds_local_p): Fix typo.
4059
4060 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4061
4062         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
4063         CONST_INT operand to the correct mode after adding 1 to it.
4064
4065 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
4066
4067         * config.gcc (powerpc-wrs-windiss*): New target.
4068
4069 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4070
4071         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
4072         (ashrdi3): Use it.
4073
4074 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
4075
4076         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
4077         alphasort.
4078         * config.in: Regenerated.
4079         * configure: Regenerated.
4080
4081 2002-05-19  Richard Henderson  <rth@redhat.com>
4082
4083         * target-def.h (TARGET_BINDS_LOCAL_P): New.
4084         * target.h (struct gcc_target): Move boolean fields to the end.
4085         Add binds_local_p.
4086         * varasm.c (default_binds_local_p): New.
4087         * output.h: Declare it.
4088
4089         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
4090         * config/cris/cris.c (cris_encode_section_info): Likewise.
4091         * config/i386/i386.c (i386_encode_section_info): Likewise.
4092         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4093         * config/sh/sh.c (sh_encode_section_info): Likewise.
4094
4095         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
4096         (TARGET_BINDS_LOCAL_P): New.
4097
4098 2002-05-19  Richard Henderson  <rth@redhat.com>
4099
4100         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
4101         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
4102         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
4103
4104         * toplev.c (display_help): Kill -a -ax help.
4105
4106         * config/1750a/1750a.h, config/alpha/alpha.h,
4107         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
4108         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
4109         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
4110         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
4111
4112         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
4113         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
4114
4115         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
4116         (ix86_output_function_block_profiler): Kill.
4117         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
4118         (m68hc11_function_block_profiler): Kill.
4119         * config/m68hc11/m68hc11-protos.h: Update.
4120         * config/m88k/m88k.c (output_block_profiler): Kill.
4121         (output_function_block_profiler): Kill.
4122         * config/m88k/m88k-protos.h: Update.
4123
4124 2002-05-19  Richard Henderson  <rth@redhat.com>
4125
4126         * system.h (STRIP_NAME_ENCODING): Poison it.
4127         * output.h (STRIP_NAME_ENCODING): Remove.
4128         (default_strip_name_encoding): Declare.
4129         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
4130         * target.h (strip_name_encoding): New.
4131         * varasm.c (default_strip_name_encoding): New.
4132
4133         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
4134         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
4135         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
4136         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
4137         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
4138         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
4139         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
4140         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
4141         config/v850/v850.h: Use the hook, not the macro.
4142
4143         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4144         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
4145         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
4146         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
4147         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
4148         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
4149         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
4150         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
4151         config/v850/v850.c, config/v850/v850.h:
4152         Move STRIP_NAME_ENCODING to out-of-line function and add
4153         TARGET_STRIP_NAME_ENCODING.
4154
4155         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
4156         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
4157         with TARGET_STRIP_NAME_ENCODING referencing existing function;
4158         make function static.
4159
4160         * xcoffout.c: Include target.h
4161         * Makefile.in (xcoffout.o): Update.
4162
4163         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
4164         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
4165         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
4166         reloc argument unused.
4167         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
4168
4169         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
4170         STRIP_NAME_ENCODING docs.
4171
4172 2002-05-19  Andreas Jaeger  <aj@suse.de>
4173
4174         * gengenrtl.c: Add prototype for excluded_rtx.
4175
4176         * real.h: Add prototype for exact_real_truncate.
4177
4178 2002-05-18  Richard Henderson  <rth@redhat.com>
4179
4180         * system.h (ENCODE_SECTION_INFO): Poison it.
4181         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
4182         * target.h (encode_section_info): New.
4183         * varasm.c (make_decl_rtl, output_constant_def): Use it.
4184         * hooks.c (hook_tree_int_void): New.
4185         * hooks.h: Declare it.
4186
4187         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4188         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4189         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4190         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4191         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4192         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4193         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4194         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4195         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4196         config/mcore/mcore-protos.h, config/mcore/mcore.c,
4197         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4198         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4199         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4200         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4201         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4202         referencing existing function.  Make function static.
4203
4204         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
4205         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
4206         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4207         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4208         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
4209         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
4210         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4211         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4212         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4213         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4214         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
4215         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4216         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4217         Move ENCODE_SECTION_INFO to out-of-line function and add
4218         TARGET_ENCODE_SECTION_INFO.
4219
4220         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4221         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4222
4223         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4224         from SUBTARGET_*
4225         (switch_to_section): Replace in_rdata case with in_readonly_data.
4226
4227         * config/h8300/h8300.c (h8300_encode_label): Make static.
4228         * config/h8300/h8300-protos.h: Update.
4229
4230         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4231         from rs6000_encode_section_info; make static.
4232         (rs6000_xcoff_encode_section_info): New.
4233
4234         * config/v850/v850.c (v850_encode_data_area): Make static.
4235         * config/v850/v850-protos.h: Update.
4236
4237         * config/vax/vax.c: Include flags.h.
4238         (vms_select_section): Fix typo.
4239
4240         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4241         ENCODE_SECTION_INFO docs.
4242
4243 2002-05-18  Richard Henderson  <rth@redhat.com>
4244
4245         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4246         REGISTER_TARGET_PRAGMAS.
4247         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4248
4249         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4250
4251 2002-05-18  Richard Henderson  <rth@redhat.com>
4252
4253         * system.h (SELECT_RTX_SECTION): Poison.
4254         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4255         * target.h (select_rtx_section): New.
4256         * varasm.c (output_constant_pool): Use it.
4257         (default_select_rtx_section, default_elf_select_rtx_section): New.
4258         * output.h: Declare them.
4259
4260         * config/darwin.h (SELECT_RTX_SECTION): Move ...
4261         * config/darwin.c (machopic_select_rtx_section): ... here.
4262         * config/darwin-protos.h: Update.
4263
4264         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4265         * config/nextstep.c (machopic_select_rtx_section): ... here.
4266         (nextstep_select_section): Rename variable to avoid macro clash.
4267         * config/nextstep-protos.h: Update.
4268
4269         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4270         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4271         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
4272         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
4273         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4274         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
4275         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
4276         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4277         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4278         (SELECT_RTX_SECTION): Remove.
4279
4280         * config/darwin.h, config/elfos.h, config/nextstep.h,
4281         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4282         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4283         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4284         config/sparc/lynx.h, config/xtensa/xtensa.c
4285         (TARGET_ASM_SELECT_RTX_SECTION): New.
4286
4287         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4288         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4289         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4290         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4291         (ia64_aix_select_rtx_section): New.
4292         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4293         redefining.
4294         * config/mips/mips.c (mips_select_rtx_section): Make static.
4295         Support ELF SHF_MERGE features.
4296         * config/mips/mips-protos.h: Update.
4297         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4298         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4299         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4300         make static, fall back to default_elf_select_rtx_section.
4301         * config/rs6000/rs6000-protos.h: Update.
4302         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4303         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4304         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4305         * config/romp/romp.c (romp_select_rtx_section): New.
4306         * config/s390/s390.c (s390_select_rtx_section): New.
4307         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
4308         declarations before target macro definition.
4309         (xtensa_emit_call): Use static buffer.
4310         (xtensa_select_rtx_section): New.
4311         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4312         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4313         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4314
4315         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4316         SELECT_RTX_SECTION docs.
4317
4318 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
4319
4320         * i386.md (movsi/movdi): Fix template.
4321         (sse2 patterns): Set attributes consistently.
4322
4323         * i386.md (pushqi2, ashrqi_*): Fix constraint.
4324
4325 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
4326
4327         * optabs.c (complex_part_zero_p): New.
4328         * (expand_cmplxdiv_straight): Use it.
4329         * (expand_cmplxdiv_wide): Ditto.
4330         * (expand_binop): Ditto.
4331
4332 2002-05-18  Richard Henderson  <rth@redhat.com>
4333
4334         * final.c (HAVE_READONLY_DATA_SECTION): New.
4335         (shorten_branches): Use it instead of ifdefs.
4336         * varasm.c (enum in_section): Add in_readonly_data.
4337         (text_section, data_section): Tidy.
4338         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4339
4340         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4341         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4342         (READONLY_DATA_SECTION): Don't undef.
4343
4344         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4345         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4346         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4347
4348         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4349         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4350         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4351         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4352
4353         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4354         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4355         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4356         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4357         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4358         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4359         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4360         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4361         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4362
4363         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4364         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4365         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4366         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4367         config/pa/pa64-hpux.h, config/sparc/litecoff.h
4368         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4369
4370         * config/elfos.h, config/netware.h, config/svr3.h,
4371         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4372         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4373         config/h8300/h8300.h, config/i386/i386-interix.h,
4374         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4375         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4376
4377         * config/elfos.h, config/netware.h, config/svr3.h,
4378         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4379         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4380         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4381         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4382
4383         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4384         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4385         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4386         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4387         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4388         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4389         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4390         config/rs6000/sysv4.h, config/v850/v850.h
4391         (EXTRA_SECTIONS): Remove in_const/in_rdata.
4392         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4393
4394         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4395         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4396         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4397         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4398         * config/alpha/alpha.c (alpha_start_function): Likewise.
4399         (alpha_write_linkage): Likewise.
4400         * config/m32r/m32r.c (m32r_select_section): Likewise.
4401         * config/m88k/m88k.c (m88k_select_section): Likewise.
4402         * config/mips/mips.c (mips_select_rtx_section): Likewise.
4403         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4404         (rs6000_elf_select_section): Likewise.
4405         * config/v850/v850.c (v850_select_section): Likewise.
4406
4407         * config/1750a/1750a.h, config/i860/sysv3.h
4408         (READONLY_DATA_SECTION_ASM_OP): New.
4409         READONLY_DATA_SECTION_ASM_OP.
4410         * config/i386/interix.c, config/i386/winnt.c
4411         (i386_pe_unique_section): Always use .rdata prefix.
4412         * config/pa/som.h (readonly_data): Always switch to read-only section.
4413         (READONLY_DATA_SECTION): Predicate on flag_pic.
4414         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4415         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4416         (READONLY_DATA_SECTION): Update.
4417
4418 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
4419
4420         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
4421         is used without -Wformat.
4422         * c-common.h (warn_format_zero_length): Declare extern.
4423         * c-decl.c (warn_options): Add "format-zero-length".
4424         * c-format.c (warn_format_zero_length): Declare.
4425         (set_Wformat): Set warn_format_zero_length for -Wformat.
4426         (check_format_info): Only warn about zero-length formats if
4427         warn_format_zero_length is true.  Include the format type
4428         name in the warning message.
4429         * doc/invoke.texi: Document -Wformat-zero-length.
4430         * testsuite/gcc.dg/format/zero-length-1.c: New test.
4431
4432 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
4433
4434         * timevar.c: Fix formatting.
4435         * tlink.c: Likewise.
4436         * toplev.c: Likewise.
4437         * tree-dump.c: Likewise.
4438         * tree-inline.c: Likewise.
4439
4440 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4441
4442         * cppinit.c (cpp_post_options): If preprocessed, turn off
4443         traditional.  If traditional, turn off column numbers.
4444         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4445         * cpptrad.c (handle_newline): Update line_base.
4446         (skip_comment): Handle -Wcomment.
4447
4448 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
4449
4450         * cppinit.c (struct builtin): Remove unused fields.
4451         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4452         (operator_array): New - was second half of builtin_array.
4453         (init_builtins): Simplify loop over builtin_array/operator_array.
4454
4455 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4456
4457         * defaults.h (UNIQUE_SECTION): Remove.
4458         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4459
4460 2002-05-17  Richard Henderson  <rth@redhat.com>
4461
4462         * expr.c (init_expr_once): Don't use start/end_sequence.
4463         Use rtx_alloc instead of emit_insn.
4464         * toplev.c (lang_dependent_init): Run init_expr_once here ...
4465         (lang_independent_init): ... not here.
4466
4467 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
4468
4469         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4470
4471 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4472
4473         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
4474         for fixed registers, possibly used for global register variables.
4475         (initial_elimination_offset, avr_output_function_prologue,
4476         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
4477
4478 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4479
4480         * Makefile.in: Update for cpptrad.c.
4481         * cpphash.h (struct cpp_buffer): New members for buffer
4482         overlays.
4483         (struct cpp_reader): New members for traditional output.
4484         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4485         * cppinit.c (cpp_create_reader): Set trad_line.
4486         (cpp_destroy): Free trad_out_base if used.
4487         (cpp_read_main_file): Overlay an empty buffer if traditional.
4488         (cpp_finish_options): Don't do builtins.
4489         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4490         (cpp_handle_option): Handle it.
4491         * cpplex.c (continue_after_nul): New.
4492         (_cpp_lex_direct): Use handle_nul.
4493         * cpplib.h (struct cpp_options): New traditional option.
4494         * cpptrad.c: New file.
4495
4496 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4497
4498         * c-common.c (c_common_init_options): Use C89 for Objective-C,
4499         and set the options flag.
4500         * cppinit.c (lang_flags): Remove objc.
4501         (lang_defaults): Remove OBJC and OBJCXX.
4502         (set_lang): Update.
4503         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4504         (cpp_handle_option): Remove -+ and -lang-objc++.
4505         For ObjC, just set a flag.
4506         (print_help): Update.
4507         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4508
4509 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4510
4511         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4512         bootstrap with -mips3.
4513
4514 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
4515
4516         * final.c: Fix formatting.
4517         * fix-header.c: Likewise.
4518         * flow.c: Likewise.
4519         * fold-const.c: Likewise.
4520         * function.c: Likewise.
4521
4522 2002-05-17  David S. Miller  <davem@redhat.com>
4523
4524         PR c/6689, PR optimization/6615
4525         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4526         and make it a pointer to rtx.  Update comments.
4527         (update_equiv_regs): When scanning for equivalences, record
4528         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
4529         it while making the equiv replacements.
4530
4531 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4532
4533         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4534
4535 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4536
4537         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4538         when encoding visibility into SYMBOL_REF_FLAG.
4539
4540 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
4541
4542         * expr.c (force_operand): Fix reversed move.
4543
4544 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
4545
4546         * doc/install.texi (Testing): Mention two common DejaGnu warnings
4547         that can be ignored.
4548
4549 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4550
4551         * doc/install.texi (Final install): Recommend to install into a
4552         "clean" target directory.
4553
4554 2002-05-17  Richard Henderson  <rth@redhat.com>
4555
4556         * config/ia64/ia64.md: Use braced strings instead of quoted strings
4557         for code blocks.  Tidy whitespace.
4558
4559 2002-05-17  Richard Henderson  <rth@redhat.com>
4560
4561         * hooks.c (hook_tree_bool_false): New.
4562         * hooks.h: Declare it.
4563         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4564         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4565         * target.h (select_section, unique_section): New.
4566         (in_small_data_p): New.
4567         * varasm.c (resolve_unique_section): Use hooks instead of macros.
4568         (variable_section, output_constant_def_contents): Likewise.
4569         (default_select_section, default_unique_section): New.
4570         (categorize_decl_for_section, default_elf_select_section): New.
4571         * output.h: Declare them.
4572
4573         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4574         (TARGET_ASM_SELECT_SECTION): New.
4575         (SELECT_SECTION): Move ...
4576         * config/darwin.c (machopic_select_section): ... here.
4577         * config/darwin-protos.h: Update.
4578
4579         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4580         (SELECT_SECTION): Move ...
4581         * config/nextstep.c (nextstep_select_section): ... here.
4582         * config/nextstep-protos.h: Update.
4583
4584         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4585         (TARGET_ASM_SELECT_SECTION): New.
4586         * config/svr3.h (SELECT_SECTION): Remove.
4587
4588         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4589         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4590         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4591         (alpha_encode_section_info): Use it.
4592         * config/alpha/alpha-protos.h: Update.
4593         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4594         (SELECT_SECTION, UNIQUE_SECTION): Remove.
4595         (TARGET_ASM_SELECT_SECTION): New.
4596         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4597
4598         * config/arm/pe.h (UNIQUE_SECTION): Remove.
4599         (TARGET_ASM_UNIQUE_SECTION): New.
4600
4601         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4602         (avr_unique_section): Rename from unique_section; make static.
4603         * config/avr/avr-protos.h: Update.
4604         * config/avr/avr.h (UNIQUE_SECTION): Remove.
4605
4606         * config/c4x/c4x.h (SELECT_SECTION): Remove.
4607
4608         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4609         (TARGET_ASM_UNIQUE_SECTION): New.
4610         * config/i386/i386-interix.h: Likewise.
4611         * config/i386/win32.h: Likewise.
4612         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4613         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4614         * config/i386/sco5.h (SELECT_SECTION): Remove.
4615         (TARGET_ASM_SELECT_SECTION): New.
4616         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4617
4618         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4619         instead of SELECT_SECTION.
4620         * config/m68k/dpx2.h: Likewise.
4621         * config/rs6000/lynx.h: Likewise.
4622
4623         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4624         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4625         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4626         (ia64_in_small_data_p): New.
4627         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
4628         (ia64_aix_select_section, ia64_aix_unique_section): New.
4629         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4630         (SELECT_SECTION, UNIQUE_SECTION): Remove.
4631
4632         * config/m32r/m32r.h (SELECT_SECTION): Remove.
4633         (TARGET_ASM_SELECT_SECTION): New.
4634         * config/m32r/m32r.c (m32r_select_section): Take align argument.
4635         * config/m32r/m32r-protos.h: Update.
4636
4637         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4638         (SELECT_SECTION): Move ...
4639         * config/m88k/m88k.c (m88k_select_section): ... here.
4640
4641         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4642         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4643         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4644         (mcore_unique_section): Make static.
4645         * config/mcore/mcore-protos.h: Update.
4646
4647         * config/mips/elf.h (UNIQUE_SECTION): Remove.
4648         (TARGET_ASM_UNIQUE_SECTION): New.
4649         * config/mips/elf64.h: Likewise.
4650         * config/mips/iris6gld.h: Likewise.
4651         * config/mips/linux.h: Likewise.
4652         * config/mips/mips-protos.h: Update.
4653         * config/mips/mips.c (mips_select_section): Add align argument.
4654         * config/mips/mips.h (SELECT_SECTION): Remove.
4655         (TARGET_ASM_SELECT_SECTION): New.
4656
4657         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4658         * config/mmix/mmix.c (mmix_select_section): Remove.
4659         (mmix_unique_section): Remove.
4660         * config/mmix/mmix-protos.h: Update.
4661
4662         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4663         (SELECT_SECTION): Move ...
4664         * config/pa/pa.c (pa_select_section): ... here.
4665         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4666
4667         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4668         from rs6000_select_section and make static.
4669         (rs6000_elf_unique_section): Similarly.
4670         (rs6000_xcoff_select_section): From xcoff.h.
4671         (rs6000_xcoff_unique_section): Likewise.
4672         * config/rs6000/rs6000-protos.h: Update.
4673         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4674         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4675         * config/rs6000/xcoff.h: Likewise.
4676
4677         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4678         (SELECT_SECTION): Move ...
4679         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4680
4681         * config/v850/v850.h (SELECT_SECTION): Move ...
4682         * config/v850/v850.c (v850_select_section): ... here.
4683         (TARGET_ASM_SELECT_SECTION): New.
4684
4685         * config/vax/vms.h (SELECT_SECTION): Move ...
4686         * config/vax/vax.c (vms_select_section): ... here.
4687         (TARGET_ASM_SELECT_SECTION): New.
4688
4689         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4690         for the target hooks.
4691
4692 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
4693
4694         * config/arm/arm.c (emit_multi_reg_push): Do not set
4695         RTX_FRAME_RELATED_P on the SEQUENCE.
4696
4697 2002-05-16  Richard Henderson  <rth@redhat.com>
4698
4699         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4700         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
4701
4702 2002-05-16  Richard Henderson  <rth@redhat.com>
4703
4704         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4705
4706         * config/ia64/ia64.c (saveable_obstack): Do not declare.
4707
4708 2002-05-16  Richard Henderson  <rth@redhat.com>
4709
4710         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4711         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4712         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4713         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4714         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4715         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4716         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4717         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4718         Revert "Basic block renumbering removal", and two followup patches.
4719
4720 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
4721
4722         * lcm.c (optimize_mode_switching): Revert previous change.
4723
4724 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4725
4726         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4727         with only extant block numbers.
4728
4729 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
4730
4731         * lcm.c (optimize_mode_switching): Fix typo.
4732
4733 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4734
4735         * flow.c (calculate_global_regs_live): Queue blocks in program order.
4736
4737 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4738
4739         * doc/install.texi (Configuration): Document PWDCMD.
4740
4741 2002-05-16  Dale Johannesen  <dalej@apple.com>
4742
4743         * combine.c (cant_combine_insn_p):  Reenable combinations
4744         involving hard regs unless CLASS_LIKELY_SPILLED_P.
4745
4746 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4747
4748         * c-common.c (cb_register_builtins): Handle more built-ins
4749         here rather than in gcc.c specs.
4750         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
4751         (cpp_options): Pass -O flags even when only preprocessing.
4752         * toplev.c (set_fast_math_flags): New prototype.
4753         (fast_math_flags_set_p): New.
4754         (set_no_fast_math_flags): Remove.
4755         (decode_f_option): Update.
4756         * toplev.h (set_fast_math_flags): Update.
4757         (fast_math_flags_set_p): New.
4758         (set_no_fast_math_flags): Remove.
4759 config:
4760         * c4x/c4x.c (c4x_override_options): Update.
4761
4762 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
4763
4764         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
4765         Default-define here.
4766         (builtin_define_with_value): Can now wrap the expansion in
4767         quotation marks if such is wanted.
4768         (cb_register_builtins): Update calls to builtin_define_with_value.
4769         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
4770         here.
4771         (c_common_init): Set options->stdc_0_in_system_headers.
4772         * c-lex.h: Update prototype of builtin_define_with_value.
4773         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
4774         and REGISTER_PREFIX.
4775
4776         * cppinit.c (VERS, ULP, C, X): Kill.
4777         (builtin_array): Remove entries for __VERSION__,
4778         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
4779         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
4780         a constant.
4781         (init_builtins): Kill off a bunch of now-dead code.
4782         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
4783         -fno-leading-underscore.
4784         (cpp_handle_option): Remove code to set user_label_prefix.
4785         (cpp_post_options): Likewise.
4786
4787         * cpplib.h (struct cpp_options): Remove user_label_prefix.
4788         (stdc_0_in_system_headers): New.
4789         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
4790         stdc_0_in_system_headers) too to decide the value of __STDC__.
4791
4792         * tradcpp.c (user_label_prefix): Kill.
4793         (main): Remove code handling -f(no-)leading-underscore.
4794         (initialize_builtins): Don't define __REGISTER_PREFIX__
4795         or __USER_LABEL_PREFIX__.
4796         (install_value): Wrap compound statement in dummy loop so the
4797         macro works properly in an if statement.
4798
4799
4800 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
4801
4802         * loop.h (struct loop_info): Add member has_prefetch.
4803         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
4804         (prescan_loop): Initialize has_prefetch.
4805         (struct prefetch_info): Change prefetch_in_loop and
4806         prefetch_before_loop from bit fields to ints.
4807         (emit_prefetch_instructions): Several small fixes.
4808         (check_dbra_loop): Don't reverse loop that uses prefetch.
4809
4810 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4811
4812         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
4813         * configure.in: Likewise.
4814         * fixinc/check.tpl: Likewise.
4815         * fixinc/fixinc.dgux: Likewise.
4816         * fixinc/fixinc.svr4: Likewise.
4817         * fixinc/fixinc.winnt: Likewise.
4818         * fixinc/fixincl.sh: Likewise.
4819         * fixproto: Likewise.
4820         * configure: Regenerate.
4821
4822 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4823
4824         Basic block renumbering removal:
4825         * basic_block.h (struct basic_block_def): Renamed index to sindex,
4826         added prev_bb and next_bb fields.
4827         (n_basic_blocks): Renamed to num_basic_blocks.
4828         (last_basic_block): New, index of last basic block.
4829         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4830         traversing basic block chain.
4831         (BLOCK_NUM): index -> sindex.
4832         (create_basic_block_structure, create_basic_block): Declaration changed.
4833         (debug_num2bb): Declare.
4834         (expunge_block_nocompact): Declaration removed.
4835         (link_block, unlink_block, compact_blocks): Declare.
4836         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
4837         * cfg.c (entry_exit_blocks): Initialize new fields.
4838         (clear_edges, alloc_block, expunge_block, cached_make_edge,
4839         redirect_edge_pred, dump_flow_info, dump_edge_info,
4840         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
4841         free_aux_for_edges): Modified.
4842         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
4843         (expunge_block_nocompact): Removed.
4844         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
4845         find_unreachable_blocks, create_edge_list, print_edge_list,
4846         verify_edge_list, flow_edge_list_print, remove_fake_successors,
4847         remove_fake_edges, flow_reverse_top_sort_order_compute,
4848         flow_depth_first_order_compute, flow_preorder_transversal_compute,
4849         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
4850         flow_dfs_compute_reverse_execute): Modified.
4851         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
4852         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
4853         Modified.
4854         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
4855         merge_blocks_move_predecessor_nojumps,
4856         merge_blocks_move_successor_nojumps, merge_blocks,
4857         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
4858         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
4859         * cfglayout.c (skip_insns_after_block, label_for_bb,
4860         record_effective_endpoints, scope_to_insns_finalize,
4861         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
4862         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
4863         cfg_layout_duplicate_bb): Modified.
4864         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
4865         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4866         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
4867         flow_loops_find, flow_loop_outside_edge_p): Modified.
4868         * cfgrtl.c (create_basic_block_structure, create_basic_block,
4869         flow_delete_block, compute_bb_for_insn, split_block,
4870         try_redirect_by_replacing_jump, redirect_edge_and_branch,
4871         force_nonfallthru_and_redirect, tidy_fallthru_edge,
4872         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
4873         commit_edge_insertions, commit_edge_insertions_watch_calls,
4874         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
4875         purge_all_dead_edges): Modified.
4876         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
4877         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4878         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
4879         Modified.
4880         * conflict.c (conflict_graph_compute): Modified.
4881         * df.c (FOR_ALL_BBS): Removed.
4882         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4883         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
4884         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
4885         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
4886         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4887         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
4888         * final.c (compute_alignments, final_scan_insn): Modified.
4889         * flow.c (verify_local_live_at_start, update_life_info,
4890         update_life_info_in_dirty_blocks, free_basic_block_vars,
4891         delete_noop_moves, calculate_global_regs_live,
4892         initialize_uninitialized_subregs, allocate_bb_life_data,
4893         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
4894         mark_used_reg, count_or_remove_death_notes): Modified.
4895         * function.c (thread_prologue_and_epilogue_insns): Modified.
4896         * gcse.c (struct null_pointer_info): Change typo of current_block
4897         to basic_block.
4898         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
4899         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
4900         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
4901         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
4902         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
4903         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
4904         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
4905         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
4906         pre_delete, one_pre_gcse_pass, compute_transpout,
4907         invalidate_nonnull_info, delete_null_pointer_checks_1,
4908         free_code_hoist_mem, compute_code_hoist_vbeinout,
4909         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4910         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
4911         compute_store_table, build_store_vectors, insert_insn_start_bb,
4912         insert_store, replace_store_insn, free_store_memory, store_motion):
4913         Modified.
4914         * global.c (global_alloc, global_conflicts, mark_elimination,
4915         build_insn_chain): Modified.
4916         * graph.c (print_rtl_graph_with_bb): Modified.
4917         * haifa-sched.c (sched_init): Modified.
4918         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4919         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
4920         if_convert): Modified.
4921         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
4922         compute_insert_delete, pre_edge_lcm, compute_available,
4923         compute_farthest, compute_nearerout, compute_rev_insert_delete,
4924         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
4925         Modified.
4926         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
4927         * loop.c (loop_dump_aux): Modified.
4928         * predict.c (combine_predictions_for_insn, estimate_probability,
4929         last_basic_block_p, process_note_prediction, process_note_predictions,
4930         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
4931         expensive_function_p, estimate_bb_frequencies,
4932         compute_function_frequency): Modified.
4933         * print-rtl.c (print_rtx): Modified.
4934         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
4935         get_exec_counts, compute_branch_probabilities, compute_checksum,
4936         branch_prob, find_spanning_tree): Modified.
4937         * recog.c (split_all_insns, peephole2_optimize): Modified.
4938         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
4939         convert_regs_1, convert_regs_2, convert_regs): Modified.
4940         * regclass.c (scan_one_insn, regclass): Modified.
4941         * regmove.c (mark_flags_life_zones, regmove_optimize,
4942         combine_stack_adjustments): Modified.
4943         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
4944         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
4945         * reorg.c (dbr_schedule): Modified.
4946         * resource.c (find_basic_block, init_resource_info): Modified.
4947         * sbitmap.c (sbitmap_intersection_of_succs,
4948         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
4949         sbitmap_union_of_preds): Modified.
4950         * sched-deps.c (init_dependency_caches): Modified.
4951         * sched-ebb.c (schedule_ebbs): Modified.
4952         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
4953         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
4954         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
4955         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
4956         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
4957         ssa_const_prop): Modified.
4958         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
4959         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
4960         * ssa.c (remove_phi_alternative, find_evaluations,
4961         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
4962         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
4963         make_regs_equivalent_over_bad_edges,
4964         make_equivalent_phi_alternatives_equival,
4965         compute_conservative_reg_partition,
4966         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
4967         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
4968         Modified.
4969
4970 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
4971
4972         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
4973
4974 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
4975
4976         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
4977         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4978         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
4979         calling CONSTANT_POOL_ADDRESS_P.
4980         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
4981         to decide whether to define __arm__ or __thumb.
4982         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
4983         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4984
4985 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4986
4987         * config/arc/arc.h (CPP_PREDEFINES): Remove.
4988         (CPP_SPEC): Update.
4989         (TARGET_CPU_CPP_BUILTINS): New.
4990
4991 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4992
4993         * cpphash.h (cpp_macro): Move here, and make expansion a union.
4994         * cppmacro.c (cpp_macro): Remove.
4995         (enter_macro_context, replace_args, warn_of_redefinition,
4996         _cpp_create_definition, cpp_macro_definition): Update.
4997
4998 2002-05-16  Jason Merrill  <jason@redhat.com>
4999
5000         * config/mips/mips.c (mips_output_external): Don't do sdata
5001         optimization for a variable with DECL_COMDAT set.
5002
5003 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5004
5005         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
5006         Cleanups for accepting modifiers on pointers.
5007         Fix predicate typos.
5008         Allow long pointers as well as int pointers.
5009
5010 2002-05-15  Richard Henderson  <rth@redhat.com>
5011
5012         * varasm.c (merge_weak): Remove special case for extern and common.
5013
5014 2002-05-15  Matt Hiller  <hiller@redhat.com>
5015
5016         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
5017         XFAILing.
5018         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
5019         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
5020         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
5021         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
5022         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
5023         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
5024
5025 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5026
5027         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
5028
5029 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5030
5031         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
5032         ("altivec_mfvscr"): Read from VSCR.
5033
5034         Add vscr sets for the following insns: altivec_vctuxs,
5035         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
5036         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
5037         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
5038         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
5039         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
5040         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
5041         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
5042         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
5043         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
5044         altivec_vsum2sws, altivec_vsumsws.
5045
5046         * config/rs6000/rs6000.h: Add VSCR fixed register.
5047         (CALL_REALLY_USED_REGISTERS): Add vscr.
5048         (CALL_USED_REGISTERS): Same.
5049         (FIXED_REGISTERS): Same.
5050         (REG_ALLOC_ORDER): Same.
5051         (reg_class): Add VSCR_REGS.
5052         (REG_CLASS_NAMES): Same.
5053         (REG_CLASS_CONTENTS): Same.
5054         (VSCR_REGNO): New.
5055         (REGISTER_NAMES): Add vscr.
5056         (DEBUG_REGISTER_NAMES): Same.
5057         (ADDITIONAL_REGISTER_NAMES): Same.
5058         (FIRST_PSEUDO_REGISTER): Increment.
5059         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5060
5061 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
5062
5063         * fold-const.c (fold): Fix a typo.
5064
5065 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
5066
5067         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
5068         comparison against the highest or lowest integer value before
5069         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
5070         transformation and that of an unsigned comparison against 0
5071         right after.
5072
5073 2002-05-15  Richard Henderson  <rth@redhat.com>
5074
5075         * varasm.c (merge_weak): Error for any weakening after definition.
5076         Adjust weakening after use warning to catch more cases.
5077         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
5078         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
5079
5080 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
5081
5082         * invoke.texi (-malign-double): Re-add lost warning.
5083
5084         * i386-protos.h (x86_output_mi_thunk): Declare.
5085         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
5086         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
5087
5088         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
5089         when flag_asynchronous_unwind_tables is set.
5090
5091         * flags.h (flag_reorder_functions): Declare.
5092         * function.c (prepare_function_start): Initialize frequnecy.
5093         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
5094         * Makefile.in (predict.o): Add dependency on target.h and params.h
5095         * defaults.h (HOT_TEXT_SECTION_NAME,
5096         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
5097         * predict.c (choose_function_section): New function.
5098         (estimate_bb_frequencies): Use it.
5099         * toplev.c (flag_reorder_functions): New global variable.
5100         (lang_independent_options): New.
5101         (parse_options_and_default_flags): Set.
5102         * varasm.c (assemble_start_function): Bypass functdion alignment
5103         for never executed functions.
5104         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
5105         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
5106         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5107         Document.
5108
5109         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
5110
5111         * predict.c: Inlude profile.h
5112         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
5113         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
5114         Use the information about maximal counter in the program.
5115
5116         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
5117
5118         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
5119         probably_never_executed_bb_p): New functions.
5120         * cfgcleanup.c (outgoing_edges_match): Use them.
5121         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
5122         (maybe_hot_bb_p, probably_cold_bb_p,
5123         probably_never_executed_bb_p): New functions.
5124
5125         * function.h (function): Add new field function_frequency.
5126         * predict.c (compute_function_frequency): New function.
5127         (estimate_probability): Call it.
5128
5129 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5130
5131         PR optimization/5172, optimization/5200
5132         * gcse.c (gcse_main): Disable store_motion.
5133
5134 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
5135
5136         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
5137         (c_common_nodes_and_builtins): Use it.
5138         (builtin_define_with_value): New function.
5139         (cb_register_builtins): Define __SIZE_TYPE__,
5140         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
5141         using builtin_define_with_value.  Use consistent notation when
5142         defining __GXX_WEAK__.
5143         (WCHAR_TYPE_SIZE): Don't redefine.
5144         (combine_strings): Don't use WCHAR_TYPE_SIZE.
5145
5146         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
5147         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
5148         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
5149         * tradcpp.c (initialize_builtins): Likewise.
5150         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
5151
5152         * c-lex.h (builtin_define_with_value): Prototype.
5153         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
5154         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
5155         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
5156
5157         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5158         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
5159         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
5160         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
5161         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
5162         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
5163         config/sparc/sol2-bi.h, config/sparc/sparc.h:
5164         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
5165         to __SIZE_TYPE__ etc from all spec strings. When this makes
5166         extra specs empty, delete them.
5167
5168 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5169
5170         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
5171         for PA8000 or generating dwarf2 call frame information.
5172         (output_call): Remove DO_FRAME_NOTES check from return pointer
5173         optimization.
5174         (following_call): Return 0 when scheduling for PA8000 or generating
5175         dwarf2 call frame information.  Revise comment.
5176
5177 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5178
5179 config/alpha:
5180         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
5181         and __IEEE_FP_INEXACT as appropriate.
5182         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
5183         (CPP_SPEC): Remove ieee defines.
5184         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5185
5186 2002-05-14  Richard Henderson  <rth@redhat.com>
5187
5188         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5189         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5190
5191 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5192
5193         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5194         (CPP_SPEC): Update.
5195         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5196         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5197         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5198         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5199         (EXTRA_SPECS): Update.
5200         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5201         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5202         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5203         define TARGET_OS_CPP_BUILTINS if necessary.
5204
5205 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5206
5207         * gcc.c (cpp_options): Must pass -m* and -f* options
5208         to the front end even when only preprocessing.
5209         (cc1_options): Remove redundant -lang-c.
5210         * tradcpp.c (main): Ignore -m options.
5211 objc:
5212         * lang-specs.h: Similarly.
5213
5214 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
5215
5216         * genautomata.c (transform_3): Add code for transformation
5217         `(A,B,...)+C -> A+C,B,...'.
5218
5219 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
5220
5221         * final.c (end_final): Do not output profile_arcs constructor, when
5222         no functions are instrumented.
5223
5224 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
5225
5226         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5227
5228 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5229
5230         * doc/install.texi: Remove special markup originally required for
5231         HTML generation with texi2html.
5232
5233 2002-05-14  Andreas Schwab  <schwab@suse.de>
5234
5235         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5236         SELECT_SECTION.
5237         (UNIQUE_SECTION): Define to get small data correctly.
5238
5239         * varasm.c (resolve_unique_section): Add third parameter
5240         flag_function_or_data_sections and use it instead of
5241         flag_function_sections.
5242         (assemble_start_function): Pass flag_function_sections.
5243         (asm_emit_uninitialised): Pass flag_data_sections.
5244         (assemble_variable): Likewise.
5245
5246 2002-05-14  Richard Henderson  <rth@redhat.com>
5247
5248         * config/i386/i386.md: Use define_constants for unspec numbers.
5249         * config/i386/i386.c: Likewise.
5250
5251 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5252
5253         * doc/contrib.texi: Update my entry.
5254
5255 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
5256
5257         * fixinc/inclhack.def (winidss_valist): Limit applicability.
5258         * fixinc/fixincl.x: Regenerated.
5259         * fixinc/tests/base/math.h: Update.
5260         * fixinc/tests/base/testing.h: Likewise.
5261
5262 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
5263
5264         * genattr.c (gen_attr): Don't emit a comma after the last
5265         enumerator.
5266
5267 2002-05-13  Richard Henderson  <rth@redhat.com>
5268
5269         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5270         by non-local gotos.
5271         * recog.c (peephole2_optimize): Likewise.
5272
5273 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
5274
5275         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5276         input to O_BINARY.
5277
5278 2002-05-13  Jeffrey A Law  (law@redhat.com)
5279
5280         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5281         Update prototype and callers.
5282         (propagate_one_insn): Stack pointer adjustments kill MEMs on
5283         the mem_set_list which reference the stack pointer, as do
5284         calls to constant functions as they may clobber outgoing
5285         argument space.
5286
5287         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5288
5289         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5290         (ia32_multipass_dfa_lookahead): New function.
5291
5292 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5293
5294         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5295         (translate_options): Remove 'V'.
5296         (process_command): Similarly.
5297 doc:
5298         * invoke.texi: Remove documentation of 'V'.
5299
5300 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
5301
5302         * config/s390/linux.h: Revert 2002-04-22 changes.
5303
5304 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
5305
5306         * config/fr30/fr30.md: Only allow splits of immediate loads
5307         if the destination is a register.
5308
5309 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5310
5311         * Makefile.in (c-common.o, cppinit.o): Update.
5312         * c-common.c: Include except.h.
5313         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5314         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5315         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5316         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5317         CPP_PREDEFINES): Handle here.
5318 config:
5319         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5320         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5321         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5322         TARGET_OS_CPP_BUILTINS.
5323         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5324         (CPP_SPEC, EXTRA_SPECS): Update.
5325         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5326         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5327         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5328         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5329         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5330 doc:
5331         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5332         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5333
5334 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
5335
5336         * emit-rtl.c (global_rtl): Update comment.
5337         (const_double_htab, const_double_htab_hash,
5338         const_double_htab_hash, lookup_const_double): New.
5339         (const_int_htab_hash, const_int_htab_eq): Remove const
5340         qualifiers, which cause tons of warnings with RTL checking on.
5341         (gen_rtx_CONST_DOUBLE): Deleted.
5342         (const_double_from_real_value): New function - bears some
5343         resemblance to the former immed_real_const_1.
5344         (immed_double_const): Moved here from varasm.c and
5345         simplified.
5346         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5347         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5348         (gen_rtx): Use immed_double_const.
5349         (init_emit_once): Initialize the const_double_htab.  Use
5350         REAL_VALUE_FROM_INT where possible.  Can now use
5351         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5352         * varasm.c (struct varasm_status): Remove x_const_double_chain.
5353         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5354         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5355         (init_varasm_status, mark_varasm_status): Don't touch
5356         x_const_double_chain.
5357
5358         * output.h: Delete prototype for clear_const_double_mem.
5359         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
5360         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
5361         const_double_from_real_value, not immed_real_const_1, and use
5362         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
5363         CONST_DOUBLE_ATOF.
5364         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5365         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5366         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5367         (gen_rtx_REG): Second arg is unsigned.
5368
5369         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5370         (excluded_rtx): New, return true for CONST_DOUBLE.
5371         (genmacro): Write nothing for excluded codes.
5372         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5373         * expr.c (expand_expr): Likewise.
5374         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5375         CONST_DOUBLE_CHAIN.
5376         * toplev.c (rest_of_compilation): Don't call
5377         clear_const_double_mem.
5378
5379         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5380         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5381         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5382         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5383         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5384         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5385         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5386         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5387
5388 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5389
5390         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5391
5392 2002-05-12  Tom Tromey  <tromey@redhat.com>
5393
5394         * tree.h (copy_node): Don't mention TREE_PERMANENT.
5395
5396 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
5397
5398         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5399         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
5400         * gensupport.h: Prototype new routines.
5401         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
5402         use of printf.
5403         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5404         (next_comma_elt): Use scan_comma_elt.
5405
5406         * config/i386/i386.md: Use new attribute notation to break up
5407         long lines in define_attr forms.
5408
5409 2002-05-12  Richard Henderson  <rth@redhat.com>
5410
5411         * expr.c (compress_float_constant): New.
5412         (emit_move_insn): Use it.
5413         (float_extend_from_mem): New.
5414         (init_expr_once): Initialize it.
5415         * real.c (exact_real_truncate): New.
5416
5417         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5418         dropped into memory; penalize for size.
5419         (RTX_COSTS): FLOAT_EXTEND is free.
5420         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5421         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5422
5423 2002-05-12  Richard Henderson  <rth@redhat.com>
5424
5425         * profile.h (profile_info): Add missing extern to declaration.
5426         * profile.c (profile_info): Define it.
5427
5428 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5429
5430         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5431         used for DImode and TImode.
5432
5433 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5434
5435         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5436         fake a newline.
5437
5438 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
5439
5440         * config/rs6000/rs6000.c (rs6000_default_long_calls,
5441         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5442         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5443         (rs6000_override_options): Handle -m(no-)longcall.
5444         (init_cumulative_args, output_mi_thunk): Check for both
5445         longcall and shortcall attributes on the function.
5446         (rs6000_attribute_table): Add "shortcall".
5447         (rs6000_handle_longcall_attribute): Update comment.
5448         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5449         altivec_expand_ternop_builtin): Add default clauses to switches
5450         to silence warnings.
5451
5452         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5453         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
5454         (TARGET_OPTIONS): Add longcall and no-longcall.
5455
5456         * config/rs6000/rs6000.md (call_nonlocal_sysv,
5457         call_value_nonlocal_sysv): Split by alternatives.  One pair
5458         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5459         the call cookie.  The other pair accepts only LR/CTR and has
5460         no restriction.
5461
5462         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5463         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5464         tmake_file.
5465         * config/rs6000/rs6000-c.c: New file.
5466         * config/rs6000/t-rs6000-c-rule: New file.
5467         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5468         Prototype rs6000_pragma_longcall.
5469
5470         * doc/extend.texi: Document shortcall attribute.
5471         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5472
5473 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5474
5475         * reorg.c (dbr_schedule): Remove unnecessary test.
5476
5477 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5478
5479         * i386.md (testsi to testqi spliters): New.
5480
5481         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
5482
5483         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5484
5485         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
5486
5487         * basic-block.h: New flag EDGE_CAN_FALLTHRU
5488         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5489         that can be made fallthru.
5490
5491         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
5492
5493         * cfglayout.c (cleanup_unconditional_jumps): New static function.
5494         (cfg_layout_initialize): Use it.
5495
5496 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5497
5498         * config/avr/avr.c (avr_mcu_types): Update supported devices.
5499         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5500         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5501
5502 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
5503
5504         * dbxout.c: Fix formatting.
5505         * dependence.c: Likewise.
5506         * df.c: Likewise.
5507         * diagnostic.c: Likewise.
5508         * doloop.c: Likewise.
5509         * dominance.c: Likewise.
5510         * doschk.c: Likewise.
5511         * dwarf2asm.c: Likewise.
5512         * dwarf2out.c: Likewise.
5513         * dwarfout.c: Likewise.
5514
5515 2002-05-10  Richard Henderson  <rth@redhat.com>
5516
5517         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
5518         Convert integers constants as needed.  Replace "nwords" field with
5519         "sizeof_bb".
5520         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5521         * function.h: Fix typo in comment.
5522         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5523
5524 2002-05-10  Roger Sayle  <roger@eyesopen.com>
5525
5526         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5527         into the equivalent (signed char)c > 0.
5528
5529 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
5530
5531         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5532         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5533         (struct prefetch_info): Fix spelling of member bytes_accessed.
5534         (emit_prefetch_instructions): Make dump messages more regular;
5535         restructure code to add more dump messages; use new macros for
5536         heuristics. (There are no code generation changes in any of this).
5537
5538 2002-05-10  David S. Miller  <davem@redhat.com>
5539
5540         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5541         (struct rtx_def): Update unchanging flag comment.
5542         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5543         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5544         to be handled to INSN too.
5545         (dbr_schedule): Likewise.
5546         * resource.c (next_insn_no_annul): Likewise.
5547
5548         * cse.c (rtx_cost): Remove multiplication by power of 2 special
5549         casing.
5550
5551 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5552
5553         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5554         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5555         (possibly) work around broken /bin/sh.
5556
5557 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5558
5559         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5560         . as N64/N32 libgcc_s.so subdirs.
5561
5562 2002-05-10  David S. Miller  <davem@redhat.com>
5563
5564         * config/sparc/sparc.md: Use define_constants for unspec numbers.
5565
5566         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5567         more accurately.
5568         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5569         comment.
5570         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5571         * doc/rtl.texi: Document these macros more accurately.
5572         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5573         JUMP_INSNs and CALL_INSNs.
5574         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5575         or INSN_FROM_TARGET_P if the code is appropriate.
5576
5577 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5578
5579         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5580         before using SYMBOL_REF_FLAG (addr).
5581
5582         * config/avr/avr-protos.h (avr_io_address_p): Declare.
5583         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5584         Make non-static.  Update all callers.
5585         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5586         New insns to clear/set/test a single bit in I/O address space.
5587
5588 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5589
5590         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5591
5592 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5593
5594         * Makefile.in: Update.
5595         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5596         builtin_define_std): New.
5597         (c_common_init): Register CPP builtins callback.
5598         * c-common.h (flag_iso, flag_undef): New.
5599         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5600         * c-lex.c: Don't include target.h.
5601         (cb_register_builtins): Move to c-common.c.
5602         (init_c_lex): Don't register hook here.
5603         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5604         (cpp_define, cpp_assert): Remove.
5605         * gcc.c (cc1_options): Pass -undef to front end.
5606         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5607         (TARGET_INITIALIZER): Update.
5608         * target.h (struct cpp_reader): Don't predeclare.
5609         (struct gcc_target): Remove cpp builtin hook.
5610         * tree.c (default_register_cpp_builtins): Remove.
5611 doc:
5612         * tm.texi: Update.
5613
5614 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5615
5616         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5617
5618 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5619
5620         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5621         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5622
5623 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
5624
5625         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5626         * config/sparc/libgcc-sparc-glibc.ver: New file.
5627         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5628         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5629
5630 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
5631
5632         PR target/6429
5633         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5634         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5635         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5636         base multilibs.
5637         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5638         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5639         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5640         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5641
5642 2002-05-09  Richard Henderson  <rth@redhat.com>
5643
5644         * config/ia64/ia64.md: Use define_constants for unspec numbers.
5645         * config/ia64/ia64.c: Likewise.
5646
5647 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
5648
5649         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5650         (save_restore_insns): Likewise.
5651         (mips_expand_prologue, mips_expand_epilogue): Update callers.
5652         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5653
5654 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
5655
5656         * athlon.md, k6.md, pentium.md, ppro.md): New files.
5657         * i386.md: Move scheduling information into new files.
5658
5659         * i386.md (type attribute): Add "rotate" for rotate insns.
5660         (rotate insns): Set type to "rotate".
5661         (various attributes and function units): Treat rotate like shift.
5662         (pent_pair attribute): Only rotates by one bit position are
5663         pairable.
5664         (sbb insns): Explicitly set pent_pair attribute on a couple
5665         that were missing it.
5666
5667 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
5668
5669         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5670         make sure that buffer starts on odd word address.
5671         (sh_va_arg): Skip odd fp registers when reading a double precision
5672         value.
5673
5674 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5675
5676         * tree.h (preserve_data, object_permanent_p, type_precision):
5677         Remove.
5678
5679 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5680
5681         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5682         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5683 doc:
5684         * cpp.texi: Update for removal of obsolete features.
5685
5686 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
5687                           Jeffrey A Law  (law@redhat.com)
5688
5689         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
5690         the DFA interface for Pentium processors.
5691         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5692         (attr_pent_pair, ix86_pent_find_pair): Remove.
5693         (ix86_sched_reorder_pentium): Remove.
5694         (ix86_sched_reorder): Remove reordering for Pentium.
5695         * i386.md (Pentium scheduling): Rewrite using DFA description.
5696
5697 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
5698
5699         * cfganal.c (can_fallthru): Fix fast path.
5700         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5701         with edges to the next block.
5702
5703 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
5704                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
5705
5706         * final.c (end_final): Use C trees to output data structures for profiling.
5707
5708         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5709         (profile.o): New dependency profile.h
5710         (final.o): New dependency profile.h
5711         * profile.h: New file. New global structure profile_info.
5712         * final.h (count_edges_instrumented_now): Declare.
5713         (current_function_cfg_checksum): Declare.
5714         (function_list): New structure.
5715         (functions_head, functions_tail): New static variables.
5716         (end_final): Emits more data, removed some -ax stuff.
5717         (final): Stores function names and chcksums.
5718         * gcov-io.h (__write_gcov_string): New function.
5719         (__read_gcov_string): New function.
5720         * gcov.c (read_profile): New function.
5721         (create_program_flow_graph): Uses read_profile instead of reading
5722         da_file.
5723         (read_files): Removed da_file checking, it's done by read_profile now.
5724         * libgcc2.c (bb_function_info): New structure.
5725         (bb): New field in structure, removed some -ax stuff.
5726         (__bb_exit_func): Changed structure of da_file.
5727         * profile.c (count_edges_instrumented_now): New global variable.
5728         (current_function_cfg_checksum): New global variable.
5729         (max_counter_in_program): New global variable.
5730         (get_exec_counts): New function.
5731         (compute_checksum): New function.
5732         (instrument_edges): Sets count_edges_instrumented_now.
5733         (compute_branch_probabilities): Uses get_exec_counts instead of
5734         reading da_file.
5735         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5736         (init_branch_prob): Removed da_file checking, done in get_exec_counts
5737         now.
5738         (end_branch_prob): Removed da_file checking, done in get_exec_counts
5739         now.
5740         * gcov.texi: Updated information about gcov file format.
5741
5742 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
5743
5744         * sbitmap.c: Fix formatting.
5745         * scan.c: Likewise.
5746         * scan-decls.c: Likewise.
5747         * sched-deps.c: Likewise.
5748         * sched-ebb.c: Likewise.
5749         * sched-rgn.c: Likewise.
5750         * sched-vis.c: Likewise.
5751         * sdbout.c: Likewise.
5752         * sibcall.c: Likewise.
5753         * simplify-rtx.c: Likewise.
5754         * ssa.c: Likewise.
5755         * ssa-ccp.c: Likewise.
5756         * ssa-dce.c: Likewise.
5757         * stmt.c: Likewise.
5758         * stor-layout.c: Likewise.
5759         * stringpool.c: Likewise.
5760
5761 2002-05-09  David S. Miller  <davem@redhat.com>
5762
5763         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
5764
5765 2002-05-07  David S. Miller  <davem@redhat.com>
5766
5767         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
5768         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
5769         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
5770         library implementation clobbers the output before the inputs
5771         are fully consumed, use stack temporary for the output.
5772
5773 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
5774
5775         * config/netbsd.h (CPP_SPEC): Remove.
5776         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
5777         * config/i386/netbsd.h (CPP_SPEC): Define.
5778         * config/ns32k/netbsd.h (CPP_SPEC): Define.
5779         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
5780         * config/sparc/netbsd.h (CPP_SPEC): Define.
5781         * config/vax/netbsd.h (CPP_SPEC): Define.
5782
5783 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
5784
5785         * read-rtl.c: Fix formatting.
5786         * real.c: Likewise.
5787         * recog.c: Likewise.
5788         * regclass.c: Likewise.
5789         * regmove.c: Likewise.
5790         * reg-stack.c: Likewise.
5791         * reload1.c: Likewise.
5792         * reload.c: Likewise.
5793         * resource.c: Likewise.
5794         * rtlanal.c: Likewise.
5795         * rtl.c: Likewise.
5796         * rtl-error.c: Likewise.
5797
5798 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5799
5800         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
5801         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
5802
5803 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
5804
5805         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
5806         use __SSE2__ macro instead.
5807         * config/i386/xmmintrin.h: Likewise.
5808
5809 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
5810
5811         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
5812         and use it in all invocations of these macros.  Clean up comments.
5813         * rtl.c (rtl_check_failed_flag): Add an argument for the name
5814         of the flag access macro whose check failed.
5815         * doc/rtl.texi (Flags): Document additional flag uses.
5816
5817 2002-05-08  Robert Spier <rspier@pobox.com>
5818             Neil Booth  <neil@daikokuya.demon.co.uk>
5819
5820         PR preprocessor/6521
5821         * cppfiles.c (handle_missing_header): Don't do anything
5822         different for <> includes.
5823 doc:
5824         * cppopts.texi: Update documentation for -MG.
5825
5826 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5827
5828         * cpplex.c (cpp_interpret_charconst): Truncate as well as
5829         sign-extend.
5830 doc:
5831         * cpp.texi: Clarify multichar charconst valuation.
5832
5833 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
5834
5835         * doc/invoke.texi: Document -mwindiss option.
5836
5837 2002-05-08  Jason Merrill  <jason@redhat.com>
5838
5839         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
5840
5841         * dwarf2out.c (gen_type_die): Abort on broken recursion.
5842
5843         PR c++/6381
5844         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
5845         REAL_CST.
5846
5847 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
5848
5849         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
5850         little-endian multilibs to override arm/thumb multilibs.
5851         Do not build hardware floating point multilibs, nor apcs-26
5852         multilibs for the Thumb.
5853
5854 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
5855
5856         PR c/6569.
5857         * varasm.c (mark_weak): New function.
5858         (merge_weak): Use it.  Do not call declare_weak.
5859         (declare_weak): Use merge_weak.
5860
5861 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
5862
5863         * cse.c (dead_libcall_p): Update counts.
5864         (delete_trivially_dead_insns): Update call of dead_libcall_p.
5865
5866 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5867
5868         * cfglayout.c (function_tail_eff_head): Rename to ...
5869         (function_footer): ... this one.
5870         (unlink_insn_chain): New functions.
5871         (label_for_bb): Only call block_label and emit debug message.
5872         (record_effective_endpoints): Actually unlink the headers and footers.
5873         (fixup_reorder_cahin): Re-insert the unlinked sequences.
5874         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
5875         * cfglayout.h (struct reorder_block_def): New fields footer/header;
5876         remove eff_head/eff_end.
5877         * rtl.h (set_first_insn): Declare.
5878         * emit-rtl.c (set_first_insn): New function.
5879
5880         * cfglayout.c (fixup_reorder_chain): Dump duplicated
5881         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5882         cfg_layout_duplicate_bb): New global function.
5883         (duplicate_insn_chain): New static function.
5884         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5885         cfg_layout_duplicate_bb): Declare.
5886         (struct reorder_block_def): Add "original" field.
5887         * emit-rtl.c (emit_copy_of_insn_after): New function.
5888         * rtl.h (emit_copy_of_insn_after): Declare.
5889
5890         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
5891         (fixup_reorder_chain): properly handle edges to exit block.
5892
5893 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5894                                Jan Hubicka  <jh@suse.cz>
5895
5896         * basic-block.h (note_prediction_to_br_prob): declare.
5897         * c-semantics.c: Inlucde predit.h
5898         (expand_stmt): predict GOTO_STMT as not taken.
5899         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
5900         (cleanup_cfg): Do not free tail_recursion_list.
5901         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
5902         (flow_delete_block): Kill predictions past end of basic block.
5903         * output.h (delete_unreachable_blocks): Declare.
5904         * predict.c (predicted_by_p, process_note_predictions,
5905         process_note_prediction, last_block_p): New function.
5906         (estimate_probability): Bypass loop on PRED_CONTINUE;
5907         do not handle noreturn heuristics; kill PRED_RETURN; add
5908         PRED_EARLY_RETURN.
5909         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
5910         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
5911         * predict.h (IS_TAKEN): New constant.
5912         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
5913         * rtl.c (NOTE_INSN_PREDICTION): New.
5914         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
5915         New macro.
5916         (insn_note): add NOTE_INSN_PREDICTION.
5917         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
5918         CFG; free tail_recursion_label_list.
5919         * stmt.c: Include predict.h;
5920         (return_prediction): New.
5921         (expand_value_return): Use it.
5922         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
5923
5924 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
5925
5926         * config/mips/mips.md: Name the unspecs with define_constant.
5927         (*HILO_delay): Rename to 'hilo_delay' (no star).
5928         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
5929         (reload_outdi, reload_outsi): Likewise.
5930
5931 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
5932
5933         * toplev.c: Fix formatting.
5934
5935 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
5936
5937         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
5938         * configure.in (ac_rtlflag_checking): New.
5939         * doc/install.texi (--enable-checking): Document RTL flag checking.
5940
5941 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
5942
5943         * c-common.c (c_common_init): Set options->unsigned_wchar.
5944         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
5945         group target dependencies.
5946         (init_builtins, cpp_handle_option): Update.
5947         * cpplex.c (cpp_interpret_charconst): Update.
5948         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
5949         signed_char to unsigned_char, group target dependencies.
5950         * defaults.h (WCHAR_UNSIGNED): Remove.
5951         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
5952 config:
5953         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
5954         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
5955         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
5956         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
5957         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
5958 doc:
5959         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
5960
5961 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
5962
5963         * fixinc/inclhack.def (windiss_math1): New fix.
5964         (windiss_math2): Likewise.
5965         (windiss_valist): Likewise.
5966         * fixinc/fixincl.x: Regenerated.
5967
5968 2002-05-07  Andreas Jaeger  <aj@suse.de>
5969
5970         * genautomata.c (output_internal_min_issue_delay_func): Add
5971         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
5972         (output_internal_trans_func): Likewise.
5973
5974 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
5975
5976         * pa.c (hppa_profile_hook): Use force_reg to get the address
5977         of the profile hook into an appropriate pseudo register.
5978
5979 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
5980
5981         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
5982         (LINK_START_SPEC): Handle it.
5983         (LINK_OS_SPEC): Likewise.
5984         (CPP_SPEC): Likewise.
5985         (STARTFILE_SPEC): Likewise.
5986         (LIB_SPEC): Likewise.
5987         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
5988         all platforms.
5989         (CRTSAVRES_DEFAULT_SPEC): New macro.
5990         (LIB_WINDISS_SPEC): New macro.
5991         (CPP_OS_WINDISS_SPEC): Likewise.
5992         (STARTFILE_WINDISS_SPEC): Likewise.
5993         (ENDFILE_WINDISS_SPEC): Likewise.
5994         (LINK_START_WINDISS_SPEC): Likewise.
5995         (LINK_OS_WINDISS_SPEC): Likewise.
5996         * config/rs6000/windiss.h: New file.
5997
5998 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
5999
6000         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
6001
6002 2002-05-06  David S. Miller  <davem@redhat.com>
6003
6004         * config/sparc/sparc.md (shift insns): Do not mask off
6005         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
6006         take care of it.
6007
6008 2002-05-06  Richard Henderson  <rth@redhat.com>
6009
6010         PR c++/6212
6011         * expr.c (highest_pow2_factor_for_type): New.
6012         (expand_assignment): Use it.
6013
6014 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
6015
6016         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
6017         unspec_volatile.
6018         ("altivec_mfvscr"): Same.
6019
6020 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
6021
6022         * rtl.h (struct rtx_def): Update comments.
6023         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
6024         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
6025         RTL_FLAG_CHECK macros with list of expected RTL codes.
6026         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
6027         (rtl_check_failed_flag): New.
6028         * reload1.c (reload): Use REG macro before changing rtx to MEM.
6029         (reload_cse_noop_set_p): Check rtx code before using access macro.
6030         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
6031         before using access macro.
6032
6033 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
6034
6035         * doc/rtl.texi (Flags): Update to reflect current usage.
6036
6037 2002-05-06  Roger Sayle  <roger@eyesopen.com>
6038
6039         PR opt/3995
6040         * fold-const.c (sign_bit_p): New function.
6041         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
6042         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
6043         Reapply fold when converting (A & C) == C into (A & C) != 0.
6044         (fold_binary_op_with_conditional_arg): Fix typo in comment.
6045
6046 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6047
6048         * c-common.c (warn_multichar): New.
6049         (c_common_init): Set CPP's warn_multichar.
6050         * c-common.h (warn_multichar): New.
6051         * c-decl.c (warn_multichar): Remove.
6052         * c-lex.c (lex_charconst): Update.
6053         * c-tree.h (warn_multichar): Remove.
6054         * cppexp.c (eval_token): Sign-extend charconst value.
6055         * cppinit.c (cpp_create_reader): Set warn_multichar.
6056         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
6057         each character.  Update prototype.  Sign-extend the result.
6058         * cpplib.h: Fix conditions.
6059         (struct cpp_options): Add new warning flag.
6060         (cpp_interpret_charconst): Update prototype.
6061 doc:
6062         * cpp.texi: Update documentation.
6063
6064 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
6065
6066         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6067         Fix typo in usage of allof instead of unit.
6068
6069 2002-05-06  Richard Henderson  <rth@redhat.com>
6070
6071         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
6072         and any jump or call for IN.
6073
6074 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
6075
6076         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
6077         -msse2.
6078         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
6079
6080 2002-05-06  Roger Sayle  <roger@eyesopen.com>
6081
6082         * fold-const.c (lshift-double): Cast the high word to an unsigned
6083         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
6084         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
6085         avoid compiler warning.  (fold): Remove redundant code from
6086         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
6087
6088 2002-05-06  Jeff Law  <law@redhat.com>
6089
6090         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
6091         * pa.c (pa_adjust_cost): Remove all true dependency cost
6092         adjustments.  Also remove support for non-DFA scheduling.
6093         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
6094         to adjust true dependency costs.  Update various comments.
6095         (7100lc, 7200, 7300 scheduling): Simplify by combining the
6096         FP ALU & MPY units into a single unit.
6097
6098 2002-05-06  Catherine Moore  <clm@redhat.com>
6099
6100         * config/v850/v850.c (compute_register_save_size): Make sure
6101         to count all of the registers that will be saved.
6102
6103 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
6104
6105         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
6106
6107 2002-05-06  David S. Miller  <davem@redhat.com>
6108
6109         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
6110         allow result to overlap input operands in memory.
6111
6112 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6113
6114 doc:
6115         * cpp.texi: Update multichar charconst docs.
6116
6117 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6118
6119         * cpplex.c (cpp_interpret_charconst): Sign-extend each
6120         character.  Don't ignore excess characters.  Treat
6121         multicharacter character constants as signed.
6122         (cpp_parse_escape): Clarify diagnostic.
6123
6124 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
6125
6126         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
6127         use add instead of shift.
6128         (ashldi3_sp64): Likewise.
6129         (ashlsi3_const1, ashldi3_const1): Remove.
6130         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
6131         * config/sparc/sparc.c (const1_operand): New.
6132
6133 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
6134
6135         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
6136
6137 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
6138
6139         PR target/6561
6140         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
6141
6142 2002-05-05  Richard Henderson  <rth@redhat.com>
6143
6144         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
6145         memory latency adjustments.
6146         (alpha_variable_issue): Remove.
6147         (alpha_use_dfa_pipeline_interface): New.
6148         (alpha_multipass_dfa_lookahead): New.
6149         * config/alpha/alpha.md: Remove define_function_unit scheduling;
6150         include new dfa scheduling.
6151         (attr type): Add none.
6152         (blockage): Use it.
6153         * config/alpha/ev4.md: New.
6154         * config/alpha/ev5.md: New.
6155         * config/alpha/ev6.md: New.
6156
6157 2002-05-05  David S. Miller  <davem@redhat.com>
6158
6159         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
6160
6161 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
6162
6163         * cse.c: Fix formatting.
6164         * emit-rtl.c: Likewise.
6165
6166 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
6167
6168         * genautomata.c (initiate_states): Add additional guard to
6169         initialize `units_array'.
6170
6171 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
6172
6173         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
6174         process_unit_to_form_the_same_automaton_unit_lists,
6175         form_the_same_automaton_unit_lists
6176         check_unit_distributions_to_automata): New prototypes and
6177         functions.
6178         (check_automata): Rename it into `check_automata_insn_issues'.
6179         (unit_decl): New fields `the_same_automaton_unit' and
6180         `the_same_automaton_message_reported_p'.
6181         (unit_decl_t): New typedef.
6182         (the_same_automaton_lists): New gloval variable.
6183         (unit_regexp, unit_set_el, units_array, units_cmp,
6184         output_get_cpu_unit_code_func): Use the typedef.
6185         (evaluate_max_reserv_cycles): Increment
6186         `description->max_insn_reserv_cycles'.
6187         (initiate_states): Don't increment `max_cycles_num'.
6188         (transform_insn_regexps): Move code around transformation of
6189         regexps from `generate'.
6190         (generate): Remove call of `transform_insn_regexps'.
6191         (expand_automata): Call `transform_insn_regexps' and
6192         `check_unit_distributions_to_automata'.  Check errors before
6193         `generate'.
6194
6195         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6196         automaton `ultrasparc3_1'.
6197
6198 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6199
6200         * c-common.c (c_common_init): Set up CPP arithmetic.
6201         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6202         something reasonable for the host.
6203         (sanity_checks): Add checks.
6204         (cpp_read_main_file): Call sanity_checks() from here...
6205         (cpp_post_options): ... not here.
6206         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6207         * cpplib.h (struct cpp_options): New member int_precision.
6208
6209 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6210
6211         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6212
6213 2002-05-04  David S. Miller  <davem@redhat.com>
6214
6215         * config/sparc/linux.h, config/sparc/linux64.h
6216         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6217
6218         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6219         more RTX codes.
6220         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6221
6222         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6223         of SETs.
6224
6225 2002-05-05  Tim Josling  <tej@melbpc.org.au>
6226
6227         * treelang; New directory for new sample language treelang.
6228
6229 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6230
6231         * Makefile.in (c-lex.o): Update.
6232         * c-lex.c: Include target.h.
6233         (cb_register_builtins): New.
6234         (init_c_lex): Set builtins callback.
6235         * c-lex.h (cpp_define, cpp_assert): New prototypes.
6236         * cppinit.c (init_builtins): Use callback, including for
6237         GXX_WEAK.
6238         * cpplib.h (struct cpp_callbacks): New member.
6239         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6240         (TARGET_INITIALIZER): Update.
6241         * target.h (struct gcc_target): New hook.
6242         * tree.c (default_register_cpp_builtins): New.
6243         * tree.h (default_register_cpp_builtins): New.
6244 doc:
6245         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6246
6247 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6248
6249         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6250         (cpp_post_options): Move sanity checks to...
6251         (sanity_checks): New.
6252         * cpplex.c (maybe_read_ucs): Fix prototype.
6253         (parse_string, cpp_parse_escape): Cast for %c format specifier.
6254         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6255         if necessary.
6256
6257 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
6258
6259         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6260         builtins.  Use V2DI patterns instead of TI for logical operations.
6261         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6262         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6263         (ix86_expand_builtins): Change the pattern used for movntdq.
6264         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6265         sse2_nandv2di3): New patterns.
6266         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6267         on operands.
6268         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6269         (cvtdq2pd): Correct mode on operand 1.
6270         (sse2_umulsidi3): Describe without unspec.
6271         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6272         machine modes.
6273         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6274         (ashlv2di3): Likewise, from sse2_ashlv2di3.
6275         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6276         ashlv4si3, ashlv2di3): Use SImode for shift count.
6277         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6278         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6279         New patterns.
6280         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6281         New typedefs.
6282         (__m128i, __m128d): New macros.
6283         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6284         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6285         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6286         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6287         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
6288         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
6289         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6290         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
6291         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
6292         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6293         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6294         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6295         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6296         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6297         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6298         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6299         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6300         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6301         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6302         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6303         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6304         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6305         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6306         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6307         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6308         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6309         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6310         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6311         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6312         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6313         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6314         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6315         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6316         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6317         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6318         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6319         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6320         functions.
6321         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
6322         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6323
6324 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
6325
6326         * dwarf2out.c: Fix formatting.
6327         * varasm.c: Likewise.
6328
6329 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
6330
6331         PR c/6543
6332         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6333         clobber and use result as temporary value.
6334
6335 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6336
6337         * expr.c (force_operand): Use expand_simple_* to handle more
6338         cases.
6339
6340 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6341
6342         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6343         and sign-extension.
6344         (lex_charconst): Update for change in prototype of
6345         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
6346         appropriately.
6347         * cpphash.h (BITS_PER_CPPCHAR_T): New.
6348         * cppinit.c (cpp_create_reader): Initialize them for no
6349         change in semantics.
6350         (cpp_post_options): Add sanity checks.
6351         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6352         and truncation issues.  Calculate in type cppchar_t.
6353         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6354         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
6355         run-time dependent precision correctly.  Return whether the
6356         result is signed or not.
6357         * cpplib.c (dequote_string): Use cppchar_t; update.
6358         * cpplib.h (cppchar_signed_t): New.
6359         struct cpp_options): New precision members.
6360         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
6361         * cppexp.c (eval_token): Update.
6362
6363 2002-05-03  David S. Miller  <davem@redhat.com>
6364
6365         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6366         * config/sparc/sparc.c (sparc_rtx_costs): New function
6367         implementing RTX_COSTS and CONST_COSTS.
6368         * config/sparc/sparc.h (CONST_COSTS): Delete.
6369         (RTX_COSTS_CASES): Define.
6370         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6371         the work.
6372
6373         * config/sparc/sparc.md (DFA schedulers): Split out...
6374         * config/sparc/cypress.md, config/sparc/hypersparc.md,
6375         config/sparc/sparclet.md, config/sparc/supersparc.md,
6376         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6377
6378         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6379         checks on it, always defined for Sparc.
6380
6381         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6382         Tweak, and add more detailed comments.
6383
6384 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
6385
6386         * Re-apply patch accidentally reverted with
6387         DFA scheduler merge: remove all rules and variables to slurp
6388         source files out of libiberty and rebuild them with HOST_CC.
6389         ($(HOST_PREFIX_1)varray.o): New rule.
6390         (genattrtab rule): Word wrap.
6391
6392 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
6393
6394         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6395         (CPP_SUBTARGET_SPEC): Define.
6396         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6397         cpp_subtarget specs.
6398         (CPP_SPEC): Redefine to include %(cpp_subtarget).
6399
6400 2002-05-03  David S. Miller  <davem@redhat.com>
6401
6402         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6403         * target.h (struct gcc_target): Delete cycle_display member.
6404
6405         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6406         (rtx_needs_barrier): Delete reference to cycle_display unspec.
6407         (ia64_sched_reorder2): Mention need for cycle display handling
6408         once such notes exist.
6409
6410 2002-05-03  Richard Henderson  <rth@redhat.com>
6411
6412         * real.c (etoasc): Strip most trailing zeros for clarity.
6413         * sched-vis.c: Include real.h.
6414         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6415         * Makefile.in (sched-vis.o): Add real.h.
6416
6417 2002-05-03  David S. Miller  <davem@redhat.com>
6418
6419         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6420         no longer needed.
6421
6422 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
6423
6424         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6425         when we get an out of range literal.
6426         (altivec_expand_ternop_builtin): Same.
6427         (altivec_expand_unop_builtin): Same.
6428         (altivec_expand_builtin): Same, for dss.
6429         (altivec_expand_builtin): Use trees instead of rtl when
6430         determining literal argument validity.
6431
6432 2002-05-03  David S. Miller  <davem@redhat.com>
6433
6434         Delete cycle display scheduling hook.
6435         * config/ia64/ia64.c (ia64_cycle_display,
6436         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6437         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6438         and use emit_insn_before instead of ia64_emit_insn_before.
6439         * config/ia64/ia64.md (unspec usage): Delete cycle display.
6440         (cycle_display): Delete insn pattern.
6441         * config/sparc/sparc.md (unspec usage): Delete cycle display.
6442         (cycle_display): Delete insn pattern.
6443         * config/sparc/sparc.c (sparc_cycle_display,
6444         TARGET_SCHED_CYCLE_DISPLAY): Delete.
6445         * doc/md.texi (cycle_display): Don't mention.
6446         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
6447
6448 2002-05-03  Richard Henderson  <rth@redhat.com>
6449
6450         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6451         * recog.h: Declare them.
6452
6453         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6454         * config/sparc/sparc.md: Use store_data_bypass_p instead.
6455         * config/sparc/sparc-protos.h: Update.
6456
6457 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
6458
6459         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6460         -D__arch64__.  Add -D_LP64.
6461         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6462         from sparc.h.
6463         (CPP_ARCH64_SPEC): Likewise.
6464         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6465         (NO_BUILTIN_SIZE_TYPE): Undef.
6466
6467 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
6468
6469         * genautomata.c (min_issue_delay_pass_states): Change return type
6470         in the prototype.
6471         (min_issue_delay_pass_states): Change the algorithm.
6472         (min_issue_delay): Set up min_insn_issue_delay for the state.
6473         (output_min_issue_delay_table): Interchange the nested loops and
6474         and initiate min_insn_issue_delay for states.
6475
6476 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
6477
6478         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
6479         jump is simplejump.
6480
6481 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
6482
6483         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
6484         sequence.
6485
6486 2002-05-03  Richard Henderson  <rth@redhat.com>
6487
6488         PR opt/6534
6489         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6490         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6491         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6492         code before JUMP, not EARLIEST.
6493
6494 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
6495
6496         * c-format.c (check_format_info_main): Don't check for presence of
6497         parameter for * width until after operand number has been read,
6498         and only check for it if format parameters are available.
6499         Fixes PR c/6547.
6500
6501 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
6502
6503         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6504         (LINK_SPEC): Undef before defining.
6505
6506 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
6507
6508         PR preprocessor/6489
6509         * tradcpp.c (fixup_newlines): New.
6510         (main, finclude): Use it.
6511
6512 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
6513
6514         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6515         * config/mips/mips.c (mips_unique_section): Strip encoding from
6516         decl name.
6517
6518 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
6519
6520         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6521         mode.
6522
6523 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6524
6525         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6526         (Specific): Removed buildstats references.
6527         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6528         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6529         Accomodate Solaris versions beyond 8.
6530         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6531         (Specific, *-*-solaris2.8): Removed, obsolete.
6532
6533 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
6534
6535         PR target/6542
6536         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6537         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6538         fill leaf_reg_remap with identity.
6539         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6540
6541 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
6542
6543         * config/h8300/crti.asm: Remove trailing spaces.
6544         * config/h8300/h8300.c: Likewise.
6545         * config/h8300/lib1funcs.asm: Likewise.
6546
6547 2002-05-02  Jason Merrill  <jason@redhat.com>
6548
6549         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6550         * c-decl.c (c_init_decl_processing): Use it.
6551         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6552         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6553         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6554
6555 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
6556
6557         * regrename.c: Fix formatting.
6558         * tree.c: Likewise.
6559
6560 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
6561
6562         * i386.md (attribute memory): Handle compares properly.
6563
6564 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
6565
6566         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
6567         to none.
6568
6569 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
6570
6571         * function.c: Fix formatting.
6572
6573 2002-05-02  Jan Hubicka  <jh@suse.cz>
6574
6575         * haifa-sched.c (schedule_insn): Print table of instructions and
6576         reservations.
6577         (sched_block): Do not print ready list at verbosity level 1.
6578         * sched-vis.c (print_insn): Make global.
6579         * sched-ebb.c (ebb_print_insn): Rename from...
6580         (print_insn): ... this one.
6581         * sched-int.h (print_insn): Declare
6582
6583 2002-05-02  Richard Henderson  <rth@redhat.com>
6584
6585         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6586         emitted by cycle_display.
6587
6588 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
6589
6590         * doc/install.texi (*-*-freebsd*): Update to latest status.
6591
6592 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
6593
6594         PR target/6540
6595         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6596         * config/float-sparc.h: Assume 128-bit long double if
6597         __LONG_DOUBLE_128__ is defined.
6598
6599 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
6600
6601         * genattrtab.c (write_function_unit_info): Add a dummy element
6602         when num_units == 0.
6603
6604 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6605
6606         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6607         TYPE_MODE (double_type_node) instead of DFmode.
6608
6609 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
6610
6611         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6612         jumps post reload.
6613         * toplev.c (rest_of_compilation): Revert Richard's patch.
6614
6615 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6616
6617         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6618
6619 2002-05-02  Catherine Moore  <clm@redhat.com>
6620
6621         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6622
6623 2002-05-02  Kazu Hirata  <kazu@hxi.com>
6624
6625         * combine.c: Fix comment typos.
6626         * expr.c: Likewise.
6627         * genautomata.c: Likewise.
6628         * stmt.c: Likewise.
6629         * tree.h: Likewise.
6630
6631 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6632
6633         * doc/install.texi: State GNAT version requirements.
6634
6635 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
6636
6637         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6638         of the frame pointer or arg pointer register which strict register
6639         checking is not enabled.
6640
6641 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
6642
6643         * gcc.dg/altivec-8.c: New.
6644
6645         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6646         PRE_INC and PRE_DEC for altivec modes.
6647
6648 2002-05-01  Bruce Korb  <bkorb@gnu.org>
6649
6650         * fixinc/check.tpl(set-writable): make sure the function exists first
6651         * fixinc/inclhack.def(alpha_assert): fix test_text
6652         * fixinc/tests/base/assert.h: add in missing result
6653
6654 2002-05-01  Jeff Law  <law@redhat.com>
6655
6656         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6657         'T' constraint.
6658
6659 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
6660
6661         * dbxout.c (dbxout_type): Emit size information for range types,
6662         as well, but only when using GDB extensions.
6663
6664 2002-05-01  Richard Henderson  <rth@redhat.com>
6665
6666         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6667         target-independent gnu binutils date test.
6668
6669 2002-05-01  Richard Henderson  <rth@redhat.com>
6670
6671         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6672         info before expunging the block.
6673
6674 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
6675
6676         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6677         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
6678         -M -or -MM is in effect.
6679
6680 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
6681
6682         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
6683         A29k configurations.
6684         * doc/install.texi: Update to match.
6685
6686 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6687
6688         PR bootstrap/6514
6689         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6690         for duplicates. Always loop over whole list.
6691
6692 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6693
6694         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6695
6696 2002-05-01      Joel Sherrill <joel@OARcorp.com>
6697
6698         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6699         support routines.
6700
6701 2002-05-01      Joel Sherrill <joel@OARcorp.com>
6702
6703         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6704
6705 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
6706
6707         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6708         (nabs_nopower): Same.
6709         (floatdisf2): New pattern.
6710         (absdi2): Convert to define_insn_and_split.
6711         (nabsdi2): Same.
6712         (trunctfsf2): Same.
6713         (floatditf2): Same.
6714         (floatsitf2): Same.
6715         (fix_trunctfdi2): Same.
6716         (fix_trunctfsi2): Same.
6717
6718 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
6719
6720         * doc/install.texi: Update Texinfo version requirement
6721         documentation.
6722
6723 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
6724
6725         PR target/6512, PR target/5628
6726         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6727         when memory is not aligned.
6728         (movdf_insn_v9only_vis): Likewise.
6729         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6730         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6731         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6732
6733 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
6734
6735         * gcc.dg/altivec-7.c: New.
6736
6737         * config/rs6000/altivec.h: Cleanup.
6738
6739 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
6740
6741         * doc/invoke.texi (Option Summary): Add -mvrsave=.
6742         (RS/6000 and PowerPC Options): Document -mvrsave=.
6743
6744         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6745         (rs6000_altivec_vrsave_string): Same.
6746         (rs6000_override_options): Call rs6000_parse_vrsave_option.
6747         (rs6000_parse_vrsave_option): New.
6748         (rs6000_stack_info): Only generate vrsave instructions when
6749         TARGET_ALTIVEC_VRSAVE.
6750
6751         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
6752         (rs6000_altivec_vrsave_string): Define extern.
6753         (rs6000_altivec_vrsave): Same.
6754         (TARGET_ALTIVEC_VRSAVE): New.
6755
6756 2002-04-30  Richard Henderson  <rth@redhat.com>
6757
6758         PR opt/6516
6759         * toplev.c (rest_of_compilation): Don't run cross-jump before
6760         bb-reorder.
6761
6762 2002-04-30  Tom Rix  <trix@redhat.com>
6763
6764         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
6765         check which_alternative.
6766
6767 2002-04-30  Kazu Hirata  <kazu@hxi.com>
6768
6769         * cpplex.c: Fix comment formatting.
6770         * function.c: Likewise.
6771         * integrate.c: Likewise.
6772         * regrename.c: Likewise.
6773         * sibcall.c: Likewise.
6774         * simplify-rtx.c: Likewise.
6775         * tree-inline.c: Likewise.
6776
6777 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6778
6779         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
6780         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
6781         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
6782         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
6783         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
6784         * pa/x-ada: New file.  Define ADA_CFLAGS.
6785
6786 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
6787
6788         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
6789         from MMIX_LAST_REGISTER_FILE_REGNUM.
6790         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
6791         (struct machine_function): New member highest_saved_stack_register
6792         previously static variable in mmix.c.
6793         (MACHINE_DEPENDENT_REORG): Define.
6794         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
6795         (MMIX_OUTPUT_REGNO): New.
6796         (mmix_target_asm_function_prologue): Move calculation of last used
6797         saved-stack-register into...
6798         (mmix_machine_dependent_reorg): New function.  Update to also handle
6799         !TARGET_ABI_GNU.
6800         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
6801         register names, simplify somewhat by new variable regno.
6802         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
6803         register.
6804         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
6805         emitting register names.
6806         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
6807         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
6808         Remove fixed FIXME.
6809         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
6810         Declare.
6811
6812         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
6813
6814 2002-04-30  Richard Henderson  <rth@redhat.com>
6815
6816         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
6817         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
6818         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
6819         emit_tfmode_cvt): New.
6820         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
6821         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
6822         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
6823         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
6824         * config/sparc/sparc-protos.h: Update.
6825
6826 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
6827
6828         * install.texi (Final install): Add to the list of info to include
6829         in a report of a successful bootstrap, and add link to 3.1 list.
6830
6831 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
6832
6833         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
6834         (mode): Add vector modes
6835         (i387): Kill attribute.
6836         (unit): New attribute.
6837         (length_immediate): Grok new types.
6838         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
6839         (modrm): Use "unit".
6840         (memory): Handle MMX/SSE properly.
6841         (scheduling descriptions): Kill uses of fop1.
6842         (sse, mmx, fp patterns): Set type and mode properly.
6843
6844 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
6845
6846         * pa.c (override_options): Default to PA8000 scheduling.
6847         * doc/invoke.texi (HP-PA options): Mention newly added 7300
6848         scheduling parameter.
6849
6850         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
6851         handling of double precision multiplies.
6852
6853         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
6854         fpdiv and fpsqrt instructions.
6855         (7200 & 7300 scheduling): Fix typo in handling of
6856         store-load and store-store penalties.
6857
6858 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6859
6860         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
6861         mips.  Add two missing commas.
6862
6863 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
6864
6865         * doc/contrib.texi (Contributors): Update Paolo Carlini's
6866         and Benjamin Kosnik's entries.
6867
6868 2002-04-29  David S. Miller  <davem@redhat.com>
6869
6870         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
6871         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
6872         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
6873         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6874
6875 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6876
6877         * combine.c (find_split_point): Use gen_int_mode.
6878
6879 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
6880
6881         Merging code from dfa-branch:
6882
6883         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6884
6885         * genautomata.c (output_reserv_sets): Fix typo.
6886
6887         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
6888
6889         * genautomata.c (output_reserv_sets): Remove
6890         next_cycle_output_flag.
6891
6892         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
6893
6894         * sched-rgn.c (init_ready_list): Make the DFA code handle
6895         USE/CLOBBER insns in the same way as the traditional
6896         scheduler.
6897         (new_ready): Similarly..
6898
6899         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
6900
6901         * haifa-sched.c (schedule_block): Change the DFA state only after
6902         issuing insn.
6903
6904         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
6905
6906         * pa.c (hppa_use_dfa_pipeline_interface): New function.
6907         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6908         (override_options): Add PA7300 scheduling support.
6909         (pa_adjust_cost): Update various comments.  Properly
6910         handle anti and output dependencies when using the
6911         DFA scheduler.
6912         (pa_issue_rate): Add PA7300 scheduling support.
6913         (pa_can_combine_p): Call extract_insn before calling
6914         constrain_operands (taken from mainline tree).
6915         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
6916         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
6917         descriptions using DFA descriptions.  Add PA7300
6918         scheduling support.
6919
6920         2002-03-30  David S. Miller  <davem@redhat.com>
6921
6922         Add UltraSPARC-III DFA scheduling support.
6923         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
6924         Update FP conditional move on register insn patterns to use it, as
6925         appropriate.
6926         (define_attr cpu): Add ultrasparc3.
6927         (define_attr us3load_type): New, update integer load patterns to
6928         set it, as appropriate.
6929         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
6930         (rest): Add UltraSPARC3 scheduling description.
6931         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
6932         (PROCESSOR_ULTRASPARC3): New.
6933         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
6934         ({ASM,CPP}_CPU_SPEC): Likewise.
6935         (REGISTER_MOVE_COST): Likewise.
6936         (RTX_COSTS): Likewise.
6937         * config/sparc/sparc.c (sparc_override_options,
6938         sparc_initialize_trampoline, sparc64_initialize_trampoline,
6939         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6940         sparc_issue_rate): Likewise.
6941         * config/sparc/sol2.h: Likewise.
6942         * config/sparc/sol2-sld-64.h: Likewise.
6943         * config/sparc/linux64.h: Likewise.
6944
6945         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
6946
6947         * doc/md.texi: Add comments about usage the latency time for the
6948         different dependencies and about case when two or more conditions
6949         in different define_insn_reservations returns TRUE for an insn.
6950
6951         * doc/md.texi: Add reference for automaton based pipeline
6952         description.
6953
6954         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
6955
6956         * doc/passes.texi: Add missed information about genattrtab.
6957
6958         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
6959
6960         * genautomata.c (output_automata_list_transition_code): Check
6961         automata_list on NULL.
6962
6963         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
6964
6965         * genautomata.c (output_insn_code_cases,
6966         output_automata_list_min_issue_delay_code,
6967         output_automata_list_transition_code,
6968         output_automata_list_state_alts_code): Comment the functions.
6969
6970         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
6971
6972         * genautomata.c (automata_list_el_t): New typedef.
6973         (get_free_automata_list_el,free_automata_list_el,
6974         free_automata_list, automata_list_hash, automata_list_eq_p,
6975         initiate_automata_lists, automata_list_start, automata_list_add,
6976         automata_list_finish, finish_automata_lists,
6977         output_insn_code_cases, output_automata_list_min_issue_delay_code,
6978         output_automata_list_transition_code,
6979         output_automata_list_state_alts_code, add_automaton_state,
6980         form_important_insn_automata_lists): New functions and prototypes.
6981         (insn_reserv_decl): Add members important_automata_list and
6982         processed_p.
6983         (ainsn): Add members important_p.
6984         (automata_list_el): New structure.
6985         (first_free_automata_list_el, current_automata_list,
6986         automata_list_table): New global variables.
6987         (create_ainsns): Initiate member important_p.
6988         (output_internal_min_issue_delay_func): Generate the switch and
6989         call output_insn_code_cases.
6990         (output_internal_trans_func, output_internal_state_alts_func):
6991         Ditto.
6992         (generate): Call initiate_automata_lists.
6993         (automaton_states): New global variable.
6994         (expand_automata): Call form_important_insn_automata_lists.
6995         (write_automata): Call finish_automata_lists.
6996
6997         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
6998
6999         * genautomata.c (add_excls, add_presence_absence): Check that
7000         cpu units in the sets belong the same automaton.
7001
7002         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
7003         about that cpu units in the sets belong the same automaton.
7004
7005         * doc/md.texi: Ditto.
7006
7007         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
7008                     Nitin Gupta  <niting@noida.hcltech.com>
7009
7010         * config/sh/sh.c (sh_use_dfa_interface): New function.
7011
7012         (sh_issue_rate): New Function.
7013         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
7014         TARGET_SCHED_ISSUE_RATE: define.
7015
7016         * config/sh/sh.md: Add DFA based pipeline description for SH4.
7017
7018         (define_attr insn_class): New attribute used for DFA
7019          scheduling.
7020         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
7021         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
7022          cmpeqdi_t): Likewise.
7023
7024         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
7025          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
7026          ex_group.
7027         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
7028
7029         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
7030
7031         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
7032         break.
7033
7034         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
7035
7036         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
7037         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
7038         necessary.
7039         (output_dfa_start_func): Initiate new variable insn_codes_length,
7040         (write_automata): Output definition of the new variable.
7041
7042         2001-10-02  David S. Miller  <davem@redhat.com>
7043
7044         * haifa-sched.c (advance_one_cycle): New function.
7045         (schedule_block): Use it.
7046         (queue_to_ready): Use it, and also make sure to advance the DFA
7047         state on all stall cycles, not just those where insn_queue links
7048         are found.
7049
7050         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
7051
7052         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
7053         non-zero if the highest-priority instruction could be scheduled.
7054         (choose_ready): Remove last argument from max_issue call.
7055
7056         2001-09-28  David S. Miller  <davem@redhat.com>
7057
7058         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
7059         ultrasparc and 3 for other multi-issue sparcs.
7060
7061         2001-09-27  David S. Miller  <davem@redhat.com>
7062
7063         * config/sparc/sparc.md (cycle_display): New pattern.
7064         * config/sparc/sparc.c (sparc_cycle_display): New.
7065         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
7066
7067         2001-09-25  David S. Miller  <davem@redhat.com>
7068
7069         Convert all of Sparc scheduling to DFA
7070         * config/sparc/sparc.md: Kill all define_function_unit
7071         directives and replace with DFA equivalent.
7072         * config/sparc/sparc.c (ultrasparc_adjust_cost,
7073         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
7074         ultra_fpmode_conflict_exists, ultra_find_type,
7075         ultra_build_types_avail, ultra_flush_pipeline,
7076         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
7077         ultrasparc_variable_issue, ultrasparc_sched_init,
7078         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
7079         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
7080         ultra_cur_hist, ultra_cycles_elapsed): Kill.
7081         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7082         ultrasparc_store_bypass_p): New.
7083         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
7084         Declare.
7085
7086         2001-09-24  David S. Miller  <davem@redhat.com>
7087
7088         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
7089         ready->vec[foo] not ready[foo].
7090
7091         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
7092
7093         * doc/md.texi: Correct examples for define_insn_reservations
7094         `mult' and `div'.
7095
7096         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
7097
7098         * genautomata.c (create_automata): Print message about creation of
7099         each automaton.
7100         (generate): Remove printing meease about creation of
7101         automata.
7102
7103         2001-09-05  David S. Miller  <davem@redhat.com>
7104
7105         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7106         * config/sparc/linux64.h: Likewise.
7107
7108         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
7109
7110         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
7111         schedule_block, sched_init, sched_finish): Add missed calls of
7112         use_dfa_pipeline_interface.
7113
7114         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
7115         Ditto.
7116
7117         * sched-vis.c (get_visual_tbl_length): Ditto.
7118
7119         2001-08-27  Richard Henderson  <rth@redhat.com>
7120
7121         * genattr.c (main): Emit state_t even when not doing scheduling.
7122
7123         2001-08-27  Richard Henderson  <rth@redhat.com>
7124
7125         * genautomata.c (expand_automata): Always create a description.
7126
7127         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
7128
7129         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
7130         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
7131         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
7132         RTL constructions.
7133
7134         * genattr.c (main): New variable num_insn_reservations.  Increase
7135         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
7136         pipeline hazard recognizer interface.
7137
7138         * genattrtab.h: New file.
7139
7140         * genattrtab.c: Include genattrtab.h.
7141         (attr_printf, check_attr_test, make_internal_attr,
7142         make_numeric_value): Move protypes into genattrtab.h.  Define them
7143         as external.
7144         (num_dfa_decls): New global variable.
7145         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7146         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7147         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7148         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
7149
7150         * genautomata.c: New file.
7151
7152         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7153
7154         * sched-int.h: (curr_state): Add the external definition for
7155         automaton pipeline interface.
7156         (haifa_insn_data): Add comments for members blockage and units.
7157
7158         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7159         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7160         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7161         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7162         TARGET_SCHED_DFA_POST_CYCLE_INSN,
7163         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7164         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7165         macros.
7166         (TARGET_SCHED): Use the new macros.
7167
7168         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7169         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7170         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7171         dfa_bubble): New members in gcc_target.sched.
7172
7173         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
7174         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7175         (insn_queue): Redefine it as pointer to array.
7176         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7177         INSN_QUEUE_SIZE.
7178         (max_insn_queue_index_macro_value): New variable.
7179         (curr_state, dfa_state_size, ready_try): New varaibles for
7180         automaton interface.
7181         (ready_element, ready_remove, max_issue): New function prototypes
7182         for automaton interface.
7183         (choose_ready): New function prototype.
7184         (insn_unit, blockage_range): Add comments.
7185         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7186         FUNCTION_UNITS_SIZE == 0.
7187         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7188         actual_hazard, potential_hazard): Add comments.
7189         (insn_cost): Use cost -1 as undefined value.  Remove
7190         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
7191         pipeline interface.
7192         (ready_element, ready_remove): New functions for automaton
7193         interface.
7194         (schedule_insn): Add new code for automaton pipeline interface.
7195         (queue_to_ready): Add new code for automaton pipeline interface.
7196         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7197         (debug_ready_list): Print newline when the queue is empty.
7198         (max_issue): New function for automaton pipeline interface.
7199         (choose_ready): New function.
7200         (schedule_block): Add new code for automaton pipeline interface.
7201         Print ready list before scheduling each insn.
7202         (sched_init): Add new code for automaton pipeline interface.
7203         Initiate insn cost by -1.
7204         (sched_finish): Free the current automaton state and finalize
7205         automaton pipeline interface.
7206
7207         * sched-rgn.c: Include target.h.
7208         (init_ready_list, new_ready, debug_dependencies): Add new code for
7209         automaton pipeline interface.
7210
7211         * sched-vis.c: Include target.h.
7212         (get_visual_tbl_length): Add code for automaton interface.
7213         (target_units, print_block_visualization):  Add comments.
7214
7215         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
7216         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7217         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7218         (getruntime.o, genautomata.o): New entries.
7219         (genattrtab.o): Add new dependency file genattrtab.h.
7220         (genattrtab): Add new dependencies.  Link it with `libm.a'.
7221         (getruntime.o, hashtab.o): New entries for canadian cross.
7222
7223         * doc/md.texi: Description of automaton based model.
7224
7225         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7226         Add comments.
7227         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7228         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7229         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7230         TARGET_SCHED_DFA_POST_CYCLE_INSN,
7231         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7232         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7233         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7234         hook descriptions.
7235         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7236         MAX_DFA_ISSUE_RATE): New macro descriptions.
7237
7238         * doc/contrib.texi: Add dfa based scheduler contribution.
7239
7240         * doc/gcc.texi: Add more information about genattrtab.
7241
7242 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7243
7244         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7245         adjust_address_nv call.
7246
7247 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
7248
7249         * doc/install.texi (Testing): Provide additional information, and
7250         a stronger encouragement, for running the testsuites.
7251
7252 2002-04-29  DJ Delorie  <dj@redhat.com>
7253
7254         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7255         given in upper case.
7256
7257 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7258
7259         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7260         Solaris 2 <widec.h> if missing.
7261         * fixinc/fixincl.x: Regenerate.
7262         * fixinc/tests/base/widec.h: New file.
7263
7264 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
7265
7266         * toplev.c (f_options): Add "profile" switch so that
7267         -fno-profile can be used to disable -p.
7268
7269 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
7270
7271         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7272         UV2DImode.
7273         * tree.c (build_common_tree_nodes_2): Likewise.
7274         * tree.h (enum tree_index): Likewise.
7275         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7276
7277         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7278         entries.
7279         (init_mmx_sse_builtins): Initialize SSE2 builtins.
7280         (ix86_expand_builtin): Add support for SSE2 builtins.
7281         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7282         (VALID_SSE_REG_MODE): Use it.
7283         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7284         (enum ix86_builtins): Add SSE2 builtins.
7285         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7286         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7287         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7288         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7289         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7290         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7291         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7292         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7293         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7294         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7295         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7296         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7297         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7298         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7299         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7300         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7301         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7302         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7303         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7304         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7305         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7306         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7307         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7308         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7309         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7310         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7311         lfence_insn): New patterns.
7312         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7313         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7314
7315 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
7316
7317         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7318
7319 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7320
7321         * doc/contrib.texi (Contributors): Add Paolo Carlini and
7322         Janis Johnson.
7323         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7324         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7325         and CPU instead of cpu.
7326
7327 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
7328
7329         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7330         variables.
7331         (lang_independent_options): Add -fif-conversion, -fif-conversion2
7332         (rest_of_compilation): Do if conversion only when asked for.
7333         (parse_options_and_default_flags): Set new variables to 1 for -O1
7334         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7335
7336 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
7337
7338         * i386.c (dbx64_register_map): Fix typo.
7339
7340 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
7341
7342         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7343         real_one_half, real_bb_freq_max): New static variables.
7344         (debug_profile_bbauxs): Kill.
7345         (process_note_predictions): Kill unused variable.
7346         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7347         volatile double.
7348         (propagate_freq): Use REAL_ARITHMETICS.
7349         (estimate_bb_frequencies): Likevise; init new static variables.
7350         * Makefile.in (predict.o): Add dependency on real.h
7351
7352 2002-04-28  David S. Miller  <davem@redhat.com>
7353
7354         PR target/6500
7355         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7356         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
7357         several {reads,writes} instead.
7358         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7359         Define.
7360
7361 2002-04-27  David S. Miller  <davem@redhat.com>
7362
7363         PR target/6494
7364         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7365         of the stack bias.
7366
7367         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7368         including signal.h and sys/ucontext.h, not needed.
7369
7370 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
7371
7372         * varasm.c (output_constant_def): Correct test for not calling
7373         ENCODE_SECTION_INFO for INTEGER_CST.
7374
7375 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7376
7377         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7378         keep most cases as function eval_token.
7379         (eval_token): New function.
7380         (_cpp_parse_expr): Read token here for improved diagnostics.
7381         Don't use op_as_text.  Detect bad ':' here.
7382         (reduce): Don't detect bad ':' here.
7383         (op_as_text): Remove.
7384         * cpphash.h (_cpp_test_assertion): Change prototype.
7385         * cpplib.c (_cpp_test_assertion): Change prototype.
7386
7387 2002-04-28  Richard Henderson  <rth@redhat.com>
7388
7389         PR c/5154
7390         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
7391         (ggc_mark_rtx_children): New.
7392
7393 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
7394
7395         PR target/6496
7396         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7397         after call peepholes for UltraSPARC.
7398         (call + jump 64-bit peepholes): Remove.
7399
7400 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7401
7402         PR c/6497
7403         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7404         result as temporary value.
7405
7406 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
7407
7408         PR c++/6396
7409         * toplev.c (rest_of_compilation): Only run regrename and copy
7410         propagation if optimizing.
7411
7412 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
7413
7414         PR optimization/6475
7415         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7416         register of REGNO_DECL (i).
7417         * Makefile.in (reload1.o): Add $(TREE_H).
7418
7419 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7420
7421         * cppexp.c (lex): Update to use state.skip_eval.
7422         (struct op): Remove prio and flags members.
7423         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7424         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7425         (LEFT_ASSOC): New macro.
7426         (optab): New table of operator priorities and flags.
7427         (SHIFT): Update.
7428         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
7429         malloc-ed parser stack.
7430         (reduce): New; reduce the operator stack.
7431         (_cpp_expand_op_stack): Expand the operator stack as necessary.
7432         * cpphash.h (struct op): Predeclare.
7433         (struct cpp_reader): New members op_stack, op_limit.
7434         (struct lexer_state): New member skip_eval.
7435         (_cpp_parse_expr): Update.
7436         (_cpp_expand_op_stack): New.
7437         * cpplib.c (do_if): Update.
7438         * cppinit.c (cpp_create_reader): Create op stack.
7439         (cpp_destroy): And destroy it.
7440         * cpplib.h (CPP_LAST_CPP_OP): Correct.
7441         (TTYPE_TABLE): Correct.
7442
7443 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7444
7445         PR c/6343
7446         * c-decl.c (duplicate_decls): Call merge_weak.
7447         * c-pragma.c (apply_pragma_weak): Warn about misuse.
7448         * output.h (merge_weak): Prototype merge_weak.
7449         * varasm.c (merge_weak): New function.
7450         (declare_weak): Make sure we don't give an error on VAR_DECLs.
7451         Mark RTL with SYMBOL_REF_WEAK.
7452
7453 2002-04-27  Kurt Garloff <garloff@suse.de>
7454
7455         * tree-inline.c (inlinable_function_p): Improve heuristics
7456         by using a smoother function to cut down allowable inlinable size.
7457         * param.def: Add parameters max-inline-insns-single,
7458         max-inline-slope, min-inline-insns that determine the exact
7459         shape of the above function.
7460         * param.h: Likewise.
7461
7462 2002-04-26  Richard Henderson  <rth@redhat.com>
7463
7464         * c-parse.in (malloced_yyss, malloced_yyvs): New.
7465         (yyoverflow): Re-add.  Set them.
7466         (free_parser_stacks): New.
7467         * c-common.h: Declare it.
7468         * c-lex.c (c_common_parse_file): Call it.
7469
7470 2002-04-26  Richard Henderson  <rth@redhat.com>
7471
7472         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7473         for fallthru search.
7474
7475 2002-04-26  Eric Christopher  <echristo@redhat.com>
7476
7477         PR optimization/3700
7478         * config/mips/mips.c (mips_issue_rate): Define.  New function.
7479         (TARGET_SCHED_ISSUE_RATE): Use.
7480
7481 2002-04-25  David S. Miller  <davem@redhat.com>
7482
7483         PR target/6422
7484         * reorg.c (optimize_skip): Do not allow exception causing
7485         instructions to be considered for delay slots.
7486         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7487         (relax_delay_slots): Do not try to consider exception causing
7488         instructions as redundant.
7489
7490 2002-04-26  Richard Henderson  <rth@redhat.com>
7491
7492         PR c/5225
7493         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7494
7495 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
7496
7497         PR bootstrap/6445
7498         * config/i386/i386.md (untyped_call): Return the value in a float
7499         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7500         TARGET_80387.
7501
7502 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
7503
7504         * tree.c (tree_int_cst_lt): Compare constants whose types differ
7505         in unsigned-ness correctly.
7506
7507 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7508
7509         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7510         portable runtime model.
7511
7512 2002-04-26  Richard Henderson  <rth@redhat.com>
7513
7514         * c-parse.in (yyoverflow): Revert.
7515
7516 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
7517             Richard Henderson  <rth@redhat.com>
7518
7519         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7520         result as temporary value.
7521
7522 2002-04-26  Richard Henderson  <rth@redhat.com>
7523
7524         PR c/3581
7525         * c-common.c (fix_string_type): Split out of ...
7526         (combine_strings): ... here.  Take a varray, not a tree list.
7527         (c_expand_builtin_printf): Use fix_string_type.
7528         * c-common.h: Update decls.
7529         * c-parse.in (string): Remove.  Update all uses to use STRING
7530         instead, and not call combine_strings.
7531         (yylexstring): New.
7532         (_yylex): Use it.
7533         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7534         (build_asm_stmt): Likewise.
7535         * objc/objc-act.c (my_build_string): Use fix_string_type.
7536         (build_objc_string_object): Build varray for combine_strings.
7537
7538 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
7539
7540         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7541         x86-64.
7542
7543 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7544
7545         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7546         (HAVE_NO_R_OPERAND): Remove.
7547         (HAVE_VALUE): Remove.
7548         (op_to_prio): Update.
7549         (UNARY): Don't alter flags.
7550         (_cpp_parse_expr): want_value used to indicate whether
7551         a number or unary operator is expected next.  Distinguish
7552         unary and binary +/-.
7553         (op_as_text): Update for unary operators.
7554
7555 2002-04-25  Richard Henderson  <rth@redhat.com>
7556
7557         PR c/2161
7558         * c-parse.in (yyoverflow): New.
7559
7560 2002-04-25  Richard Henderson  <rth@redhat.com>
7561
7562         PR c/2098
7563         * c-common.c (shorten_compare): Simplfy conditions leading to
7564         the generation of a warning.
7565
7566 2002-04-25  Richard Henderson  <rth@redhat.com>
7567
7568         PR c/2035
7569         * expmed.c (extract_bit_field): Fall through to generic code rather
7570         than aborting on subreg special case.
7571
7572 2002-04-25  David S. Miller  <davem@redhat.com>
7573
7574         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7575         for DECL being NULL.
7576
7577 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
7578
7579         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7580
7581 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
7582
7583         * c-decl.c (grokdeclarator): Remove outdated ??? note
7584         on invalid declaration of flexible array members.
7585
7586 2002-04-25  Richard Henderson  <rth@redhat.com>
7587
7588         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7589
7590 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
7591
7592         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7593         needed by the compiler, even if they are used as global regs.
7594
7595 2002-04-25  Matt Hiller  <hiller@redhat.com>
7596
7597         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7598         functions.
7599         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7600         of the corresponding functions.
7601         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7602         New prototypes.
7603
7604 2002-04-25  Matt Hiller  <hiller@redhat.com>
7605
7606         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7607
7608         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7609         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7610         registers, adjust comment accordingly.
7611         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7612         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7613         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7614         for coprocessor registers.
7615         (ADDITIONAL_REGISTER_NAMES): Include
7616         ALL_COP_ADDITIONAL_REGISTER_NAMES.
7617
7618         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7619         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7620         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7621         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7622         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7623
7624         (mips_char_to_class): Adjust comment to include coprocessor
7625         constraint letters.
7626
7627         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7628         New functions.
7629         (mips_reg_names, mips_regno_to_class): Include coprocessor
7630         information.
7631         (mips_sw_reg_names): Ditto, make non-static.
7632         (mips_move_1word): Handle moves to and from coprocessor registers.
7633         (mips_move_2words): Handle moves to and from coprocessor
7634         registers.
7635         (mips_class_max_nregs, mips_register_move_cost): Handle
7636         coprocessor register classes.
7637         (override_options): Initialize mips_char_to_class and
7638         mips_hard_regno_mode_ok properly for coprocessor registers.
7639
7640         * config/mips/mips.md (movdi_internal, movdi_internal2,
7641         movsi_internal1, movsi_internal2): Add constraint-sets for
7642         coprocessor registers.
7643         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7644         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7645         isn't mips.
7646         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7647         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7648         isn't mips.
7649         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7650         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7651         isn't mips.
7652         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7653         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7654         isn't mips.
7655
7656         * doc/tm.texi: Document feature.
7657
7658 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
7659
7660         * integrate.c (function_attribute_inlinable_p): Simplify.
7661         Check the table pointer is not NULL.
7662
7663 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
7664
7665         * doc/c-tree.texi: Fix typo in introduction.
7666
7667 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
7668
7669         * c-common.h (c_common_parse_file): Update.
7670         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7671         * c-lex.c (YYDEBUG): Get from c-lex.h.
7672         (c_common_parse_file): Update.
7673         * c-lex.h (YYDEBUG, yydebug): New.
7674         * c-parse.in (YYDEBUG): Get from c-lex.h.
7675         (c_set_yydebug): Remove.
7676         * c-tree.h (c_set_yydebug): Remove.
7677         * langhooks-def.h (lhd_do_nothing_i): New.
7678         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7679         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7680         * langhooks.c  (lhd_do_nothing_i): New.
7681         (lhd_set_yydebug): Remove.
7682         * langhooks.h (struct lang_hooks): Update.
7683         * toplev.c (set_yydebug): New.
7684         (compile_file): Update call to parse_file hook.
7685         (decode_d_option): Update.
7686 objc:
7687         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7688
7689 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
7690
7691         * loop.c (load_mems): Don't change the interface of called functions.
7692
7693         * calls.c (expand_call): Take current_function_pretend_args_size
7694         into account when setting argblock for sibcalls.
7695
7696 2002-04-24  Matt Hiller  <hiller@redhat.com>
7697
7698         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7699         * c-lex.c: Ditto.
7700
7701         * cpplex.c (skip_line_comment): Process comment one multibyte
7702         character at a time rather than one char at a time, if
7703         appropriate.
7704         (parse_string): Process string one multibyte character at a time
7705         rather than one char at a time, if appropriate.
7706         * c-lex.c (lex_string): Lex and copy multibyte strings
7707         appropriately.
7708         * cpplib.h (cppchar_t): Change to unsigned.
7709
7710 2002-04-24  Richard Henderson  <rth@redhat.com>
7711
7712         PR c/3467
7713         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7714         for c99.
7715
7716 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
7717
7718         * sh.c (sh_va_arg): If argument was passed by reference,
7719         dereference the pointer.
7720
7721         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7722
7723         * sh.md (divsi3_i4_media): Use match_operand for input values
7724         rather than hard registers.
7725         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7726         unnecessarily through hard registers.  Keep copies of pseudo
7727         registers outside of the libcall sequence.
7728
7729         * sh.md (casesi_shift_media): Add modes.
7730
7731         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7732         values in memory.
7733
7734 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
7735
7736         * attribs.c (c_common_attribute_table): Move table and handlers
7737         to c-common.c.
7738         (format_attribute_table, lang_attribute_table,
7739         lang_attribute_common): Remove.
7740         (init_attributes): Replace NULL pointers with pointers to the
7741         empty table.
7742         (handle_packed_attribute, handle_nocommon_attribute,
7743         handle_common_attribute, handle_noreturn_attribute,
7744         handle_noinline_attribute, handle_always_inline_attribute,
7745         handle_used_attribute, handle_unused_attribute,
7746         handle_const_attribute, handle_transparent_union_attribute,
7747         handle_constructor_attribute, handle_destructor_attribute,
7748         handle_mode_attribute, handle_section_attribute,
7749         handle_aligned_attribute, handle_weak_attribute,
7750         handle_alias_attribute, handle_visibility_attribute,
7751         handle_no_instrument_function_attribute, handle_malloc_attribute,
7752         handle_no_limit_stack_attribute, handle_pure_attribute,
7753         handle_deprecated_attribute, handle_vector_size_attribute,
7754         vector_size_helper): Move to c-common.c.
7755         * c-common.c (c_common_attribute_table,
7756         handle_packed_attribute, handle_nocommon_attribute,
7757         handle_common_attribute, handle_noreturn_attribute,
7758         handle_noinline_attribute, handle_always_inline_attribute,
7759         handle_used_attribute, handle_unused_attribute,
7760         handle_const_attribute, handle_transparent_union_attribute,
7761         handle_constructor_attribute, handle_destructor_attribute,
7762         handle_mode_attribute, handle_section_attribute,
7763         handle_aligned_attribute, handle_weak_attribute,
7764         handle_alias_attribute, handle_visibility_attribute,
7765         handle_no_instrument_function_attribute, handle_malloc_attribute,
7766         handle_no_limit_stack_attribute, handle_pure_attribute,
7767         handle_deprecated_attribute, handle_vector_size_attribute,
7768         vector_size_helper): Move from attribs.c.
7769         * c-common.h (c_common_attribute_table,
7770         c_common_format_attribute_table): New.
7771         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7772         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7773         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7774         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
7775         (LANG_HOOKS_INITIALIZER): Update.
7776         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
7777         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
7778         * target.h: Update comment.
7779         * tree.c (default_target_attribute_table): Remove.
7780         * tree.h (default_target_attribute_table, format_attribute_table,
7781         lang_attribute_table, lang_attribute_common): Remove.
7782 objc:
7783         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7784         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7785
7786 2002-04-24  Jason Merrill  <jason@redhat.com>
7787
7788         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
7789         * dwarf2out.c (dwarf_attr_name): Support it.
7790         (gen_array_type_die): Emit it.
7791         (lookup_type_die): No special handling for VECTOR_TYPE.
7792         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
7793
7794 2002-04-24  Richard Henderson  <rth@redhat.com>
7795
7796         * config/mips/mips.md (movdi_usd): Renumber.
7797
7798 2002-04-24  David S. Miller  <davem@redhat.com>
7799
7800         PR target/6420
7801         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
7802         32-bit Sparc and current_function_returns_struct is true.
7803
7804 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
7805
7806         * loop.c (canonicalize_condition): Use gen_int_mode.
7807
7808 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
7809
7810         * config/rs6000/altivec.h: Cleanup file.  Add non individual
7811         variants.
7812         (vec_vaddubm): New.
7813         (vec_vadduhm): New.
7814         (vec_vadduwm): New.
7815         (vec_vaddfp): New.
7816         (vec_vaddcuw): New.
7817         (vec_vaddubs): New.
7818         (vec_vaddsbs): New.
7819         (vec_vadduhs): New.
7820         (vec_vadduws): New.
7821         (vec_vaddsws): New.
7822         (vec_vand): New.
7823         (vec_vandc): New.
7824         (vec_vavgub): New.
7825         (vec_vavgsb): New.
7826         (vec_vavguh): New.
7827         (vec_vavgsh): New.
7828         (vec_vavguw): New.
7829         (vec_vavgsw): New.
7830         (vec_vrfip): New.
7831         (vec_vcmpbfp): New.
7832         (vec_vcmpequb): New.
7833         (vec_vcmpequh): New.
7834         (vec_vcmpequw): New.
7835         (vec_vcmpeqfp): New.
7836         (vec_vcmpgefp): New.
7837         (vec_vcmpgtub): New.
7838         (vec_vcmpgtsb): New.
7839         (vec_vcmpgtuh): New.
7840         (vec_vcmpgtsh): New.
7841         (vec_vcmpgtuw): New.
7842         (vec_vcmpgtsw): New.
7843         (vec_vcmpgtfp): New.
7844         (vec_vcmpgefp): New.
7845         (vec_vcfux): New.
7846         (vec_vcfsx): New.
7847         (vec_vctsxs): New.
7848         (vec_vctuxs): New.
7849         (vec_vexptefp): New.
7850         (vec_vrfim): New.
7851         (vec_lvx): New.
7852         (vec_lvebx): New.
7853         (vec_lvehx): New.
7854         (vec_lde): Add vector float variant.
7855         (vec_lvewx): New.
7856         (vec_lvxl): New.
7857         (vec_vlogefp): New.
7858         (vec_vmaddfp): New.
7859         (vec_vmhaddshs): New.
7860         (vec_vmaxub): New.
7861         (vec_vmaxsb): New.
7862         (vec_vmaxuh): New.
7863         (vec_vmaxsh): New.
7864         (vec_vmaxuw): New.
7865         (vec_vmaxsw): New.
7866         (vec_vmaxsw): New.
7867         (vec_vmaxfp): New.
7868         (vec_vmrghb): New.
7869         (vec_vmrghh): New.
7870         (vec_vmrghw): New.
7871         (vec_vmrglb): New.
7872         (vec_vmrglh): New.
7873         (vec_vmrglw): New.
7874         (vec_vminub): New.
7875         (vec_vminsb): New.
7876         (vec_vminuh): New.
7877         (vec_vminsh): New.
7878         (vec_vminuw): New.
7879         (vec_vminsw): New.
7880         (vec_vminfp): New.
7881         (vec_vmladduhm): New.
7882         (vec_vmhraddshs): New.
7883         (vec_msumubm): New.
7884         (vec_vmsummbm): New.
7885         (vec_vmsumuhm): New.
7886         (vec_vmsumshm): New.
7887         (vec_vmsumuhs): New.
7888         (vec_vmsumshs): New.
7889         (vec_vmuleub): New.
7890         (vec_vmulesb): New.
7891         (vec_vmuleuh): New.
7892         (vec_vmulesh): New.
7893         (vec_vmuloub): New.
7894         (vec_mulosb): New.
7895         (vec_vmulouh): New.
7896         (vec_vmulosh): New.
7897         (vec_vnmsubfp): New.
7898         (vec_vnor): New.
7899         (vec_vor): New.
7900         (vec_vpkuhum): New.
7901         (vec_vpkuwum): New.
7902         (vec_vpkpx): New.
7903         (vec_vpkuhus): New.
7904         (vec_vpkshss): New.
7905         (vec_vpkuwus): New.
7906         (vec_vpkswss): New.
7907         (vec_vpkshus): New.
7908         (vec_vpkswus): New.
7909         (vec_vperm): New.
7910         (vec_vrefp): New.
7911         (vec_vrlb): New.
7912         (vec_vrlh): New.
7913         (vec_vrlw): New.
7914         (vec_vrfin): New.
7915         (vec_vrsqrtefp): New.
7916         (vec_vsel): New.
7917         (vec_vslb): New.
7918         (vec_vslh): New.
7919         (vec_vslw): New.
7920         (vec_vsldoi): New.
7921         (vec_vsl): New.
7922         (vec_vslo): New.
7923         (vec_vspltb): New.
7924         (vec_vsplth): New.
7925         (vec_vspltw): New.
7926         (vec_vspltisb): New.
7927         (vec_vspltish): New.
7928         (vec_vspltisw): New.
7929         (vec_vsrb): New.
7930         (vec_vsrh): New.
7931         (vec_vsrw): New.
7932         (vec_vsrab): New.
7933         (vec_vsrah): New.
7934         (vec_vsraw): New.
7935         (vec_vsr): New.
7936         (vec_vsro): New.
7937         (vec_stvx): New.
7938         (vec_stvebx): New.
7939         (vec_stvehx): New.
7940         (vec_stvewx): New.
7941         (vec_stvxl): New.
7942         (vec_vsububm): New.
7943         (vec_vsubuhm): New.
7944         (vec_vsubuwm): New.
7945         (vec_vsubfp): New.
7946         (vec_vsubcuw): New.
7947         (vec_vsububs): New.
7948         (vec_vsubsbs): New.
7949         (vec_vsubuhs): New.
7950         (vec_vsubshs): New.
7951         (vec_vsubuws): New.
7952         (vec_vsubsws): New.
7953         (vec_vsum4ubs): New.
7954         (vec_vsum4sbs): New.
7955         (vec_vsum4shs): New.
7956         (vec_vsum2sws): New.
7957         (vec_vsumsws): New.
7958         (vec_vrfiz): New.
7959         (vec_vupkhsb): New.
7960         (vec_vupkhpx): New.
7961         (vec_vupkhsh): New.
7962         (vec_vupklsb): New.
7963         (vec_vupklpx): New.
7964         (vec_vupklsh): New.
7965         (vec_vxor): New.
7966
7967 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
7968
7969         PR c/5430
7970         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
7971         added literals from substracted literals.
7972         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
7973         (fold) [associate]: Preserve MINUS_EXPR if needed.
7974
7975 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
7976
7977         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
7978         are obsoleted.
7979
7980 2002-04-23  Tom Tromey  <tromey@redhat.com>
7981
7982         * gcc.c: Added --resource.  For PR java/6314.
7983
7984 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
7985
7986         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
7987         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
7988         these libraries.
7989
7990 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
7991
7992         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
7993
7994 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
7995
7996         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
7997         workaround.
7998         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
7999         (ix86_expand_clrstr): Fix typo.
8000         * loop.c (gen_load_of_final_value): New.
8001         (loop_givs_rescan, strength_reduce, check_dbra_loop):
8002         Use it.
8003
8004 2002-04-23  Roger Sayle  <roger@eyesopen.com>
8005
8006         * builtins.c (builtin_memset_gen_str): New function.
8007         (expand_builtin_memset): Optimize the case of constant length, but
8008         unknown value.
8009
8010 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
8011
8012         * config/rs6000/altivec.h (vec_step): Remove extraneous
8013         parentheses.
8014         (vec_ctu): Cast return.
8015
8016 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
8017
8018         PR target/6413
8019         * function.h: (struct function): Add profile_label_no field.
8020         (current_function_profile_label_no): Define.
8021         * function.c: (profile_label_no): New static var.
8022         (expand_function_start): Increment it, and copy to
8023         current_function_profile_label_no.
8024         * output.h (profile_label_no): Delete.
8025         * final.c (profile_label_no): Delete.
8026         (profile_function): Use current_function_profile_label_no.
8027         (final_end_function): Don't increment profile_label_no here.
8028         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
8029         profile_label_no with current_function_profile_label_no.
8030         * config/pa/pa.c (current_function_number): Delete.
8031         (pa_output_function_prologue): Don't output profile label here.
8032         (hppa_profile_hook): Use label_no param rather than
8033         current_function_number.
8034         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
8035         * config/pa/pa.h: .. here.
8036         (FUNCTION_PROFILER): Output profile label here.
8037
8038 2002-04-22  Eric Christopher  <echristo@redhat.com>
8039
8040         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
8041         patch of 2002-04-09 due to binutils issues.
8042         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
8043
8044 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
8045
8046         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
8047         constraint to 'o' for m=r and r=m alternatives.
8048         ("*movv8hi_internal1"): Same.
8049         ("*movv16qi_internal1"): Same.
8050         ("*movv4sf_internal1"): Same.
8051
8052 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
8053
8054         * rtl.h (RTX_FLAG): New macro.
8055         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
8056         * final.c (alter_subreg): Use macro to access rtx flag.
8057         * integrate.c (copy_rtx_and_substitute): Use new access macro.
8058         * print-rtl.c (print_rtx): Use new access macro.
8059
8060         * cse.c (insert): Check rtx code before accessing flag.
8061
8062         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
8063         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
8064         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
8065         convert_const_symbol_ref, make_canonical, make_alternative_compare,
8066         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
8067         simplify_test_exp, optimize_attrs, simplify_by_exploding,
8068         find_and_mark_used_attributes, unmark_used_attributes,
8069         add_values_to_cover, simplify_with_current_value,
8070         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
8071         copy_rtx_unchanging, main): Use new access macros.
8072
8073 2002-04-22  Tom Rix  <trix@redhat.com>
8074
8075         * expmed.c (init_expmed): Generate shifted constant once.
8076
8077 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
8078
8079         * c-lex.c (lex_charconst): Call convert to get constant in
8080         proper type; don't just smash the type field.
8081         Fixes PR c/6300.
8082
8083         * config.gcc: Add list of obsolete configurations.  Disallow
8084         building these without --enable-obsolete.
8085         * doc/install.texi: Document --enable-obsolete and obsoletion
8086         policy.  Mention obsoletion of individual targets in
8087         appropriate places.
8088
8089 2002-04-22  Richard Henderson  <rth@redhat.com>
8090
8091         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
8092
8093 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
8094
8095         PR f/6138.
8096         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
8097         (walk_fixup_memory_subreg): Likewise.
8098         (fixup_var_refs_insn): Adjust accordingly.
8099         (fixup_var_refs_1): Likewise.
8100
8101 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
8102
8103         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
8104         LIBPATH_ARCH64_SPEC): Define.
8105         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
8106         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
8107         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
8108         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
8109
8110 2002-04-22      Joel Sherrill <joel@OARcorp.com>
8111
8112         * gthr-rtems.h: Correct prototypes to remove warnings.
8113
8114 2002-04-22  Richard Henderson  <rth@redhat.com>
8115
8116         PR c/6344
8117         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
8118
8119         * gcse.c (free_insn_expr_list_list): New.
8120         (clear_modify_mem_tables): Use it.  Fix bit set usage.
8121         (canon_list_insert): Use EXPR_LISTs for expressions.
8122         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
8123
8124 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8125
8126         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
8127         file change and include code to _cpp_pop_buffer.
8128         * cpphash.h (struct pending_option): Predeclare.
8129         (struct cpp_reader): New member next_include_file.
8130         (_cpp_pop_file_buffer): Update.
8131         (_cpp_push_next_buffer): Update, rename.
8132         * cppinit.c (cpp_destroy): Free include chain and pending here.
8133         (cpp_finish_options): Simplify.
8134         (_cpp_push_next_buffer): Rename and clean up.
8135         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
8136         Clarify.
8137         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
8138
8139 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
8140
8141         * config/rs6000/altivec.h (vec_xor): Add variant for both args
8142         being vector signed int.
8143         (vec_andc): Same.
8144         (vec_xor): Add variant for both args being vector signed char.
8145         Remove redundant variant.
8146         (vec_andc): Same.
8147
8148 2002-04-21  David S. Miller  <davem@redhat.com>
8149
8150         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
8151         compare mode in output RTL.
8152
8153 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
8154
8155         * config/rs6000/rs6000.c (rs6000_override_options): Correct
8156         style and formatting of previous patch.
8157
8158 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
8159
8160         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
8161         flag_pic for ABI_AIX.
8162
8163 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8164
8165         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
8166         * cppfiles.c (read_include_file): Similarly.
8167         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
8168         uxstrdup ustrchr, ufputs): Similarly.
8169         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8170         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
8171         cpp_ideq, parse_identifier, parse_number): Similarly.
8172         * cpplib.c (struct directive, dequote_string, D, run_directive,
8173         cpp_push_buffer): Similarly.
8174         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
8175         _cpp_create_definition, check_trad_stringification,
8176         cpp_macro_definition): Similarly.
8177
8178 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8179
8180         * cppmacro.c (funlike_invocation_p): Don't step back
8181         over CPP_EOF.
8182
8183 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
8184
8185         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8186         labelno.
8187
8188 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
8189
8190         * doc/invoke.texi: Remove Chill references.
8191         * doc/gcc.texi: Update last modified date.
8192
8193 2002-04-20  Kazu Hirata  <kazu@hxi.com>
8194
8195         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8196         push and pop.  Replace add.l with add.w.
8197
8198 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
8199
8200         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8201         multiply instructions for H8/300H case.
8202
8203 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
8204
8205         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8206         Bum three instructions from each routine.
8207
8208 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
8209
8210         * Makefile.in: Update.
8211         * decl.c (push_c_function_context, pop_c_function_context,
8212         mark_c_function_context): Rename for consistency.
8213         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8214         * c-tree.h (push_c_function_context, pop_c_function_context,
8215         mark_c_function_context): Rename for consistency.
8216         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8217         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8218         * function.c (init_lang_status, save_lang_status,
8219         restore_lang_status, mark_lang_status, free_lang_status):
8220         Move to langhooks.h.
8221         (push_function_context_to, pop_function_context_from,
8222         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8223         Update.
8224         * function.h (init_lang_status, save_lang_status,
8225         restore_lang_status, mark_lang_status, free_lang_status):
8226         Move to langhooks.h.
8227         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8228         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8229         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8230         LANG_HOOKS_FUNCTION_INITIALIZER): New.
8231         (LANG_HOOKS_INITIALIZER): Update.
8232         (lhd_do_nothing_f): New.
8233         * langhooks.h (struct lang_hooks_for_functions): New.
8234         (struct lang_hooks): New hooks.
8235         * langhooks.c (lhd_do_nothing_f): New.
8236 objc:
8237         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8238         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8239
8240 2002-04-19  David S. Miller  <davem@redhat.com>
8241
8242         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8243         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8244
8245 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
8246
8247         PR optimization/3756
8248         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8249         x = ((int) y < 0) ? cst1 : cst2.
8250
8251 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
8252
8253         PR c/6358
8254         * function.c: Reapply patch for c/6358.
8255         (expand_function_end): Copy decl_rtl's mode, not
8256         current_function_return_rtx mode.
8257
8258 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
8259
8260         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8261         targets.
8262
8263 2002-04-19  Tom Tromey  <tromey@redhat.com>
8264
8265         * doc/install.texi (Specific): Update status of Solaris 2.8.
8266         For PR libgcj/6158.
8267
8268 2002-04-19  Andreas Schwab  <schwab@suse.de>
8269
8270         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8271         (PUT_REAL): Restore old definition.
8272
8273 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
8274             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8275
8276         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8277         binutils 2.11.2 and higher generate smaller binaries than Sun's
8278         native tools.
8279
8280 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
8281
8282         PR c++/6352
8283         * toplev.c (rest_of_compilation): Do not defer functions for which
8284         TREE_SYMBOL_REFERENCED has already been set.
8285
8286 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
8287
8288         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8289         alternative.
8290
8291 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8292
8293         * builtins.c: Include langhooks.h.
8294         (lang_type_promotes_to): Remove.
8295         (expand_builtin_va_arg): Use new hook.
8296         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8297         (simple_type_promotes_to): Move to c-typeck.c.
8298         * c-common.h (simple_type_promotes_to): Remove.
8299         * c-decl.c (duplicate_decls, grokdeclarator): Update.
8300         * c-format.c: Include langhooks.h.
8301         (check_format_types): Update.
8302         * c-tree.h (c_type_promotes_to): New.
8303         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8304         (type_lists_compatible_p): Update.
8305         * langhooks-def.h (lhd_type_promotes_to): New.
8306         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8307         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8308         * langhooks.c (lhd_type_promotes_to): New.
8309         * langhooks.h (struct lang_hooks_for_types): New hook.
8310         * tree.h (lang_type_promotes_to): Remove.
8311 objc:
8312         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8313
8314 2002-04-18  Richard Henderson  <rth@redhat.com>
8315
8316         * function.c: Revert patch for c/6358.
8317
8318 2002-04-18  Richard Henderson  <rth@redhat.com>
8319
8320         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8321         blocks.  Handle multiple references to the TRAP block.  Handle
8322         non-adjacent THEN and OTHER blocks.
8323
8324 2002-04-18  Richard Henderson  <rth@redhat.com>
8325
8326         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8327         crash with no type for by-mode libcalls.
8328
8329         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
8330
8331 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
8332
8333         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8334         __xtensa_nonlocal_goto): Use a syscall instructions to flush
8335         the register windows.
8336
8337 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
8338
8339         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8340         appropriate.  Document need for extended precision even when
8341         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
8342         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
8343         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
8344         instead of relying on later syntax error when REAL_WIDTH > 5.
8345         * real.c: Define NE based only on whether or not we have a
8346         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8347         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
8348         define GET_REAL and PUT_REAL as simple memcpy operations; no
8349         need to byteswap or round.
8350         Use #error instead of #ifdef-ing out the entire file, for
8351         prompt error detection.
8352
8353         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8354
8355 2002-04-18  David S. Miller  <davem@redhat.com>
8356
8357         * config/sparc/sparc.h (BRANCH_COST): Define.
8358
8359         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8360         does it.
8361
8362 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
8363
8364         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8365         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8366         propagate_block calls after relaxation loop using new variable
8367         stabilized_prop_flags.
8368
8369 2002-04-18  Richard Henderson  <rth@redhat.com>
8370
8371         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8372         (ia64_va_arg): Expect variable sized types by reference.
8373         * config/ia64/ia64-protos.h: Update.
8374         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
8375         ia64_function_arg_pass_by_reference.
8376
8377 2002-04-18  Richard Henderson  <rth@redhat.com>
8378
8379         * ifcvt.c: Include except.h.
8380         (block_has_only_trap): Break out from find_cond_trap.
8381         (find_cond_trap): Use it.  Always delete the trap block.
8382         (merge_if_block): Allow then block null.  Be less simplistic about
8383         what insns can end a block.
8384         * Makefile.in (ifcvt.o): Depend on except.h.
8385
8386         * config/ia64/ia64.md (trap, conditional_trap): New.
8387
8388 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
8389
8390         PR c/6358
8391         * function.c (assign_parms): Assign hard current_function_return_rtx
8392         register here...
8393         (expand_function_end): ...not here.
8394
8395 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8396
8397         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8398         * c-tree.h (c_incomplete_type_error): New.
8399         * c-typeck.c (require_complete_type, build_component_ref): Update.
8400         (incomplete_type_error): Rename.
8401         * langhooks-def.h (lhd_incomplete_type_error): New.
8402         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8403         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8404         * langhooks.c (lhd_incomplete_type_error): New.
8405         * langhooks.h (struct lang_hooks_for_types): New hook.
8406         * tree.c (size_in_bytes): Use new hook.
8407         * tree.h (incomplete_type_error): Remove.
8408 objc:
8409         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8410
8411 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
8412
8413         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8414         TARGET_FLOAT_FORMAT blocks.
8415
8416 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8417
8418         * doc/install.texi (Downloading the source): Do not mention Chill
8419         any longer, but mention Ada.
8420         (Configuration): Do not mention Chill any longer.
8421
8422 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
8423
8424         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8425
8426 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
8427
8428         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8429         in last patch.
8430
8431 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
8432
8433         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8434         instead of unsigned_type.
8435
8436 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
8437
8438         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8439         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8440         later.
8441
8442 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
8443
8444         * attribs.c (vector_type_node_list): New static variable.
8445         (handle_vector_size_attribute): Use it to avoid generating a
8446         new type node each time we are called.
8447
8448         * combine.c (subst): Avoid trying to make a vector mode subreg of
8449         an integer constant.
8450         (gen_lowpart_for_combine): Likewise.
8451
8452 2002-04-18  Roger Sayle  <roger@eyesopen.com>
8453             Jakub Jelinek  <jakub@redhat.com>
8454
8455         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8456         for integer constant c (if x has unsigned type or sign bit is not
8457         set in c).  This folds the zero/sign extension into the bit-wise and
8458         operation.
8459
8460 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
8461
8462         PR middle-end/6205
8463         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8464         otherwise xorps.
8465
8466 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
8467
8468         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8469
8470 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
8471
8472         * gcc.c (read_specs): Detect and fail if an attempt is made to
8473         rename a spec string to an already existing string.
8474
8475 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8476
8477         * config/s390/s390.c (legitimize_pic_address): Do not generate
8478         illegal address constant without CONST.
8479
8480 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8481
8482         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8483         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8484
8485 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8486
8487         PR optimization/6305
8488         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8489         to make sure previous reloads are taken into account.  Generate
8490         better code if one operand is an in-range immediate constant.
8491
8492 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
8493
8494         * doc/install.texi (Building): libgcj requires GNU make.
8495
8496 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
8497
8498         PR bootstrap/6315
8499         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8500         even if hard quad and register is not floating.
8501         (movtf reg<-mem split): Disallow splitting if hard quad and
8502         register is floating.
8503         (movtf mem<-reg split): Likewise.
8504         * config/sparc/sparc.c (fp_register_operand): New predicate.
8505         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8506
8507 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
8508
8509         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8510         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8511         (unprotoize.o): Ditto.  Build from protoize.c.  Define
8512         UNPROTOIZE on command line.
8513         * protoize.c: Include cppdefault.h.  Delete include_defaults.
8514         (in_system_include_dir): Use cpp_include_defaults (defined in
8515         cppdefault.o).
8516         * unprotoize.c: Delete file.
8517
8518 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
8519
8520         * config/rs6000/altivec.h (vec_ld): Add array variants.
8521         (vec_lde): Same.
8522         (vec_ldl): Same.
8523
8524 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
8525             Aldy Hernandez <aldyh@redhat.com>
8526
8527         * config/rs6000/altivec.h: Define __ALTIVEC__.
8528         (bool): New.
8529         (__pixel): New.
8530         (pixel): New.
8531         (vec_cfux): New.
8532         (vec_vmaddfp): New.
8533         (vec_vsldoi): New.
8534         Add parentheses to all macro arguments.
8535
8536 2002-04-16  Richard Henderson  <rth@redhat.com>
8537
8538         PR c++/6320
8539         * except.c (remove_eh_handler): Insert inner regions at beginning
8540         of sibling chain.  Refactor expressions.
8541
8542 2002-04-16  Richard Henderson  <rth@redhat.com>
8543
8544         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8545         * config/sparc/sol2-gas-bi.h: New file.
8546         * config.gcc (sparc*-solaris): Add it as needed.
8547         * configure.in (AS_SPARC64_FLAG): Remove check.
8548         * config.in, configure: Regenerate.
8549
8550         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8551
8552 2002-04-16  Richard Henderson  <rth@redhat.com>
8553
8554         * config/mips/mips.c (override_options): Don't override N32 for
8555         a 64-bit ISA.
8556
8557         PR 6202
8558         * config/mips/mips.md (can_delay): Split out of existing define_delays.
8559         (HILO_delay): Set can_delay false.
8560
8561 2002-04-16  Dale Johannesen <dalej@apple.com>
8562
8563         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8564         instruction addresses.
8565         (rs6000_output_function_epilogue): Likewise.
8566
8567 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
8568
8569         * c-parse.in (poplevel, compstmt_start,
8570         compstmt_primary_start): Add ending ';', in accordance
8571         with POSIX.
8572
8573 2002-04-16  Richard Henderson  <rth@redhat.com>
8574
8575         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8576         Adjust tm_file order to get TARGET_DEFAULT set properly.
8577         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8578         * doc/install.texi (sparc-solaris): Update.
8579
8580 2002-04-16  Dale Johannesen <dalej@apple.com>
8581
8582         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8583         comparison operands do not match each other or if modes of
8584         conditions do not match result.
8585
8586 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
8587
8588         PR target/6305
8589         * config/s390/s390.md (mulsidi3): Set both subregs of the
8590         multiword register.
8591
8592 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
8593
8594         * config/rs6000/altivec.h (vec_addc): Type check.
8595
8596 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
8597
8598         PR middle-end/6279
8599         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8600
8601         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8602
8603 2002-04-15  Richard Henderson  <rth@redhat.com>
8604
8605         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8606         call_really_used_regs too.
8607
8608 2002-04-15  Richard Henderson  <rth@redhat.com>
8609
8610         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8611
8612 2002-04-15  David S. Miller  <davem@redhat.com>
8613
8614         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8615         as being CLOBBERed.
8616
8617 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
8618
8619         PR c/6290
8620         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8621         CONST_VECTOR is { 0, ... 0 }.
8622
8623 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
8624
8625         * doc/install.texi (Installing GCC: Configuration): Clarify
8626         the only supported ways to configure gcc.
8627
8628 2002-04-15  Roland McGrath  <roland@frob.com>
8629
8630         * config.gcc (alpha*-*-gnu*): New target configuration.
8631         * config/alpha/gnu.h: New file for it.
8632         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8633
8634 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
8635
8636         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8637         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8638         * tree.h (expand_start_stmt_expr): Update prototype.
8639         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8640         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8641         on the STMT_EXPR created for the inline function.
8642
8643 2002-04-15  Richard Henderson  <rth@redhat.com>
8644
8645         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8646         config/i386/linux-aout.h, config/i386/linux-oldld.h,
8647         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8648         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8649         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8650         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8651         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8652         Define __gnu_linux__, not gnu_linux.
8653         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8654
8655 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
8656
8657         Remove Chill front end.
8658         * gcc.c (default_compilers): Remove Chill entries.
8659         * ch: Remove directory.
8660         * doc/frontends.texi: Remove information about Chill.
8661         * doc/sourcebuild.texi: Likewise.
8662         * doc/standards.texi: Likewise.
8663
8664 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
8665
8666         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8667         (LONGLONG_STANDALONE): Define.
8668
8669 2002-04-15  David S. Miller  <davem@redhat.com>
8670
8671         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8672         Call emit_library_call with LCT_NORMAL.
8673         (sparc_initialize_trampoline): Use LCT_foo instead of
8674         magic constant in emit_library_call invocations.
8675         (sparc64_initialize_trampoline): Likewise.
8676         (sparc_profile_hook): Likewise.
8677         * config/sparc/sparc.md: Likewise.
8678
8679         * config/sparc/sparc.c (sparc_extra_constraint_check):
8680         Fix type of argument 'c'.
8681         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8682         Likewise.
8683
8684 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
8685
8686         * diagnostic.h (output_buffer_state): Redefine.
8687         (output_format_decoder): New macro.
8688         (output_prefixing_rule): Likewise.
8689         (output_line_cutoff): Likewise.
8690         (diagnostic_format_decoder): Adjust.
8691         (diagnostic_prefixing_rule): Likewise.
8692         (diagnostic_line_cutoff): Likewise.
8693         (diagnostic_state): Likewise.
8694         (diagnostic_kind_count): Likewise.
8695         (diagnostic_buffer): Now a macro.
8696
8697         * diagnostic.c (diagnostic_buffer): Remove definition.
8698         (output_is_line_wrapping): Adjust.
8699         (set_real_maximum_length): Likewise.
8700         (output_set_maximum_length): Likewise.
8701         (init_output_buffer): Likewise.
8702         (lhd_print_error_function): Likewise.
8703         (output_do_verbatim): Likewise.
8704
8705 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8706
8707         * cpperror.c (print_location): Don't print include chain
8708         if line == 0.
8709         (cpp_begin_message): Update to use DL_ macros.
8710         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8711         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8712         cpp_notice, cpp_notice_from_errno): Remove.
8713         (cpp_error, cpp_error_with_line): Update to take a diagnostic
8714         level.
8715         (cpp_errno): New.
8716         * cppexp.c (CPP_ICE): Remove.
8717         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8718         lex, integer_overflow, _cpp_parse_expr): Update.
8719         * cppfiles.c (read_include_file, find_include_file,
8720         handle_missing_header, _cpp_read_file, remap_filename): Update.
8721         * cpphash.h (enum error_type): Remove.
8722         (_cpp_begin_message): Update.
8723         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8724         cpp_handle_option, cpp_post_options): Update.
8725         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8726         skip_whitespace, parse_identifier, parse_slow, parse_string,
8727         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8728         cpp_interpret_charconst): Update.
8729         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8730         lex_macro_node, do_undef, glue_header_name, parse_include,
8731         do_include_common, read_flag, do_line, do_linemarker, do_ident,
8732         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8733         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8734         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8735         _cpp_pop_buffer, do_diagnostic): Update.
8736         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8737         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8738         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8739         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8740         cpp_notice, cpp_notice_from_errno): Remove.
8741         (cpp_error, cpp_error_with_line): Update to take a diagnostic
8742         level.
8743         (cpp_errno): New.
8744         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8745         collect_args, enter_macro_context, save_parameter, parse_params,
8746         _cpp_create_definition, check_trad_stringification,
8747         cpp_macro_definition): Update.
8748         * cppmain.c (cpp_preprocess_file): Update.
8749         * fix-header.c (read_scan_file): Update.
8750
8751 2002-04-14  Andreas Schwab  <schwab@suse.de>
8752
8753         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
8754
8755 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
8756
8757         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
8758
8759 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
8760
8761         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
8762         not gnu_hurd.
8763
8764 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
8765
8766         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
8767
8768 2002-04-13      Joel Sherrill <joel@OARcorp.com>
8769
8770         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
8771         sparc-elf and sparc-rtems targets.
8772
8773 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
8774
8775         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
8776         defined, and __gnu_hurd__ wherever __GNU__ is defined.
8777         * arm/linux-elf.h: Likewise.
8778         * cris/aout.h: Likewise.
8779         * cris/linux.h: Likewise.
8780         * i370/linux.h: Likewise.
8781         * i386/gnu.h: Likewise.
8782         * i386/linux-aout.h: Likewise.
8783         * i386/linux-oldld.h: Likewise.
8784         * i386/linux.h: Likewise.
8785         * i386/linux64.h: Likewise.
8786         * ia64/linux.h: Likewise.
8787         * m68k/linux-aout.h: Likewise.
8788         * m68k/linux.h: Likewise.
8789         * mips/linux.h: Likewise.
8790         * pa/pa-linux.h: Likewise.
8791         * pj/linux.h: Likewise.
8792         * rs6000/sysv4.h: Likewise.
8793         * s390/linux.h: Likewise.
8794         * sh/linux.h: Likewise.
8795         * sparc/linux-aout.h: Likewise.
8796         * sparc/linux.h: Likewise.
8797         * sparc/linux64.h: Likewise.
8798         * xtensa/linux.h: Likewise.
8799
8800 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
8801
8802         * stmt.c (check_unique_operand_names): Expect operand names to
8803         be strings rather than identifiers.  Use simple_cst_equal to
8804         compare them.
8805         (resolve_operand_name_1): Make same identifier to string change here.
8806         * c-parse.in (asm_operand): Convert a named operand into a string.
8807         * cp/parse.y (asm_operand): Likewise.
8808
8809 2002-04-13  Andreas Schwab  <schwab@suse.de>
8810
8811         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
8812
8813 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
8814
8815         Revert these changes:
8816
8817         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
8818
8819         PR c++/5571
8820         * stor-layout.c (layout_decl): Reset the RTL for the decl.
8821
8822 2002-04-12  Richard Henderson  <rth@redhat.com>
8823
8824         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
8825         (sparc*-*-solaris): Clean up header files.
8826         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
8827         and plan on generating 64-bit code.
8828         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
8829         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
8830         * config/sparc/sol2-sld-64.h: Rename ...
8831         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
8832         for AS_SPARC64_FLAG not defined.
8833         * config/sparc/sol2-gld-bi.h: New.
8834         * config/sparc/sol2-sld.h: Remove.
8835         * config/sparc/sol26-sld.h: New.
8836         * config/sparc/sol2.h: Tidy comments.
8837         * doc/install.texi: Document sparc-solaris configury changes.
8838
8839 2002-04-12  Richard Henderson  <rth@redhat.com>
8840
8841         * recog.c (offsettable_address_p): Match the logic in adjust_address.
8842
8843         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
8844         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
8845
8846 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8847
8848         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
8849
8850 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
8851
8852         * pa.c (pa_can_combine_p): Call extract_insn before calling
8853         constrain_operands.
8854
8855 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
8856
8857         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
8858         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
8859         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8860         (CPP_PREDEFINES): Handle __declspec.
8861         * config/i386/t-interix (USER_H): Remove.
8862
8863 2002-04-12  DJ Delorie  <dj@redhat.com>
8864
8865         * integrate.c (compare_blocks): Make comparisons safe for when
8866         sizeof(int) < sizeof(char *).
8867         (find_block): Likewise.
8868
8869 2002-04-12  Jan Hubicka  <jh@suse.cz>
8870             David Edelsohn  <edelsohn@gnu.org>
8871
8872         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
8873         registers.
8874         (symbol_ref_operand): New.
8875         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
8876         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
8877
8878 2002-04-12  Andreas Schwab  <schwab@suse.de>
8879
8880         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
8881         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
8882         overrides the definition in config/svr4.h.
8883
8884 2002-04-12      Eric Norum <eric.norum@usask.ca>
8885
8886         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
8887         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
8888         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
8889         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
8890         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
8891         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
8892         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
8893         definitions to config/rtems.h and make the targets more similar.
8894
8895 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8896
8897         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
8898         POINTERS_EXTEND_UNSIGNED.
8899         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
8900         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
8901
8902         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
8903         not specified.
8904
8905 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
8906
8907         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
8908         depends on TARGET_SHMEDIA, not TARGET_SH5.
8909
8910 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
8911
8912         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
8913         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
8914
8915 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
8916
8917         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
8918         no r0 clobber.
8919
8920 2002-04-12  Andreas Schwab  <schwab@suse.de>
8921
8922         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
8923
8924 2002-04-12  Richard Henderson  <rth@redhat.com>
8925
8926         PR bootstrap/4191
8927         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
8928
8929         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
8930         modes spanning multiple hard regs.
8931
8932         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
8933
8934 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8935
8936         * pa.c (pa_output_function_prologue): Don't accumulate the total
8937         number of code bytes when using TARGET_64BIT, or gas, SOM and not
8938         the portable runtime.
8939         (output_deferred_plabels): Handle 64bit plabels.
8940         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
8941         generating pic code using the GAS assembler for object formats that
8942         are not SOM (ie., ELF32 and ELF64).
8943         (output_millicode_call): Check attribute type if attribute length is 28.
8944         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
8945         dbr_sequence_length once.
8946         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
8947         dbr_sequence_length once.
8948         * pa.h (TARGET_SOM): Define if not defined.
8949         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
8950         with GAS and not SOM.
8951         (jump, call_internal_reg, call_value_internal_reg): Likewise.
8952         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
8953
8954 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
8955
8956         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
8957         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
8958         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
8959         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
8960         elfos.h and dbxelf.h values are fine now.
8961         * config/i386/freebsd.h, config/alpha/freebsd.h
8962         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
8963
8964 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
8965
8966         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
8967         or set Acpu or Amachine.  Reformat.
8968         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8969         define.
8970         (LINK_SPEC): Do not need to undef.
8971         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
8972         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
8973         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8974         define.
8975         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
8976         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
8977         (LINK_SPEC): Do not need to undef.
8978         (DONT_USE_BUILTIN_SETJMP): Do not define.
8979         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
8980         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
8981         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
8982         Remove trailing spaces.
8983         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
8984         __ELF__, or set Acpu or Amachine.  Reformat.
8985         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8986         define.
8987
8988 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
8989
8990         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
8991         all other *-*-freebsd* targets.
8992
8993 2002-04-11  Richard Henderson  <rth@redhat.com>
8994
8995         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
8996
8997 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
8998
8999         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
9000         Include {cpu}/{cpu}.h thru tm_file.
9001         (alpha*-*-linux*ecoff): Remove target.
9002         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
9003         (LINK_SPEC): Remove, is not OS independent.
9004         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
9005         (LINK_SPEC): Do not need to #undef any longer.
9006         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
9007         any longer.
9008         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
9009         __ELF__.
9010         (LINK_SPEC): Moved here from alpha/elf.h.
9011         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
9012         SUB_CPP_PREDEFINES.
9013         * config/alpha/linux-ecoff.h: Remove.
9014         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
9015         (CPP_SPEC): Define _POSIX_SOURCE as needed.
9016         (CPP_SUBTARGET_SPEC): Do not define.
9017         (LINK_SPEC): Do not need to #undef any longer.
9018         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
9019         * config/alpha/vms.h: Likewise.
9020
9021 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
9022
9023         * doc/extend.texi: Remove old claim that typedefs cannot have
9024         an alignment attribute.
9025
9026 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
9027
9028         PR optimization/6177
9029         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
9030         bitpos is 0 and bitsize CONCAT size.
9031
9032 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
9033
9034         PR c/6223
9035         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
9036
9037 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
9038
9039         * config/alpha/freebsd.h: Minor reformatting.
9040         (CPP_SPEC): Define ELF and add cpp_subtarget.
9041         (ASM_SPEC): No longer needed.
9042
9043 2002-04-11  Richard Henderson  <rth@redhat.com>
9044
9045         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
9046         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
9047         (dimode mem/zero splitter): New.
9048
9049 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
9050
9051         * config/cris/cris.c (cris_override_options): Tweak error message
9052         for PIC not implemented.
9053
9054         * config/cris/cris.h: Tweak comments related to parameter-passing.
9055
9056         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
9057
9058 2002-04-10  Richard Henderson  <rth@redhat.com>
9059
9060         * except.c (add_ehl_entry): Allow duplicates after landing pad
9061         creation.
9062
9063 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
9064
9065         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
9066
9067 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
9068
9069         * c-decl.c (c_init_decl_processing): Move generation of
9070         decls for g77_integer_type_node and friends from here ...
9071         * c-common.c (c_common_nodes_and_builtins): ... to here.
9072
9073 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
9074
9075         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
9076         is only used as frame pointer when frame_pointer_needed is true.
9077
9078 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
9079
9080         PR target/817
9081         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
9082         for the fact that the pool entry uses two words.
9083         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
9084         1k bytes.
9085         (movdf_soft_insn): Similarly.
9086         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
9087         for the fact that the pool entry uses three words.
9088
9089 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
9090
9091         * config/mips/mips.c (mips_va_arg): When using the struct version
9092         of the EABI va_list, allow arguments in the register save area to
9093         take up less room than a stack argument.
9094
9095 2002-04-10  Richard Henderson  <rth@redhat.com>
9096
9097         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
9098         if EXPAND_INITIALIZER.
9099
9100 2002-04-09  Richard Henderson  <rth@redhat.com>
9101
9102         * config/alpha/alpha.md (movdi_er_maybe_g): New.
9103         * config/alpha/alpha.c (alpha_expand_mov): Use it.
9104
9105 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
9106
9107         PR optimization/6233
9108         * rtlanal.c (pure_call_p): New function.
9109         * rtl.h (pure_call_p): Declare.
9110         * loop.c (prescan_loop): Use it to set has_nonconst_call.
9111         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
9112
9113 2002-04-09  Eric Christopher  <echristo@redhat.com>
9114
9115         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
9116         information to .comm directive.
9117
9118 2002-04-09  Richard Henderson  <rth@redhat.com>
9119
9120         PR c/5078
9121         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
9122
9123 2002-04-09  Richard Henderson  <rth@redhat.com>
9124
9125         * basic-block.h (flow_delete_block_noexpunge): Declare.
9126         (expunge_block_nocompact): Declare.
9127         * cfg.c (expunge_block_nocompact): Split out from ...
9128         (expunge_block): ... here.
9129         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
9130         (flow_delete_block_noexpunge): Split out from ...
9131         (flow_delete_block): ... here.
9132         * cfgcleanup.c (delete_unreachable_blocks): Compact while
9133         removing dead blocks.
9134         * except.c (exception_handler_labels): Remove.
9135         (exception_handler_label_map): New.
9136         (struct eh_region): Add aka member.
9137         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
9138         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
9139         (for_each_eh_label, for_each_eh_label_1): New.
9140         (init_eh): Register exception_handler_label_map.
9141         (free_eh_status): Use free_region.
9142         (find_exception_handler_labels): Use the map, not the list.
9143         (remove_exception_handler_label): Likewise.
9144         (maybe_remove_eh_handler): Likewise.
9145         (remove_eh_handler): Use the region aka bitmap.
9146         * except.h (exception_handler_labels): Remove.
9147         (for_each_eh_label): Declare.
9148         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
9149         * loop.c (invalidate_loops_containing_label): New.
9150         (find_and_verify_loops): Use it.  Use for_each_eh_label.
9151         * sched-rgn.c (is_cfg_nonregular): Use
9152         current_function_has_exception_handlers.
9153
9154 2002-04-09  Richard Henderson  <rth@redhat.com>
9155
9156         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
9157         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
9158         Do not return changed status.
9159         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
9160         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
9161         New functions that do return changed status.
9162         * sbitmap.h: Update decls.
9163         * gcse.c, lcm.c: Use _cg functions as needed.
9164
9165 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
9166
9167         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
9168         (sh64-*-elf*, sh-*-rtemself*): Likewise.
9169         * config/sh/embed_bb.c: New file.
9170         * config/sh/embed-elf.h: New file.
9171         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
9172         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
9173         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9174         __PTRDIFF_TYPE__ .
9175         (SUBTARGET_CPP_PTR_SPEC): Don't define.
9176         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
9177         Add subtarget_asm_endian_spec.
9178         (ASM_SPEC): Use subtarget_asm_endian_spec.
9179         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
9180         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
9181         (WCHAR_UNSIGNED): Define.
9182         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
9183         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9184         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9185         Fix value.
9186         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9187         (sh_adjust_cost): Likewise.
9188         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9189         __PTRDIFF_TYPE__ .
9190         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9191         (WCHAR_TYPE_SIZE): Likewise.
9192         (ASM_SPEC): Use subtarget_asm_endian_spec.
9193         (SH_ELF_WCHAR_TYPE): #undef/ #define.
9194         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9195         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9196         (MAX_WCHAR_TYPE_SIZE): Don't #define .
9197         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9198         (USER_LABEL_PREFIX): Don't #undef /#define .
9199         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9200         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9201         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9202         (ASM_SPEC): Likewise.
9203         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9204         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9205         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9206         (LIB2FUNCS_EXTRA): Define.
9207         * t-sh64 (LIB2FUNCS_EXTRA): Define.
9208         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9209         (LIB1ASMFUNCS_CACHE): Define.
9210         (LIB2FUNCS_EXTRA): Redefine empty.
9211
9212 2002-04-08  Richard Henderson  <rth@redhat.com>
9213
9214         * reorg.c (get_branch_condition): Use reversed_comparison_code.
9215
9216 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9217
9218         * config/m68hc11/larith.asm (__map_data_section): Fix condition
9219         and optimize for size.
9220         (__do_global_ctors): Fix pointer comparison.
9221         (__do_global_dtors): Likewise.
9222
9223 2002-04-09  David S. Miller  <davem@redhat.com>
9224
9225         * config/sparc/sparc.c (sparc_extra_constraint_check): New
9226         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
9227         allow reloading pseudos.
9228         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9229         * config/sparc/sparc-protos.h: Declare it.
9230
9231         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9232         unsigned comparison warning.
9233         (output_restore_regs): Mark leaf_function as unused.
9234
9235 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9236
9237         * expr.c (is_aligning_offset): New function.
9238         (expand_expr, case COMPONENT_EXPR): Call it.
9239
9240 2002-04-08  David S. Miller  <davem@redhat.com>
9241
9242         PR target/6082
9243         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9244
9245         Make init_priority work on Sparc when using GNU ld.
9246         * config/sparc/linux.h, config/sparc/linux64.h,
9247         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9248         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9249         * config/sparc/sol2-gld.h: New file to do the same.
9250         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9251         sparc/sol2-gld.h to tm_file.
9252
9253         PR optimization/4328
9254         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9255         * doc/md.texi: Document it.
9256         * config/sparc/sparc.md (movdi_insn_sp64_novis,
9257         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9258         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9259         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9260         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9261
9262 2002-04-08  Andreas Jaeger  <aj@suse.de>
9263
9264         * stmt.c (expand_asm_operands): Revert last patch from Richard
9265         Henderson.
9266
9267 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9268
9269         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9270         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
9271
9272 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9273
9274         * doc/contrib.texi (Contributors): Add David O'Brien.
9275
9276 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
9277
9278         * configure.in (auto-build.h): Use target_alias and build_alias
9279         when running configure.
9280         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9281         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9282         * configure: Regenerate.
9283
9284 2002-04-07  David S. Miller  <davem@redhat.com>
9285
9286         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9287
9288 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9289
9290         PR 5933
9291         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9292         generating 32-bit pic code.
9293
9294 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
9295
9296         * cppinit.c (cpp_create_reader): Initialize
9297         discard_comments_in_macro_exp.
9298         (COMMAND_LINE_OPTIONS): Add "-CC" option.
9299         (cpp_handle_option): Handle "-CC" option.
9300         * cpplex.c (save_comment): If saving a C++ comment in
9301         a directive, convert it to a C comment.
9302         (_cpp_lex_direct): Pass second comment start character to
9303         save_comment to indicate comment type.
9304         * cpplib.c (_cpp_handle_directive): If processing
9305         a "#define" directive and discard_comments_in_macro_exp
9306         is false,  re-enable saving of comments.
9307         (lex_macro_node): If discard_comments_in_macro_exp is false,
9308         discard any comments before the macro identifier.
9309         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9310         member.
9311         * cppmacro.c (cpp_get_token): If expanding a macro while
9312         processing a directive, discard any comments we might encounter.
9313         (parse_params): If discard_comments_in_macro_exp is false,
9314         ignore comments in the macro parameter list.
9315         * gcc.c (cpp_unique_options): Add "-CC" option.
9316         (option_map): Map "--comments-in-macros" to "-CC".
9317         * doc/cppopts.texi: Document "-CC" option.
9318         * f/lang-specs.h: Add "-CC" option.
9319         * testsuite/gcc.dg/cpp/maccom1.c: New test.
9320         * testsuite/gcc.dg/cpp/maccom2.c: New test.
9321         * testsuite/gcc.dg/cpp/maccom3.c: New test.
9322         * testsuite/gcc.dg/cpp/maccom4.c: New test.
9323         * testsuite/gcc.dg/cpp/maccom5.c: New test.
9324         * testsuite/gcc.dg/cpp/maccom6.c: New test.
9325
9326 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9327
9328         PR middle-end/6180
9329         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9330
9331 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
9332
9333         PR c++/5571
9334         * stor-layout.c (layout_decl): Reset the RTL for the decl.
9335
9336         PR opt/5120
9337         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9338         RTX_UNCHANGING_P for the functions arguments when a tail call
9339         is made.
9340
9341 2002-04-06  Jason Merrill  <jason@redhat.com>
9342
9343         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9344         (parse_options_and_default_flags): Set them appropriately.
9345         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9346
9347 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
9348
9349         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9350         here.
9351
9352         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9353         semicolon.
9354
9355         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9356         types come in by-reference.  Fix typo in comment.
9357
9358 2002-04-05  David S. Miller  <davem@redhat.com>
9359
9360         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9361         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9362         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9363         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9364
9365 2002-04-05  David S. Miller  <davem@redhat.com>
9366
9367         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9368         are not going to emit return instructions, emit at least a nop
9369         for the sake of sane backtraces.
9370
9371 2002-04-05  Richard Henderson  <rth@redhat.com>
9372
9373         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9374
9375 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
9376
9377         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9378
9379 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
9380
9381         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9382         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9383         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9384
9385 2002-04-05  Andreas Schwab  <schwab@suse.de>
9386
9387         * c-convert.c: Include c-common.h.
9388         * Makefile.in (c-convert.o): Updated.
9389
9390 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
9391
9392         * mklibgcc.in: Use separate libgcc.map for each multilib.
9393         * Makefile.in (distclean): Don't remove libgcc.map here.
9394
9395 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
9396
9397         * Makefile.in (s-mlib): Handle --disable-multilib by separate
9398         genmultilib invocation.
9399
9400 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
9401
9402         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9403         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
9404         to num_gprs for symmetry.
9405         * config/mips/mips.c: Adjust accordingly.
9406
9407 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9408
9409         * c-common.c (truthvalue_conversion): Rename, update.
9410         * c-common.h (c_common_truthvalue_conversion): New.
9411         * c-convert.c (convert): Update.
9412         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9413         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9414         * c-typeck.c (build_binary_op, build_unary_op,
9415         build_conditional_expr): Update.
9416         * fold-const.c (constant_boolean_node, fold): Use langhook.
9417         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9418         * langhooks.h (struct lang_hooks): New hook.
9419         * stmt.c (expand_decl_cleanup): Use langhook.
9420         * tree.h (truthvalue_conversion): Remove.
9421 objc:
9422         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9423
9424 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
9425
9426         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9427         Add rules to make null object file.
9428
9429 2002-04-04  Jim Blandy  <jimb@redhat.com>
9430
9431         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9432         macro formal parameter names.
9433
9434 2002-04-04  David S. Miller  <davem@redhat.com>
9435
9436         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9437
9438 2002-04-04  Richard Henderson  <rth@redhat.com>
9439
9440         PR middle-end/5099
9441         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9442         Support copies into and out of memory.  Don't accept allows_reg
9443         and allows_mem as gospel.
9444
9445 2002-04-04  Richard Henderson  <rth@redhat.com>
9446
9447         PR opt/6165
9448         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9449         (write_dependence_p): Likewise.
9450
9451 2002-04-04  Richard Henderson  <rth@redhat.com>
9452
9453         * predict.c (estimate_bb_frequencies): Do frequency calculation
9454         with a volatile temporary.
9455
9456 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
9457
9458         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9459
9460 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9461
9462         PR c++/6119
9463         * final.c (final_start_function): Don't bump profile_label_no here...
9464         (final_end_function): ...but here.
9465
9466 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9467
9468         * config/sparc/sparc.md (pic): New attribute.
9469         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9470         into stack slots.
9471         (split after do_builtin_setjmp_setup): New.
9472
9473 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9474
9475         PR fortran/6106
9476         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9477         change.
9478
9479 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
9480
9481         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9482         UNITS_PER_WORD for zero sized aggregates.
9483
9484 2002-04-03  David S. Miller  <davem@redhat.com>
9485
9486         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9487         one-character spec for this, just use %(link_gcc_c_sequence).
9488
9489 2002-04-03  David S. Miller  <davem@redhat.com>
9490
9491         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9492         handling.
9493
9494 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9495
9496         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9497         (DWARF_FRAME_RETURN_COLUMN): Move.
9498         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9499         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9500         * pa.c (except.h, predict.h): Include.
9501         (FRP): Delete.
9502         (store_reg_modify, set_reg_plus_d): Revise prototypes.
9503         (output_ascii): Add cast.
9504         (store_reg_modify): Revise to add frame notes.
9505         (set_reg_plus_d): Likewise.
9506         (compute_frame_size): Include space for eh data registers in frame if
9507         the current function calls eh_return.
9508         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
9509         function calls eh_return.  Save eh data registers if the current
9510         function calls eh_return.  Fix code to add frame notes.  Emit
9511         blockage to prevent insns with frame notes being scheduled in the
9512         delay slot of calls.
9513         (hppa_expand_epilogue): Restore eh data registers and do final stack
9514         adjustment if the current function calls eh_return.  Don't add frame
9515         notes.
9516         (output_call): Revise for change in length of call insn.  Don't do
9517         return pointer adjustment for an unconditional jump in the delay slot
9518         of a call when using frame notes.
9519         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9520         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9521         (ARG_POINTER_CFA_OFFSET): Define.
9522         * pa.md (return_external_pic): New pattern.
9523         (prologue): Correct formatting.  Use return_external_pic if current
9524         function calls eh_return.
9525         (call_internal_symref, call_value_internal_symref,
9526         sibcall_internal_symref, sibcall_value_internal_symref): Change default
9527         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9528         respectively.
9529         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9530
9531         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9532         list of targets to check using "nop" insn.
9533         * configure: Rebuilt.
9534
9535 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
9536
9537         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9538
9539 2002-04-03  David S. Miller  <davem@redhat.com>
9540
9541         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9542         library sequence passed to the linker.
9543         (LINK_COMMAND_SPEC): Use it.
9544         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9545         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9546         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9547
9548 2002-04-03  Jason Merrill  <jason@redhat.com>
9549
9550         * except.c (struct eh_status): Remove protect_list.
9551         (begin_protect_partials, end_protect_partials): Remove.
9552         (add_partial_entry): Remove.
9553         * except.h: Remove prototypes.
9554
9555         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9556         expand_decl_cleanup_eh.
9557
9558         PR c++/5636
9559         * tree.h (CLEANUP_EH_ONLY): New macro.
9560         * stmt.c (expand_decl_cleanup_eh): New fn.
9561         (expand_cleanups): Check CLEANUP_EH_ONLY.
9562         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9563         Use expand_decl_cleanup_eh.
9564         (expand_stmt): Adjust.
9565         * c-common.h: Adjust prototype.
9566
9567 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
9568
9569         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9570         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9571         (cris_target_asm_function_epilogue): Ditto.
9572         (cris_initial_frame_pointer_offset): Ditto.
9573         (cris_simple_epilogue): Ditto.
9574         (cris_expand_builtin_va_arg): Variable-size types come in
9575         by-reference.
9576
9577 2002-04-03  David S. Miller  <davem@redhat.com>
9578
9579         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9580         little-endian.
9581         (set_fast_math): Correct 'fsr' type.
9582
9583 2002-04-03  Richard Henderson  <rth@redhat.com>
9584
9585         PR opt/3569
9586         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9587         * toplev.c (check_global_declarations): Use it.
9588         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9589         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9590         (LANG_HOOKS_DECLS): Add it.
9591         * langhooks.c (lhd_warn_unused_global_decl): New.
9592         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9593         * c-objc-common.c (c_warn_unused_global_decl): New.
9594         * c-tree.h (c_warn_unused_global_decl): Declare.
9595         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9596
9597 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
9598
9599         * langhooks-def.h (lhd_set_decl_assembler_name,
9600         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9601         (LANG_HOOKS_INITIALIZER): Update.
9602         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9603         * langhooks.h (struct lang_hooks): New hook.
9604         * tree.c (set_decl_assembler_name): Move to langhooks.c.
9605         (lang_set_decl_assembler_name): Remove.
9606         (init_obstacks): Don't set hook.
9607         (decl_assembler_name): New function.
9608         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9609         (decl_assembler_name): New.
9610         (lang_set_decl_assembler_name): Remove.
9611
9612 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
9613
9614         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9615         works properly with .hidden symbols.
9616         * configure: Rebuilt.
9617         * config.in: Rebuilt.
9618         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9619         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9620         properly with .hidden symbols.
9621
9622 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
9623
9624         PR middle-end/6102
9625         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9626         USE argument.
9627
9628 2002-04-03  Richard Henderson  <rth@redhat.com>
9629
9630         PR opt/4120
9631         * sched-rgn.c (sets_likely_spilled): New.
9632         (sets_likely_spilled_1): New.
9633         (add_branch_dependences): Use it.
9634
9635 2002-04-02  Richard Henderson  <rth@redhat.com>
9636
9637         PR opt/4311
9638         * loop.h (LOOP_FIRST_PASS): New.
9639         * loop.c (strength_reduce): Mind it when deciding to unroll.
9640         * toplev.c (rest_of_compilation): Set it.
9641
9642 2002-04-02  David S. Miller  <davem@redhat.com>
9643
9644         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9645         mems_ok_for_ldd_peep when the order of the loads being examined
9646         is reversed.
9647         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9648         existing comment to increase comprehension of this situation.
9649
9650 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
9651
9652         * config/sh/sh.md: Don't use union real_extract.
9653
9654 2002-04-02  Richard Henderson  <rth@redhat.com>
9655
9656         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9657
9658 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
9659
9660         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9661         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9662         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9663         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9664         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9665         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9666         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9667         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9668         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9669         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9670         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9671         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9672         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9673         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9674         Include as many configury headers via tm_file as possible.  This
9675         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9676         * config/openbsd-oldgas.h: New file.
9677         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9678         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9679         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9680         config/i386/i386-coff.h, config/i386/i386-interix.h,
9681         config/i386/iscdbx.h, config/i386/linux-aout.h,
9682         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9683         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9684         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9685         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9686         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9687         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9688         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9689         config/i386/vxi386.h: Do not directly include configury headers.
9690         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9691         Directly include configury headers that are no longer automatically
9692         included by the above headers.
9693         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9694         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9695         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9696         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9697         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9698         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9699         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9700         (TARGET_VERSION): Define.
9701         * config/i386/beos-elf.h, config/i386/freebsd.h,
9702         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9703         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9704         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9705         config/i386/sco5.h, config/i386/sysv4.h
9706         (TARGET_VERSION): Do not need to protect.
9707         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9708         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9709         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9710         config/i386/i386-interix.h, config/i386/linux-aout.h,
9711         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9712         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9713         (YES_UNDERSCORES): Do not define - not needed.
9714         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9715         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9716         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9717         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9718         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9719         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9720         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9721         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9722
9723 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
9724             Richard Henderson  <rth@redhat.com>
9725
9726         PR c/5484
9727         * function.c (assign_temp): Accept either type or decl argument.
9728         Detect variables whose size is too large to fit into an integer.
9729         * stmt.c (expand_decl): Pass the decl, not the type.
9730
9731 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
9732
9733         * protoize.c: Match include directory usage with cppdefault.c.
9734
9735 2002-04-03  Jeffrey A Law  (law@redhat.com)
9736             Hans-Peter Nilsson  <hp@bitrange.com>
9737
9738         * combine.c (simplify_comparison): Avoid narrowing a comparison
9739         with a paradoxical subreg when doing so would drop signficant bits.
9740
9741 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
9742
9743         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9744         if POINTERS_EXTEND_UNSIGNED is defined.
9745
9746 2002-04-02  Richard Henderson  <rth@redhat.com>
9747
9748         PR opt/3967
9749         * local-alloc.c (contains_replace_regs): LO_SUM may contain
9750         replace regs.
9751
9752 2002-04-02  Richard Henderson  <rth@redhat.com>
9753
9754         * doc/standards.texi: Document required freestanding libc entry points.
9755
9756 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
9757
9758         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
9759         associated splitter.  Remove MQ constraint.
9760         (ctrdi_internal4): Correct CCmode clobber.
9761
9762 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9763
9764         * milli64.S ($$dyncall): New function.
9765         * t-linux (LIB1ASMFUNCS): Revise module list.
9766         (LIB1ASMSRC): Use pa/milli64.S.
9767
9768 2002-04-02  Richard Henderson  <rth@redhat.com>
9769
9770         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
9771         rename solaris_sys_varargs_h.
9772
9773 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9774
9775         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
9776         the same mode as its component.
9777
9778 2002-04-02  Richard Henderson  <rth@redhat.com>
9779
9780         PR opt/190
9781         * final.c (this_is_asm_operands): Export.
9782         * output.h (this_is_asm_operands): Declare.
9783         * config/i386/i386.c (print_operand): Error odd asm operands.
9784
9785 2002-04-02  Richard Henderson  <rth@redhat.com>
9786
9787         PR opt/420
9788         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
9789
9790 2002-04-01  Richard Henderson  <rth@redhat.com>
9791
9792         PR target/1538
9793         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
9794         * fixinc/fixincl.x: Rebuild.
9795
9796 2002-04-01  Richard Henderson  <rth@redhat.com>
9797
9798         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
9799         (atomic_alloc, atomic_free): New.
9800         (SIZE, MASK_FOR, PTR_IN): New.
9801         (emergency_reg_state, emergency_reg_state_free): New.
9802         (emergency_labeled_state, emergency_labeled_state_free): New.
9803         (reg_state_alloced, labeled_state_alloced): New.
9804         (alloc_reg_state, free_reg_state): New.
9805         (alloc_label_state, free_label_state, free_label_states): New.
9806         (push, pop, dup_state_stack, free_state_stack): Use them.
9807         (desc_label_state): Likewise.
9808         (uw_frame_state_for): Free label states and state stack.
9809         (uw_update_reg_address): Eliminate warnings.
9810
9811 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
9812
9813         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9814         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
9815
9816 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
9817
9818         * c-decl.c (grokdeclarator): Update.
9819         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9820         * c-tree.h (c_mark_addressable): New.
9821         * c-typeck.c (default_function_array_conversion, build_unary_op,
9822         build_array_ref, convert_for_assignment): Update.
9823         (mark_addressable): Rename.
9824         * calls.c (try_to_integrate, expand_call): Use langhook.
9825         * expr.c (expand_expr): Use langhook.
9826         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
9827         * langhooks.h (struct lang_hooks): New hook.
9828         * stmt.c (expand_asm_operands): Use langhook.
9829         * tree.h (mark_addressable): Remove.
9830 objc:
9831         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9832
9833 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
9834
9835         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
9836         in previous change.
9837
9838 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
9839
9840         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
9841         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
9842
9843 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
9844
9845         * c-common.c (unsigned_conversion_warning, convert_and_check,
9846         unsigned_type, signed_type, shorten_compare,
9847         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
9848         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
9849         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
9850         New.
9851         * c-decl.c (grokdeclarator): Update.
9852         * c-format.c (check_format_types): Update.
9853         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9854         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9855         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
9856         * convert.c (convert_to_integer): Use new hooks.
9857         * expmed.c (make_tree): Use new hooks.
9858         * expr.c (store_expr): Use new hooks.
9859         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
9860         all_ones_mask_p, unextend, fold): Use new hooks.
9861         * langhooks.h (struct lang_hooks_for_types): New hooks.
9862         * tree.h (signed_or_unsigned_type, signed_type,
9863         unsigned_type): Remove.
9864 objc:
9865         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9866         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9867
9868 2002-03-31  Richard Henderson  <rth@redhat.com>
9869
9870         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
9871         (desc_frgr_mem): Fix reference to f16-f31.
9872
9873 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9874
9875         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
9876         RTVEC_ELT): Const-ify.
9877         * varray.h (VARRAY_CHECK): Const-ify.
9878         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
9879         ggc_mark_rtvec, ggc_mark): Const-ify.
9880
9881 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
9882
9883         * diagnostic.c: Include langhooks-def.h.
9884         * Makefile.in (diagnostic.o): Update.
9885
9886 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
9887
9888         * c-common.c (c_unsafe_for_reeval): Rename.
9889         * c-common.h (c_unsafe_for_reeval): Rename.
9890         * c-decl.c (finish_incomplete_decl): Rename.
9891         (c_init_decl_processing): Don't set langhook.
9892         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9893         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9894         * c-objc-common.c (c_objc_common_init): Don't set langhook.
9895         * c-tree.h (finish_incomplete_decl): Rename.
9896         * langhooks-def.h (lhd_unsafe_for_reeval): New.
9897         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
9898         (LANG_HOOKS_INITIALIZER): Update.
9899         * langhooks.c (lhd_unsafe_For_reeval): New.
9900         * langhooks.h (struct langhooks): New hooks.
9901         * toplev.c (incomplete_decl_finalize_hook): Remove.
9902         (wrapup_global_declarations): Update.
9903         * tree.c (lang_unsafe_for_reeval): Remove.
9904         (unsafe_for_reeval): Update.
9905         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
9906         Remove.
9907 objc:
9908         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9909         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9910
9911 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
9912
9913         * diagnostic.c (print_error_function): Remove.
9914         (default_print_error_function): Rename.
9915         (report_error_function): Update.
9916         * diagnostic.h (print_error_function): Remove.
9917         (default_print_error_function): Remove.
9918         * langhooks-def.h (struct diagnostic_context): Predeclare.
9919         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
9920         (LANG_HOOKS_INITIALIZER): Update.
9921         * langhooks.h (struct diagnostic context): Predeclare.
9922         (struct lang_hooks): New hook.
9923
9924 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9925
9926         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
9927         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
9928         !flag_pic.
9929         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
9930         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
9931         of PIC_OFFSET_TABLE_REGNUM thruout.
9932         * config/rs6000/rs6000.md: Likewise.
9933         * config/rs6000/darwin.h: Likewise.
9934
9935 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9936
9937         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
9938         unsigned HOST_WIDE_INT, not unsigned int.
9939
9940 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
9941
9942         PR middle-end/6096, middle-end/6098, middle-end/6099
9943         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
9944         CODE_LABELs.
9945         (fill_slots_from_thread): Likewise.
9946
9947 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
9948
9949         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
9950         floating fields in float regs.
9951         (function_arg_record_value_2): Likewise.
9952
9953 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
9954
9955         * config/mmix/mmix.md (define_constants): Remove misleading
9956         FIXME.  Add MMIX_fp_rO_OFFSET.
9957         ("nonlocal_goto_receiver"): Don't have stack-frame address of
9958         saved rO as part of the pattern.  Remove FIXME.
9959         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
9960         here, at output-time.
9961
9962 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
9963
9964         PR middle-end/6100
9965         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
9966         REG_BR_PRED.
9967         (output_v9branch): Likewise.
9968
9969 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
9970
9971         * gcc.c: Revert previous patch for now.
9972         * config/i386/djgpp.h: Likewise.
9973
9974 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
9975
9976         * config/mmix/crti.asm (_init): Register _fini with atexit.
9977         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
9978
9979 2002-03-31  Richard Henderson  <rth@redhat.com>
9980
9981         PR target/3997
9982         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
9983         (ASM_OUTPUT_DEF_FROM_DECLS): New.
9984
9985 2002-03-31  Richard Henderson  <rth@redhat.com>
9986
9987         * libgcc2.c (__bb_exit_func): Make static.
9988
9989         * config/alpha/alpha.md (trap): New.
9990
9991 2002-03-31  Richard Henderson  <rth@redhat.com>
9992
9993         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
9994         promoted argument types; build trap.
9995         (expand_builtin_trap): New.
9996         (expand_builtin): Use it.
9997         * stmt.c (expand_nl_goto_receivers): Likewise.
9998         * expr.h (expand_builtin_trap): Declare.
9999         * libfuncs.h (LTI_abort, abort_libfunc): New.
10000         * optabs.c (init_optabs): Init abort_libfunc.
10001
10002 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
10003
10004         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
10005         (LINK_COMMAND_SPEC): ... from here.
10006         (init_gcc_specs): Duplicate it here too, omitting
10007         shared_name in the second copy.
10008         (init_spec): Test for duplicate
10009         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
10010
10011 2002-03-30  David S. Miller  <davem@redhat.com>
10012
10013         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10014         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
10015
10016 2002-03-30  Roger Sayle <roger@eyesopen.com>
10017             Richard Henderson  <rth@redhat.com>
10018
10019         * regmove.c (combine_stack_adjustments_for_block): Avoid
10020         emitting a stack adjustment of zero bytes.  Let delete_insn
10021         update bb->head.
10022
10023 2002-03-30  Richard Henderson  <rth@redhat.com>
10024
10025         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
10026         (sparc_emitting_epilogue): New.
10027         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
10028         * config/sparc/sparc-protos.h: Update.
10029         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
10030         (TARGET_SWITCHES): Update.
10031         * config/sparc/sparc.md (return): Remove.
10032         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
10033         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
10034         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
10035         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10036         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
10037         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
10038         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
10039         Remove MASK_EPILOGUE.
10040         * doc/invoke.texi: Update.
10041
10042 2002-03-30  Daniel Berlin  <dan@dberlin.org>
10043
10044         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
10045         CPP will start the file for us.
10046
10047 2002-03-30  Richard Henderson  <rth@redhat.com>
10048
10049         PR target/5446
10050         * config/ia64/ia64.c (group_barrier_needed_p): Special case
10051         prologue_allocate_stack.
10052         (ia64_single_set): Use insn codes for recognition of special
10053         cases, not rtl matching.
10054         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
10055
10056 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
10057
10058         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
10059
10060 2002-03-30  Richard Henderson  <rth@redhat.com>
10061
10062         PR target/6032
10063         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
10064         or -fomit-frame-pointer with profiling.
10065         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10066         (FUNCTION_PROFILER): Do nothing.
10067         (PROFILE_HOOK): New.
10068         * config/sparc/sparc.c (sparc_override_options): Don't check
10069         code models for profiling.
10070         (sparc_function_profiler): Remove.
10071         (sparc_profile_hook): New.
10072         * config/sparc/sparc-protos.h: Update.
10073
10074 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
10075
10076         PR optimization/6086
10077         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
10078         of SUBREG of volatile MEM or because the MEM was mode dependent,
10079         return CLOBBER instead of unmodified SUBREG.
10080
10081 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
10082
10083         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
10084         when not optimizing.
10085
10086         * toplev.c (rest_of_compilation): Cann mark_constant_function
10087         only when optimizing.
10088
10089         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
10090         are NULL.
10091
10092         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
10093         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
10094         (try_optimize_cfg): clear all AUX fields.
10095
10096         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10097         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10098         (ix86_address_cost): Be prepared for SUBREGed registers.
10099         (legitimate_address_p): Accept SUBREGed registers.
10100
10101 2002-03-29  Richard Henderson  <rth@redhat.com>
10102
10103         PR target/5672
10104         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
10105
10106 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10107
10108         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
10109         for aggregate and TFmode types.
10110
10111 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
10112
10113         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
10114
10115 2002-03-29  Richard Henderson  <rth@redhat.com>
10116
10117         PR target/5886
10118         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
10119         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
10120
10121 2002-03-29  Richard Henderson  <rth@redhat.com>
10122
10123         PR target/6041
10124         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
10125         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
10126         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
10127         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
10128         conditional.
10129         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
10130
10131 2002-03-29  Dale Johannesen <dalej@apple.com>
10132
10133         * loop.c (combine_movables): Do allow combination of pseudos.
10134
10135 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
10136
10137         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
10138         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
10139         No functional change except ...
10140         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
10141         * doc/install.texi (*-*-freebsd*): Document port configuration.
10142
10143 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10144
10145         * Makefile.in (convert.o, calls.o, expmed.o): Update.
10146         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
10147         Use new hooks.
10148         * builtin-types.def (BT_PTRMODE): Update.
10149         * c-common.c (type_for_size): Rename c_common_type_for_size.
10150         (type_for_mode): Similarly.
10151         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
10152         Use new hook.
10153         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
10154         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
10155         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
10156         Redefine.
10157         * c-typeck.c (common_type, comptypes, default_conversion):
10158         Use new hooks.
10159         * calls.c: Include langhooks.h.
10160         (emit_library_call_value_1): Use new hooks.  Avoid redundant
10161         calls.
10162         * convert.c: Include langhooks.h
10163         (convert_to_pointer, convert_to_integer): Use new hooks.
10164         * except.c (init_eh): Similarly.
10165         * expmed.c: Include langhooks.h.
10166         (expand_mult_add): Use new hooks.
10167         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
10168         try_casesi): Similarly.
10169         * fold-const.c (optimize_bit_field_compare, make_range,
10170         decode_field_reference, fold_truthop, fold): Similarly.
10171         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
10172         put_var_into_stack): Similarly.
10173         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
10174         LANG_HOOKS_TYPE_FOR_SIZE): New.
10175         (LANG_HOOKS_TYPES_INITIALIZER): Update.
10176         * langhooks.h (lang_hooks_for_types): New hooks.
10177         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
10178         * tree.c (get_unwidened, get_narrower): Similarly.
10179         * tree.h (type_for_mode, type_for_size): Remove.
10180         * varasm.c (force_const_mem): Use new hooks.
10181         * utils2.c (nonbinary_modular_operation): Update.
10182 objc:
10183         * objc-act.c (handle_impent): Update.
10184         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10185         Redefine.
10186
10187 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
10188
10189         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10190         * config/ia64/ia64.c (basereg_operand): New.
10191         * config/ia64/ia64-protos.h (basereg_operand): Declare.
10192         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10193
10194 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
10195
10196         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10197         unwind information when frame_pointer_needed.
10198         (mmix_assemble_integer): Tweak wording in comment.
10199
10200 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10201
10202         * Makefile.in (except.o): Update.
10203         * except.c: Include langhooks.h.
10204         (init_eh): Use langhook.
10205         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10206         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10207         (LANG_HOOKS_INITIALIZER): Update.
10208         * langhooks.h (lang_hooks_for_types): New.
10209         (struct lang_hooks): Add it.
10210         * tree.c (make_lang_type_fn, make_lang_type): Remove.
10211         * tree.h (make_lang_type_fn, make_lang_type): Remove.
10212 config:
10213         * alpha/alpha.c: Include langhooks.h.
10214         (alpha_build_va_list): Use langhook.
10215         * d30v/d30v.c: Include langhooks.h.
10216         (d30v_build_va_list): Use langhook.
10217         * i386/i386.c: Include langhooks.h.
10218         (ix86_build_va_list): Use langhook.
10219         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10220         * s390/s390.c: Include langhooks.h.
10221         (s390_build_va_list): Use langhook.
10222         * stormy16/stormy16.c: Include langhooks.h.
10223         (stormy16_build_va_list): Use langhook.
10224
10225 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
10226
10227         PR c++/5964
10228         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10229         attributes.
10230         (length): Compute variable length for branches/calls/jumps here.
10231         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10232         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10233         define branch_type attribute.
10234         (divsi3_sp32): Maximum length is 6 not 7.
10235         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10236         call_address_untyped_struct_value_sp32,
10237         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10238         * config/sparc/sparc.c (empty_delay_slot): New function.
10239         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10240         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10241
10242 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
10243
10244         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10245         nonzero_bits if not needed.
10246         (nonzero_bits) [XOR]: Likewise.
10247         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10248         reg_last_set_mode and mode are both MODE_INT, but not equal.
10249         (record_value_for_reg): Compute reg_last_set_nonzero_bits
10250         in nonzero_bits_mode for MODE_INT modes.
10251
10252 2002-03-28  Richard Henderson  <rth@redhat.com>
10253
10254         PR target/5715
10255         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10256         to GAS.  Correct drift between alternatives.
10257
10258 2002-03-28  Richard Henderson  <rth@redhat.com>
10259
10260         PR target/6087
10261         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10262
10263 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
10264
10265         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10266         emulation to the linker.
10267
10268 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
10269
10270         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10271         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10272
10273 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
10274
10275         * combine.c (simplify_and_const_int): Make sure to apply mask
10276         when force_to_mode returns a constant integer.  PR3311.
10277
10278 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10279
10280         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10281
10282 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10283
10284         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10285         and Objective-C Dialect Options.
10286
10287 2002-03-28  Richard Henderson  <rth@redhat.com>
10288
10289         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10290         comparison should be done vs !=0 not >0 return code.  Tidy cases.
10291
10292 2002-03-28  Richard Henderson  <rth@redhat.com>
10293
10294         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
10295         on to c_expand_body.
10296         * c-tree.h (finish_function): Update decl.
10297         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10298
10299 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10300
10301         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10302
10303 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
10304
10305         * rtlanal.c: Include flags.h
10306         (may_trap_p): Do not mark FP operations if trapping
10307         if !flag_trapping_math
10308         * Makefile.in (rtlanal.o): Add dependency on flag.h
10309         * ifcvt.c (noce_operand_ok): Avoid the lameness.
10310
10311 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
10312
10313         * mips.md: Use dconst1, not 1.0, as first argument of
10314         REAL_VALUE_LDEXP.  Don't use union real_extract.
10315
10316 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
10317
10318         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10319         rather than $target.  Heed program_prefix and
10320         program_transform_name.  Search for gas in cross-compiler case too.
10321         "test -x" rather than "test -f".
10322         (gcc_cv_ld): Likewise.
10323         (gcc_cv_nm): Heed program_prefix and program_transform_name.
10324         (gcc_cv_objdump): Likewise.
10325         * configure: Regenerate.
10326
10327 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10328
10329         * Makefile.in (attribs.o): Update.
10330         * attribs.c: Include langhooks.h.
10331         (decl_attributes): Use langhook.
10332         * c-decl.c (insert_default_attributes): Rename.
10333         * c-tree.h (c_insert_default_attributes): New.
10334         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10335         (LANG_HOOKS_INITIALIZER): Update.
10336         * langhooks.h (struct lang_hooks): New hook.
10337         * tree.h (insert_default_attributes): Remove.
10338 objc:
10339         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10340
10341 2002-03-27  Andreas Schwab  <schwab@suse.de>
10342
10343         * config/i386/i386.c (classify_argument): Also check for
10344         QUAL_UNION_TYPE.
10345
10346 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10347
10348         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10349         any more.
10350
10351 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10352
10353         * i960.md (ret): Set PC.
10354         (nonlocal_goto): Fix expander.
10355         * builtins.c (epxand_builin_longjmp): Check that we've emitted
10356         some jump or call.
10357
10358 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
10359
10360         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10361         of libcall regions.
10362
10363 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10364
10365         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10366         assigning to BLOCK_FOR_INSN directly.
10367
10368 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10369
10370         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10371
10372 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10373
10374         * c-common.c (c_expand_expr): Fix prototype.
10375         * c-common.h (c_expand_expr): Always declare, update.
10376         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10377         * c-objc-common.c (c_objc_common_init): No global hook.
10378         * expr.c (expand_expr): Use langhook.
10379         * expr.h (enum expand_modifier): Conditionally declare.
10380         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10381         (LANG_HOOKS_INITIALIZER): Update.
10382         * langhooks.c (lhd_expand_expr): New.
10383         * langhooks.h (struct lang_hooks): New hook.
10384         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10385         (lang_independent_init): Don't default hook.
10386 objc:
10387         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10388
10389 2002-03-27  Richard Henderson  <rth@redhat.com>
10390
10391         PR target/6054
10392         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10393         TARGET_CONST_GP.  Simplify conditions.
10394
10395 2002-03-27  Richard Henderson  <rth@redhat.com>
10396
10397         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10398         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10399         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10400
10401 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
10402
10403         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10404         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10405         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10406         Remove unnecessary masks.
10407         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10408         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10409         -mwindows, -mdll switches and their negations.
10410
10411 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10412
10413         * gcc-common.c (lang_mark_false_label_stack): Remove.
10414         * ggc.h (lang_mark_false_label_stack): Similarly.
10415
10416 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
10417
10418         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10419
10420         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10421         or __rtems_ is defined.
10422
10423 2002-03-26  Richard Henderson  <rth@redhat.com>
10424
10425         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10426         if a non-trivial load was emitted.
10427         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
10428         in high+extra+low case.
10429
10430 2002-03-26  Richard Henderson  <rth@redhat.com>
10431
10432         * config.gcc (sparc*-solaris): Use float_format=sparc.
10433
10434 2002-03-26  Richard Henderson  <rth@redhat.com>
10435
10436         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10437         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10438         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10439         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10440         (WINT_TYPE_SIZE): Fix at 32.
10441
10442 2002-03-26  Richard Henderson  <rth@redhat.com>
10443
10444         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10445         until after eh landing pad generation.
10446         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10447         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10448
10449 2002-03-26  Richard Henderson  <rth@redhat.com>
10450
10451         * expr.h (ADD_PARM_SIZE): One more convert for INC.
10452
10453 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
10454
10455         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
10456         and warning switches.
10457         (cc1_options):  Likewise.
10458
10459 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
10460
10461         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10462         Restore more of the signal context.  Set no_reg_stack_frame.
10463         * config/ia64/unwind-ia64.c (unw_state_record):
10464         Add no_reg_stack_frame, comments.
10465         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10466         (uw_update_context): Adjust bsp when unwinding from leaf,
10467         but not signal frame.
10468
10469 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
10470
10471         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10472
10473 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
10474
10475         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10476
10477 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
10478
10479         PR target/5621
10480         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10481         "Add a pool_range attribute", which was lost during the ARM/Thumb
10482         merge.
10483
10484 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
10485
10486         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10487         a register into the MAC16 accumulator.
10488
10489 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
10490
10491         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10492         (Warning Options): Document -Wswitch-enum.
10493         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
10494         -Wswitch.
10495         (warn_switch_enum): Define variables.
10496         * flags.h (warn_switch_enum): Declare variables.
10497         * stmt.c (expand_end_case_type): When warn_switch_enum /
10498         -Wswitch-enum, perform switch checks.
10499         Fix PR c/5044.
10500
10501 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
10502
10503         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10504         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10505         (reload_muladdsi_compare0_scratch): Delete.
10506
10507 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
10508
10509         * doc/install.texi (*-*-freebsd*): Update.
10510
10511 2002-03-26  Richard Henderson  <rth@redhat.com>
10512
10513         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10514         (SUB_PARM_SIZE): Cast DEC to ssizetype.
10515
10516         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10517         types from the normal argument frame.
10518
10519         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10520         variable sized objects by reference.
10521         (sparc_va_arg): Receive them by reference too.
10522
10523 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
10524
10525         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
10526         code to not restoring global registers.
10527
10528 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10529
10530         * Makefile.in (ggc-common.o): Update.
10531         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10532         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10533         * c-tree.h (c_mark_tree): New.
10534         * ggc-common.c: Include langhooks.h.
10535         (gcc_mark_trees): Use new langhook.
10536         * ggc-callbacks.c: Delete file.
10537         * ggc.h (lang_mark_tree): Remove.
10538         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10539         (LANG_HOOKS_INITIALIZER): Update.
10540         * langhooks.h (struct lang_hooks): New hook.
10541 objc:
10542         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10543
10544 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
10545
10546         * doc/cpp.texi: Exclude entire Top node from printed manual.
10547         Move option index after directive index.  Insert page breaks
10548         before GFDL and concept index.  Index environment variables
10549         with command line options.
10550         * doc/cppenv.texi: Use @vtable for environment variable list.
10551         Add paragraph explaining semantics of empty elements in path
10552         variables.  Exclude a cross-reference to Fishkill from the
10553         manpage.  Remove an unnecessary cross-reference of the entry
10554         right above the referer.  Don't use @anchor in text that goes
10555         into manpage.
10556         * doc/cppopts.texi: Cross-reference the environment variables
10557         section, not the specific environment variable, for consistency.
10558
10559 2002-03-25  Richard Henderson  <rth@redhat.com>
10560
10561         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10562         anywhere in the block.  Don't refer to insns that have been
10563         removed from the chain.  Iterate backward through the new insns.
10564         Don't refer to edges that have been removed.
10565
10566 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
10567
10568         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10569         test for overflow of constant.
10570
10571 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
10572
10573         PR target/2623
10574         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10575         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10576         these patterns on arm_archv4.
10577
10578 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
10579
10580         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10581         int".
10582
10583 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
10584
10585         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
10586         float_handled, float_handler, float_signal, set_float_handler,
10587         and do_float_handler.  Set handler for SIGFPE to crash_signal.
10588         * toplev.h: Don't prototype do_float_handler.
10589
10590         * c-lex.c: Fold parse_float into lex_number.  Make warning
10591         about portability of hex float constants more informative, and
10592         don't issue it on top of a syntax error.
10593         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10594         their callers.
10595         * real.h: Define REAL_VALUE_ABS here...
10596         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
10597         simplify_unary_real, simplify_binary_real, and
10598         simplify_binary_is2orm1 into their callers.
10599         * tree.c: Fold build_real_from_int_cst_1 into caller.
10600
10601         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10602
10603         * tsystem.h: Include float.h here...
10604         * libgcc2.c: ... not here.
10605
10606 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
10607
10608         Fixes for: PR bootstrap/3591, target/5676
10609         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10610         defined.  Do not disable exceptions or rtti.
10611         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10612         mcore.h.  Disable exceptions and rtti, since they are not
10613         supported by EPOC.
10614
10615 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10616
10617         * c-decl.c (maybe_build_cleanup): Remove.
10618         * expr.c (expand_expr): Use langhook.
10619         * langhooks-def.h (lhd_return_null_tree,
10620         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10621         (LANGHOOKS_INITIALIZER): Update.
10622         * langhooks.c (lhd_return_null_tree): New.
10623         * langhooks.h (struct lang_hooks): New hook.
10624         * tree-inline.c (initialize_inlined_parameters): Use langhook.
10625         * tree.h (maybe_build_cleanup): Remove.
10626
10627 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
10628
10629         * regrename.c (build_def_use): Move recog_memoized
10630         before extract_insn.
10631
10632 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
10633
10634         PR target/6043
10635         * expr.c (emit_group_store): Handle storing into CONCAT.
10636
10637 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
10638
10639         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10640         corresponding MATCH_DUP.
10641
10642 2002-03-24  Richard Henderson  <rth@redhat.com>
10643
10644         * unroll.c (unroll_loop): Zero label_map.
10645
10646         * gcse.c: Include except.h.
10647         * Makefile.in (gcse.o): Update.
10648
10649 2002-03-24  Richard Henderson  <rth@redhat.com>
10650
10651         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10652         Do resolve_unique_section before shared data clause.
10653
10654 2002-03-24  Richard Henderson  <rth@redhat.com>
10655
10656         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10657
10658 2002-03-24  Richard Henderson  <rth@redhat.com>
10659
10660         * recog.c (peephole2_optimize): Split blocks when EH insns are
10661         generated in the middle of a block.  Do global life update if
10662         zapped EH edges.
10663
10664 2002-03-24  Richard Henderson  <rth@redhat.com>
10665
10666         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10667
10668 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10669
10670         preprocessor/3951
10671         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
10672         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10673         (init_dependency_output): Don't make no_output decision here.
10674
10675 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
10676
10677         * stmt.c (check_for_full_enumeration_handling): Remove tests of
10678         warn_switch.  Update description.
10679         (expand_end_case_type): Call check_for_full_enumeration_handling
10680         when warn_switch.
10681
10682 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10683
10684         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10685         (m68hc11_split_move): Call it to see if the source and destination
10686         operands use the same direction auto inc/dec mode, otherwise make the
10687         source an offsetable memory operand and generate an add.
10688
10689 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10690
10691         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10692         register for operand 2.
10693         ("*subsi3_zero_extendqi"): Likewise.
10694         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10695         bits so that it is compatible with a pop.
10696         ("*andhi3_gen"): Likewise.
10697         ("xorhi3"): Likewise.
10698
10699 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10700
10701         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10702         -pedantic here...
10703         (cpp_post_options): ... not here.
10704
10705 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10706             Aldy Hernandez  <aldyh@redhat.com>
10707
10708         Removal of separate preprocessor cpp0.
10709
10710         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10711         cpp0, install-common): Update.
10712         * c-common.c (flag_preprocess_only): New.
10713         (c_common_init): Preprocess for -E.
10714         * c-common.h (flag_preprocess_only): New.
10715         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10716         * c-objc-common.c (c_init_decl_processing): Exit quickly
10717         for NULL return from c_common_init.
10718         * cpplib.h (cpp_preprocess_file): New.
10719         * cppmain.c (main, general_init, pfile, progname): Remove.
10720         (do_preprocessing): Rename cpp_preprocess_file, don't call
10721         cpp_finish.  Don't close stdout here.
10722         (setup_callbacks): Update prototype.
10723         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10724         Update.
10725         * tradcpp.c (main): Ignore -quiet.
10726 objc:
10727         * lang-specs.h (default_compilers): Preprocess with cc1obj.
10728
10729 2002-03-24  Richard Henderson  <rth@redhat.com>
10730
10731         PR optimization/5742
10732         * machmode.def: Add inner mode field to complex modes.
10733         * config/mips/mips.c (mips_function_value): Always define.  Add
10734         new argument to handle libcalls.
10735         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10736         (FUNCTION_VALUE): Likewise.
10737         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10738         * config/mips/mips-protos.h: Update.
10739
10740 2002-03-23  Richard Henderson  <rth@redhat.com>
10741
10742         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10743         * config/sparc/sparc-protos.h: Update.
10744         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10745
10746 2002-03-23  Richard Henderson  <rth@redhat.com>
10747
10748         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
10749         _start or _init begins the text segment.
10750
10751 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
10752
10753         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
10754         not HOST_WIDEST_INT.
10755         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
10756
10757 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
10758
10759         PR java/5489
10760         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
10761         operand argument to output_return_instruction.
10762         * arm.c (arm_print_operand, case 'd'): If the operand is
10763         const_true_rtx then just return.
10764         (arm_print_operand, case 'D'): If the operand is const_true_rtx
10765         then abort.
10766
10767 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
10768
10769         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
10770         (Warning Options): Document -Wswitch-default.
10771         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
10772         -Wswitch.
10773         (warn_switch_default): Define variable.
10774         (warn_switch): Update comment.
10775         * flags.h (warn_switch_default): Declare variable.
10776         (warn_switch): Update comment.
10777         * stmt.c (expand_end_case): Check for and, when
10778         warn_switch_no_default, warn of a missing default case.
10779
10780 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
10781
10782         * real.h (N): Special case 128 bit doubles.
10783
10784         * combine.c (simplify_comparison): When widening modes, ignore
10785         sign extension on CONST_INTs.
10786
10787 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
10788
10789         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
10790         passed to adjust_address.  Fix comment formatting.
10791
10792
10793 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
10794
10795         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10796         Always make REAL_VALUE_TYPE a struct containing an array of
10797         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
10798         big it is.  Don't declare or use union real_extract.
10799
10800         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
10801         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
10802         (print_operand), config/arm/arm.c (output_move_double),
10803         config/arm/arm.md (consttable_4, consttable_8),
10804         config/romp/romp.c (output_fpops), config/s390/s390.h
10805         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
10806         (xtensa_output_literal): Don't use union real_extract.
10807
10808         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
10809         (sfmode_constant_to_ulong), config/ns32k/merlin.h
10810         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
10811         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
10812         (PRINT_OPERAND): Don't use local version of union
10813         real_extract.
10814
10815         * config/convex/convex.c (check_float_value), config/vax/vax.c
10816         (vax_float_literal), config/m88k/m88k.md (divdf3),
10817         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
10818         config/pdp11/pdp11.c (output_move_quad): Don't do host
10819         arithmetic on target floating point quantities.
10820
10821         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
10822         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
10823
10824         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
10825         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
10826
10827         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
10828         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
10829         INFINITY.
10830         * print-rtl.c (print_rtx): Disable code which needs
10831         floating-point emulator.
10832         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
10833         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
10834         depending on HOST_FLOAT_FORMAT to be defined properly.
10835
10836         * config/1750a/1750a.c (get_double, float_label): Delete.
10837         (print_operand): Delete huge commented-out chunk.  Use
10838         REAL_VALUE_TO_DECIMAL.
10839         * config/1750a/1750a-protos.h: Delete prototypes of deleted
10840         functions.
10841         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
10842         IEEE_FLOAT_FORMAT.
10843         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
10844         Use REAL_VALUE_TO_DECIMAL as ELF version does.
10845         * config/m88k/m88k.c (real_power_of_2_operand,
10846         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
10847         real_extract out of the union; run the input through
10848         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
10849         from that into the union.
10850         * config/pdp11/pdp11.c (output_move_double): Rearrange
10851         parentheses to make automatic indenter happy.
10852
10853         * doc/tm.texi (Cross-compilation): Rename node to "Floating
10854         Point" and rewrite to describe current situation.  Also adjust
10855         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
10856         match code.
10857         * doc/rtl.texi: Adjust cross reference.
10858
10859 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
10860
10861         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
10862         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
10863         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
10864         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
10865         prevent use of sp as a reload register.
10866         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
10867         non_acc_reg_operand.
10868         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
10869         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
10870         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
10871         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
10872
10873 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10874
10875         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
10876         * cpplex.c (unterminated): Delete.
10877         (parse_string): No string literal may extend over multiple
10878         lines.  Suppress the error when preprocessing assembly.
10879         * cppmain.c (scan_translation_unit): Strings are single-line.
10880
10881         * doc/cpp.texi: Update to match.
10882
10883 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
10884
10885         PR optimization/5854
10886         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
10887         Shut up warnings.
10888         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
10889         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
10890         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
10891         const0 if scratch register was not allocated.
10892         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
10893         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
10894         with GEN_INT (...).
10895         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
10896         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
10897         with GEN_INT (...) everywhere.  Remove constraints in define_split
10898         patterns.
10899         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
10900         require scratch register for setting 0 into regs/non-pushable memory.
10901
10902 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
10903
10904         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
10905         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
10906
10907 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
10908
10909         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
10910         * cppinit.c (cpp_create_reader):  On by default.
10911         (cpp_handle_option):  Handle -W[no-]endif-labels.
10912         (cpp_post_options):  Also enable if -pedantic.
10913         * cpplib.c (do_else):  Use it.
10914         (do_endif):  Likewise.
10915         * doc/cppopts.texi:  Document new option.
10916         * doc/invoke.texi:  Document new option.
10917
10918 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
10919
10920         * config/i386/i386.c, config/i386/i386.md: Change all occurences
10921         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
10922
10923 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
10924
10925         * flow.c (calculate_global_regs_live): Clear aux fields of
10926         ENTRY and EXIT.
10927
10928 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
10929
10930         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
10931         REG or MEM subregs, pass rtx * instead of rtx to it.
10932         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
10933         rtx * instead of rtx to alter_subreg.
10934         * config/m32r/m32r.c (gen_split_move_double): Likewise.
10935         * config/pj/pj.c (pj_output_rval): Likewise.
10936
10937 2002-03-22  Richard Henderson  <rth@redhat.com>
10938
10939         PR target/3177
10940         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
10941         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
10942         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
10943         (ia64_expand_prologue): Look at int_regs, not words, for number
10944         of incomming int regs.
10945
10946 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
10947
10948         * expr.c (expand_expr): A RESULT_DECL is part of a call.
10949
10950 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
10951
10952         * toplev.c (flag_loop_optimize, flag_crossjumping):
10953         New static variables.
10954         (rest_of_compilation): Conditionalize crossjumping and
10955         loop optimizer.
10956         (parse_options_and_default_flags): Default loop_optimize and
10957         crossjumping.
10958         (lang_independent_options): Add -fcrossjumping and -floop-optimize
10959         * invoke.texi (crossjumping, loop-optimize): Document.
10960
10961 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
10962
10963         * real.c (eiisneg): Move outside #ifdef NANS.
10964
10965 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10966
10967         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
10968         frequencies match; avoid match on different loop depths.
10969         (try_crossjump_to_bb): Kill tests that no longer brings time
10970         savings.
10971         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
10972         updating code.
10973         (split_edge): Likewise.
10974
10975         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
10976         variable.
10977
10978         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
10979         * cfgrtl.c: Include insn-config.h
10980         (split_block) Dirtify block in presence of conditional execution
10981
10982 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
10983
10984         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
10985         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
10986         (function_arg): Constify CUMULATIVE_ARGS.
10987         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
10988         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
10989         (UNITS_PER_DOUBLE): New macro.
10990         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
10991         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
10992         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
10993         fp_regs and stack_words.
10994         (EABI_FLOAT_VARARGS_P): New macro.
10995         * config/mips/mips.c (struct mips_arg_info): New.
10996         (mips_arg_info): New function.
10997         (function_arg_advance): Use it.  Add adjustment instructions here
10998         rather than in function_arg.
10999         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
11000         for VOIDmode at the beginning of the function.
11001         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
11002         (function_arg_pass_by_reference): Likewise.
11003         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
11004         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
11005         (mips_va_start): Likewise.  Use the new stack_words field of
11006         CUMULATIVE_ARGS to set up overflow area.  Reformat.
11007         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
11008         doubles and other types, aligning the overflow pointer for non-doubles
11009         too.  Remove some code duplication.  Replace hard-coded constants.
11010
11011 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11012
11013         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
11014         (CLASS_UNITS): Undefine.
11015         (CLASS_MAX_NREGS): Use FP_INC.
11016         * config/mips/mips.c (compute_frame_size): Likewise.
11017         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
11018
11019 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11020
11021         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
11022         prototype, and handle lexing numbers and identifiers.
11023         (parse_identifier): Update to new form of parse_slow.
11024         (parse_number): Fast path only, use parse_slow otherwise.
11025         (_cpp_lex_direct): Update calls to parse_number.
11026
11027 2002-03-21  DJ Delorie  <dj@redhat.com>
11028
11029         * bb-reorder.c (make_reorder_chain_1): Protect against
11030         when redundant edges are omitted.
11031         * predict.c (dump_prediction): Likewise.
11032
11033 2002-03-21  Richard Henderson  <rth@redhat.com>
11034
11035         PR target/5996
11036         * fixinc/inclhack.def (solaris_stdio_tag): New.
11037         * fixinc/fixincl.x: Regenerate.
11038
11039 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
11040
11041         PR c/5597
11042         * c-typeck.c (process_init_element): Flag non-static
11043         initialization of a flexible array member as illegal.
11044
11045 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
11046
11047         * config/rs6000/t-linux64: New.
11048         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
11049         t-ppccomm.  Use t-rs6000 and t-linux64.
11050         (powerpc64-*-gnu* <tmake_file>): Likewise.
11051         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
11052         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
11053         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
11054
11055 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
11056
11057         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
11058         flag_really_no_inline instead of optimize == 0.
11059
11060         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
11061
11062         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
11063
11064         * flags.h (flag_really_no_inline): New.
11065
11066         * c-common.c (c_common_post_options): Initialize
11067         flag_really_no_inline.
11068
11069         * toplev.c (flag_really_no_inline): New.
11070
11071 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
11072
11073         * config/avr/avr.md (length): Fix length computation for
11074         conditional branches.
11075
11076 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11077
11078         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
11079         sdbout.o, profile.o): Update.
11080         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
11081         langhook.
11082         * c-common.h (gettags): Move here from tree.h.
11083         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
11084         insert_block, getdecls, kept_level_p, global_bindings_p): New.
11085         * dbxout.c (dbxout_init): Use getdecls langhook.
11086         * expr.c (expand_expr): Use insert_block langhook.
11087         * fold-const.c: Include langhooks.h.
11088         (fold_range_test, fold_binary_op_with_conditional_arg,
11089         fold): Use global_bindings_p langhook.
11090         * integrate.c (expand_inline_function): Use insert_block langhook.
11091         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
11092         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
11093         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
11094         LANG_HOOKS_GETDECLS): New.
11095         (LANG_HOOKS_INITIALIZER): Update.
11096         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
11097         langhook.
11098         * langhooks.h (struct lang_hooks_for_decls): New.
11099         (struct lang_hooks): Update.
11100         * profile.c: Include langhooks.h.
11101         (output_func_start_profiler): Use new langhooks.
11102         * sdbout.c: Include langhooks.h.
11103         (sdbout_init, sdbout_finish): Use getdecls langhook.
11104         * stmt.c: Include langhooks.h.
11105         (expand_fixup, fixup_gotos): Use new langhooks.
11106         * stor-layout.c: Include langhooks.h.
11107         (variable_size): Use global_bindings_p langhook.
11108         * toplev.c (compile_file): Use getdecls langhook.
11109         * tree-inline.c (remap_block): Use insert_block langhook.
11110         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
11111         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
11112
11113 2002-03-21  Richard Henderson  <rth@redhat.com>
11114
11115         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
11116         constants in .data when -fpic.
11117
11118 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11119
11120         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
11121         where appropriate.
11122
11123 2002-03-21  Tom Tromey  <tromey@redhat.com>
11124
11125         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
11126
11127 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11128
11129         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
11130
11131         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
11132
11133 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
11134             Richard Henderson  <rth@redhat.com>
11135
11136         PR c/5354
11137         * c-common.c (c_expand_expr): Preserve result of a statement
11138         expression if needed.
11139
11140 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
11141
11142         PR bootstrap/4195
11143         * genrecog.c (maybe_both_true_mode): Remove.
11144         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
11145         * machmode.def (Pmode): Likewise.
11146
11147 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
11148
11149         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
11150         (nonlocal_mentioned_p_1): New function.
11151         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
11152         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
11153         (mark_constant_function): Recognize pure functions.
11154         * rtl.h (global_reg_mentioned_p): New prototype.
11155         * rtlanal.c (global_reg_mentioned_p,
11156         global_reg_mentioned_p_1): New function.
11157
11158 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11159
11160         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
11161         UNIX assert.h.
11162         * fixinc/fixincl.x: Regenerate.
11163
11164 2002-03-20  Jason Merrill  <jason@redhat.com>
11165
11166         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
11167
11168 2002-03-20  Michael Meissner  <meissner@redhat.com>
11169
11170         * doc/invoke.texi (Optimize Options): Document that -O2 sets
11171         -fstrict-aliasing.
11172
11173 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
11174
11175         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
11176         ".literal_position" directive before the constant pool.
11177
11178 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11179
11180         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
11181         Add Craig Rodrigues.
11182         Add Brad Lucier to testers.
11183
11184 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
11185
11186         PR target/4792
11187         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11188         to if_then_else.
11189         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11190         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11191         instead of insn_extract.
11192
11193 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
11194
11195         PR bootstrap/4192
11196         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
11197
11198         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11199         stmt if some case has been output.
11200
11201 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
11202
11203         PR c/5972
11204         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11205         movsfcc_1, movdfcc_1): Add %O2.
11206         * config/i386/i386.c (print_operand): Handle %ON.
11207         Print . before float condition codes in Sun as cmov syntax.
11208         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11209         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11210         no longer true.
11211
11212 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
11213
11214         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11215         return instruction if PC was popped.
11216
11217 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
11218
11219         * config/xtensa/xtensa.md: Remove unused type attributes.
11220         (adddi_carry, subddi_carry): Change type attribute to "multi".
11221
11222 2002-03-19  Dale Johannesen  <dalej@apple.com>
11223
11224         PR optimization/5999, middle-end/5731
11225         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11226         multiplications by reciprocals.
11227
11228 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11229
11230         * Makefile.in: Update.
11231         * c-common.c: Include langhooks.h.
11232         (inline_forbidden_p): Use new hook.
11233         * diagnostic.c: Include langhooks.h.
11234         (format_with_decl, announce_function,
11235         default_print_error_function): Use new hook.
11236         * dwarf2out.c (dwarf2_name): Use new hook.
11237         * function.c: Include langhooks.h.
11238         (init_function_start): Use new hook.
11239         * langhooks-def.h (lhd_decl_printable_name): New.
11240         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11241         (LANGHOOKS_INITIALIZER): Update.
11242         * langhooks.c (lhd_decl_printable_name): New.
11243         * langhooks.h (struct lang_hooks): New hook.
11244         * toplev.c (decl_name, decl_printable_name): Remove.
11245         (open_dump_file): Use new hook.
11246         (process_options): Remove old hook.
11247         * tree.h (decl_printable_name): Remove.
11248 objc:
11249         * objc-act.c (objc_init): Remove old hook.
11250         (objc_printable_name): Export.
11251         * objc-act.h (objc_printable_name): New.
11252         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11253
11254 2002-03-19  Jim Blandy  <jimb@redhat.com>
11255
11256         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11257         the start_source_file debug hook, not the current line number.
11258
11259 2002-03-19  Richard Henderson  <rth@redhat.com>
11260
11261         * flow.c (EH_USES): Provide default.
11262         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11263         * doc/tm.texi (EH_USES): New.
11264
11265         * config/ia64/ia64.c (ia64_eh_uses): New.
11266         * config/ia64/ia64-protos.h: Update.
11267         * config/ia64/ia64.h (EH_USES): New.
11268
11269 2002-03-19  Richard Henderson  <rth@redhat.com>
11270
11271         * varasm.c (output_constant_def): Fix stupid typo.
11272
11273 2002-03-19  Richard Henderson  <rth@redhat.com>
11274
11275         PR 5879
11276         * except.c (current_function_has_exception_handlers): New.
11277         * except.h: Declare it.
11278         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11279         Combine tests that disable all sibcalls for the function.
11280
11281 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
11282
11283         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11284         for INTEGER_CST.
11285
11286 2002-03-19  Richard Henderson  <rth@redhat.com>
11287
11288         PR 5977, 5991
11289         * config/ia64/ia64.c: Revert 2002-03-01 patch.
11290         * config/ia64/ia64.h (INIT_EXPANDERS): New.
11291
11292 2002-03-19  Jim Blandy  <jimb@redhat.com>
11293
11294         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11295         name, even if the replacement list contains no tokens, as required
11296         by Dwarf.
11297
11298 2002-03-19  Jason Merrill  <jason@redhat.com>
11299
11300         * varasm.c (globalize_decl): Get the name from the RTL, not
11301         DECL_ASSEMBLER_NAME.
11302
11303         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11304
11305 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
11306
11307         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11308         subdi_carry): Define.
11309
11310 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
11311
11312         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11313         about -fpic/-fPIC if extra_warnings set.
11314
11315 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
11316
11317         * expr.c (expand_expr): Sign-extend CONST_INT generated from
11318         TREE_STRING_POINTER.
11319         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
11320
11321 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11322
11323         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11324         in favor of SP if FRAME_POINTER_REQUIRED is false.
11325
11326 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
11327
11328         * emit-rtl.c (gen_int_mode): New function.
11329         * rtl.h: Prototype for it.
11330         * combine.c (make_extraction, simplify_comparison), expmed.c
11331         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11332         (convert_modes, store_field), optabs.c (expand_fix),
11333         simplify-rtx.c (neg_const_int, simplify_unary_real),
11334
11335         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11336         Use it instead of GEN_INT (trunc_int_for_mode (...)).
11337
11338 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
11339
11340         PR c/5656
11341         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11342         convert_parm_for_inlining.
11343         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11344         Define.
11345         * langhooks-def.h: Likewise.
11346         * objc/objc-lang.c: Likewise.
11347         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11348         function.
11349         * tree-inline.c (initialize_inlined_parameters):
11350         Call convert_parm_for_inlining lang hook if needed.
11351         * c-typeck.c (c_convert_parm_for_inlining): New function.
11352         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11353
11354 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
11355
11356         * calls.c (precompute_arguments): Do not assume that temporaries
11357         can be destroyed after expanding the argument.
11358         (expand_call): Likewise.
11359
11360 2002-03-15  Eric Christopher  <echristo@redhat.com>
11361
11362         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11363         Fix register preference on last change.
11364         * config/mips/mips.c (mips_return_in_memory): New function.
11365         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11366         * config/mips/mips-protos.h: Declare.
11367         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11368         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11369
11370 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
11371
11372         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11373         a register too.
11374         (anddi3, iorsi3): Likewise.
11375
11376         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11377         use %gprel for symbols that are going to be placed in linkonce
11378         sections.
11379
11380         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11381         RETURN_ADDRESS_POINTER_REGNUM to $ra.
11382         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11383         not needed.  Disregard leaf_function_p().
11384         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11385         mips16 frame pointer.
11386         * config/mips/mips.md (store ra): Only to small SP offsets.
11387         2001-08-22  Graham Stott  <grahams@redhat.com>
11388         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11389         return a REG rtx for the return address register.
11390
11391 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
11392
11393         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11394         constant-pool addresses as "mode-dependent".
11395         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11396
11397 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
11398
11399         PR target/5740
11400         * expr.c (emit_group_load): Use extract_bit_field if
11401         needed for CONCAT arguments.
11402
11403 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
11404
11405         PR target/4863
11406         * arm.md (tablejump): Make this a define_expand.  For PIC add the
11407         offset to the base of the table.
11408         (thumb_tablejump): Matcher for Thumb tablejump insn.
11409         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11410         as the difference of two labels.
11411         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11412         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11413         tables in the code.
11414         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11415         * arm.c (get_jump_table_size): If the table is not in the text
11416         section, return zero.
11417
11418 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
11419
11420         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11421         of gen_rtx_SUBREG.
11422         (arm_reload_out_hi): Use gen_lowpart instead of
11423         gen_rtx_SUBREG to access QImode components.
11424         * config/arm/arm.md: Disable zero_extend split for QImode
11425         subregs in BIG_ENDIAN mode.
11426         (storehi_bigend): Match use of least significant byte.
11427         (storeinthi): Remove extraneous SUBREG.
11428         Add missing construction of operands[2].
11429         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11430         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11431         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11432
11433 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
11434
11435         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11436         any_operand.
11437
11438 2002-03-17  Richard Henderson  <rth@redhat.com>
11439
11440         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11441         explicitly.
11442
11443 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
11444
11445         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11446         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11447
11448 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11449
11450         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11451
11452         * predict.c (estimate_bb_frequencies): Delete unused variables.
11453
11454 2002-03-17  Richard Henderson  <rth@redhat.com>
11455
11456         * config/ia64/ia64.c (ia64_attribute_table): Move before
11457         targetm definition.  Make static.
11458
11459 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11460
11461         * c-common.h (yyparse, c_common_parse_file): New.
11462         * c-lang.c: Include c-common.h.
11463         (LANG_HOOKS_PARSE_FILE): Redefine.
11464         * c-lex.c: Include c-common.h.
11465         (yyparse): Rename c_common_parse_file.  Call yyparse.
11466         * c-parse.in (yyparse): Remove macro.
11467         * c-tree.h (yyparse_1): Remove.
11468         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11469         (LANG_HOOKS_INITIALIZER): Update.
11470         * langhooks.h (struct lang_hoooks): New hook parse_file.
11471         * toplev.c (compile_file): Use parse_file hook.
11472         * tree.h (yyparse): Remove.
11473         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
11474
11475 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
11476
11477         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11478         float_truncate, not fix.
11479         ("*truncdfsf2_real"): Ditto.
11480         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11481
11482         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11483
11484 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
11485
11486         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11487         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
11488         where appropriate.  Make the second reference to
11489         leaf_function_p a function call, as intended.  Reindented.
11490
11491         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11492         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11493
11494         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11495         add register to non-constant into sp.
11496
11497         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11498         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11499         (mips16_gp_pseudo_rtx): Lose.
11500         (INIT_EXPANDERS): Deleted.
11501         * config/mips/mips.c (mips_init_machine_status): New.
11502         (mips_free_machine_status): New.
11503         (mips_mark_machine_status): New.
11504         (override_options): Set them.
11505         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11506         (struct machine_function): ... new.  Replaced all references.
11507         (mips_add_gc_roots): Don't mark them.
11508         (embedded_pic_fnaddr_reg): New, extracted from...
11509         (embedded_pic_offset): ... here.
11510         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11511         (movsi): Likewise.
11512
11513 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
11514
11515         * cppinit.c: Revert -MD removal.
11516
11517 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11518
11519         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11520         soft registers by default for 68HC12.
11521         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11522         when compiling with -fomit-frame-pointer.
11523         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11524         (expand_epilogue): Likewise.
11525         (m68hc11_gen_rotate): Use exg when rotating by 8.
11526
11527 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11528
11529         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11530         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11531         (splits): Remove unused add splits.
11532         ("*addhi3_68hc12"): Tune constraints.
11533         ("addhi_sp"): Try to use X instead of Y in all cases and if the
11534         constant fits in 8-bits and D is dead use abx/aby instructions.
11535         ("*addhi3"): Remove extern declaration of ix_reg.
11536         ("*subsi3"): Optimize and provide new split.
11537         ("subhi3"): Cleanup.
11538         ("*subhi3_sp"): Avoid saving X if we know it is dead.
11539         (arith splits): For 68hc12 save the address register on the stack
11540         and do the arithmetic operation with a pop.
11541
11542 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11543
11544         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11545         allocating QImode in address registers.
11546         ("*movqi_m68hc11"): Likewise.
11547
11548 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
11549
11550         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11551
11552 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
11553
11554         * cppinit.c (print_help): Display -MD and -MMD.
11555         Don't display usage string.  Update assertion syntax and
11556         typo.
11557         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11558         (cpp_handle_option): Update.
11559
11560 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
11561
11562         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11563         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11564         and define it so that regardless of target CPU size,
11565         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11566         of "int" rather than "long."
11567
11568 2002-03-15  Richard Henderson  <rth@redhat.com>
11569
11570         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11571         size as a tree.
11572
11573 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11574
11575         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11576         ("tstqi" split): Avoid using memory for tstqi on address register.
11577         (splits): Remove constraints.
11578         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11579         ("cmpdf", "cmpsf"): Remove since not used.
11580         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11581         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11582
11583 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11584
11585         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11586         ("neghi2"): Tighten constraints.
11587         ("one_cmplsi2"): Optimize and simplify split.
11588         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11589
11590 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11591
11592         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11593         and split of AND operation to clear the upper bits.
11594         ("*logicalsi3_zextqi"): Likewise.
11595         ("*logicallhi3_zexthi_ashift8"): Likewise.
11596         ("*logicalsi3_silshr16"): Likewise.
11597         ("logicalsi3_silshl16"): Likewise.
11598         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11599
11600 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11601
11602         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11603         (m68hc11_indirect_p): New function.
11604         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11605         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11606         TARGET_M6812.
11607         (asm_print_register): Likewise.
11608         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11609         (m68hc11_indirect_p): Declare.
11610         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11611         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11612         (TARGET_SWITCHES): New option -mrelax.
11613         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11614         destination.
11615         ("iorsi3", "xorsi3"): Likewise.
11616         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11617         ("*andhi3_mem"): New to handle destination in memory with bclr
11618         and a scratch register.
11619         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11620         ("*andhi3_const"): New when operand2 is constant.
11621         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11622         ("*andhi3_gen"): Cleanup of the old "andhi3".
11623         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11624         ("xorqi3"): Update constraints.
11625
11626 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11627
11628         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11629         for reg_equiv_memory_loc when the operand is a register that does
11630         not get a hard register (stack location).
11631         (tst_operand): After reload, accept all memory operand.
11632         (symbolic_memory_operand): Fix detection of symbolic references.
11633         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11634         accept symbols and any constant.
11635
11636 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11637
11638         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11639         note on the insn that sets the soft frame register.
11640         (must_parenthesize): ix and iy are also reserved names.
11641         (print_operand_address): One more place where parenthesis are required
11642         to avoid confusion with register names.
11643         (m68hc11_gen_movhi): Allow push of stack pointer.
11644         (m68hc11_check_z_replacement): Fix handling of parallel with a
11645         clobber.
11646         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11647         the replacement register is.
11648         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11649         and D8_REGS classes.
11650         (MODES_TIEABLE_P): All modes are tieable except QImode.
11651
11652 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11653
11654         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11655         (___subdi3): Likewise.
11656         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11657         (__map_data_section): Optimize 68hc11 case.
11658
11659 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11660
11661         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11662         than a shift to avoid adding a register with itself.
11663         (m68hc11_memory_move_cost): Take into account NO_REGS.
11664         (m68hc11_register_move_cost): Update and use memory move cost
11665         for soft registers.
11666         (m68hc11_address_cost): Make cost of valid offset not 0 so that
11667         it gives more opportunities to cse to optimize.
11668         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11669         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11670
11671 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
11672
11673         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11674         * c-common.def (CLEANUP_STMT): New tree node.
11675         * c-common.h (CLEANUP_DECL): New macro.
11676         (CLEANUP_EXPR): Likewise.
11677         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11678         * expr.c (expand_expr): Tidy.
11679         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11680         * tree-inline.c (initialize_inlined_parameters): Clean up
11681         new local variables.
11682
11683 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
11684
11685         PR bootstrap/4128
11686         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11687         before movrXX only, use reg_overlap_mentioned_p.
11688         Only special case NE if just one insn can be generated.
11689
11690 2002-03-15  Jason Merrill  <jason@redhat.com>
11691
11692         * varasm.c (assemble_variable): Call resolve_unique_section before
11693         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
11694         of error_mark_node.
11695
11696 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
11697
11698         PR target/5170
11699         * arm.md (split pattern for thumb shiftable immediates): Add comment
11700         explaining non-obvious test.
11701
11702 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
11703
11704         PR target/5712
11705         * arm.md (movaddr, movaddr_insn): Delete.
11706
11707 2002-03-15  Jason Merrill  <jason@redhat.com>
11708
11709         * toplev.c (wrapup_global_declarations): Clarify variable handling.
11710         -fkeep-static-consts doesn't apply to comdats.
11711
11712 2002-03-14  Richard Henderson  <rth@redhat.com>
11713
11714         * c-decl.c: Include c-pragma.h.
11715         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11716         (finish_function): Tidy.
11717         * c-pragma.c: Include c-common.h.
11718         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11719         (handle_pragma_weak): Use them.
11720         (init_pragma): Register pending_weaks.
11721         * c-pragma.h (maybe_apply_pragma_weak): Declare.
11722         * print-tree.c (print_node): Print DECL_WEAK.
11723         * varasm.c (mark_weak_decls): Remove.
11724         (remove_from_pending_weak_list): Remove.
11725         (add_weak): Remove.
11726         (asm_emit_uninitialised): Call globalize_decl for weak commons.
11727         (weak_decls): Make a tree_list.
11728         (declare_weak): Cons weak_decls directly.
11729         (globalize_decl): Remove weak_decls elements directly.
11730         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
11731         symbols.  Don't pretend to handle aliases.
11732         (init_varasm_once): Update weak_decls registry.
11733         * Makefile.in: Update dependencies.
11734
11735 2002-03-14  Richard Henderson  <rth@redhat.com>
11736
11737         PR target/5312
11738         * config/ia64/ia64.c: Include tm_p.h last.
11739         (gen_nop_type): Remove duplicate definition.
11740         (cycle_end_fill_slots): Set sched_data for second L slot.
11741         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11742         (nop_cycles_until): Fix typos.
11743
11744 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
11745
11746         PR optimization/5891
11747         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
11748
11749 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
11750
11751         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
11752           descriptors correctly.
11753
11754 2002-03-14  Michael Meissner  <meissner@redhat.com>
11755
11756         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
11757         100, allowing MAX_UNROLLED_INSNS to be overridden.
11758
11759         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
11760         --param.
11761
11762         * unroll.c (params.h): Include.
11763         (MAX_UNROLLED_INSNS): Delete, now in params.h.
11764
11765         * doc/invoke.texi (--param max-unroll-insns): Document.
11766
11767         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
11768
11769 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
11770
11771         * arm.md: Fix warnings about constraints in peepholes and splits.
11772
11773 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
11774
11775         * cpphash.h (struct lexer_state): Remove line_extension member.
11776         * cpplib.c (dequote_string, do_linemarker): New functions.
11777         (linemarker_dir): New data object.
11778         (DIRECTIVE_TABLE): No longer need to interpret #line in
11779         preprocessed source.  Delete obsolete comment about return
11780         values of handlers.
11781         (end_directive, directive_diagnostics, _cpp_handle_directive):
11782         Don't muck with line_extension.
11783         (directive_diagnostics): No need to issue warnings for
11784         linemarkers here.
11785         (_cpp_handle_directive): Issue warnings for linemarkers here,
11786         when appropriate.  Dispatch linemarkers to do_linemarker, not
11787         do_line.
11788         (do_line): Code to handle linemarkers split out to do_linemarker.
11789         Convert escape sequences in filename argument, both places.
11790
11791         * cppmacro.c (quote_string): Rename cpp_quote_string and
11792         export.  All callers changed.
11793         * cpplib.h (cpp_quote_string): Prototype.
11794         * cppmain.c (print_line): Call cpp_quote_string on to_file
11795         before printing it.
11796
11797         * doc/cpp.texi: Document that escapes are now interpreted in
11798         #line and in linemarkers, and that non-printing characters are
11799         converted to octal escapes when linemarkers are generated.
11800
11801 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
11802
11803         * emit-rtl.c (try_split): Use delete_insns.
11804         * recog.c (split_all_insns): Fix terminating condition.
11805
11806 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
11807             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
11808
11809         PR target/5828
11810         * arm.c (arm_output_epilogue): Fix floating-point register save
11811         adjustment when using a frame pointer.
11812
11813 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
11814
11815         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
11816         * config/mips/mips.c (compute_frame_size): Retrofit them here.
11817         (save_restore_insns, mips_expand_epilogue): And here.
11818         (build_mips16_call_stub): And here.
11819         (mips_function_value): Use the new macros to decide whether a single
11820         or complex float can be returned in floating-point registers.  Return
11821         a parallel rtx in the complex case.
11822
11823 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
11824
11825         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
11826         call after liveness analysis.
11827
11828         * recog.c (split_insn): Use delete_insn_and_edges.
11829
11830         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
11831         instructions to have branch prediction notes.
11832         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
11833
11834 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
11835
11836         * configure.in: Don't pass -Wno-long-long to a ADA compiler
11837         that doesn't support it.
11838         * configure: Regenerate.
11839
11840 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
11841
11842         PR target/5626
11843         * config/sparc/sparc.md (normal_branch, inverted_branch,
11844         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
11845         inverted_fp_branch): Adjust calls to output_cbranch.
11846         Set length attribute.
11847         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
11848         output_v9branch.  Set length attribute.
11849         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
11850         predicates.
11851         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
11852         (output_cbranch): Likewise.  Handle far branches.
11853         (output_v9branch): Handle far branches.
11854         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
11855         Adjust prototypes.
11856         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
11857         noov_compare64_op predicates.
11858
11859 2002-03-13  Jason Merrill  <jason@redhat.com>
11860
11861         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
11862         into the function and constify it.
11863         * gthr-dce.h, gthr-solaris.h: Likewise.
11864
11865 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
11866
11867         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
11868         * config/rs6000/rs6000.c (rs6000_va_arg): Use
11869         std_expand_builtin_va_arg if not ABI_V4.
11870
11871 2002-03-13  Jason Merrill  <jason@redhat.com>
11872
11873         * varasm.c (globalize_decl): New fn.
11874         (assemble_start_function): Use it.
11875         (asm_emit_uninitialized): Use it.
11876         (assemble_alias): Use it.
11877         (assemble_variable): Use it.
11878
11879 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
11880
11881         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
11882         2002-03-12 internal visibility change.
11883         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
11884         visibility into SYMBOL_REF_FLAG.
11885
11886 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
11887
11888         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
11889         VOIDmode operand.  Add compile-time optimization for constant results.
11890
11891 2002-03-12  Jason Merrill  <jason@redhat.com>
11892
11893         * c-typeck.c (convert_for_assignment): Don't allow conversions
11894         between pointers and references.  Only allow lvalues to convert to
11895         reference.
11896
11897 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
11898
11899         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
11900         before prologue, to avoid scheduling problems.
11901
11902 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
11903
11904         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
11905         (ELIMINABLE_REGS): Add sfp->sp.
11906         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
11907
11908 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
11909
11910         PR optimization/5892
11911         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
11912
11913 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
11914
11915         * loop.c (basic_induction_var): Don't call convert_modes if mode
11916         classes are different.
11917
11918 2002-03-12  Richard Henderson  <rth@redhat.com>
11919
11920         PR optimization/5901
11921         * function.c (reposition_prologue_and_epilogue_notes): Position
11922         the markers after/before the last/first insn not deleted.
11923
11924 2002-03-12  Richard Henderson  <rth@redhat.com>
11925
11926         PR optimization/5878
11927         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
11928         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
11929         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11930
11931         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
11932         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
11933         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
11934
11935         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
11936         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
11937         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
11938         also.  Don't set it if not flag_pic.
11939         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
11940         to be INVALID_REGNUM when not used.
11941
11942 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
11943
11944         * expmed.c (store_bit_field): Reset alias set for memory.
11945         (extract_bit_field): Same.
11946
11947 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11948
11949         * c-common.c (c_tree_code_type, c_tree_code_length,
11950         c_tree_code_name, add_c_tree_codes): Delete.
11951         * c-common.h (add_c_tree_codes): Delete.
11952         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
11953         Define.
11954         * c-objc-common.c (c_objc_common_init): Don't call
11955         add_c_tree_codes, instead set lang_unsafe_for_reeval.
11956         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
11957         objc_tree_code_name, add_objc_tree_codes): Delete.
11958         (objc_init): Don't call add_objc_tree_codes.
11959         * objc/objc-lang.c (tree_code_type, tree_code_length,
11960         tree_code_name): Define.
11961         * toplev.c (lang_independent_init): Don't set
11962         tree_code_length[IDENTIFIER_NODE].
11963         * tree.c (tree_code_type, tree_code_length, tree_code_name):
11964         Delete definitions, moved to language front-ends.
11965         * tree.def (IDENTIFIER_NODE): Hardwire the length.
11966         * tree.h (tree_code_type, tree_code_length, tree_code_name):
11967         Const-ify.
11968         (tree_code_length): Change type to unsigned char.
11969
11970 2002-03-12  Richard Henderson  <rth@redhat.com>
11971
11972         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
11973         internal visibility change.
11974
11975 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
11976
11977         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
11978         validize_mem() instead of change_address to avoid clobbering
11979         memory attributes.
11980
11981 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
11982
11983         * c-lex.h (position_after_whitespace): Remove.
11984
11985 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
11986
11987         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
11988         (lex_string): Use unsigned char pointers.
11989
11990 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
11991
11992         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
11993         is not a valid memory_operand.
11994
11995 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
11996
11997         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
11998         * config/xtensa/lib1funcs.asm: Fix copyright to include
11999         special case for libgcc files.
12000         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
12001         (__divsi3): Likewise.
12002         (__umodsi3): Likewise.
12003         (__modsi3): Likewise.
12004         * config/xtensa/lib2funcs.S: Fix copyright to include
12005         special case for libgcc files.
12006
12007 2002-03-12  Tom Rix  <trix@redhat.com>
12008
12009         * collect2.c (resolve_lib_name): Move outside of
12010         OBJECT_FORMAT_COFF ifdef.
12011         (ignore_library): Same.
12012
12013 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12014
12015         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
12016
12017 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12018
12019         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
12020         to function_section before writing out the constant pool.
12021
12022 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
12023
12024         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
12025         zero_constant.
12026         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
12027
12028 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
12029
12030         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
12031         (adddi3): Likewise.
12032         (movdf): Likewise.
12033         (movdi): Likewise.
12034         (cmpsi splitter): Likewise.
12035         (modsi3): Fail if <= 0.
12036         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
12037         redundant test when HOST_BITS_PER_WIDE_INT != 32.
12038         (reg_or_sub_cint64_operand): Likewise.
12039         (num_insns_constant_wide): Optimize sign extension.
12040         (rs6000_legitimize_address): Likewise.
12041
12042 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
12043
12044         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12045         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12046
12047 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
12048
12049         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
12050         address calculation.
12051
12052 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
12053
12054         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
12055         scratch register to DImode / TImode.
12056         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
12057         register used does not overlap the target.
12058
12059 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12060
12061         * Makefile.in (debug.o): Depend on debug.h.
12062         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
12063         * debug.c (do_nothing_debug_hooks): Likewise.
12064         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
12065         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
12066         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
12067         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
12068         * dwarfout.c (dwarf_debug_hooks): Likewise.
12069         * integrate.c (output_inline_function): Likewise.
12070         * objc/objc-act.c (synth_module_prologue): Likewise.
12071         * sdbout.c (sdb_debug_hooks): Likewise.
12072         * toplev.c (debug_hooks): Likewise.
12073         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12074
12075 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12076
12077         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
12078         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
12079         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
12080         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
12081         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
12082         * defaults.h (POINTER_SIZE): Define.
12083         * doc/tm.texi (POINTER_SIZE): Document default.
12084
12085 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12086
12087         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
12088
12089 2002-03-11  Richard Henderson  <rth@redhat.com>
12090
12091         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
12092         if rebuild_label_notes_after_reload.
12093
12094 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
12095
12096         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
12097         emit pic register load if "internal" visibility.
12098         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
12099         (cris_expand_builtin_va_arg): Do all computations on trees.
12100
12101 2002-03-11  Richard Henderson  <rth@redhat.com>
12102
12103         * rtlanal.c: Include recog.h.
12104         (keep_with_call_p): Fix thinko.
12105         * Makefile.in (rtlanal.o): Update dependencies.
12106
12107 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
12108
12109         * genflags.c (gen_insn): Use IS_VSPACE.
12110         * genoutput.c (output_insn_data): Likewise.
12111         (process_template): Likewise.
12112
12113 2002-03-11  Richard Henderson  <rth@redhat.com>
12114
12115         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
12116
12117 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12118
12119         * Makefile.in: Update.
12120         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
12121         Update documentation.
12122         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
12123         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
12124
12125 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
12126
12127         * Makefile.in: Give texi2pod its input file as a command line
12128         argument, not on stdin.
12129
12130 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
12131             Daniel Berlin  <dan@dberlin.org>
12132
12133         C++ alias analysis improvement.
12134         * alias.c (record_component_aliases): Record aliases for base
12135         classes too.
12136
12137 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
12138
12139         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
12140
12141 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
12142
12143         * toplev.c (vms_fopen): Remove, not needed.
12144
12145         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
12146
12147         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
12148
12149         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
12150         for FP, already done later.
12151
12152         * toplev.c (debug_args): Add entry for VMS_DEBUG.
12153         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
12154
12155 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
12156
12157         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
12158         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
12159         LARGEST_EXPONENT_IS_NORMAL for the given mode.
12160         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
12161         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
12162         (ediv, emul, eldexp, esqrt): Likewise.
12163         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
12164         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
12165         (saturate): New function.
12166         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
12167         (make_nan): Use a saturation value instead of a NaN if
12168         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
12169         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
12170         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
12171         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
12172         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
12173         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
12174         !ROUND_TOWARDS_ZERO.
12175         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
12176         (ROUND_TOWARDS_ZERO): Document.
12177
12178 2002-03-11  Andreas Jaeger  <aj@suse.de>
12179
12180         * cfg.c (dump_flow_info): Remove unused variable.
12181
12182 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
12183
12184         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
12185         computations on trees.
12186
12187 2002-03-10  Richard Henderson  <rth@redhat.com>
12188
12189         PR 5693:
12190         * reload.c (copy_replacements_1): New.
12191         (copy_replacements): Use it to recurse through the rtx.
12192
12193 2002-03-10  Richard Henderson  <rth@redhat.com>
12194
12195         * loop.c (strength_reduce): Compute number of iterations as
12196         unsigned HOST_WIDE_INT.
12197
12198 2002-03-10  Richard Henderson  <rth@redhat.com>
12199
12200         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12201         to move away from the end of the block.
12202
12203 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
12204
12205         PR preprocessor/5899
12206         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
12207
12208 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12209
12210         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12211
12212         * attribs.c (decl_attributes): Fix signed/unsigned warning.
12213
12214 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
12215
12216         * config/mmix/mmix.c: Improve comments.
12217         (mmix_target_asm_function_prologue): Drop variable
12218         empty_stack_frame.  Don't allocate unused slot above fp.
12219         (mmix_target_asm_function_epilogue): Mirror prologue changes.
12220         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12221         brace in first column.
12222         (enum reg_class): Ditto.
12223         (FIRST_PARM_OFFSET): Now 0.
12224         (USER_LABEL_PREFIX): Remove #if 0:d definition.
12225
12226 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12227
12228         * combine.c (make_extraction): Fix error in last change.
12229
12230 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12231
12232         * c4x.c (c4x_fp_reglist): Const-ify.
12233         * cris.c (cris_print_operand): Likewise.
12234         * i386.c (ix86_va_arg): Likewise.
12235         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12236         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12237         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12238         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12239         * mcore.h (regno_reg_class): Likewise.
12240         * mips.c (gen_int_relational): Likewise.
12241         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12242         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
12243         * pdp11.c (move_costs): Likewise.
12244         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12245         * s390.c (s390_branch_condition_mnemonic, regclass_map):
12246         Likewise.
12247         * s390.h (regclass_map): Likewise.
12248         * sh.c (shift_amounts): Likewise.
12249         * sh.md (rotlsi3): Likewise.
12250
12251 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
12252
12253         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12254         (ne0+5): Use new clobber to generate proper shift pattern.
12255         Patch by Michael Matz <matz@kde.org>.
12256
12257 2002-03-09  Andreas Schwab  <schwab@suse.de>
12258
12259         * gcc.c (validate_all_switches): Also handle `%W{...}'.
12260
12261 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
12262
12263         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12264
12265 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
12266
12267         PR middle-end/5877
12268         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12269         even for non-representable constants.
12270
12271 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12272
12273         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12274         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12275         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12276         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12277         (pop_function_context): Compute MAY_SHARE parameter for
12278         fixup_var_refs.
12279         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12280         (gen_mem_addressof): Call fixup_var_refs with new parm.
12281
12282         * combine.c (make_extraction): Don't make extension of CONST_INT.
12283
12284 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
12285
12286         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12287         in o32 and o64 ABIs.
12288         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12289         but getting fixed-size structs passed in registers regardless of
12290         padding in o32 and o64 ABIs.
12291
12292         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12293         offset before loading address of argument passed by transparent
12294         reference.
12295
12296 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12297
12298         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12299
12300 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
12301
12302         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12303         marker such that registers after it are saved.
12304
12305 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12306
12307         * sparc.c (arith_4096_operand): Fix error in last change.
12308
12309 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
12310
12311         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12312         defaults for MEABI.
12313
12314 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
12315
12316         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12317         vectors.
12318
12319 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
12320
12321         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
12322
12323 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
12324
12325         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12326         removed; fix return value.
12327         * combine.c (combine_instructions): Dirtify blocks where we failed to
12328         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12329         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12330
12331 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12332
12333         * gcse.c (insert_insn_end_bb): Fix typo in last change.
12334
12335 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
12336
12337         * recog.c (peephole2_optimize): Re-distribute EH edges.
12338
12339 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
12340
12341         * expr.c (expand_expr): Use unsave lang hook.
12342         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12343         (LANG_HOOKS_INITIALIZER): Update.
12344         * langhooks.h (struct lang_hooks): New hook unsave.
12345         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12346         (unsave_expr_1): Remove unused lang_unsave_expr_now.
12347         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
12348         (unsave_expr_now): Remove.
12349         * tree.h (unsave_expr_now, lang_unsave,
12350         lang_unsave_expr_now): Remove.
12351         (lhd_unsave): New.
12352
12353 2002-03-08  Andreas Jaeger  <aj@suse.de>
12354
12355         * flow.c (propagate_block_delete_insn): Remove unused variable.
12356
12357 2002-03-08  Kazu Hirata  <kazu@hxi.com>
12358
12359         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12360         insn length for memory load/store.
12361
12362 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12363
12364         * doc/install.texi (--with-libiconv-prefix): Document.
12365
12366 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
12367
12368         * doc/sourcebuild.texi: Fix typo.
12369
12370 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
12371
12372         PR c/3711
12373         * builtins.c (std_expand_builtin_va_arg): Do all computations on
12374         trees.
12375
12376 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12377
12378         * rtl.c (copy_most_rtx): Move from here ...
12379         * emit-rtl.c (copy_most_rtx): ... to here.
12380
12381 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
12382
12383         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12384         SUBTARGET_CPP_SIZE_SPEC.
12385         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12386
12387         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12388
12389 2002-03-07  Matt Hiller  <hiller@redhat.com>
12390
12391         * gensupport.c (first_dir_md_include): Renamed from include;
12392         change all references.
12393         (last_dir_md_include): Renamed from last_include; change all
12394         references.
12395         (init_md_reader): Unconditionally initialize base_dir whether or
12396         not filename is a relative path.
12397
12398 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
12399
12400         * config/fp-bit.c (_unord_f2): Compile it in even if
12401         US_SOFTWARE_GOFAST is enabled.
12402
12403         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12404         NULL_RTX.  Set all HFmode operations as NULL_RTX.
12405         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12406         NULL_RTX, try reversing the comparison and the operands.
12407
12408 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
12409
12410         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12411         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12412         and MATCH_OP_DUP.
12413
12414 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
12415
12416         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12417
12418 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
12419
12420         * basic-block.h (fixup_abnormal_edges): Declare.
12421         * reload1.c (fixup_abnormal_edges): New function.
12422         * reg-stack.c (convert_regs): Use it.
12423
12424         * gcse.c (insert_insn_end_bb): Handle trapping insns.
12425
12426         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12427
12428 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
12429
12430         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12431         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12432         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12433         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12434         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12435         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12436         unless x and y could be infinite.
12437         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12438         Check that the common type of both arguments is a real, even for
12439         targets without unordered comparisons.  Allow an integer argument
12440         to be compared against a real.
12441         (expand_tree_builtin): Use expand_unordered_cmp.
12442         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12443         * cse.c (fold_rtx): Likewise.  Fix indentation.
12444         * fold-const.c (fold_real_zero_addition_p): New.
12445         (fold): Use it, and the new HONOR_... macros.
12446         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12447         * jump.c (reversed_comparison_code_parts): After searching for
12448         the true comparison mode, use HONOR_NANS to decide whether it
12449         can be safely reversed.
12450         (reverse_condition_maybe_unordered): Remove IEEE check.
12451         * simplify-rtx.c (simplify_binary_operation): Use the new macros
12452         to decide which simplifications are valid.  Allow the following
12453         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12454         and (a - -b) to (a + b).
12455         (simplify_relational_operation): Use HONOR_NANS.
12456         * doc/tm.texi: Document the MODE_HAS_... macros.
12457
12458 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
12459
12460         * combine.c (simplify_comparison): If simplifying a logical shift
12461         right and compare with constant, force the comparison to unsigned.
12462
12463 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
12464
12465         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
12466
12467         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12468         -mabi=no-altivec
12469         (alt_reg_names): Remove % for vrsave.
12470
12471 2002-03-06  Richard Henderson  <rth@redhat.com>
12472
12473         PR optimization/5844
12474         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
12475         if used indicates we've already emitted one copy of an operand.
12476         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12477         (gen_split): Supply a non-null used.
12478
12479 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
12480
12481         * reload1.c (reload): Unshare all rtl after reload is done.
12482
12483         * simplify-rtx.c (simplify_plus_minus): Do not abort,
12484         but simply fail if the expression is too complex to simplify.
12485         (simplify_gen_binary): Handle simplify_plus_minus failures.
12486
12487 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
12488
12489         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12490         consistently call delete_trivially_dead_insns after CSE and GCSE;
12491         fix DFI_life dumping; do jump threading after liveness; do crossjumping
12492         after liveness2; update comment in last crossjumping.
12493         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12494
12495 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
12496
12497         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12498         after completing fast dead code elimination.
12499
12500         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12501         COMPARE operator.
12502
12503 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
12504
12505         * version.c:  Fix misplaced leading blanks on first line.
12506
12507 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
12508
12509         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12510
12511 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
12512
12513         * cfgcleanup.c (mentions_nonequal_regs): New function.
12514         (thread_jump): Use it.
12515         * toplev.c (rest_of_compilation): Run jump threading after
12516         liveness.
12517
12518 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
12519
12520         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12521         patch.
12522
12523 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
12524
12525         * predict.c (estimate_bb_frequencies): Do not reload the
12526         frequencies from notes.
12527
12528 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
12529
12530         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12531         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12532
12533         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12534         delete_noop_moves): Return indeger.
12535         * flow.c (ndead): New variable.
12536         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12537         BB argument; update callers.
12538         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12539         (life_analysis): Do not call purge_all_dead_edges.
12540         (update_life_info): Return number of deleted insns; print statistics.
12541         (update_life_info_in_dirty_blocks): likewise.
12542         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12543         return number of insns deleted.
12544
12545         * cse.c: Include timevar.h
12546         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12547         iterate until stabilizes; print statistics; return number of killed
12548         insns.
12549         * Makefile.in: (cse.o): Add timevar.h dependency
12550         * rtl.h (delete_trivially_dead_insns): New.
12551         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12552         * toplev.c (rest_of_compilation): Update callers.
12553
12554         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12555         (try_optimize_cfg): Do not update liveness.
12556         (cleanup-cfg): Loop until try_optimize_cfg and dead code
12557         removal stabilizes; use delete_trivially_dead_insns.
12558
12559         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12560
12561 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
12562
12563         * cppmain.c (setup_callbacks): Disable #pragma and #ident
12564         callbacks when processing assembly language.
12565
12566 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12567
12568         * pa.h (ASM_FILE_END): Define.
12569         * som.h (ASM_FILE_END): Delete.
12570
12571         * pa.c (function_arg): Don't pass floats in general registers in
12572         indirect calls if TARGET_ELF32.
12573
12574 2002-03-05  Richard Henderson  <rth@redhat.com>
12575
12576         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12577
12578 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
12579
12580         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12581
12582 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
12583
12584         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12585         -r command line.  Don't hide any symbols if not building
12586         shared libgcc.
12587
12588 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
12589
12590         * cfg.c (dump_flow_info): Warn about profile mismatches.
12591         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12592         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12593
12594 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
12595
12596         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12597         wide volatile memory by parts.
12598
12599 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
12600
12601         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12602         is NULL.
12603
12604 2002-03-05  Richard Henderson  <rth@redhat.com>
12605
12606         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
12607
12608 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
12609
12610         * toplev.c (documented_lang_options): Document more
12611         language-specific options.
12612         * doc/invoke.texi (Warning Options): Correct documentation for
12613         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12614         * c-decl.c (c_decode_option): Use a table to handle warning options.
12615
12616 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
12617
12618         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12619         parameter to mmix_encode_section_info.
12620         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12621         relocatably.  Always produce ELF, not mmo if linking relocatably.
12622         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12623         first is non-zero, don't add symbol prefix.
12624         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12625         prototype accordingly.
12626
12627 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
12628
12629         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12630
12631 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
12632
12633         * configure.in: Increase required makeinfo version to 4.1.
12634         * configure: Regenerate.
12635
12636 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
12637
12638         * .cvsignore: Remove *.info* and genrtl*; these files are generated
12639         elsewhere now.
12640
12641 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
12642
12643         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12644         * doc/invoke.texi: Fix @math uses.
12645
12646 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
12647
12648         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12649         removal
12650
12651 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
12652
12653         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12654         (powerpc-*-eabisimaltivec*): Same.
12655
12656         * config/rs6000/t-ppcendian: New.
12657
12658 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12659
12660         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12661         nonimmediate_src_operand and nonimmediate_lsrc_operand to
12662         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12663
12664 2002-03-03  Richard Henderson  <rth@redhat.com>
12665
12666         * toplev.c (rest_of_decl_compilation): Revert last two changes.
12667
12668 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
12669
12670         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12671         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12672         tree.c, config/m68k/m68k.c:
12673         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12674         REAL_ARITHMETIC blocks unconditional.  Delete some further
12675         #ifdef blocks predicated on REAL_ARITHMETIC.
12676         * flags.h, toplev.c: Delete remaining references to
12677         flag_pretend_float.
12678
12679         * doc/invoke.texi: Remove documentation of -fpretend-float.
12680         * doc/tm.texi: Describe the various REAL_* macros as provided by
12681         real.h, not by the target configuration files.
12682
12683         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12684         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12685         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12686         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12687         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12688         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12689         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12690         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12691         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12692         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12693         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12694         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12695         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12696         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12697         config/xtensa/xtensa.h:
12698         Do not define, undefine, or mention in comments any of
12699         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12700         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12701         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12702         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12703         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12704         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12705         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12706         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12707         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12708
12709 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12710
12711         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12712         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12713         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12714         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12715         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12716         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12717         Delete.
12718         * defaults.h (BITS_PER_WORD): Define.
12719         * doc/tm.texi (BITS_PER_WORD): Document default value.
12720
12721         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12722         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12723         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12724
12725 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12726
12727         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12728         lieu of explicit sizeof/sizeof.
12729         * i386.c (override_options, ix86_init_mmx_sse_builtins,
12730         ix86_expand_builtin): Likewise.
12731         * mips.c (mips_add_gc_roots): Likewise.
12732         * mmix.c (mmix_output_condition): Likewise.
12733         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12734         altivec_init_builtins): Likewise.
12735         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12736         * cppexp.c (Nsuff, parse_number): Likewise.
12737         * cppinit.c (builtin_array_end): Likewise.
12738         * gcc.c (n_default_compilers, process_command): Likewise.
12739         * genpreds.c (output_predicate_decls): Likewise.
12740         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12741         * lcm.c (N_ENTITIES): Likewise.
12742         * stor-layout.c (set_sizetype): Likewise.
12743
12744 2002-03-03  Richard Henderson  <rth@redhat.com>
12745
12746         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
12747         for types or labels.
12748
12749 2002-03-03  Richard Henderson  <rth@redhat.com>
12750
12751         * c-decl.c (start_decl): Initialized variables are not common.
12752
12753 2002-03-02  Per Bothner  <per@bothner.com>
12754
12755         * gcc.c (option_map):  Suport new --bootclasspath option.
12756         --CLASSPATH is now just an alias for --classpath.
12757
12758 2002-03-02  Richard Henderson  <rth@redhat.com>
12759
12760         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
12761         load if "internal" visibility.
12762         * doc/extend.texi: Document visibility meanings.
12763
12764 2002-03-02  Richard Henderson  <rth@redhat.com>
12765
12766         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
12767         to functions as well.
12768
12769 2002-03-02  Richard Henderson  <rth@redhat.com>
12770
12771         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
12772         (handle_visibility_attribute): Don't call assemble_visibility.
12773         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
12774         without asmspec.  Invoke assemble_alias when needed.
12775         * varasm.c (maybe_assemble_visibility): New.
12776         (assemble_start_function, assemble_variable, assemble_alias): Use it.
12777
12778 2002-03-02  Richard Henderson  <rth@redhat.com>
12779
12780         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
12781         invoke ENCODE_SECTION_INFO with first call flag.
12782
12783         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12784         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
12785         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
12786         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
12787         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12788         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12789         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12790         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
12791         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
12792         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
12793         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12794         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
12795         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12796         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
12797         config/mcore/mcore-protos.h, config/mcore/mcore.c,
12798         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
12799         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
12800         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
12801         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
12802         config/sh/sh.h, config/sparc/sparc.h,
12803         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12804         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
12805         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
12806         FIRST argument.  As needed, examine it and do nothing.
12807
12808         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
12809         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12810         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
12811
12812         * config/arm/t-pe (pe.o): Add dependencies.
12813
12814 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12815
12816         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
12817         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
12818         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
12819         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
12820         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
12821         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
12822         * defaults.h (BITS_PER_UNIT): Define.
12823         * doc/tm.texi (BITS_PER_UNIT): Document default value.
12824
12825 2002-03-02  Kazu Hirata  <kazu@hxi.com>
12826
12827         * config/h8300/h8300-protos.h: Add a prototype for
12828         compute_a_shift_length.
12829         * config/h8300/h8300.c (h8300_asm_insn_count): New.
12830         (compute_a_shift_length): Likewise.
12831         (h8300_adjust_insn_length): Do not adjust insn length of shift
12832         insns.
12833         * config/h8300/h8300.md (anonymous shift patterns): Use
12834         compute_a_shift_length.
12835
12836 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12837
12838         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
12839         trunc_int_for_mode.
12840
12841         * emit-rtl.c (offset_address): Call update_temp_slot_address.
12842
12843 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12844
12845         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
12846         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
12847         * flags.h (flag_zero_initialized_in_bss): Declare.
12848         * toplev.c (flag_zero_initialized_in_bss): New flag.
12849         (lang_independent_options): Add flag_zero_initialized_in_bss.
12850         * tree.c (initializer_zerop): New function.
12851         * tree.h (initializer_zerop): Declare.
12852         * varasm.c (assemble_variable): If we can emit bss, put zero
12853         initializers in the bss section.
12854
12855 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
12856
12857         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
12858         like more than one symbol per .weak directive.
12859
12860 2002-03-01  Richard Henderson  <rth@redhat.com>
12861
12862         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
12863         adjust argument_pointer by pretend_args_size.
12864         (ia64_va_start): Adjust va_start address by -pretend_args_size.
12865
12866 2002-03-01  Kazu Hirata  <kazu@hxi.com>
12867
12868         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
12869
12870 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
12871
12872         * toplev.c (rest_of_compilation): Delete dead jumptables before
12873         loop.
12874         * flow.c (delete_dead_jumptables): Make global.
12875         * rtl.h (delete_dead_jumptables): Declare.
12876
12877 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
12878
12879         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
12880         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
12881         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
12882
12883 2002-03-01  Kazu Hirata  <kazu@hxi.com>
12884
12885         * config/h8300/h8300-protos.h: Fix formatting.
12886         * config/h8300/h8300.c: Likewise.
12887         * config/h8300/h8300.h: Likewise.
12888
12889 2002-03-01  Kazu Hirata  <kazu@hxi.com>
12890
12891         * config/h8300/h8300.c (print_operand): Support 16-bit
12892         constant addresses.
12893         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
12894
12895 2002-02-28  Richard Henderson  <rth@redhat.com>
12896
12897         * expmed.c (store_bit_field): Prevent generation of CONCATs;
12898         pun complex values as integers; use gen_lowpart instead of
12899         gen_rtx_SUBREG.
12900         (extract_bit_field): Likewise.
12901
12902 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
12903             David Edelsohn  <edelsohn@gnu.org>
12904
12905         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
12906         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
12907         (SUPPORTS_WEAK): Likewise.
12908         * output.h (add_weak): Add tree param.
12909         * varasm.c (add_weak): Likewise.  Save decl.
12910         (struct weak_syms): Add decl field.
12911         (mark_weak_decls): New function.
12912         (init_varasm_once): ggc_add_root mark_weak_decls.
12913         (assemble_start_function): Use ASM_WEAKEN_DECL.
12914         (assemble_variable): Likewise.
12915         (assemble_alias): Likewise.
12916         (declare_weak): Pass decl to add_weak.
12917         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
12918         (remove_from_pending_weak_list): Declare and define for
12919         ASM_WEAKEN_DECL.
12920         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
12921         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
12922         * defaults.h (SUPPORTS_WEAK): Likewise.
12923         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12924         .weak for code sym.  Do emit .size for descriptor sym.
12925         (ASM_DECLARE_FUNCTION_SIZE): Define.
12926         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
12927         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
12928         .lglobl unless TARGET_XCOFF.  Formatting fixes.
12929         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12930         .weak for code sym.
12931         (HANDLE_PRAGMA_WEAK): Remove.
12932         (ASM_WEAKEN_LABEL): Remove.
12933         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
12934
12935 2002-03-01  Jason Merrill  <jason@redhat.com>
12936
12937         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
12938         (TARGET_EXPR_CLEANUP): New macro.
12939
12940 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
12941
12942         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
12943         to take ptr_extend into account as third type of extension.
12944         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
12945         fields used by SUBREG_PROMOTED_UNSIGNED_P.
12946         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
12947         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
12948         * calls.c (precompute_arguments): Use new macro.
12949         (expand_call): Ditto.
12950         * combine.c (nonzero_bits): Ditto.
12951         (record_promoted_value): Ditto.
12952         * expr.c (store_expr): Ditto.
12953         (expand_expr): Ditto.
12954         * function.c (assign_parms): Ditto.
12955
12956 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
12957
12958         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
12959         override -shared and -shared-libgcc.
12960
12961 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
12962
12963         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
12964         of "ultrasparc".
12965         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
12966         to be broken.
12967
12968 2002-02-28  Richard Henderson  <rth@redhat.com>
12969
12970         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
12971         4 cycle latency from MM producers.
12972         (ia64_internal_sched_reorder): Likewise with pipeline flush.
12973
12974 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
12975
12976         * mklibgcc.in: Don't use GNU make extension.
12977
12978 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
12979
12980         * c-parse.in (STATIC): New terminal.
12981         (scspec): New non-terminal.  Update productions accordingly.
12982         (program): Remove bogus ifc / end ifc.
12983         (array_declarator): Simplify production using STATIC.
12984
12985 2002-02-28  Jim Meyering  <meyering@lucent.com>
12986
12987         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
12988         \a still means TARGET_BELL.
12989
12990 2002-02-28  Richard Henderson  <rth@redhat.com>
12991
12992         * haifa-sched.c (sched_emit_insn): New.
12993         (schedule_block): Use last_scheduled_insn to track last insn.
12994         * sched-int.h (sched_emit_insn): Prototype.
12995         * config/ia64/ia64.c (last_issued): Remove.
12996         (ia64_variable_issue): Don't set it.
12997         (nop_cycles_until): Use sched_emit_insn.
12998
12999 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
13000
13001         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
13002         extended constants.
13003
13004 2002-02-28  Kazu Hirata  <kazu@hxi.com>
13005
13006         * config/h8300/h8300.c: Fix formatting.
13007         * config/h8300/h8300.h: Likewise.
13008
13009 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13010
13011         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
13012         which may overwrite the high byte of the frame pointer.
13013
13014 2002-02-28  Bo Thorsen  <bo@suse.de>
13015
13016         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
13017         (STARTFILE_SPEC): Add 64 bit files.
13018         (ENDFILE_SPEC): Likewise.
13019
13020 2002-02-28  Jason Merrill  <jason@redhat.com>
13021
13022         * c-decl.c (finish_function): Only warn about missing return
13023         statement with -Wreturn-type.
13024
13025 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
13026
13027         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
13028
13029         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
13030         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
13031
13032 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13033
13034         * basic-block.h (BB_REACHABLE): Renumber.
13035         (BB_DIRTY, BB_NEW): New flags.
13036         (clear_bb_flags): Declare.
13037         (update_life_info_in_dirty_blocks): Declare.
13038         * cfg.c (clear_bb_flags): New function.
13039         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
13040         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
13041         reorder_insns, emit_insn_after): Mark block as dirty.
13042         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
13043         (update_life_info_in_dirty_blocks): New function.
13044         * recog.c (apply_change_group): Dirtify block.
13045
13046         * cse.c (cse_insn): Reorder emitting of jump insn to keep
13047         cfg consistent.
13048         * gcse.c (delete_null_pointer_checks): Likewise.
13049
13050         * toplev.c (dump_file_index): Move cse2 after bp,
13051         add DFI_null
13052         (dump_file_info): Similary.
13053         (rest_of_compilation): Avoid most of CFG rebuilds;
13054         do first if converision after null pointer checks, do cse2
13055         after branch prediction; avoid full liveness rebuild after
13056         initializing subregs.
13057         * invoke.texi (-d options): Document -du, renumber.
13058
13059         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
13060         (notice_new_block): Do not set BB_UPDATE_LIFE.
13061         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
13062          merge_blocks_move_successor_nojumps, merge_blocks,
13063          try_crossjump_to_edge): Likewise.
13064         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
13065         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
13066         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
13067         (merge_of_block): Do not use life_data_ok.
13068         (find_if_case_1): Do not use SET_UPDATE_LIFE.
13069         (if_convert): Use BB_DIRTY mechanizm to update life.
13070         * lcm.c (optimize_mode_switching): Update
13071         update_life_info_in_dirty_blocks
13072
13073 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
13074
13075         * Makefile.in (integrate.o): Update.
13076         * c-decl.c (copy_lang_decl): Rename.
13077         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13078         * integrate.c: Include langhooks.h.
13079         (copy_decl_for_inlining): Update to use langhook.
13080         * langhooks-def.h (lhd_do_nothing_t,
13081         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
13082         (LANG_HOOKS_INITIALIZER): Update.
13083         * langhooks.c (lhd_do_nothing_t): New.
13084         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
13085         * tree.h (copy_lang_decl): Remove.
13086 objc:
13087         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13088
13089 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
13090
13091         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
13092         POST_DEC, and POST_MODIFY.
13093
13094 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
13095
13096         * c-typeck.c (digest_init): Remove unused parameter; all
13097         callers changed.
13098
13099 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
13100
13101         * expmed.c (expand_shift): Correctly test for low part of a
13102         subreg.
13103
13104 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
13105
13106         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
13107         insn UIDs with insn addresses.
13108
13109 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
13110
13111         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
13112         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
13113         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
13114         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
13115         gcc.c, toplev.c: Delete code implementing -traditional mode.
13116
13117         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
13118         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
13119         Document removal of -traditional mode for compilation, and
13120         remove documentation only relevant to that mode.
13121
13122         * config/nextstep.h, config/ptx4.h, config/svr4.h,
13123         config/convex/convex.h, config/d30v/d30v.h,
13124         config/i386/dgux.h, config/i386/osf1elf.h,
13125         config/i386/osfelf.h, config/i386/osfrose.h,
13126         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
13127         config/m68k/hp310.h, config/m88k/dgux.h,
13128         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
13129         config/m88k/m88k.h, config/m88k/openbsd.h,
13130         config/mips/abi64.h, config/mips/osfrose.h,
13131         config/mips/svr4-5.h, config/mips/svr4-t.h,
13132         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13133         config/stormy16/stormy16.h: Remove all references to
13134         -traditional from target specs.  Delete all mention of the
13135         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
13136         delete a couple of commented-out definitions of
13137         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
13138         to -traditional.
13139
13140         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
13141         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
13142
13143 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
13144
13145         * mklibgcc.in: Don't use \n in a line subject to
13146         interpretation by echo.
13147
13148 2002-02-27  Graham Stott  <grahams@redhat.com>
13149
13150         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
13151         Constify NAME.
13152
13153         * loop.c (prescan_loop): Handle PARALLEL.
13154
13155         * unroll.c (loop_iterations): Return 0 if the add_val for
13156         a BIV is REG.
13157
13158         * final.c (output_operand_lossage): Constify PFX_STR.
13159
13160         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
13161
13162 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13163
13164         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
13165         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
13166
13167 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
13168
13169         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13170
13171 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
13172
13173         * cpplex.c (_cpp_lex_token): Handle directives in macro
13174         arguments.
13175         * cpplib.c (_cpp_handle_directive): Save and restore state
13176         if parsing macro args when entering a directive.
13177         * cppmacro.c (collect_args): No need to handle directives
13178         in macro arguments.
13179         (enter_macro_context, replace_args): Use the original macro
13180         definition in case it was redefined whilst collecting arguments.
13181 doc:
13182         * cpp.texi: Update.
13183
13184 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
13185
13186         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13187         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13188         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13189         method on AIX.
13190         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13191         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13192         (load_toc_v4_PIC_2): Same.
13193
13194 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
13195
13196         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13197
13198 2002-02-26  Richard Henderson  <rth@redhat.com>
13199
13200         * config/alpha/alpha.md (ashldi_se): Re-enable.
13201
13202 2002-02-26  Richard Henderson  <rth@redhat.com>
13203
13204         * config/alpha/alpha.c (alpha_encode_section_info): Examine
13205         MODULE_LOCAL_P; improve commentary.
13206
13207 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
13208
13209         * doc/cpp.texi: Clarify documentation of relationship between
13210         #line and #include.
13211
13212 2002-02-26  Kazu Hirata  <kazu@hxi.com>
13213
13214         * config/h8300/h8300-protos.h: Update the prototype for
13215         compute_logical_op_length.  Add the prototype for
13216         compute_logical_op_cc.
13217         * config/h8300/h8300.c (compute_logical_op_length): Figure out
13218         code from operands.
13219         (compute_logical_op_cc): New.
13220         * config/h8300/h8300.md: Combine all the logical op patterns
13221         in HImode and SImode.  Use compute_logical_op_cc.
13222
13223 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
13224
13225         * config/i386/i386.c (print_operand): Don't append ATT-style
13226         length suffixs to x87 opcodes when in Intel mode.
13227
13228 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
13229
13230         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13231         (init_emit_once): Update calls.
13232         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13233         (init_syntax_once): Prototype.
13234
13235 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13236
13237         * pa-linux.h (LIB_SPEC): Update definition.
13238         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13239
13240 2002-02-26  Richard Henderson  <rth@redhat.com>
13241
13242         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13243         if we emitted a stop bit.
13244
13245 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
13246
13247         * configure.in (libgcc_visibility): Substitute.
13248         * configure: Rebuilt.
13249         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13250         defined symbols .hidden.
13251
13252 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
13253
13254         * attribs.c (c_common_attribute_table): Add visibility.
13255         (handle_visibility_attribute): New function.
13256         * varasm.c (assemble_visibility): New function.
13257         * output.h (assemble_visibility): Add prototype.
13258         * tree.h (MODULE_LOCAL_P): Define.
13259         * crtstuff.c (__dso_handle): Use visibility attribute.
13260         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13261         for MODULE_LOCAL_P symbols too.
13262         * config/ia64/ia64.c (ia64_encode_section_info): Handle
13263         MODULE_LOCAL_P symbols the same way as local symbols.
13264         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13265         into .sdata/.sbss by the user.
13266         * doc/extend.texi (Function Attributes): Document visibility
13267         attribute.
13268
13269 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
13270
13271         PR debug/5770
13272         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13273         STRING_CST initializer spanning the whole variable without
13274         embedded zeros.
13275         If expand_expr returned MEM, don't use it.
13276
13277 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
13278
13279         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13280         generate a die for the lexical block.
13281
13282 2002-02-26  Kazu Hirata  <kazu@hxi.com>
13283
13284         * config/h8300/h8300-protos.h: Add a prototype for
13285         compute_logical_op_length.
13286         * config/h8300/h8300.c (compute_logical_op_length): New.
13287         * config/h8300/h8300.md (anonymous logical patterns): Use
13288         compute_logical_op_length for length.
13289
13290 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
13291
13292         * dwarf2out.c (modified_type_die): Do not call type_main_variant
13293         for vectors.
13294         (gen_type_die): Same.
13295
13296         * attribs.c (handle_vector_size_attribute): Set debug information.
13297
13298 2002-02-26  Daniel Egger  <degger@fhm.edu>
13299
13300         * config/rs6000/rs6000.md: Swap define_insn attributes to
13301         fix incorrect generation of merge high instructions instead
13302         of merge low.
13303
13304 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
13305
13306         * c-typeck.c (really_start_incremental_init): Use
13307         bitsize_zero_node for vectors.
13308
13309 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
13310
13311         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13312         ("*set_vrsave_internal"): Same.
13313
13314 2002-02-25  Richard Henderson  <rth@redhat.com>
13315
13316         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13317         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
13318
13319 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
13320
13321         PR target/5755
13322         * config/i386/i386.c (ix86_return_pops_args): Only pop
13323         fake structure return argument if it was passed on the stack.
13324
13325 2002-02-25  Jason Merrill  <jason@redhat.com>
13326
13327         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13328         RESULT_DECL.
13329
13330 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
13331
13332         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13333         link with shared_name only.
13334         * doc/invoke.texi (Link Options): Document new behavior.
13335
13336 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
13337
13338         * c-typeck.c (push_init_level): Handle vectors.
13339
13340 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
13341
13342         * config/sparc/sparc.c (const64_high_operand): Zero-extend
13343         operands of SPARC_SETHI_P.
13344         (input_operand): Likewise.
13345         (sparc_emit_set_const32): Likewise.
13346         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13347         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13348         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
13349         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13350         (movdi_insn_sp64_vis): Likewise.
13351         (movdi split, movdf split): Use SETHI32.
13352         * doc/md.texi: Document SPARC constraints L, M and N.
13353
13354 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
13355
13356         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13357         ("*set_vrsave_internal"): use mfspr for Darwin.
13358
13359         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13360         gen_get_vrsave_internal.
13361
13362 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13363
13364         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13365
13366 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13367
13368         * cpplex.c (cpp_interpret_charconst): Get signedness or
13369         otherwise of wide character constants correct.
13370         * cppexp.c (lex): Get signedness of wide charconsts correct.
13371
13372 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13373
13374         * optabs.c (widen_operand): Only call convert_modes for
13375         promoted SUBREG if signedness matches.
13376         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13377
13378 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13379
13380         * cpplib.c (glue_header_name): Use local buffer to build up
13381         header name.
13382
13383 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13384
13385         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13386
13387 2002-02-23  Kazu Hirata  <kazu@hxi.com>
13388
13389         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13390         H8/300[HS] separately.
13391         * config/h8300/h8300.md: Remove the early clobber constraint
13392         from bit field patterns.
13393
13394 2002-02-23  Kazu Hirata  <kazu@hxi.com>
13395
13396         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13397         register_operand.
13398         (mulhisi3): Likewise.
13399         (umulqisi3): Likewise.
13400         (umulhisi3): Likewise.
13401
13402 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
13403
13404         * cppinit.c (output_deps): Correct test for stdout output.
13405         (init_dependency_output): Cure warning.
13406
13407 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13408
13409         * expr.c (store_expr): When converting expression to promoted
13410         equivalent type, allow using SUBREG_REG of TARGET as the target
13411         of the expansion of EXP.
13412         * loop.c (basic_induction_var, case SUBREG): Always look inside.
13413         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13414         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13415         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13416         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13417
13418 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
13419
13420         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13421         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13422         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13423
13424 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
13425
13426         PR optimization/5747
13427         * loop.c (scan_loop): Update reg info if move_movables created new
13428         pseudos.
13429
13430 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
13431
13432         * gcc.c (init_gcc_spec): Revert last change.
13433
13434 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
13435
13436         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13437         gpc_reg_operand constraint.
13438
13439 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
13440
13441         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13442         Simplify comparison of `low'.
13443         (add_operand): Fix formatting.
13444         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
13445         (mask_operand): Disallow mask to wrap in 64-bit mode.
13446         (rs6000_stack_info): Remove redundant test setting push_p.
13447         (output_toc): Fix formatting.
13448         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13449         cc_reg_not_cr0_operand constraint.
13450         (booldi3, boolcdi3 splitters): Same.
13451
13452 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
13453
13454         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
13455
13456 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
13457
13458         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13459         gcc invoked with -shared-libgcc.
13460
13461 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
13462
13463         PR c++/5748
13464         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13465         decl if any of elements was TREE_USED.
13466
13467 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
13468
13469         * config/sparc/sol2.h: Don't include sys/mman.h.
13470         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13471         (arith_4096_operand): Don't throw high bits away.
13472         (const64_operand): Take sign extension of CONST_INTs into account.
13473         (const64_high_operand, sparc_emit_set_const32): Likewise.
13474         (GEN_HIGHINT64): Likewise.
13475         (sparc_emit_set_const64_quick1): Likewise.
13476         (const64_is_2insns): Likewise.
13477         (print_operand): Use trunc_int_for_mode for sign extension.
13478         * config/sparc/sparc.h (SMALL_INT32): Likewise.
13479         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13480         chars.  Assume CONST_INT is already properly sign-extended.
13481         (movdi split): Sign-extend each SImode part.
13482         (andsi3 split): Don't mask high bits off, so that result
13483         remains properly sign-extend.
13484         (iorsi3 split): Likewise.
13485         (xorsi3 split): Likewise.
13486
13487 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
13488
13489         * fold-const.c (fold): Fix typo in comments.
13490
13491 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
13492
13493         * Makefile.in (langhooks.o): Update dependencies.
13494
13495 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
13496
13497         * langhooks.c: Include flags.h.
13498
13499 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
13500
13501         * testsuite/gcc.dg/attr-alwaysinline.c: New.
13502
13503         * c-common.c (c_common_post_options): Set inline trees by
13504         default.
13505
13506         * doc/extend.texi (Function Attributes): Document always_inline
13507         attribute.
13508         Update documentation about inlining when not optimizing.
13509
13510         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13511
13512         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13513         unless DECL_ALWAYS_INLINE.
13514
13515         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13516         unless DECL_ALWAYS_INLINE.
13517         (c_disregard_inline_limits): Disregard if always_inline set.
13518
13519         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13520         Disregard if always_inline set.
13521         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13522         unless DECL_ALWAYS_INLINE.
13523
13524         * attribs.c (handle_always_inline_attribute): New.
13525         (c_common_attribute_table): Add always_inline.
13526
13527         * config/rs6000/altivec.h: Add prototypes for builtins
13528         requiring the always_inline attribute.
13529
13530 2002-02-21  Eric Christopher  <echristo@redhat.com>
13531
13532         * expmed.c (store_bit_field): Try to simplify the subreg
13533         before generating a new one when when the mode size of
13534         value is less than maxmode.
13535
13536 2002-02-21  Richard Henderson  <rth@redhat.com>
13537
13538         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13539         than gen_rtx_PLUS to form the sum.
13540         * explow.c (force_reg): Rearrange to not allocate new pseudo
13541         when force_operand returns a register.
13542         * expr.c (expand_assignment): Allow offset_rtx expansion to
13543         return a sum.  Do not force addresses into registers.
13544         (expand_expr): Likewise.
13545         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13546         to canonicalize arithmetic that didn't simpify.
13547         (simplify_plus_minus): New argument force; update
13548         all callers.  Don't split CONST unless we can do something with it,
13549         and wouldn't lose the constness of the operands.
13550
13551         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13552         that we generated earlier.
13553
13554 2002-02-21  Tom Tromey  <tromey@redhat.com>
13555
13556         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13557         (output_line_info): Use constant `1', with a long explanatory
13558         comment.
13559         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13560
13561 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
13562
13563         * jump.c (redirect_jump): If old label has no UID, don't try to
13564         delete it.
13565
13566 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
13567
13568         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13569         If input is constant, do shifts at compile time.
13570
13571 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
13572
13573         * doc/extend.texi: Fix some more overfull hboxes.
13574
13575 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
13576
13577         PR optimization/4994
13578         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13579         register moves.
13580
13581 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
13582
13583         PR c++/4574
13584         * expr.h (expand_and): Add mode argument.
13585         * expmed.c (expand_and): Add mode argument.
13586         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13587         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13588         * except.c (expand_builtin_extract_return_addr): Likewise.
13589         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13590         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13591         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13592         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13593         * config/c4x/c4x.md: Use GEN_INT (x) instead of
13594         gen_rtx (CONST_INT, VOIDmode, x).
13595
13596 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
13597
13598         PR c/4697:
13599         * stmt.c (warn_if_unused_value): Move side effects test once more.
13600
13601 2002-02-20  Torbjorn Granlund  <tege@swox.com>
13602
13603         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
13604         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
13605
13606 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
13607
13608         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13609         SUBREG or ZERO_EXTEND.
13610
13611 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
13612
13613         * sh.h (current_function_anonymous_args): Remove.
13614         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13615         of current_function_varargs and current_function_stdarg is set.
13616         * sh.c (sh_expand_prologue): Check current_function_varargs /
13617         current_function_stdarg / TARGET_SH5 instead of
13618         current_function_anonymous_args.
13619
13620         * sh64.h (TARGET_VERSION): Define.
13621
13622 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
13623
13624         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13625         VRSAVE_REGNO on TARGET_ALTIVEC.
13626
13627 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
13628
13629         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13630         bits of SImode const_int.
13631         (includes_rshift_p): Likewise.
13632         (print_operand): Call mask_operand and mask64_operand with correct
13633         mode.
13634         (rs6000_output_function_epilogue): Pad traceback table to word.
13635         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13636         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13637         mask64_operand with correct mode.
13638         (FUNCTION_ARG_REGNO_P): Correct parentheses.
13639
13640 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
13641
13642         PR debug/4461
13643         * varasm.c (get_pool_constant_mark): New.
13644         * rtl.h (get_pool_constant_mark): Add prototype.
13645         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13646         be represented if it has not been output.
13647
13648 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
13649
13650         * combine.c (do_SUBST): Sanity check substitutions of
13651         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13652         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13653         CONST_INT into its operand.
13654         (known_cond): Likewise, for ZERO_EXTEND.
13655         * simplify-rtx.c (simplify_unary_operation): Fix condition to
13656         allow for simplification of wide modes.  Reject CONST_INTs in
13657         ZERO_EXTEND when their actual mode is not given.
13658
13659 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
13660
13661         * c-decl.c (pushdecl): If no global declaration is found for an
13662         extern declaration in block scope, try a limbo one.
13663
13664 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
13665
13666         PR c++/4401
13667         * c-common.c (pointer_int_sum): Moved from...
13668         * c-typeck.c (pointer_int_sum): ...here.
13669         * c-common.h (pointer_int_sum): Add prototype.
13670
13671 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
13672
13673         PR c++/5713
13674         * c-decl.c (duplicate_decls): Return 0 if issued error about
13675         redeclaration.
13676
13677 2002-02-20  Roger Sayle  <roger@eyesopen.com>
13678             Jakub Jelinek  <jakub@redhat.com>
13679
13680         PR c/4389
13681         * tree.c (host_integerp): Ensure that the constant integer is
13682         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13683         when pos is zero or non-zero respectively.  Clarify comment.
13684         * c-format.c (check_format_info_recurse): Fix host_integerp
13685         usage; the pos argument should be zero when assigning to a
13686         signed HOST_WIDE_INT.
13687
13688 2002-02-20  Richard Henderson  <rth@redhat.com>
13689
13690         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13691         of the operand, rather than assuming TImode.
13692         (ix86_expand_binop_builtin): Cope with commutative patterns
13693         using nonimmediate_operand for both operands.
13694         (ix86_expand_timode_binop_builtin): Likewise.
13695         (ix86_expand_store_builtin): Validate operand 1.
13696         (ix86_expand_unop1_builtin): Likewise.
13697
13698 2002-02-20  Philip Blundell  <philb@gnu.org>
13699
13700         PR 5705
13701         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13702
13703 2002-02-20  Richard Henderson  <rth@redhat.com>
13704
13705         PR c/5615
13706         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13707
13708 2002-02-20  Tom Tromey  <tromey@redhat.com>
13709
13710         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13711         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13712         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13713         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13714         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13715         unconditionally.
13716
13717 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13718
13719         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13720           for (const_int 0) in X not just INTVAL.
13721
13722 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
13723
13724         * doc/extend.texi: Avoid or reduce overfull hboxes.
13725
13726 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
13727
13728         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13729         operations if the field does not start at a mode boundary.
13730
13731 2001-02-20      Joel Sherrill <joel@OARcorp.com>
13732
13733         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13734         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13735         Also done for -Acpu and -Amachine.
13736
13737 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
13738
13739         * cppinit.c (init_dependency_output): Take deps output file
13740         from -o if none given with -MF.  Suppress normal output.
13741         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
13742         * doc/cpp.texi, doc/invoke.texi: Update.
13743
13744 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
13745
13746         * toplev.c (output_quoted_string): Write unprintable
13747         characters with octal escapes.
13748
13749 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
13750
13751         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
13752         really_call_used[VRSAVE_REGNO] if not Altivec.
13753
13754 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
13755
13756         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
13757         MODE_MASK.
13758         (constant_pool_expr_1): Fix formatting.
13759         (rs6000_legitimize_reload_address): Likewise.
13760
13761 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13762
13763         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
13764         now that we have one.
13765
13766 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
13767
13768         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
13769         end of first block of bitfields (which was only seven bits);
13770         rename dummy to unused_1; remove comment which is no longer true.
13771
13772 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
13773
13774         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
13775
13776 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
13777
13778         PR 5399
13779         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
13780         if generating PIC.
13781
13782         PR 5054
13783         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
13784         arm_is_longcall_p rather than inspecting call-type cookie
13785         directly.
13786         (call_value_insn) [TARGET_THUMB]: Likewise.
13787
13788 2002-02-19  Graham Stott  <grahams@redhat.com>
13789
13790         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
13791
13792 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
13793
13794         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
13795         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
13796         (FP_SAVE_INLINE): Delete.
13797
13798         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
13799         * config/rs6000/eabi.asm: Remove ABI save restore routines.
13800         * config/rs6000/t-ppccomm: Build crtsavres.o.
13801         * config/rs6000/crtsavres.asm: New file.
13802
13803 2002-02-19  Philip Blundell  <philb@gnu.org>
13804
13805         * config/arm/arm.c (use_return_insn): Don't reject interrupt
13806         functions.
13807         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
13808         (output_return_instruction): Allow interrupt functions to return with
13809         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
13810         (arm_expand_prologue): Subtract 4 before stacking LR in an
13811         interrupt function.
13812
13813 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
13814
13815         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
13816         decl, not just FUNCTION_DECL.
13817         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
13818         (arm_assemble_integer): Likewise.
13819         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
13820         marked local.
13821
13822 2002-02-19  matthew green  <mrg@eterna.com.au>
13823
13824         * config.gcc (sparc-*-netbsdelf*): Enable target.
13825         (sparc64-*-netbsd*): New target.
13826         * config/sparc/netbsd-elf.h: New file.
13827         * config/sparc/t-netbsd64: New file.
13828
13829 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
13830
13831         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
13832
13833 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
13834
13835         * doc/invoke.texi: explicitly list the style guidelines that
13836         -Weffc++ checks for.
13837
13838 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
13839
13840         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
13841
13842 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13843
13844         PR other/5718
13845         * gcc.c (cpp_unique_options): Treat -o as indicating object file
13846         only if not -E.  If -E, pass -o through to the preprocessor.
13847
13848 2002-02-19  Kazu Hirata  <kazu@hxi.com>
13849
13850         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
13851         register number with an appropriate macro.
13852
13853 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
13854
13855         * doc/rtl.texi (Constants): Close @code tag.
13856
13857 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
13858
13859         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
13860         ("mmx_uavgv4hi3"): Same.
13861         ("pmulhrwv4hi3"): Same.
13862
13863         * tree-inline.c (walk_tree): Handle vectors.
13864
13865         * c-common.c (constant_expression_warning): Handle vectors.
13866         (overflow_warning): Same.
13867
13868         * sched-deps.c (sched_analyze_2): Handle vectors.
13869
13870         * rtlanal.c (rtx_unstable_p): Handle vectors.
13871         (rtx_varies_p): Same.
13872         (count_occurrences): Same.
13873         (regs_set_between_p): Same.
13874         (modified_between_p): Same.
13875         (modified_in_p): Same.
13876         (volatile_insn_p): Same.
13877         (volatile_refs_p): Same.
13878         (side_effects_p): Same.
13879         (may_trap_p): Same.
13880         (inequality_comparisons_p): Same.
13881         (replace_regs): Same.
13882         (computed_jump_p_1): Same.
13883
13884         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
13885         argument.
13886         (inner_mode_array): New.
13887         (copy_rtx): Handle vectors.
13888         (copy_most_rtx): Same.
13889         (rtx_equal_p): Same.
13890         (get_mode_alignment): Adjust for vectors.
13891
13892         * resource.c (mark_referenced_resources): Handle vectors.
13893         (mark_set_resources): Same.
13894
13895         * reload1.c (eliminate_regs): Handle vectors.
13896         (elimination_effects): Same.
13897         (scan_paradoxical_subregs): Same.
13898
13899         * reload.c (subst_reg_equivs): Handle vectors.
13900
13901         * regrename.c (scan_rtx): Handle vectors.
13902
13903         * regclass.c (reg_scan_mark_refs): Handle vectors.
13904
13905         * recog.c (find_single_use_1): Handle vectors.
13906
13907         * local-alloc.c (equiv_init_varies_p): Handle vectors.
13908         (contains_replace_regs): Same.
13909         (memref_referenced_p): Same.
13910
13911         * integrate.c (copy_rtx_and_substitute): Handle vectors.
13912         (subst_constants): Same.
13913
13914         * genattrtab.c (attr_copy_rtx): Handle vectors.
13915         (encode_units_mask): Same.
13916         (clear_struct_flag): Same.
13917         (count_sub_rtxs): Same.
13918
13919         * gcse.c (want_to_gcse_p): Handle vectors.
13920         (oprs_unchanged_p): Same.
13921         (hash_expr_1): Same.
13922         (oprs_not_set_p): Same.
13923         (expr_killed_p): Same.
13924         (compute_transp): Same.
13925         (store_ops_ok): Same.
13926
13927         * function.c (purge_addressof_1): Do not allow paradoxical subregs
13928         of vectors.
13929         (fixup_var_refs_1): Same.
13930         (instantiate_virtual_regs_1): Same.
13931
13932         * fold-const.c (operand_equal_p): Handle vectors.
13933         (fold): Same.
13934         (rtl_expr_nonnegative_p): Same.
13935
13936         * flow.c (mark_used_regs): Handle vectors.
13937
13938         * df.c (df_uses_record): Handle vectors.
13939
13940         * cselib.c (cselib_subst_to_values): Handle vectors.
13941         (cselib_mem_conflict_p): Same.
13942         (hash_rtx): Same.
13943
13944         * cse.c (canon_reg): Handle vectors.
13945         (fold_rt): Same.
13946         (cse_process_notes): Same.
13947         (count_reg_usage): Same.
13948         (canon_hash): Same.
13949
13950         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
13951
13952         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
13953
13954         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
13955         (gen_rtx): Handle CONST_VECTOR.
13956         (gen_const_vector_0): New.
13957         (copy_rtx_if_shared): CONST_VECTORs can be shared.
13958         (reset_used_flags): Same.
13959         (copy_insn_1): Same.
13960         (initializer_constant_valid_p): Handle VECTOR_CST.
13961
13962         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
13963
13964         * doc/rtl.texi (Constants): Document const_vector.
13965         (CONST0_RTX): Update for vectors.
13966         (RTL sharing): Same.
13967
13968         * print-tree.c (print_node): Add case for VECTOR_CST.
13969
13970         * tree.h (TREE_VECTOR_CST_ELTS): New.
13971         (struct tree_vector): New.
13972         (union tree_node): Add vector node.
13973         (build_vector): Add prototype.
13974
13975         * tree.def (VECTOR_CST): New.
13976
13977         * tree.c (build_vector): New.
13978
13979         * expmed.c (make_tree): Handle CONST_VECTOR.
13980
13981         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
13982         (CONST_VECTOR_ELT): New.
13983         (CONST_VECTOR_NUNITS): New.
13984
13985         * machmode.h (GET_MODE_INNER): New.
13986         (DEF_MACHMODE): Accept 8th arg.
13987
13988         * machmode.def: Add 8th argument for vector inner mode.
13989         Add inner vector modes for vectors.
13990
13991         * rtl.def (VEC_CONST): Remove.
13992         (CONST_VECTOR): New.
13993
13994         * expr.c (clear_storage): Allow vectors.
13995         (is_zeros_p): Handle VECTOR_CST.
13996
13997         * varasm.c (output_constant_pool): Handle vectors.
13998         (rtx_const): Add veclo and vechi fields.
13999         (kind): Add RTX_VECTOR.
14000         (decode_rtx_const): Add case for vector.
14001
14002         * config/rs6000/rs6000-protos.h: Add zero_constant.
14003
14004         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
14005         constants.  Force easy vector constants into memory.
14006         (easy_vector_constant): New.
14007         (emit_easy_vector_constant): New.
14008         (rs6000_legitimize_reload_address): Do not generate bad reloads on
14009         darwin.
14010
14011         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
14012         instruction does.
14013         ("altivec_lvxl"): Same.
14014         (altivec_lvebx): Same.
14015         (altivec_lvehx): Same.
14016         (altivec_lvewx): Same.
14017         ("*movv4si_const0"): New.
14018         ("*movv4sf_const0"): New.
14019         ("*movv8hi_const0"): New.
14020         ("*movv16qi_const0"): New.
14021
14022 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14023
14024         * config/h8300/h8300.c (notice_update_cc): Use
14025         cc_status.value2.
14026
14027 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14028
14029         * config/h8300/h8300.md (divmod patterns): Change the
14030         constraints for operands[1] to register_operand.
14031
14032 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14033
14034         * config/h8300/h8300-protos.h: Remove the prototype for
14035         p_operand.
14036         * config/h8300/h8300.c (p_operand): Remove.
14037         * config/h8300/h8300.md: Replace p_operand with
14038         const_int_operand.
14039
14040 2002-02-18 Philip Blundell <pb@nexus.co.uk>
14041
14042         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
14043         comment.
14044         (output_return_instruction): Allow use of LDR to unstack
14045         return addresss even for interrupt handlers or when
14046         interworking.  If compiling for ARMv5, use interworking-safe
14047         return instructions by default.  Remove duplicated code and
14048         lengthy "strcat" sequences.
14049
14050 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14051
14052         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
14053         (LINK_EH_SPEC): Define.
14054         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
14055
14056 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
14057
14058         * config/s390/s390.c (s390_emit_prologue): Do not set the
14059         frame_related flag for call-clobbered registers.
14060
14061 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
14062
14063         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
14064         (construct_container): Fix handling of SSE operands.
14065         (ix86_expand_builtin): Fix handling of 64bit pointers.
14066         (mmx_maskmovq_rex): New pattern.
14067
14068 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
14069
14070         * regrename.c (kill_set_value): Handle subregs properly.
14071
14072 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
14073
14074         * objc/objc-act.c (handle_impent): Remove leading '*'
14075         from objc_class_name.
14076
14077 2002-02-17  Richard Henderson  <rth@redhat.com>
14078
14079         * config/alpha/alpha.c (some_small_symbolic_operand,
14080         some_small_symbolic_operand_1, split_small_symbolic_operand,
14081         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
14082         Handle small SYMBOL_REFs anywhere, not just inside memories.
14083         * config/alpha/alpha-protos.h: Update.
14084         * config/alpha/alpha.h (PREDICATE_CODES): Update.
14085         * config/alpha/alpha.md (small symbolic operand splitter): Update.
14086
14087 2002-02-17  Roland McGrath  <roland@frob.com>
14088
14089         * config.gcc (powerpc-*-gnu-gnualtivec*,
14090         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
14091         * config/rs6000/gnu.h: New file.
14092         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
14093         Grok "gnu" in rs6000_abi_name.
14094         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
14095         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
14096         Grok -mcall-gnu analogous to -mcall-linux et al.
14097         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14098         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
14099         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
14100
14101 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
14102
14103         PR c/3444:
14104         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
14105         shortening.
14106
14107 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14108
14109         * config/cris/cris.h: Undefine STARTFILE_SPEC and
14110         ENDFILE_SPEC before (re)defining them.
14111
14112 2002-02-17  Kazu Hirata  <kazu@hxi.com>
14113
14114         * config/h8300/h8300.c: Fix formatting.
14115         * config/h8300/h8300.h: Likewise.
14116
14117 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14118
14119         * doc/tm.texi: Explain why empty strings should not be
14120         marked for translation.
14121
14122 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14123
14124         * final.c (output_operand_lossage): Changed to accept
14125         printf style arguments. Change calls where necessary.
14126         * output.h (output_operand_lossage): Change declaration
14127         accordingly. Update copyright.
14128         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
14129         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
14130         Update copyright date where necessary.
14131
14132         * config/i386/i386.c (print_operand): Likewise. Remove use of
14133         sprintf.
14134
14135         * config/cris/cris.c (cris_operand_lossage): Likewise.
14136         Rename parameter so that exgettext recognizes it as
14137         translatable message.
14138         (LOSE_AND_RETURN): Rename parameter to msgid.
14139
14140 2002-02-17  Kazu Hirata  <kazu@hxi.com>
14141
14142         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
14143         hard coded register number with an appropriate macro.
14144         (HARD_REGNO_MODE_OK): Likewise.
14145         (ARG_POINTER_REGNUM): Likewise.
14146         (STATIC_CHAIN_REGNUM): Likewise.
14147         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
14148         * config/h8300/h8300.md (define_constants): Define more
14149         register numbers.
14150
14151 2002-02-17  Philipp Thomas  <pthomas@suse.de>
14152
14153         * config/i386/i386.h: Don't mark empty strings for translation.
14154
14155 2002-02-16  H.J. Lu <hjl@gnu.org>
14156
14157         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
14158
14159 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
14160
14161         * cppinit.c (merge_include_chains): Check for brack being
14162         NULL before attempting to merge it with qtail.
14163
14164 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
14165
14166         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
14167         DBX_DEBUG.
14168
14169 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14170
14171         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
14172
14173 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14174
14175         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
14176         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
14177         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
14178
14179 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14180
14181         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
14182         now only if !TARGET_FIX.
14183         (*movsi_nt_vms_fix): New pattern.
14184
14185 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
14186
14187         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14188         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14189         (alpha_sa_mask, alpha_sa_size): Reflect above change.
14190         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14191         (alpha_start_function, alpha_expand_epilogue): Likewise.
14192         (unicosmk_gen_dsib): Likewise.
14193
14194 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14195
14196         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14197
14198 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
14199
14200         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
14201         check_and_change_labels, s390_final_chunkify): Delete.
14202         (s390_split_branches, s390_chunkify_pool): New functions.
14203         (s390_function_prologue): Call them.
14204
14205         * config/s390/s390.h (S390_REL_MAX): Delete.
14206         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14207
14208         * config/s390/s390.md (cjump, icjump, jump): Fix length
14209         attribute calculation.
14210
14211
14212 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
14213
14214         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14215         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14216
14217 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14218
14219         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14220         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14221         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14222
14223 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
14224
14225         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14226
14227 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
14228
14229         * reload.c (find_dummy_reload): Check that an output register
14230         is valid for its mode.
14231
14232 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
14233
14234         * combine.c (known_cond): After replacing the REG of a SUBREG, try
14235         to simplify it.
14236
14237         * function.c (assign_parms): Demote promoted argument passed by
14238         transparent reference.
14239
14240 2001-02-14      Joel Sherrill <joel@OARcorp.com>
14241
14242         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14243         -Acpu() and -Amachine() to eliminate warnings.
14244
14245 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
14246
14247         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14248
14249 2002-02-14  Kazu Hirata  <kazu@hxi.com>
14250
14251         * config/h8300/h8300-protos.h: Update the prototype for
14252         const_costs.
14253         * config/h8300/h8300.c (const_costs): Treat SET as a little
14254         more expensive operation.
14255         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14256         reference to const_costs.
14257
14258 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
14259
14260         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14261
14262 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
14263
14264         PR c/5503:
14265         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14266         use arguments from newtype.
14267
14268 2002-02-13  Eric Christopher  <echristo@redhat.com>
14269
14270         * config/mips/mips.c (override_options): Add check for march/mipsX
14271         on the same command line. Fix error message in cpu processing.
14272         Remove architecture and ISA checks.
14273
14274 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
14275
14276         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
14277
14278         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
14279
14280 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
14281
14282         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14283         alternatives.
14284         ("*movv8hi_internal1"): Same.
14285         ("*movv16qi_internal1"): Same.
14286         ("*movv4sf_internal1"): Same.
14287
14288         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14289         not push_reload for altivec modes.
14290
14291 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
14292
14293         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14294         all RTEMS targets including removal of #includes from config/*/rtems*.h
14295         file and adding them to tm_file setting. Added xm_defines=POSIX to
14296         many targets.
14297         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14298         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14299         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14300         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14301         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14302         config/m68k/rtemself.h: Ditto.
14303         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14304         config/mips/rtems64.h: Ditto.
14305         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14306         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14307         Ditto.
14308         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14309         config/sparc/rtemself.h: Ditto.
14310         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14311         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14312         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14313         more like arm-elf.
14314         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14315         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14316         target made more similar to i386-elf.
14317         * config/i386/t-rtems-i386: Added soft float support and multilibs.
14318         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14319         be similar to config/m68k/t-m68kelf.
14320         * gthr-rtems.h: Encapsulate with extern "C" for C++.
14321
14322 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
14323
14324         * regmove.c (kill_value): Handle subregs.
14325
14326 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
14327
14328         * i386.md (mul patterns): Allow memory operand to be first;
14329         add expanders where needed; fix constraints.
14330         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14331         Allow memory operand to be the first.
14332
14333         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14334         operands.
14335
14336 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
14337
14338         PR c/5681:
14339         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14340         GET_MODE (x).
14341
14342 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
14343
14344         PR optimization/5547:
14345         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14346         all valid IA-32 address modes involving non-scaled %ebx and
14347         GOT/GOTOFF as displacement.
14348
14349 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
14350
14351         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14352         after emitting ltorg insns.
14353
14354         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14355         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14356         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14357         *abssf2): Fix "op_type" attribute.
14358
14359 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
14360
14361         * mkconfig.sh: Avoid using a subshell redirect.
14362         ($output.T): Change to $(output)T.
14363         (ENABLE_NLS): Remove unneeded undef.
14364
14365         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14366         * config/alpha/x-vms (libsubdir): Define.
14367
14368         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14369         register frame procedures. Optimize retrieving context.
14370
14371         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14372         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14373         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14374
14375 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14376
14377         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14378         Make same change as for find_base_value.
14379
14380 2002-02-13  Kazu Hirata  <kazu@hxi.com>
14381
14382         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14383         of QImode and SImode.
14384
14385 2002-02-13  Kazu Hirata  <kazu@hxi.com>
14386
14387         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14388         length computation of movsi.
14389         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14390
14391 2002-02-13  Kazu Hirata  <kazu@hxi.com>
14392
14393         * config/h8300/h8300.md (subqi3): Tighten the predicate for
14394         operands[2] to register_operand.
14395
14396 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14397
14398         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14399
14400 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
14401
14402         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14403         for altivec_lvx* and altivec_stvx*.
14404         ("*movv4si_internal"): Add constraint for loading from GPRs.
14405         ("*movv8hi_internal1"): Same.
14406         ("*movv16qi_internal1"): Same.
14407         ("*movv4sf_internal1"): Same.
14408
14409         * config/rs6000/rs6000.c (altivec_register_operand): New.
14410
14411         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14412         altivec_register_operand.
14413
14414 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
14415
14416         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14417         handle SYMBOL_REF.
14418
14419 2002-02-13  Stan Shebs  <shebs@apple.com>
14420
14421         * c-typeck.c (digest_init): Handle vectors.
14422         (really_start_incremental_init): Same.
14423         (pop_init_level): Same.
14424         (process_init_element): Same.
14425
14426         * varasm.c (output_constant): Same.
14427
14428         * expr.c (clear_storage): Same.
14429         (store_constructor): Same.
14430
14431 2002-02-12  Eric Christopher  <echristo@redhat.com>
14432
14433         * explow.c (hard_function_value): Add comment explaining
14434         signed/unsigned comparison.
14435
14436 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
14437
14438         * jump.c (never_reached_warning): Add finish argument.
14439         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14440         real insn after end.
14441         * rtl.h (never_reached_warning): Adjust prototype.
14442         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14443         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14444         never_reached_warning.
14445
14446 2002-02-12  Graham Stott  <grahams@redhat.com>
14447
14448         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14449
14450 2002-02-12  Kazu Hirata  <kazu@hxi.com>
14451
14452         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14453         logical shifts on H8/300.
14454         (shift_alg_si): Improve several shifts on H8/300.
14455         (get_shift_alg): Likewise.
14456
14457 2002-02-12  Graham Stott  <grahams@redhat.com>
14458
14459         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14460
14461 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14462
14463         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14464         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14465
14466 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
14467
14468         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14469         non-CONST_INT through default_assemble_integer.
14470         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14471         <case 8>: Abort for CONST_DOUBLE.
14472
14473 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14474
14475         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14476         is specified.
14477         * config/pa/pa-linux.h (LIB_SPEC): Delete.
14478         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14479
14480 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
14481
14482         * config/stormy16/stormy16.md (zero_extendqihi2): New.
14483
14484 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
14485
14486         * regrename.c (regrename_optimize): Don't accept a
14487         part-clobbered register if the replaced register is not part
14488         clobbered.
14489
14490         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14491         take padding into account when computing the argument value.
14492
14493         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14494
14495         * combine.c (try_combine): Apply substitutions in
14496         CALL_INSN_FUNCTION_USAGE too.
14497
14498 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
14499
14500         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14501         __builtin_altivec_abs*.
14502         (bdesc_abs): New.
14503
14504         * config/rs6000/rs6000.h (rs6000_builtins): Add
14505         ALTIVEC_BUILTIN_ABS*.
14506
14507         * config/rs6000/altivec.h: Use const char for builtins expecting
14508         literals.
14509         (vec_abs): New versions for C and C++.
14510         (vec_abss): Same.
14511
14512 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14513
14514         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14515         using Pmode.
14516
14517 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14518
14519         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14520         constant definition from h8300.md.
14521         (FRAME_POINTER_REGNUM): Likewise.
14522         * config/h8300/h8300.md (define_constants): Add FP_REG.
14523
14524 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14525
14526         * config/h8300/h8300.c (print_operand): Remove redundant code.
14527
14528 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14529
14530         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14531         * config/h8300/h8300.c (byte_reg): Make it static.
14532
14533 2002-02-10  Richard Henderson  <rth@redhat.com>
14534
14535         PR c/5623
14536         * c-typeck.c (incomplete_type_error): Handle flexible array members.
14537
14538 2002-02-10  Richard Henderson  <rth@redhat.com>
14539
14540         PR c++/5624
14541         * tree.c (append_random_chars): Don't abort if main_input_filename
14542         does not exist.
14543
14544 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
14545
14546         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14547
14548 2002-02-10  Kazu Hirata  <kazu@hxi.com>
14549
14550         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
14551         (pushhi1): Likewise.
14552
14553 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14554
14555         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14556         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14557
14558 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
14559
14560         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14561         remove MASK_VIS.
14562         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
14563
14564 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14565
14566         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14567         a half of an SImode register on H8/300.
14568
14569 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
14570
14571         * i386.md (movdi_2): Add missing '!'.
14572
14573 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14574
14575         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
14576         definitions.
14577
14578 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14579
14580         * config/h8300/h8300.md (length): Correct the distance valid
14581         for the short branch.
14582
14583 2002-02-09  Kazu Hirata  <kazu@hxi.com>
14584
14585         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14586
14587 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
14588
14589         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14590         registers in SImode.
14591         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14592         part-clobbered.
14593
14594         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14595         patch.
14596
14597         Contribute sh64-elf.
14598         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
14599         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14600         (sh_cannot_modify_jumps_p): New function.
14601         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
14602         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14603         (sh_ms_bitfield_layout_p): New function.
14604         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
14605                     Zack Weinberg  <zack@codesourcery.com>
14606         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14607         expand_simple_binop instead of expand_binop.
14608         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
14609         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14610         use of .quad and .uaquad.
14611         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14612         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14613         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14614         * config/sh/sh.md (movdi_const, movdi_const_32bit,
14615         movdi_const_16bit): Make sure all CONSTs have modes.
14616         (sym2PIC): Ditto, but by adjusting all callers.
14617         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14618         if the prologue calls the SHmedia argument decoder or register
14619         saver.
14620         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14621         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14622         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14623         (sh_expand_epilogue): Don't emit USE of return target register.
14624         (prepare_move_operands): Legitimize DImode PIC addresses.
14625         (sh_media_register_for_return): Skip tr0, used to initialize the
14626         PIC register.
14627         (sh_expand_prologue): Remove explicit USE of return register.
14628         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
14629         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
14630         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14631         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14632         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14633         EXTRA_CONSTRAINT_T.
14634         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14635         (MOVI_SHORI_BASE_OPERAND_P): New.
14636         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14637         (EXTRA_CONSTRAINT_T): Define in terms of them.
14638         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14639         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14640         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14641         alternatives supporting TARGET_REGS.
14642         (UNSPEC_GOTPLT): New constant.
14643         (movdi split): Move incrementing of LABEL_NUSES...
14644         (movdi_const, movdi_const_32bit): Here.  Use
14645         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14646         (movdi_const_16bit): New.
14647         (call, call_value) [flag_pic]: Use GOTPLT.
14648         (call_pop, call_value_pop): New expands.
14649         (call_pop_compact, call_pop_rettramp): New insns.
14650         (call_value_pop_compact, call_value_pop_rettramp): New insns.
14651         (sibcall) [flag_pic]: Use GOT.
14652         (builtint_setjmp_receiver): Remove bogus, unused expand.
14653         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14654         (*pt, *ptb, ptrel): New insns.
14655         (sym2GOT): Handle DImode GOT.
14656         (sym2GOTPLT, symGOTPLT2reg): New expands.
14657         (sym2PIC): New expand.
14658         (shcompact_return_tramp): Use GOTPLT to return trampoline.
14659         (shcompact_return_tramp_i): Use return register explicitly.
14660         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14661         disable flag_reorder_blocks.
14662         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
14663         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14664         clobbers, for clarity.
14665         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14666         restoring of r0 in macl as MAYBE_DEAD.
14667         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
14668         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14669         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14670         alter_subreg all over.
14671         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14672         reload, instead of emitting instructions that would require
14673         reloading.
14674         (casesi_load_media): Add missing modes.
14675         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
14676         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14677         as used if the argument decoder is called.
14678         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
14679         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14680         Pmode, then extend it to DImode if necessary.
14681         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
14682         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14683         constants in FPU-enabled SHmedia, let them be loaded from memory.
14684         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
14685         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14686         Adjust whitespace in assembly output templates.
14687         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
14688         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14689         mode of if_then_else.
14690         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
14691         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14692         sh.h.
14693         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
14694                     Joern Rennecke <amylaar@redhat.com>
14695         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14696         (SUBTARGET_CPP_PTR_SPEC): New.
14697         (SUBTARGET_CPP_SPEC): Remove.
14698         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
14699         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14700         Fix typo in previous checkin.
14701         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
14702         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14703         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
14704                     Alexandre Oliva  <aoliva@redhat.com>
14705         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14706         what single FP register can hold for SHmedia target.
14707         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
14708                     Alexandre Oliva  <aoliva@redhat.com>
14709         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14710         Do not split into SUBREG.
14711         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
14712         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14713         and added new functions as specified in SH5 ABI r9.
14714         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
14715         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14716         8-byte boundary.
14717         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
14718         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14719         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
14720         and consttable_window_ends.
14721         2001-06-03  Graham Stott  <grahams@redhat,com>
14722         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14723         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
14724         * config/sh/sh.c (print_operand): Handle floating-point pair,
14725         vector and matrix registers.
14726         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14727         vector modes into account.
14728         * config/sh/sh.md (movv2sf): Split move between registers into
14729         movdf.
14730         (movv4sf, movv16sf): Introduce insns that get split only after
14731         reload.
14732         * config/sh/shmedia.h: Fix Copyright dates.
14733         * config/sh/ushmedia.h: Likewise.  Move loop counter
14734         declarations into conditionals that uses them.
14735         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14736         loop boundary.
14737         * config/sh/sshmedia.h: Fix Copyright dates.
14738         (sh_media_PUTCFG): Fix constraints.
14739         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
14740         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14741         ptrmemfunc_vbit_in_delta for SH5.
14742         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
14743         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14744         * invoke.texi: Likewise.
14745         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
14746         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
14747         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
14748         GCC_pop_shmedia_regs_nofpu): New global symbols.
14749         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
14750         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
14751         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
14752         compact function with nonlocal labels.
14753         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
14754         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
14755         (initial_elimination_offset): Account for their stack space.
14756         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
14757         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
14758         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
14759         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
14760         least one of the operands to be a register.
14761         (movv2sf): Likewise.  Renamed to movv2sf_i.
14762         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
14763         prepare_move_operands() before emitting SHmedia insns.
14764         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
14765         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
14766         Don't save nor initialize r12.  Don't mis-align the stack.
14767         Pad the code with a nop.
14768         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
14769         stack.
14770         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
14771         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
14772         [__SHMEDIA__]: Implement.
14773         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
14774         * config/sh/sh.md: Set latency of `pt' closer to reality.
14775         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
14776         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
14777         Set move, load and store type attributes.
14778         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
14779         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
14780         profiling.
14781         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
14782         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
14783         * config/sh/sh.c (sh_media_register_for_return): New function.
14784         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
14785         branch-target register.
14786         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
14787         * config/sh/sh.md (return_media_i): Use any call-clobbered
14788         branch-target register.
14789         (return_media): If r18 wasn't copied in the prologue, copy it
14790         here.
14791         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
14792         Clear class FP0_REGS.
14793         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
14794         from elf.h.
14795         2001-03-08  DJ Delorie  <dj@redhat.com>
14796         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
14797         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
14798         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
14799         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
14800         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
14801         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
14802         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
14803         return value correctly for call_cookie.
14804         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
14805         * config/sh/crt1.asm (start): Modified so as to call
14806         ___setup_argv_and_call_main.
14807         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
14808         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
14809         SHmedia mode.
14810         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
14811         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
14812         (STRIP_NAME_ENCODING): Use it.
14813         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
14814         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
14815         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
14816         prepare_scc_operands().
14817         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
14818         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
14819         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
14820         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
14821         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
14822         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
14823         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
14824         used in shcompact_incoming_args.
14825         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
14826         change.
14827         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
14828         mode.
14829         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
14830         Adjust accordingly.
14831         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
14832         Simplify.  Adjust.  Add sanity check.
14833         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
14834         FPU_SINGLE_BIT.
14835         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
14836         TARGET_SHCOMPACT.
14837         (udivsi3, divsi3): Use them.
14838         (force_mode_for_call): New insn.
14839         (call, call_value, sibcall_value): Emit it before SHcompact
14840         calls.
14841         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
14842         * config/sh/sh.md (call, call_value, sibcall): Make sure the
14843         call cookie is non-NULL before taking its value.
14844         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
14845         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
14846         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
14847         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
14848         block.
14849         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
14850         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
14851         temporary for stack adjusts.  Use MACL and MACH to pass
14852         arguments to shcompact_incoming_args.
14853         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
14854         clobber r1.
14855         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
14856         (nested_trampoline): Load static chain address into r1.
14857         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
14858         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
14859         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
14860         fp_arith_reg_operand().
14861         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
14862         * config/sh/sh.md (casesi): Sign-extend the first two operands,
14863         and use signed compares for them.
14864         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
14865         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
14866         ones properly aligned.
14867         (find_barrier): Account for extra alignment needed for 8-byte wide
14868         constants.
14869         (machine_dependent_reorg): Require a label for the second 4-byte
14870         constant after an 8-byte one.
14871         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
14872         change.
14873         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
14874         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
14875         last_float when switching float modes.
14876         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
14877         auto-increment for general-purpose registers.
14878         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
14879         result.
14880         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
14881         for stack adjust.
14882         * config/sh/sh.c (sh_builtin_saveregs): Support using all
14883         registers for varargs.
14884         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
14885         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
14886         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
14887         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
14888         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
14889         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
14890         call_cookie accordingly.
14891         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
14892         (SHCOMPACT_BYREF): Likewise.
14893         (SHCOMPACT_FORCE_ON_STACK): New macro.
14894         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
14895         (sh_builtin_saveregs): Likewise.
14896         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14897         shcompact_incoming_args): Use new shift values.  Support
14898         sequences of consecutive and non-consecutive pushes/pops.
14899         * config/sh/sh.md (return): Don't explicitly use PR_REG.
14900         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
14901         * config/sh/sh.h (TEXT_SECTION): Define.
14902         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
14903         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
14904         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
14905         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
14906         return values on FPU-enabled SHmedia.
14907         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
14908         FPU-enabled SHmedia.
14909         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
14910         value is returned in a non-FP reg and is not returned by
14911         reference.
14912         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
14913         jump_ind.
14914         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
14915         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
14916         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
14917         quad-aligned to be passed by callee-copy reference.
14918         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
14919         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
14920         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
14921         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
14922         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
14923         copying low-numbered FP regs to r7 and r8.
14924         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
14925         FP regs to general-purpose regs only if the copy was passed on the
14926         stack.
14927         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
14928         copying FP reg to r9.
14929         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
14930         copy FP regs to general-purpose regs only in outgoing calls.
14931         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
14932         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
14933         HOST_WIDE_INT.
14934         * config/sh/sh.h (struct sh_args): Document all fields.
14935         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
14936         passed partially on the stack should not consider making
14937         sibcalls.
14938         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
14939         stack_regs only for incoming calls.  When passing FP args,
14940         make sure there are FP regs available before modifying
14941         call_cookie.
14942         (SHCOMPACT_BYREF): Pass double args in general-purpose
14943         registers by reference.
14944         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
14945         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
14946         attempt to generate sibcalls if the caller got any arguments
14947         by reference.
14948         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
14949         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
14950         to 8-byte boundaries.
14951         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
14952         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
14953         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
14954         stored in the stack.
14955         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
14956         for the offsets to have the ISA bit set.
14957         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
14958         invocation.  Use beq instead of bgt to mark end of sequence of
14959         loads.
14960         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
14961         bgt to mark end of sequence of stores.
14962         * config/sh/sh.c (arith_operand): Don't check whether
14963         CONST_OK_FOR_J for now.
14964         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
14965         instead of long for conversion.
14966         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
14967         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
14968         before passing it to fprintf.
14969         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
14970         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
14971         Call set_fpscr before reading/writing SR.
14972         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
14973         Call set_fpscr.
14974         * config/sh/lib1funcs.asm: Add `.align 2' directives before
14975         SHmedia code.
14976         (FMOVD_WORKS): Define on SH5 with FPU.
14977         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
14978         setting.
14979         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
14980         _fpscr_values.
14981         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
14982         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
14983         address.
14984         (ia_main_table): Ditto.
14985         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
14986         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14987         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
14988         the definitions from sh.h.
14989         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
14990         TARGET_SH5.
14991         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
14992         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
14993         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14994         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
14995         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
14996         Increment LABEL_NUSES.
14997
14998         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
14999         TARGET_SH5.
15000         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
15001         defined.
15002         * config/sh/elf.h (SIZE_TYPE): Likewise.
15003         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15004         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15005         shcompact_incoming_args): Load switch table addresses using
15006         datalabel.
15007         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15008         (NO_BUILTIN_SIZE_TYPE): Define.
15009         (SIZE_TYPE): Don't define.
15010         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15011         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
15012         definition of __SH5__=32 for -m5-compact-nofpu.
15013         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
15014         ADDR_DIFF_VEC.
15015         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
15016         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
15017         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
15018         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
15019         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
15020         (INSN_LENGTH_ALIGNMENT): Likewise.
15021         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15022         * config/sh/sh.md (call, call_value, sibcall): Simplify
15023         copying of non-branch-target register.
15024         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15025         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
15026         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
15027         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15028         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
15029         floating-point values as structs.
15030         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
15031         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
15032         general-purpose register.
15033         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
15034         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
15035         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
15036         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
15037         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
15038         (ENCODE_SECTION_INFO): Enclose variables and constants in
15039         DATALABEL unspecs.
15040         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
15041         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
15042         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
15043         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
15044         only for LABEL_REFs.  For SYMBOL_REFs, prepend
15045         SH_DATALABEL_ENCODING to the symbol name.
15046         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
15047         convert_mode().
15048         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
15049         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
15050         UNSPEC_DATALABEL.
15051         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
15052         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
15053         (DATALABEL_REF_P): Don't require CONST.
15054         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
15055         REL label.
15056         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
15057         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
15058         right.
15059         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
15060         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
15061         Use shallow_copy_rtx and PUT_MODE to change the mode of
15062         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
15063         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
15064         on SHmedia using GENERAL_REGs.
15065         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15066         bltu_media_i): Fix reversion of conditions.
15067         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
15068         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
15069         * config/sh/sh.c (output_far_jump): Save r13 in macl.
15070         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
15071         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
15072         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
15073         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
15074         (GCC_nested_trampoline): Likewise.
15075         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
15076         * config/sh/sh.c (gen_datalabel_ref): Define.
15077         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
15078         (INITIALIZE_TRAMPOLINE): Likewise.
15079         (TRAMPOLINE_ADJUST_ADDRESS): Define.
15080         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
15081         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
15082         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
15083         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
15084         (ic_invalidate): Adjust for SH5.
15085         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
15086         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
15087         _nested_trampoline.
15088         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
15089         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
15090         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
15091         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
15092         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
15093         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
15094         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
15095         * config/sh/sh.c (target_reg_operand): Match only target-branch
15096         registers and pseudos that aren't virtual registers.
15097         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15098         Copy operands that don't match target_reg_operand to pseudos.
15099         (call_media, call_value_media, sibcall_media): Use
15100         target_reg_operand instead of target_operand.
15101         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
15102         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
15103         * config/sh/sh.c (target_reg_operand): Match hardware registers
15104         other than branch-target registers.
15105         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
15106         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
15107         (fpscr_values) [SH5 == 32]: Define.
15108         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
15109         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15110         Handle function addresses coming in SUBREGs.
15111         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
15112         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15113         shcompact_return_trampoline): Use datalabel where appropriate.
15114         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
15115         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
15116         general-purpose register to copy one branch-target register to
15117         another.
15118         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
15119         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
15120         SYMBOL_REFs with VOIDmode.
15121         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15122         bltu_media_i): New insns.
15123         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
15124         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
15125         (INIT_CUMULATIVE_ARGS): Likewise.
15126         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
15127         * machmode.def (V16SFmode): New mode.
15128         * c-common.c (type_for_mode): Support V2SF and V16SF.
15129         * tree.c (build_common_tree_nodes_2): Likewise.
15130         * tree.h (tree_index): Likewise.
15131         * calls.c (emit_call_1): Take args_so_far.  Adjust all
15132         callers.  Introduce CALL_POPS_ARGS.
15133         * tm.texi (CALL_POPS_ARGS): Document.
15134         * config/sh/crt1.asm: Implement in SHmedia mode.
15135         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
15136         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
15137         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
15138         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
15139         Implement divsi and udivsi in SHmedia mode.  Introduce
15140         SHcompact trampolines.
15141         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
15142         only in SHmedia64.
15143         (regno_reg_class): Rewrite.
15144         (fp_reg_names): Remove.
15145         (sh_register_names, sh_additional_register_names): New.
15146         (print_operand): Added `u'.  Support SUBREGs in addresses.
15147         Add parentheses around shifted CONSTs.
15148         (output_file_start): Output .mode and .abi directives.
15149         (shiftcosts, addsubcosts, multcosts): Adjust.
15150         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
15151         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
15152         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
15153         bytes, not registers.  Take into account the need for the
15154         SHcompact incoming args trampoline.  Adjust all callers.
15155         (sh_expand_prologue): Take stack_regs into account.  Call
15156         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
15157         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
15158         stack aligned as per SH5 ABI.
15159         (sh_builtin_saveregs): Support SH5 ABI.
15160         (sh_build_va_list, sh_va_start): Likewise.
15161         (initial_elimination_offset): Take alignment into account.
15162         Compute location of PR according to the SH5 stack frame.
15163         (arith_reg_operand): Reject branch-target registers.
15164         (shmedia_6bit_operand): New.
15165         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
15166         (target_reg_operand): Match DImode only.  Accept SUBREGs.
15167         (target_operand): New.
15168         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
15169         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
15170         SIBCALL_REGS for SHmedia.
15171         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
15172         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
15173         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
15174         (TARGET_SWITCHES): New SH5 flags.
15175         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
15176         VALID_REGISTER_P to disable unsupported registers.
15177         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
15178         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
15179         (FUNCTION_ARG_PADDING): Define.
15180         (FASTEST_ALIGNMENT): Adjust.
15181         (SH_REGISTER_NAMES_INITIALIZER): New.
15182         (sh_register_names): Declare.
15183         (DEBUG_REGISTER_NAMES): Define.
15184         (REGISTER_NAMES): Define based on sh_register_names.
15185         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15186         (sh_additional_register_names): Declare.
15187         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15188         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15189         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15190         (REGISTER_NATURAL_MODE): Define.
15191         (FIRST_PSEUDO_REGISTER): Adjust.
15192         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15193         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15194         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15195         (VECTOR_MODE_SUPPORTED_P): Define.
15196         (REG_CLASS_CONTENTS): Adjust.
15197         (SMALL_REGISTER_CLASSES): Adjust.
15198         (REG_ALLOC_ORDER): Adjust.
15199         (INDEX_REG_CLASS): Adjust.
15200         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15201         (CONST_OK_FOR_LETTER_P): Adjust.
15202         (PREFERRED_RELOAD_CLASS): Adjust.
15203         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15204         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15205         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15206         (FIRST_FP_PARM_REG): Adjust.
15207         (CALL_POPS_ARGS): Define.
15208         (FUNCTION_ARG_REGNO_P): Adjust.
15209         (struct sh_args): New fields.
15210         (GET_SH_ARG_CLASS): Adjust.
15211         (INIT_CUMULATIVE_ARGS): Adjust.
15212         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15213         (FUNCTION_ARG_ADVANCE): Adjust.
15214         (FUNCTION_ARG): Adjust.
15215         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15216         (FUNCTION_ARG_CALLEE_COPIES): Define.
15217         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15218         (STRICT_ARGUMENT_NAMING): Define.
15219         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15220         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15221         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15222         (SETUP_INCOMING_VARARGS): Adjust.
15223         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15224         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15225         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15226         (SUBREG_OK_FOR_INDEX_P): Adjust.
15227         (EXTRA_CONSTRAINT_S): Update.
15228         (EXTRA_CONSTRAINT_T): New.
15229         (EXTRA_CONSTRAINT): Adjust.
15230         (GO_IF_LEGITIMATE_INDEX): Adjust.
15231         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15232         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15233         (MOVE_MAX): Adjust.
15234         (MAX_MOVE_MAX): Define.
15235         (Pmode): Adjust.
15236         (CONST_COSTS): Adjust.
15237         (REGISTER_MOVE_COST): Adjust.
15238         (BRANCH_COST): Adjust.
15239         (TEXT_SECTION_ASM_OP): Adjust.
15240         (DBX_REGISTER_NUMBER): Adjust.
15241         (ASM_OUTPUT_DOUBLE_INT): New.
15242         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15243         (PREDICATE_CODES): Adjust.
15244         (PROMOTE_MODE): Adjust.
15245         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15246         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15247         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15248         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15249         (DR0_REG, DR2_REG, DR4_REG): Renumber.
15250         (TR0_REG, TR1_REG, TR2_REG): New.
15251         (XD0_REG): Renumber.
15252         (UNSPEC_COMPACT_ARGS): New.
15253         (type): Added pt and ptabs.
15254         (length): Default to 4 on SHmedia.  Default pt length to 12
15255         and     20 on SHmedia32 and SHmedia64, respectively.
15256         (pt): New function unit.
15257         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
15258         Add whitespace between operands of SHmedia instructions.
15259         (movdicc): Fix.
15260         (adddi3_media, addsi3_media): Adjust constraints.
15261         (subsi3) [SHmedia]: Force operand 1 into a register.
15262         (udivsi3_i1_media, udivsi3_i4_media): New.
15263         (udivsi3): Support SHmedia.
15264         (divsi3_i1_media, divsi3_i4_media): New.
15265         (divsi3): Support SHmedia.
15266         (anddi3, iordi3, xordi3): Adjust constraints.
15267         (zero_extendhidi2, zero_extendqidi2): New.
15268         (extendsidi2, extendhidi2, extendqidi2): New.
15269         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15270         (pop_e, pop_fpul, pop_4): Likewise.
15271         (movsi_media): Support FP and BT registers.
15272         (movsi_media_nofpu): New.  Adjust splits to DImode.
15273         (lduw, ldub): Renamed to zero_extend* above.
15274         (movqi_media): Fix typo.
15275         (movdi_media): Support FP and BT registers.
15276         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
15277         (movdi_const_32bit): New.
15278         (shori_media): Require immediate operand.  Use `u' for output.
15279         (movdf_media, movsf_media): Simplified.
15280         (movdf_media_nofpu, movsf_media_nofpu): New.
15281         (movdf, movsf): Adjust
15282         (movv2sf, movv2sf, movv16sf): New.
15283         (beq_media, beq_media_i): Adjust constraints.  Don't use
15284         scratch BT register.
15285         (bne_media, bne_media_i): Likewise.
15286         (bgt_media, bgt_media_i): Likewise.
15287         (bge_media, bge_media_i): Likewise.
15288         (bgtu_media, bgtu_media_i): Likewise.
15289         (bgeu_media, bgeu_media_i): Likewise.
15290         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15291         bunordered): Emit jump insn.  Force operands to registers when
15292         needed.
15293         (jump_media, jump): Simplify.
15294         (call_compact, call_compact_rettramp): New.
15295         (call_value_compact, call_value_compact_rettramp): New.
15296         (call_media, call_value_media): Simplify.
15297         (sibcall_compact, sibcall_media): New.
15298         (call, call_value): Adjust for SHmedia and SHcompact.
15299         (sibcall, sibcall_value, untyped_call): Likewise.
15300         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15301         (indirect_jump): Adjust for SHmedia.
15302         (casesi_jump_media): New.
15303         (nop): Re-enable for SHmedia.
15304         (call_site): Restrict to SH1.
15305         (casesi): Adjust for SHmedia.
15306         (casesi_shift_media, casesi_load_media): New.
15307         (return): Explicitly use PR register.  Call return trampoline
15308         on SHcompact.
15309         (return_i): Explicitly use PR register.
15310         (shcompact_return_tramp, shcompact_return_tramp_i): New.
15311         (return_media): Adjust.
15312         (shcompact_incoming_args): New.
15313         (epilogue): Adjust.
15314         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15315         (movstrsi): Disable on SH5.
15316         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15317         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15318         (subsf3, subsf3_media): Likewise.
15319         (mulsf3, mulsf3_media, mac_media): Likewise.
15320         (divsf3, divsf3_media): Likewise.
15321         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
15322         (floatsisf2, fux_truncsfsi2): Likewise.
15323         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
15324         constraints.
15325         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15326         (cmpunsf_media, cmpsf): Likewise.
15327         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15328         (abssf2, abssf2_media): Likewise.
15329         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15330         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15331         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
15332         (floatsidf2, fix_truncdfsi2): Likewise.
15333         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
15334         constraints.
15335         (cmpeqdf_media, cmpgtdf_media): Likewise.
15336         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15337         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15338         (absdf2, absdf2_media): Likewise.
15339         (extendsfdf2, extendsfdf2_media): Likewise.
15340         (truncsfdf2, truncsfdf2_media): Likewise.
15341         * config/sh/sh64.h: New file.
15342         * config/sh/t-sh64: New file.
15343         * config/sh/shmedia.h: New file.
15344         * config/sh/ushmedia.h: New file.
15345         * config/sh/sshmedia.h: New file.
15346         * configure.in: Added sh64-*-elf.
15347         * configure: Rebuilt.
15348         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
15349         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15350         (reg_class_from_letter): Use `b' for TARGET_REGS.
15351         (print_operand): Support `%M', `%m', `AND' and
15352         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
15353         (andcosts): Adjust for SHmedia.
15354         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15355         Likewise.
15356         (target_reg_operand): New function.
15357         * config/sh/sh-protos.h (target_reg_operand): Declare.
15358         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15359         FP registers on SH5.
15360         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15361         on SH4.
15362         (TARGET_REGISTER_P): New macro.
15363         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15364         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15365         (EXTRA_CONSTRAINT_S): New macro.
15366         (EXTRA_CONSTRAINT): Adjust.
15367         (FLOAT_TYPE_SIZE): Define to 32.
15368         (Pmode): DImode on SHmedia.
15369         (CONST_COSTS): Adjust for SHmedia literals.
15370         (PREDICATE_CODES): Added target_reg_operand.
15371         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15372         * config/sh/sh.md: Remove all attrs from SHmedia insns.
15373         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15374         (cmpdi): Accept SHmedia.
15375         (movdicc_false, movdicc_true): New insns.
15376         (movdicc): New expand.
15377         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15378         no_new_pseudos.
15379         (addsi3_media): Match `S' constraint.
15380         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15381         (negdi2): Expand for SHmedia.
15382         (one_cmpldi2): New expand.
15383         (zero_extendsidi2): Change from expand to insn.
15384         (extendsidi2): Add constraints.
15385         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
15386         LD/ST address.  Fix SI immediate loading split.
15387         (movhi_media, movqi_media, lduw, ldub): New insns.
15388         (movhi, movqi): Accept SHmedia.
15389         (shori_media, movdi_media): Relax input constraints.  Split
15390         symbolic constants.
15391         (movdf_media, movsf_media): New insn.  New split to movdi.
15392         (movdf, movsf): Match on SHmedia.
15393         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15394         bgeu_media): New insns and splits.  New insns with `_i' suffix.
15395         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15396         (bunordered): New expand.
15397         (jump_compact): Renamed from `jump'.
15398         (jump_media): New insn.
15399         (jump): New expand.
15400         (call_media, call_value_media): New insns.
15401         (call, call_value): Adjust.
15402         (indirect_jump_compact): Renamed from `indirect_jump'.
15403         (indirect_jump_media): New insn.
15404         (indirect_jump): New expand.
15405         (untyped_call, return): Accept SHmedia.
15406         (return_media): New insn.
15407         (prologue, epilogue, blockage): Accept SHmedia.
15408         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15409         (sunordered): New expand.
15410         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15411         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15412         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15413         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15414         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15415         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15416         abssf2_media): New insns.
15417         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15418         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15419         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15420         floatdidf2, floatsidf2_media, fix_truncdfdi2,
15421         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15422         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15423         absdf2_media): New insns.
15424         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15425         (extendsfdf2_media, truncdfsf2_media): New insns.
15426         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
15427         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15428         * config/sh/sh.h (CONST_OK_FOR_J): Document.
15429         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15430         * config/sh/sh.md (adddi3): New expand.
15431         (adddi3_media, adddi3z_media): New insns.
15432         (adddi3_compact): Renamed from adddi3.
15433         (addsi3_media): Use add.l r63 to add constant zero.
15434         (subdi3): New expand.
15435         (subdi3_media): New insn.
15436         (subdi3_compact): Renamed from subdi3.
15437         (mulsidi3): New expand.
15438         (mulsidi3_media): New insn.
15439         (mulsidi3_compact): Renamed from mulsidi3.
15440         (umulsidi3): New expand.
15441         (umulsidi3_media): New insn.
15442         (umulsidi3_compact): Renamed from umulsidi3.
15443         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15444         (ashlsi3, ashrsi3, lshrsi3): Use them.
15445         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15446         (ashldi3, ashrdi3, lshrdi3): Use them.
15447         (zero_extendsidi2): New expand.
15448         (extendsidi2): New insn.
15449         (movsi_media): New insn.  Split to movdi to load constants.
15450         (movsi): Enable for shmedia.
15451         (movdi_media): New insn.  Use shori_media to load wide constants.
15452         (short_media): New insn.
15453         (movdi): Enable for shmedia.
15454         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
15455         * config/sh/sh.h (CPP_SPEC): Added `m5'.
15456         (SUBTARGET_CPP_SPEC): Added `!m5'.
15457         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15458         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
15459         to all other SH variants.
15460         (TARGET_DEFAULT): Set to SH1_BIT.
15461         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15462         (BITS_PER_WORD): Raise to 64 on shmedia.
15463         (MAX_BITS_PER_WORD): Change to 64.
15464         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15465         (INT_TYPE_SIZE): Keep as 32.
15466         (UNITS_PER_WORD): Raise to 8 on shmedia.
15467         (MIN_UNITS_PER_WORD): Keep as 4.
15468         (POINTER_SIZE): Raise to 64 on shmedia.
15469         (CONST_OK_FOR_J): New macro.
15470         (CONST_OK_FOR_LETTER_P): Use it.
15471         (processor_type): Add PROCESSOR_SH5.
15472         * config/sh/sh.md: Conditionalize all expands, insns and
15473         splits to TARGET_SH1.
15474         (cpu): Added sh5.
15475         (addsi3_compact): Renamed from...
15476         (addsi3): Now an expand.
15477         (addsi3_media, subsi3_media): New insns.
15478         (subsi3): Don't negate constants with SHmedia.
15479
15480         * hooks.c: New file.
15481         * hooks.h: New file.
15482         * Makefile.in (HOOKS_H): New.
15483         (TARGET_DEF_H): Added $(HOOKS_H).
15484         (OBJS): Added hooks.o.
15485         (cfgcleanup.o, bb-reorder.o): Added target.h.
15486         (hooks.o): Added dependencies.
15487         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15488         (TARGET_INITIALIZER): this.
15489         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15490         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15491         * bb-reorder.c: Include target.h.
15492         (reorder_basic_blocks): Skip if cannot modify jumps.
15493         * cfgcleanup.c: Include target.h.
15494         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15495
15496 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
15497
15498         * config/mips/mips.md (casesi_internal, casesi_internal_di):
15499         Protect jump delay slot instructions with .set noreorder and
15500         .set nomacro.
15501
15502 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
15503
15504         * config/mips/mips.md (casesi_internal_di): Calculate
15505         the index into the target offset table correctly.
15506
15507 2002-02-08  Richard Henderson  <rth@redhat.com>
15508
15509         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15510         * final.c (output_addr_const): Accept and discard SUBREG.
15511         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15512         mark them unknown instead.
15513         (simplify_subtraction): Handle RTX_UNKNOWN.
15514         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15515
15516 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
15517
15518         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15519
15520 2002-02-08  Richard Henderson  <rth@redhat.com>
15521
15522         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15523
15524 2002-02-08  Andreas Jaeger  <aj@suse.de>
15525
15526         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15527         * config/i386/t-linux64: New file.
15528
15529 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
15530
15531         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15532         * c-parse.in (compstmt): Clear last_expr_type.
15533
15534 2002-02-07  Richard Henderson  <rth@redhat.com>
15535
15536         * loop.c (strength_reduce): Sink final_value when not
15537         eliminating a biv.
15538
15539 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
15540
15541         * config/sparc/freebsd.h: Fix mismatched spec {.
15542
15543 2002-02-07  Richard Henderson  <rth@redhat.com>
15544
15545         * cfgrtl.c: Include recog.h and insn-config.h.
15546         (keep_with_call_p): Fix general_operand invocation.
15547         * Makefile.in (cfgrtl.o): Update dependencies.
15548
15549 2002-02-07  Kazu Hirata  <kazu@hxi.com>
15550
15551         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15552         comment.  Accept HImode only if TARGET_H8300.
15553
15554 2002-02-07  Eric Christopher  <echristo@redhat.com>
15555
15556         * config/mips/crtn.asm: Cleanup #ifdefs.
15557
15558 2002-02-07  Eric Christopher  <echristo@redhat.com>
15559
15560         * config/mips/crti.asm: Add changes for mips16. mips16 uses
15561         register 7 as RA instead of $31.
15562         * config/mips/crtn.asm: Ditto.
15563         * config/mips/mips.c (mips_move_2words): Add case for
15564         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15565         (compute_frame_size): Fix typo.
15566         (save_restore_insns): Ditto.  Make documentation about using
15567         register $7 as return register more precise.
15568         (mips_expand_epilogue): Fix comment. Add code to work around not
15569         being able to add to the stack pointer directly.
15570         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15571         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15572         epilogue.
15573
15574 2002-02-07  Tom Rix  <trix@redhat.com>
15575
15576         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
15577         immediates in ldu and stdu DS opcode field.
15578         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15579         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15580         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15581
15582 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
15583
15584         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15585         offset for stack bias.
15586
15587 2002-02-07  H.J. Lu <hjl@gnu.org>
15588
15589         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15590
15591 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
15592
15593         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15594
15595 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
15596
15597         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15598         * i386.c (x86_order_regs_for_local_alloc): New global function.
15599         * i386.h (REG_ALLOC_ORDER): CLeanup.
15600         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15601
15602 2002-02-07  Richard Henderson  <rth@redhat.com>
15603
15604         PR optimization/2463
15605         * alias.c (find_base_value): Recall base values for fixed hard regs.
15606         * loop.c (loop_regs_update): Don't use single_set on non-insns.
15607
15608 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
15609
15610         * config/mips/mips.md (define_delay) [mips16]: Adjust required
15611         length.
15612
15613 2002-02-06  Richard Henderson  <rth@redhat.com>
15614
15615         PR c/5609
15616         * stmt.c (resolve_operand_name_1): Take more care with mixed
15617         named and unnamed operands.
15618
15619 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
15620             Jan Hubicka  <jh@suse.cz>
15621
15622         * loop.c (remove_constant_addition): Avoid clobbering a shared
15623         CONST expression.
15624
15625 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
15626
15627         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15628         * config/s390/t-linux64: New file.
15629         * config/s390/libgcc-glibc.ver: New file.
15630
15631 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
15632
15633         * config/s390/linux64.h: Delete file.
15634         * config/s390/s390x.h: New file.
15635         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15636         as target header file.
15637         * config/s390/linux.h (TARGET_VERSION): Define depending on
15638         DEFAULT_TARGET_64BIT.
15639         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15640         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15641         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15642         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15643         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15644         (EXTRA_SPEC): New define.
15645         * config/s390/s390.h (TARGET_VERSION): Define depending on
15646         DEFAULT_TARGET_64BIT.
15647         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15648
15649 2002-02-06  Jason Merrill  <jason@redhat.com>
15650
15651         * c-decl.c (finish_function): Warn about a non-void function with
15652         no return statement and no abnormal exit.
15653         (current_function_returns_abnormally): New variable.
15654         (start_function): Clear it.
15655         (struct c_language_function): Add returns_abnormally.
15656         (push_c_function_context): Save it.
15657         (pop_c_function_context): Restore it.
15658         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15659         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15660         an explicit return type.
15661         * c-tree.h: Declare current_function_returns_abnormally.
15662         (C_FUNCTION_IMPLICIT_INT): New macro.
15663         * c-typeck.c (build_function_call): Set it.
15664         (c_expand_return): Set current_function_returns_value even if the
15665         value is erroneous.
15666
15667 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
15668
15669         PR c/5420:
15670         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15671         unsafe for reevaluation.
15672
15673 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
15674
15675         PR c/5482:
15676         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15677         EXPR_STMT, but COMPOUND_STMT, recurse into it.
15678
15679 2002-02-06  Richard Henderson  <rth@redhat.com>
15680
15681         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15682         be a general_operand.  Dest for function value must be a pseudo.
15683
15684 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
15685
15686         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15687         as SYMBOL_REFs from the constant pool.
15688
15689 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
15690
15691         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15692         passed by invisible reference.
15693
15694 2002-02-05  Richard Henderson  <rth@redhat.com>
15695
15696         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15697
15698 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
15699
15700         Implement using "base addresses" in insn operands as default.
15701         * config/mmix/mmix.c (mmix_conditional_register_usage): if
15702         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15703         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15704         used to read the rtx value.
15705         (mmix_target_asm_function_epilogue): Fix spacing.
15706         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15707         (mmix_legitimate_address): Ditto.
15708         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15709         should be loaded with a GETA insn.  Don't allocate needless extra
15710         char for nul termination and fix misleading comment.
15711         (mmix_print_operand_address): Handle constants if
15712         TARGET_BASE_ADDRESSES.
15713         (mmix_output_register_setting): Use base addressing if
15714         TARGET_BASE_ADDRESSES and the number of insns is 3.
15715         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15716         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15717         to use R as constraint, add LDA to match s.
15718         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15719         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15720         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15721         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15722         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15723         order with other fixed registers.
15724         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15725         other parameter/call-clobbered registers.
15726         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15727         -mbase-addresses, -mno-base-addresses.
15728         (MMIX Options): Ditto.
15729
15730 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15731
15732         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15733
15734 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
15735
15736         * config/rs6000/altivec.h: Change elem to _S_elem.
15737
15738 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
15739
15740         * config/netbsd.h (WCHAR_TYPE): Define.
15741         (WCHAR_TYPE_SIZE): Ditto.
15742         (WINT_TYPE): Ditto.
15743         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15744         (WCHAR_UNSIGNED): Ditto.
15745         (WCHAR_TYPE_SIZE): Ditto.
15746         (WINT_TYPE): Ditto.
15747         * config/arm/netbsd.h: Likewise.
15748         * config/i386/netbsd-elf.h: Likewise.
15749         * config/i386/netbsd.h: Likewise.
15750         * config/m68k/netbsd-elf.h: Likewise.
15751         * config/m68k/netbsd.h: Likewise.
15752         * config/ns32k/netbsd.h: Likewise.
15753         * config/sparc/netbsd.h: Likewise.
15754         * config/vax/netbsd.: Likewise.
15755
15756 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
15757
15758         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
15759         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
15760         (TARGET_INITIALIZER): this.
15761         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
15762         (BITFIELD_NBYTES_LIMITED): Markup fix.
15763         * tree.h (default_ms_bitfield_layout_p): Declare.
15764         (record_layout_info): Added prev_field.
15765         * tree.c (default_ms_bitfield_layout_p): New fn.
15766         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
15767         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
15768         * stor-layout.c: Include target.h.
15769         (start_record_layout): Initialize prev_field.
15770         (place_field): Handle MS bit-field layout, and disregard
15771         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
15772         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
15773         * Makefile.in (stor-layout.o): Adjust dependencies.
15774
15775 2002-02-05  Jason Merrill  <jason@redhat.com>
15776
15777         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
15778
15779 2002-02-05  Andreas Jaeger  <aj@suse.de>
15780
15781         * crtstuff.c: Fix comments.
15782
15783 2002-02-05  Richard Henderson  <rth@redhat.com>
15784
15785         PR fortran/3393
15786         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
15787         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
15788
15789         PR fortran/3392
15790         * config/mips/mips.c (function_arg): Handle TImode.
15791         (function_arg_advance): Likewise.
15792
15793 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
15794
15795         * config/rs6000/altivec.h (vec_step_help): Rename to
15796         __vec_step_help.
15797
15798 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
15799
15800         * config/rs6000/altivec.h: Fix typos.
15801
15802 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
15803
15804         * config/arm/netbsd.h: Correct a comment.
15805
15806 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
15807
15808         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
15809         building void typed builtins.
15810
15811         * config/rs6000/altivec.h (vec_ld*): Fix typos.
15812         (vec_step): Implement for C++.
15813
15814 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15815
15816         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
15817
15818 2002-02-04  Richard Henderson  <rth@redhat.com>
15819
15820         * combine.c (nonzero_bits): Re-introduce special case for
15821         sp/fp/ap wrt REGNO_POINTER_ALIGN.
15822
15823 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
15824
15825         * doc/extend.texi: Warn about unsupported usage of altivec
15826         builtins.
15827
15828         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
15829         (altivec_predicate_*): New.
15830
15831         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
15832         Add C++ version of vec_*() functions.
15833
15834         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
15835         (bdesc_2arg): Remove altivec predicates.
15836         (altivec_expand_builtin): Handle predicates.
15837         (altivec_init_builtins): Handle predicates.
15838         (altivec_expand_predicate_builtin): New.
15839
15840 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15841
15842         * pa.c (DO_FRAME_NOTES): Move forward.
15843         (store_reg): Revise handling of frame notes.
15844         (load_reg): Likewise.
15845         (set_reg_plus_d): Likewise.
15846         (hppa_expand_prologue): Likewise.
15847         (hppa_expand_epilogue): Likewise.
15848
15849 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15850
15851         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
15852
15853 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
15854
15855         PR c/4475, c++/3780:
15856         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
15857         * c-common.h (SWITCH_TYPE): Define.
15858         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
15859         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
15860         Rename spareness variable to sparseness.
15861         (expand_end_case_type): Renamed from expand_end_case, use orig_type
15862         if non-NULL instead of TREE_TYPE (orig_index).
15863         * tree.h (expand_end_case_type): Renamed from expand_end_case.
15864         (expand_end_case): Define using expand_end_case_type.
15865         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
15866         to expand_end_case_type.
15867         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
15868
15869 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15870
15871         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
15872         (BIGGEST_ALIGNMENT): Change to 128.
15873
15874 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15875
15876         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
15877
15878 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15879
15880         * pa.md (call_internal_reg_64bit): Remove unused variable.
15881
15882 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
15883
15884         * config/arm/arm.h (machine_function): Add uses_anonymous_args
15885         field.
15886         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
15887         * config/arm/arm.c (current_function_anonymous_args): Delete,
15888         replace uses with cfun->machine->uses_anonymous_args.
15889         (arm_reorg): Do not reset uses_anonymous_args.
15890
15891         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
15892         any geenral register.
15893
15894 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
15895
15896         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
15897         the entry block.
15898
15899 2002-02-04  Richard Henderson  <rth@redhat.com>
15900
15901         * combine.c (force_to_mode): Remove STACK_BIAS code.
15902         (nonzero_bits): Likewise.  Replace sp/fp special case with
15903         REGNO_POINTER_ALIGN.
15904
15905         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
15906         (HARD_FRAME_POINTER_REGNUM): New.
15907         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
15908         (FIXED_REGS, CALL_USED_REGS): Update.
15909         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
15910         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
15911         (HARD_REGNO_NREGS): Update for SFP.
15912         (STACK_POINTER_OFFSET): Include bias here ...
15913         (FIRST_PARM_OFFSET): ... not here.
15914         (STACK_BIAS): Remove.
15915         (INIT_EXPANDERS): New.
15916         (STARTING_FRAME_OFFSET): Do not include bias.
15917         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
15918         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
15919         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
15920         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
15921         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
15922         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
15923         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
15924         (MUST_SAVE_REGISTER): Likewise.
15925         (sparc_flat_function_prologue): Likewise.
15926         (sparc_flat_function_epilogue): Likewise.
15927         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
15928         (sparc_init_modes): SFP is GENERAL_REGS.
15929         (sparc_builtin_saveregs): SFP does not have bias applied.
15930
15931 2002-02-04  Richard Henderson  <rth@redhat.com>
15932
15933         * config/alpha/alpha.c (current_function_is_thunk): Don't check
15934         current_function_is_thunk.
15935         (alpha_sa_mask): Distinguish between current_function_is_thunk
15936         called from ASM_OUTPUT_MI_THUNK and not.
15937         (alpha_does_function_need_gp): Thunks always need gp.
15938         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15939         (alpha_output_mi_thunk_osf): New.
15940         * config/alpha/alpha-protos.h: Update.
15941         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
15942
15943 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
15944
15945         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
15946         function types, not when they're taken away.
15947
15948 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
15949
15950         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
15951         CODE_LABEL and jump table when replacing a table jump with a
15952         simple jump.
15953
15954 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15955
15956         * config/s390/s390-protos.h (legitimize_la_operand,
15957         s390_secondary_input_reload_class, s390_plus_operand,
15958         s390_expand_plus_operand): Add prototypes.
15959
15960         config/s390/s390.c (s390_secondary_input_reload_class,
15961         s390_plus_operand, s390_expand_plus_operand): New functions.
15962
15963         (struct s390_address): New member 'pointer'.
15964         (s390_decompose_address): Compute it.
15965         (legitimate_la_operand_p): Use it.
15966         (legitimize_la_operand): New function.
15967         (movti, movdi, movdf splitters): Call it.
15968
15969         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
15970         (PREDICATE_CODES): Add s390_plus_operand.
15971
15972         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
15973         (la_ccclobber): Allow GENERAL_REGS as output operand.
15974
15975         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
15976         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
15977         (*la_64, *la_31, reload_indi, reload_insi): ... these.
15978
15979 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15980
15981         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
15982         register names for regular asm () construct.
15983
15984 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
15985
15986         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
15987         registers.
15988
15989 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
15990
15991         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
15992         pat for recog.
15993
15994 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
15995
15996         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
15997         constant pool to be identical by string address and index.
15998
15999 2002-02-04  Anthony Green  <green@redhat.com>
16000
16001         * output.h (SECTION_OVERRIDE): Define.
16002         * varasm.c (named_section): Obey SECTION_OVERRIDE.
16003
16004 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
16005
16006         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
16007         by existing arm*-*-netbsd* (a.out) target.
16008         (ns32k-*-netbsdelf*): Likewise.
16009         (sparc-*-netbsdelf*): Likewise.
16010         (vax-*-netbsdelf*): Likewise.
16011
16012 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
16013
16014         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
16015         headers and libobjc headers.
16016
16017 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
16018
16019         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
16020         (_mingw.h): Remove duplicate include.
16021
16022 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
16023
16024         * config.gcc: Set cpu_type to m68k for 68010, as well.
16025         (m68010-*-netbsdelf*): New...
16026         (m68k*-*-netbsdelf*): ...targets.
16027         * config/m68k/netbsd-elf.h: New file.
16028
16029 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16030
16031         * config/h8300/h8300.c (hand_list): Move inside function_arg.
16032
16033 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16034
16035         * config/h8300/h8300.c (h8_push_ops): Move inside
16036         h8300_init_once.
16037         (h8_pop_ops): Likewise.
16038         (h8_move_ops): Likewise.
16039
16040 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16041
16042         * config/h8300/h8300.c (os_task): Make it static.
16043         (monitor): Likewise.
16044         (pragma_saveall): Likewise.
16045
16046 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
16047
16048         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
16049         constant is a valid sign-extension for Pmode.
16050
16051 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16052
16053         * config/h8300/h8300.c: Fix formatting.
16054
16055 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16056
16057         * config/h8300/h8300.md: Fix formatting.
16058
16059 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16060
16061         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
16062         predicates of operands[1].  Split the patterns for each
16063         processor variant.
16064
16065 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16066
16067         * config/h8300/h8300.md (xor patterns): Tighten the predicates
16068         of operands[1] to register_operand.
16069
16070 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
16071
16072         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
16073         * cpphash.c (_cpp_init_hashtable): Similarly.
16074         * cppinit.c (cpp_create_reader): Default the signed_char flag.
16075         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
16076         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
16077         (cpp_handle_option): Handle the new options.
16078         * cpplex.c (cpp_interpret_charconst): Use new flag.
16079         * cpplib.h (struct cpp_options): New member signed_char.
16080         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
16081         (cpp_options): Handle -fsigned-char and -funsigned-char.
16082         (static_specs): Remove signed_char_spec.
16083         (do_spec1): Don't handle %c.
16084         * system.h: Poison SIGNED_CHAR_SPEC.
16085         * tradcif.y (yylex): Use flag_signed_char.
16086         * tradcpp.h (flag_signed_char): New.
16087         * tradcpp.c (flag_signed_char): New.
16088         (main): Handle new command-line options.
16089         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
16090 config:
16091         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
16092         * avr/avr.h: Remove old comments.
16093         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
16094         (CC1_SPEC): Pass -fsigned-char if -mic*.
16095         (SIGNED_CHAR_SPEC): Remove.
16096 doc:
16097         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
16098
16099 2002-02-01  Eric Christopher  <echristo@redhat.com>
16100
16101         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
16102         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
16103         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
16104         (ASM_OUTPUT_REG_POP): Ditto.
16105
16106 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
16107
16108         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
16109         patch.
16110
16111 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
16112
16113         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
16114
16115 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
16116
16117         PR c/5304:
16118         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
16119         unconditionally.
16120
16121 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
16122
16123         * cfganal.c: Include tm_p.h.
16124         (keep_with_call_p): Fix the test that determines if a register holds
16125         the return value of a call.
16126
16127 2002-02-01  DJ Delorie  <dj@redhat.com>
16128
16129         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
16130         we are given conflicting registers, switch to the other one we
16131         had allocated for us.
16132         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
16133         as TImode so we know when the "other" register is available.
16134
16135 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
16136
16137         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
16138         sparc/sparc_bi.h.
16139
16140 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
16141
16142         * cfganal.c (keep_with_call_p): New function.
16143         (flow_call_edges_add): Prevent splitting a block between a call and
16144         a single-set instruction that should be kept in the same block.
16145
16146 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16147
16148         * doc/install.texi (avr): Update outdated URL.
16149
16150 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
16151
16152         * config/stormy16/stormy16.md (pushqi): New.
16153         (popqi): New.
16154         (pushhi): New.
16155         (pophi): New.
16156         (movhi): Remove stack operands.
16157         (movqi): Likewise.
16158         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
16159         nonimmediate_nonstack_operand.
16160         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
16161         New.
16162         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
16163         New.
16164
16165 2002-01-31  Jason Merrill  <jason@redhat.com>
16166
16167         * Makefile.in (c-parse.c): Handle .output file.
16168         * objc/Make-lang.in (objc-parse.c): Likewise.
16169
16170 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
16171
16172         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
16173         the -me[lb] option is given.  Don't output the default flag
16174         twice.
16175
16176 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
16177
16178         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
16179         the primary source file; this has not been done yet.
16180         * c-decl.c (c_expand_body): Reset input_filename from
16181         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
16182
16183 2002-01-31  Kazu Hirata  <kazu@hxi.com>
16184
16185         * rtlanal.c (subreg_regno_offset): Do not use
16186         SUBREG_REGNO_OFFSET.
16187         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16188         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16189
16190 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
16191
16192         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
16193         version rather than GNATS version in --version output.
16194
16195 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
16196
16197         * ifcvt.c (noce_process_if_block): Make a copy of the destination
16198         when copying back from a temporary.
16199
16200 2002-01-30  Richard Henderson  <rth@redhat.com>
16201
16202         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16203         and new_dest are the same.
16204
16205 2002-01-30  Richard Henderson  <rth@redhat.com>
16206
16207         PR opt/5076
16208         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16209         * rtl.c (note_insn_name): Update.
16210         * emit-rtl.c (remove_unnecessary_notes): Kill it.
16211         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
16212         to perform loop rotation.
16213         (expand_exit_loop_top_cond): New.
16214         * tree.h (expand_exit_loop_top_cond): Declare it.
16215         * c-semantics.c (genrtl_while_stmt): Use it.
16216         (genrtl_for_stmt): Likewise.
16217
16218 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
16219
16220         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16221         arguments to 64-bit boundaries on 64-bit ABIs.
16222
16223 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
16224
16225         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16226
16227 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
16228
16229         * c-decl.c (grokdeclarator): Handle type being a typedef for an
16230         invalid type.
16231
16232 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
16233
16234         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16235         * config/sparc/sparc_bi.h: Remove file.
16236         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16237
16238 2002-01-30  Richard Henderson  <rth@redhat.com>
16239
16240         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16241
16242 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
16243
16244         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16245
16246 2002-01-30  Jason Merrill  <jason@redhat.com>
16247
16248         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16249         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16250         (reg_save): Use DW_CFA_offset_extended_sf instead.
16251
16252         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16253
16254 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
16255
16256         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16257         in cselib_lookup.
16258
16259 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
16260
16261         * rs6000.md ("*call_value_local32"): Remove constraints.
16262         ("*call_value_local64"): Same.
16263         ("*call_value_indirect_nonlocal_aix32"): Same.
16264         ("*call_value_nonlocal_aix32"): Same.
16265         ("*call_value_indirect_nonlocal_aix64"): Same.
16266         ("*call_value_nonlocal_aix64"): Same.
16267         ("*call_value_nonlocal_sysv"): Same.
16268
16269 2002-01-29  Richard Henderson  <rth@redhat.com>
16270
16271         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16272
16273 2002-01-29  Richard Henderson  <rth@redhat.com>
16274
16275         * expr.c (force_operand): Ignore flag_pic for detecting pic
16276         address loads.
16277         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16278         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16279         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16280         instead of open-coded loop.
16281         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16282         be fixed when in use.
16283
16284 2002-01-29  Richard Henderson  <rth@redhat.com>
16285
16286         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16287         * sched-rgn.c (propagate_deps): Update them.
16288         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
16289         clobbers list when either gets too long.
16290
16291 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
16292
16293         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16294         and INDEX_REGS the same as GENERAL_REGS.
16295         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16296
16297 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
16298
16299         * tree.c (build_nonstandard_integer_type): Correct prototype.
16300
16301 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
16302
16303         * config/s390/s390.md (movstrsico, movstrdix_64,
16304         movstrsix_31): Remove, replace by ...
16305         (movstrdi_short, movstrsi_short, movstrdi_long,
16306         movstrsi_long): ... these.  New.
16307         (movstrdi, movstrsi): Adapt.
16308
16309         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
16310         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
16311         Remove unnecessary CC clobber.
16312         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16313         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16314
16315         (divmoddi4): Don't partially initialize TImode register.
16316
16317 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
16318
16319         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16320
16321 2002-01-29  Richard Henderson  <rth@redhat.com>
16322
16323         * flow.c (print_rtl_and_abort): Remove.
16324         (print_rtl_and_abort_fcn): Remove.
16325         (verify_local_live_at_start): Use dump_bb instead.
16326         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16327         (verify_wide_reg_1): Return 2 on mode test failure.
16328
16329 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
16330
16331         PR c/3325, c/3326, c/2511, c/3347
16332         * c-decl.c (enum_decl_context): Remove BITFIELD.
16333         (grokdeclarator): Take bitfield width as an input.
16334         Ensure bitfields are given the correct type.  Perform
16335         bitfield width validation with build_bitfield_integer_type
16336         rather than waiting for finish_struct.
16337         (grok_typename, grok_typename_in_parm_context, start_decl,
16338         push_parmdecl, grokfield, start_function): Update calls to
16339         grokdeclarator.
16340         (build_bitfield_integer_type): New function.
16341         (finish_struct): Move bitfield validation to grokdeclarator
16342         and build_bitfield_integer_type.
16343         * tree.c (build_nonstandard_integer_type): New function.
16344         * tree.h (build_nonstandard_integer_type): New prototype.
16345 objc:
16346         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16347
16348 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
16349
16350         PR other/1502:
16351         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16352         don't ignore unrecognized -W* options.
16353         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16354         * cpplib.h (cpp_handle_option): Adjust prototype.
16355         * c-decl.c (c_decode_options): Pass 0 as last argument to
16356         cpp_handle_option.
16357
16358         PR c/2896:
16359         * gcc.c (cpp_unique_options): Split from cpp_options.
16360         (cpp_options): Source cpp_unique_options.
16361         (default_compilers): Use cpp_unique_options instead of cpp_options
16362         when used together with cc1_options.
16363         (static_specs): Add cpp_unique_options.
16364         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16365         when used together with cc1_options.
16366
16367 2002-01-29  Kazu Hirata  <kazu@hxi.com>
16368
16369         * config/h8300/h8300-protos.h: Update the prototype of
16370         output_a_shift.
16371         * config/h8300/h8300.c (output_a_shift): Remove an unused
16372         argument 'insn'.  Remove redundant code.
16373         * config/h8300/h8300.md: Adust to the new prototype of
16374         output_a_shift.
16375
16376 2002-01-29  Kazu Hirata  <kazu@hxi.com>
16377
16378         * config/h8300/h8300-protos.h: Update the prototypes of
16379         emit_a_rotate and expand_a_rotate.
16380         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16381         first argument to 'enum rtx_code'.
16382         (expand_a_rotate): Likewise.
16383
16384 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16385
16386         * config/h8300/h8300-protos.h: Update the prototype of
16387         output_simode_bld.
16388         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16389         'log2'.
16390         * config/h8300/h8300.md: Adjust to the new prototype.
16391
16392 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16393
16394         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16395         redundant code.
16396
16397 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16398
16399         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16400         is a fixed register before returning pic_offset_table_rtx.
16401         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16402         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16403
16404 2002-01-28  Jason Merrill  <jason@redhat.com>
16405
16406         * dwarf2.h: Sync with src version.
16407
16408 2002-01-28  Paul Koning  <pkoning@equallogic.com>
16409
16410         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16411         BT_FN_VOID_PTR_VAR.
16412         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16413         * doc/extend.texi (__builtin_prefetch): Update documentation:
16414         first argument is now const void ptr.
16415
16416 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16417
16418         * config/h8300/h8300-protos.h: Remove an unused prototype.
16419
16420 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
16421
16422         * toplev.c (lang_independent_init): Round up identifier size.
16423
16424 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
16425
16426         * config.gcc: Revert previous change.
16427
16428 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
16429
16430         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16431
16432 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
16433
16434         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16435         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
16436         other non-elf netbsd config frags.
16437         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16438         collect2 will does that.
16439         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16440         shared-lib frobbing will work.
16441
16442 2002-01-28  Kazu Hirata  <kazu@hxi.com>
16443
16444         * config/h8300/h8300.h: Fix formatting.
16445         * config/h8300/h8300.md: Likewise.
16446
16447 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
16448
16449         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16450         the old, removed AAA_standards fix.
16451         * fixinc/fixincl.x: Rebuilt.
16452
16453 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
16454
16455         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16456         atexit call in crtbegin, hooked in after call to frame_dummy;
16457         register EH before registering __fini__start.
16458
16459 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
16460
16461         * config/rs6000/altivec.h: Remove spurious semicolons.
16462
16463 2002-01-27  Kazu Hirata  <kazu@hxi.com>
16464
16465         * config/h8300/h8300.md: Replace dead bit extraction patterns
16466         with ones that work.
16467
16468 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16469
16470         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16471         if not STRICT_ALIGNMENT.
16472         * rtl.h (MEM_ALIGN): Likewise.
16473
16474 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16475
16476         * doc/invoke.texi (-fdump-translation-unit): Revert this
16477         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16478
16479 2002-01-27  Kazu Hirata  <kazu@hxi.com>
16480
16481         * config/h8300/h8300.md (define_constants): New.
16482         (anonymous patterns) Use defined constants appropriately.
16483
16484 2002-01-27  Kazu Hirata  <kazu@hxi.com>
16485
16486         * config/h8300/h8300.c (function_arg): Remove redundant code.
16487
16488 2002-01-26  Richard Henderson  <rth@redhat.com>
16489
16490         * sched-deps.c (reg_pending_uses_head): New.
16491         (reg_pending_barrier): Rename from reg_pending_sets_all.
16492         (find_insn_list): Don't mark inline.
16493         (find_insn_mem_list): Remove.
16494         (add_dependence_list, add_dependence_list_and_free): New.
16495         (flush_pending_lists): Replace only_write param with separate
16496         for_read and for_write parameters.  Update all callers.  Use
16497         add_dependence_list_and_free.
16498         (sched_analyze_1): Do not add reg dependencies here; just set
16499         the pending bits.  Use add_dependence_list.
16500         (sched_analyze_2): Likewise.
16501         (sched_analyze_insn): Replace schedule_barrier_found with
16502         reg_pending_barrier.  Add all dependencies for pending reg
16503         uses, sets, and clobbers.
16504         (sched_analyze): Don't add reg dependencies for calls, just
16505         set pending bits.  Use regs_invalidated_by_call.  Treat
16506         sched_before_next_call as a normal list, not a fake insn.
16507         (init_deps): No funny init for sched_before_next_call.
16508         (free_deps): Free pending mems lists.  Don't zero reg_last.
16509         (init_deps_global): Init reg_pending_uses.
16510         (finish_deps_global): Free it.
16511         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
16512         (find_insn_mem_list): Remove.
16513         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16514         (propagate_deps): Use them.  Zero temp mem lists.
16515
16516 2002-01-26  Richard Henderson  <rth@redhat.com>
16517
16518         * Makefile.in (CRTSTUFF_CFLAGS): New.
16519         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16520         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16521         crtstuff.c instead of alpha assembly version.
16522         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16523         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
16524         not FORCE_{INIT,FINI}_SECTION_ALIGN.
16525         (__do_global_dtors_aux): Mark used.
16526         (frame_dummy, __do_global_ctors_aux): Mark used.
16527         (fini_dummy, init_dummy): Remove.
16528
16529         * config/alpha/crtbegin.asm: Remove file.
16530         * config/alpha/crtend.asm: Remove file.
16531         * config/alpha/t-crtbe: Remove file.
16532         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16533         (LINK_EH_SPEC): New.
16534
16535         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16536         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
16537         calling constructors.
16538         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16539
16540         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16541         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16542         CRT_END_INIT_DUMMY hack.
16543         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16544         FORCE_{INIT,FINI}_SECTION_ALIGN.
16545
16546         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16547         FORCE_{INIT,FINI}_SECTION_ALIGN.
16548
16549         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16550         invocation sequence.
16551         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16552
16553         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16554         (FORCE_CODE_SECTION_ALIGN): New.
16555
16556 2002-01-26  Richard Henderson  <rth@redhat.com>
16557
16558         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16559
16560 2002-01-26  Richard Henderson  <rth@redhat.com>
16561
16562         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16563         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16564
16565 2002-01-26  Kazu Hirata  <kazu@hxi.com>
16566
16567         * config/h8300/h8300.md: Remove bit extraction patterns that
16568         cannot be triggered.
16569         Restrict each bit extraction pattern to a variant on which the
16570         pattern is tested.
16571
16572 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
16573
16574         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16575
16576 2002-01-26  Kazu Hirata  <kazu@hxi.com>
16577
16578         * config/h8300/h8300.md: Remove bit test patterns that cannot
16579         be triggered.
16580         Restrict each bit test pattern to a variant on which the
16581         pattern is tested.
16582
16583 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16584
16585         * builtins.c (expand_builtin_strncat): Remove redundant check for
16586         INTEGER_CST.
16587
16588 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
16589
16590         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16591         default setting.
16592         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16593         existing setting.
16594
16595 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
16596
16597         * dbxout.c (dbxout_init): Use assemble_name rather than just
16598         stripping off the first character.
16599         (dbxout_source_file): Likewise.
16600
16601 2002-01-25  DJ Delorie  <dj@redhat.com>
16602
16603         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16604         using rtx_equal_p, not by comparing pointers.
16605
16606 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
16607
16608         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16609         for PIC_OFFSET_TABLE_REGNUM.
16610         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16611
16612 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
16613
16614         * config.gcc (x86_64-*-freebsd*): New target.
16615         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16616         value.
16617         (i[34567]86-*-freebsd*): Don't include svr4.h.
16618         * config/i386/freebsd64.h: New file.
16619
16620 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
16621
16622         * config/alpha/x-vms (version): Make static.
16623
16624         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16625         in previous checkin.
16626
16627         * Makefile.in (install-headers-cp): New target.
16628         * config.gcc (alpha-dec-*vms*): Install headers with
16629         install-headers-cp
16630
16631 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
16632
16633         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16634         avoid it's copies.
16635
16636 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16637
16638         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16639         of compare_tree_int.
16640         (expand_builtin_strncat): Likewise.
16641         * c-decl.c (finish_struct): Use tree_low_cst.
16642         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16643         * tree.c (compare_tree_int): Likewise.
16644
16645 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
16646
16647         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16648         adjustments even if they are implemented by more than two insns.
16649
16650 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
16651
16652         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
16653         * df.h (struct ref): Kill B.
16654         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16655
16656         * basic-block.h (PROP_EQUAL_NOTES): New flag.
16657         * flow.c (propagate_one_insn): Use it.
16658         (mark_used_regs): Handle NIL.
16659
16660 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
16661
16662         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16663         to help folding.
16664
16665 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
16666
16667         * rs6000.md (prefetch): Make address V4SI mode so that the address
16668         is restricted to legitimate form for instruction.
16669
16670 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
16671
16672         * doc/install.texi (xtensa-*-elf): New target.
16673         (xtensa-*-linux*): New target.
16674         * doc/contrib.texi: Add myself.
16675
16676 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
16677
16678         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16679         purpose register to hold an SImode (or smaller) value.
16680
16681 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
16682
16683         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16684         registry only.
16685         * crtstuff.c: Likewise.
16686
16687 2002-01-25  Kazu Hirata  <kazu@hxi.com>
16688
16689         * config/h8300/h8300.md (negation patterns): Tighten
16690         predicates to register_operand.
16691
16692 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
16693
16694         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16695         mode, not Pmode.
16696
16697         * builtins.c (expand_builtin_prefetch): Same.
16698
16699 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16700
16701         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16702         modes.
16703
16704 2002-01-24  Kazu Hirata  <kazu@hxi.com>
16705
16706         * config/h8300/h8300.c (print_operand): Remove support for
16707         operand character 'A'.
16708         * config/h8300/h8300.md (three anonymous patterns): Replace
16709         operand character 'A' with either 'T' or 'S'.
16710
16711 2002-01-24  Kazu Hirata  <kazu@hxi.com>
16712
16713         * config/h8300/h8300.c (print_operand): Remove support for
16714         operand character 'U'.
16715
16716 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
16717
16718         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
16719
16720 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
16721
16722         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16723         values to be assigned to the stack pointer.
16724
16725 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
16726
16727         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
16728         to const_double needs to be done right for big-endian systems.
16729
16730 2002-01-24  Jason Merrill  <jason@redhat.com>
16731
16732         PR c++/2432
16733         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16734         to can_throw_internal.
16735
16736 2002-01-23  Richard Henderson  <rth@redhat.com>
16737
16738         * fold-const.c (fold): Change UINT_MAX test to check vs precision
16739         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
16740
16741 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16742
16743         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16744         (symGOT2reg): Use them, then set as GOT value as unchanging.
16745         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
16746         as a temporary, if possible.
16747         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
16748         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
16749
16750 2002-01-23  Kazu Hirata  <kazu@hxi.com>
16751
16752         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
16753         accept to accept 0x80 as operands[2].
16754
16755 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16756
16757         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
16758
16759 2002-01-23  Richard Henderson  <rth@redhat.com>
16760
16761         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
16762
16763 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
16764
16765         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
16766         (parmlist_or_identifiers_1): Verify that only a parmlist follows
16767         an attribute.
16768
16769 2002-01-23  Richard Henderson  <rth@redhat.com>
16770
16771         * expr.c (move_by_pieces_1): Extend size before negation.
16772
16773         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
16774         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
16775         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
16776         * config/m68k/t-m68kelf: Likewise.
16777
16778 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
16779
16780         * config/xtensa/elf.h: New file.
16781         * config/xtensa/lib1funcs.asm: New file.
16782         * config/xtensa/lib2funcs.S: New file.
16783         * config/xtensa/linux.h: New file.
16784         * config/xtensa/t-xtensa: New file.
16785         * config/xtensa/xtensa-config.h: New file.
16786         * config/xtensa/xtensa-protos.h: New file.
16787         * config/xtensa/xtensa.c: New file.
16788         * config/xtensa/xtensa.h: New file.
16789         * config/xtensa/xtensa.md: New file.
16790         * config.gcc (xtensa-*-elf*): New target.
16791         (xtensa-*-linux*): New target.
16792         * cse.c (canon_hash): Compare rtx pointers instead of register
16793         numbers.  This is required for the Xtensa port.
16794         * integrate.c (copy_insn_list): Handle case where the static
16795         chain is in memory and the memory address has to be copied to
16796         a register.
16797         * doc/invoke.texi (Option Summary): Add Xtensa options.
16798         (Xtensa Options): New node.
16799         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
16800
16801 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
16802
16803         * diagnostic.c (internal_error): Do ICE suppression only
16804         when ENABLE_CHECKING is not defined.
16805
16806         * c-typeck.c (require_complete_type): Return error_mark_node
16807         if type is error_mark_node.
16808
16809 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
16810
16811         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
16812         -Os and issue a warning.
16813
16814 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
16815
16816         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
16817         current (lack of) need for host configuration by hand.
16818
16819         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
16820         references.  Documentation of some target macros moved from
16821         hostconfig.texi to tm.texi.
16822
16823 2002-01-23  Will Cohen  <wcohen@redhat.com>
16824
16825         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
16826         defined.
16827
16828 2002-01-23  Kazu Hirata  <kazu@hxi.com>
16829
16830         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
16831         operand[3].
16832
16833 2002-01-23  Jason Merrill  <jason@redhat.com>
16834
16835         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
16836
16837         * function.c (assign_parms): Don't put args of inline functions
16838         into registers when not optimizing.
16839
16840 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
16841
16842         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
16843         (prologue_use): New pattern.
16844         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
16845         preference to gen_rtx_USE.
16846         (thumb_expand_prologue): Use gen_prologue_use in preference to
16847         gen_rtx_USE.
16848         (thumb_expand_epilogue): Use gen_prologue_use in preference to
16849         gen_rtx_USE.
16850
16851 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
16852
16853         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
16854
16855 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
16856
16857         PR c/3504
16858         * doc/extend.texi: Correct documentation of __alignof__.
16859
16860 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
16861
16862         * params.h: Rename arguments of DEFPARAM so that it will be
16863         recognized as a translation keyword.
16864
16865 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
16866
16867         * extend.texi: Document altivec functions.
16868         Fix N-bit adjectives in X86 builtin documentation.
16869
16870 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
16871
16872         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
16873         auto_inc_dec values.
16874
16875 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
16876
16877         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
16878         after backslash.
16879         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
16880
16881 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
16882
16883         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
16884
16885 2002-01-22  Richard Henderson  <rth@redhat.com>
16886
16887         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
16888         copy_insn not copy_rtx.
16889
16890 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
16891
16892         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
16893         "nonzero" as that might add "1" bits.  Ensure "constop" is
16894         properly sign extened.
16895         (force_to_mode): Tweak for sign extended constop.
16896
16897 2002-01-22  Richard Henderson  <rth@redhat.com>
16898
16899         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
16900         for_each_rtx instead of assuming we're already looking at the MEM.
16901         (split_small_symbolic_mem_operand): Likewise.
16902         * config/alpha/alpha.h (PREDICATE_CODES): Update.
16903         * config/alpha/alpha.md (small symbolic memory splitters): Update.
16904
16905 2002-01-22  Richard Henderson  <rth@redhat.com>
16906
16907         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
16908         sequence number for the literal.
16909         (divmoddi_internal_er): Likewise.
16910
16911 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16912
16913         PR java/4972
16914         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
16915         in LIBICONV variable.
16916         * configure: Regenerated.
16917
16918 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
16919
16920         * dependence.c (build_def_use): Remove array_idx.
16921
16922         * dwarfout.c (last_filename): Remove.
16923         (output_compile_unit_die): Remove last_filename.
16924
16925 2002-01-22  Roger Sayle  <roger@eyesopen.com>
16926             Richard Henderson  <rth@redhat.com>
16927
16928         PR opt/3640
16929         * fold-const.c (fold): Optimize unsigned comparisons against
16930         UINT_MAX (and similar unsigned constants).
16931
16932 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
16933
16934         * Makefile.in (loop.o): Depend on OPTABS_H.
16935         * loop.c (emit_prefetch_instructions): Check the prefetch operand
16936         against the predicate.
16937
16938         PR target/5379
16939         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
16940         for the address operand.
16941
16942 2002-01-22  Richard Henderson  <rth@redhat.com>
16943
16944         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
16945
16946 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16947
16948         PR other/5450
16949         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
16950         preprocessor flags.
16951
16952 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
16953
16954         * config.gcc (x86_64-*-netbsd*): New target.
16955         * config/i386/netbsd64.h: New file.
16956
16957 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
16958
16959         * regrename.c (kill_value): Fix typo.
16960
16961 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
16962
16963         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
16964
16965         * config/rs6000/rs6000.h: Same.
16966
16967         * function.c (instantiate_virtual_regs): Remove
16968         STARTING_FRAME_PHASE.
16969         (assign_stack_local_1): Same.
16970         Calculate frame phase.
16971
16972 2002-01-22  Nick Clifton  <nickc@redhat.com>
16973
16974         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
16975         variable declaration to outer scope in order to simplify
16976         future extensions.
16977         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
16978         arm_hard_regno_mode_ok.
16979         * config/arm/arm-protos.h: Add a prototype for
16980         arm_hard_regno_mode_ok.
16981         * config/arm/arm.c (soft_df_operand): Remove now redundant
16982         check for DImode values using IP_REGNUM.
16983         (nonimmediate_soft_df_operand): Remove now redundant check for
16984         DImode values using IP_REGNUM.
16985         (arm_hard_regno_mode_ok): New function. New check: make sure
16986         that DImode values are not stored in IP_REGNUM.
16987
16988         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
16989         note with a USE.
16990         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
16991
16992 2002-01-22  Jason Merrill  <jason@redhat.com>
16993
16994         * c-semantics.c (genrtl_compound_stmt): Only check nesting
16995         consistency if this COMPOUND_STMT is scoped.
16996
16997 2002-01-22  Kazu Hirata  <kazu@hxi.com>
16998
16999         * predict.c: Fix formatting.
17000         * print-tree.c: Likewise.
17001         * protoize.c: Likewise.
17002         * real.h: Likewise.
17003         * rtl.h: Likewise.
17004         * sbitmap.h: Likewise.
17005         * scan.c: Likewise.
17006         * sched-deps.c: Likewise.
17007         * sched-vis.c: Likewise.
17008         * sdbout.c: Likewise.
17009         * sibcall.c: Likewise.
17010         * ssa.c: Likewise.
17011         * ssa-ccp.c: Likewise.
17012         * ssa-dce.c: Likewise.
17013         * stmt.c: Likewise.
17014         * stor-layout.c: Likewise.
17015         * system.h: Likewise.
17016
17017 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17018
17019         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
17020         if fits in bounds of base type.
17021
17022         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
17023         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
17024         (add_bound_info, default): If can't find a context, make a
17025         SAVE_EXPR.
17026         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
17027
17028 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
17029
17030         * c-typeck.c (parser_build_binary_op): If result from
17031         build_binary_op is ERROR_MARK just return error_mark_node without
17032         further processing.
17033
17034 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
17035
17036         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
17037         Split a.out-specific bits into...
17038         * config/netbsd-aout.h: ...this.
17039         * config/netbsd-elf.h: New file.
17040         * config/alpha/netbsd-elf.h: Remove.
17041         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
17042         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
17043         (STARTFILE_SPEC): Remove redundant definition.
17044         (ENDFILE_SPEC): Likewise.
17045         (LINK_SPEC): Likewise.
17046         (CPP_SPEC): Likewise.
17047         (ASM_SPEC): Likewise.
17048         (LIB_SPEC): Likewise.
17049         (SWITCH_TAKES_ARG): Likewise.
17050         (TARGET_MEM_FUNCTIONS): Likewise.
17051         (CPP_PREDEFINES): Redefine.
17052         (ASM_FINAL_SPEC): Remove redefinition.
17053         (ASM_COMMENT_START): Redefine.
17054         (FUNCTION_PROFILER): Define.
17055         (TARGET_VERSION): Redefine.
17056         Comment and formatting cleanup.
17057         * config/i386/netbsd.h: Include <netbsd-aout.h>.
17058         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
17059         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
17060         big- or little-endian.
17061         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
17062         * config.gcc (*-*-netbsd*): Add definitions common to all
17063         NetBSD configs.
17064         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
17065         gnu_ld definitions.  Add netbsd-elf.h to and remove
17066         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
17067         tmake_file, and don't lose previous tmake_file contents.
17068         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
17069         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
17070         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
17071         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
17072         (mipsel-*-netbsd*): Rename this to...
17073         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
17074         mips/little.h to tm_file for mips*el-*.
17075         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
17076         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
17077         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
17078
17079 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17080
17081         * pa-protos.h (reg_before_reload_operand): New function prototype.
17082         * pa.c (reg_before_reload_operand): New function implementation.
17083         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
17084         contraints to "*m".
17085
17086 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17087
17088         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
17089
17090 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17091
17092         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
17093         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
17094         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
17095         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
17096         (ENDFILE_SPEC): Undefine.
17097         (STARTFILE_SPEC): Redefine for PA.
17098
17099 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17100
17101         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
17102
17103 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
17104
17105         * config.gcc: Add entries to supported PowerPC --with-cpu
17106         types.
17107
17108 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
17109
17110         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
17111         true for 64-bit mode only SSE registers in 32-bit mode.
17112
17113 2002-01-21  Kazu Hirata  <kazu@hxi.com>
17114
17115         * unwind-dw2.c: Fix formatting.
17116         * unwind-dw2-fde.c: Likewise.
17117         * unwind-dw2-fde.h: Likewise.
17118         * unwind-pe.h: Likewise.
17119         * varasm.c: Likewise.
17120         * varray.h: Likewise.
17121
17122 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
17123
17124         Remove workaround for register stack overwrite bug in mmix.
17125         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
17126         support for TARGET_REG_STACK_FILL_BUG.
17127         * config/mmix/mmix.h: Remove member has_call_without_parameters.
17128         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
17129         Delete.
17130         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
17131         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
17132         -mno-reg-stack-fill-bug-workaround.
17133         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
17134         machine member has_call_without_parameters.
17135         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
17136         -mreg-stack-fill-bug-workaround and
17137         -mno-reg-stack-fill-bug-workaround.
17138         (MMIX Options): Ditto.
17139
17140 2002-01-21  Kazu Hirata  <kazu@hxi.com>
17141
17142         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
17143         as appropriate.
17144         Remove redundant code.
17145
17146 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
17147
17148         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
17149         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17150         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17151         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
17152         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
17153         out target macro definitions and non-target-specific comments
17154         mostly taken from old versions of the manual.
17155
17156 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17157
17158         * config/h8300/h8300.h: Fix comment formatting.
17159         * config/ia64/aix.h: Likewise.
17160         * config/ia64/ia64-protos.h: Likewise.
17161         * config/ia64/ia64.c: Likewise.
17162         * config/ia64/ia64.h: Likewise.
17163         * config/ia64/ia64intrin.h: Likewise.
17164         * config/ia64/linux.h: Likewise.
17165         * config/ia64/unwind-aix.c: Likewise.
17166         * config/ia64/unwind-ia64.c: Likewise.
17167
17168 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17169
17170         * config/h8300/h8300.c: Revise comments about shift code.
17171
17172 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17173
17174         * config/h8300/h8300.c (function_arg): Update a comment.
17175
17176 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17177
17178         * config/h8300/h8300.md: Update the comments at the beginning
17179         of the file.
17180
17181 2002-01-20  Kazu Hirata  <kazu@hxi.com>
17182
17183         * config/i370/i370.c: Fix comment formatting.
17184         * config/i370/i370.h: Likewise.
17185         * config/i370/i370.md: Likewise.
17186         * config/i370/linux.h: Likewise.
17187
17188 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17189
17190         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17191
17192         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17193         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17194         in incomplete case.
17195
17196 2002-01-20  Graham Stott  <grahams@redhat.com>
17197
17198         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17199
17200 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17201
17202         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17203
17204 2002-01-19  Tom Rix  <trix@redhat.com>
17205
17206         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17207
17208 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
17209
17210         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
17211
17212         * function.c (assign_stack_local_1): Adjust x_frame_offset with
17213         STARTING_FRAME_PHASE.
17214         (STARTING_FRAME_PHASE): New.
17215         (instantiate_virtual_regs): Check saneness of
17216         STARTING_FRAME_PHASE.
17217
17218         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
17219
17220 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
17221
17222         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17223
17224 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17225
17226         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17227         be used for bootstrapping GCC 3.0.
17228
17229 2002-01-18  Kazu Hirata  <kazu@hxi.com>
17230
17231         * config/h8300/h8300.md: Fix an insn length.
17232
17233 2002-01-18  Kazu Hirata  <kazu@hxi.com>
17234
17235         * bitmap.h: Fix comment formatting.
17236         * combine.c: Likewise.
17237         * cppfiles.c: Likewise.
17238         * c-pragma.h: Likewise.
17239         * c-typeck.c: Likewise.
17240         * df.c: Likewise.
17241         * dwarf2out.c: Likewise.
17242         * function.c: Likewise.
17243         * gcc.c: Likewise.
17244         * genattrtab.c: Likewise.
17245         * gthr-win32.h: Likewise.
17246         * haifa-sched.c: Likewise.
17247         * predict.c: Likewise.
17248         * rtlanal.c: Likewise.
17249         * rtl.h: Likewise.
17250         * unwind-dw2-fde.h: Likewise.
17251         * unwind-pe.h: Likewise.
17252         * vmsdbgout.c: Likewise.
17253
17254 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17255
17256         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17257         if type_required and passed decl.
17258
17259 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
17260
17261         * config.gcc (cpu_type): Include altivec.h in powerpc
17262         extra_headers.
17263         Same for darwin.
17264
17265         * config/rs6000/altivec.h: New.
17266
17267 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
17268
17269         * doc/install.texi (*-ibm-aix*): Update assembler and exception
17270         handling information.
17271         * doc/trouble.texi (Interoperation): Add libstdc++ information
17272         for AIX.
17273         (Misunderstandings): Add template instantiation and static template
17274         member information for AIX.
17275
17276 2002-01-17  Jason Merrill  <jason@redhat.com>
17277
17278         * dbxout.c (dbxout_type): Support const and volatile.
17279
17280         * except.c (add_partial_entry): Remove backwards compatibility code.
17281         (end_protect_partials): Likewise.
17282
17283 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
17284
17285         * config/ia64/ia64.md (prologue_use): New.
17286         * config/ia64/ia64.c (ia64_expand_prologue): Use
17287         gen_prologue_use instead of gen_rtx_USE.
17288         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17289         as CODE_FOR_pred_rel_mutex.
17290         (ia64_sched_reorder2): Likewise.
17291
17292 2002-01-16  Eric Christopher  <echristo@redhat.com>
17293
17294         * config/mips/r3900.h: Reformat.
17295         (SUBTARGET_CPP_SIZE_SPEC): Remove.
17296         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17297         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17298         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17299         * config/mips/t-elf: Remove mips3 multilib.
17300
17301 2002-01-16  H.J. Lu <hjl@gnu.org>
17302
17303         * config/mips/linux.h: Include "mips/abi64.h".
17304
17305 2002-01-16  H.J. Lu <hjl@gnu.org>
17306
17307         * config/mips/t-linux: New.
17308
17309         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17310
17311         * config/mips/linux.h: Don't include "gofast.h".
17312         (INIT_SUBTARGET_OPTABS): Removed.
17313
17314 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17315
17316         * config/h8300/h8300-protos.h: Replace emit_a_shift with
17317         output_a_shift.
17318         * config/h8300/h8300.c: Likewise.
17319         * config/h8300/h8300.md: Likewise.
17320
17321 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17322
17323         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17324         spaces after an opcode name.
17325         (pushqi1_h8300hs): Likewise.
17326         (pushhi1_h8300hs): Likewise.
17327
17328 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17329
17330         * doc/extend.texi: Replace "option" with "attribute"
17331         appropriately.
17332
17333 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
17334
17335         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17336         (and:DI () (const_int -8)).
17337         (split_small_symbolic_mem_operand): Split
17338         (mem (and:DI () (const_int -8)).
17339
17340 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
17341
17342         PR target/5309:
17343         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
17344         same way as TYPE_IMUL.
17345         (ultrasparc_sched_reorder): Likewise.
17346         * config/sparc/sparc.md (type): Add comment to update
17347         ultrasparc_sched_reorder when making changes.
17348
17349 2002-01-16  Kazu Hirata  <kazu@hxi.com>
17350
17351         * doc/invoke.texi: Change the dump file name of block
17352         reordering pass from 28.bbro to 29.bbro.
17353         Mention -dk option.
17354
17355 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
17356
17357         * i386.md (minsf splitter): Fix pasto.
17358
17359 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
17360
17361         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17362         to frame pointer initialisation instruction.
17363         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17364         initialisation instruction.
17365         (soft_df_operand): Do not accept the IP register.
17366         (nonimmediate_soft_df_operand): Do not accept the IP register.
17367
17368 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
17369
17370         PR target/5357:
17371         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17372         MASK_V8 being both set.
17373
17374 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
17375
17376         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17377         insn for GOT register; add REG_MAYBE_DEAD notes instead.
17378         config/s390/s390.md (call, call_value): Add GOT register to
17379         CALL_INSN_FUNCTION_USAGE where needed.
17380         (call_exp, call_value_exp): New.
17381
17382 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
17383
17384         * config/arm/arm.c: General formatting tidy up.
17385
17386 2002-01-16  Graham Stott  <grahams@redhat.com>
17387
17388         * calls.c (try_to_integrate): Use "(size_t)" intermediate
17389         cast and when casting an integer literal to "rtx" pointer.
17390         (expand_call): Likewise.
17391         * flow.c (try_pre_increment): Likewise.
17392         (find_use_as_address): Likewise.
17393         * integrate.c (expand_iline_function): Likewise.
17394         * regmove.c (try_auto_increment): Likewise.
17395
17396 2002-01-16  Graham Stott  <grahams@redhat.com>
17397
17398         * sched-rgn.c (passed): Use sbitmap_free.
17399         (header): Likewise.
17400         (inner): Likewise.
17401         (in_queue): Likewise.
17402         (in_stack): Likewise.
17403
17404 2002-01-15  Eric Christopher  <echristo@redhat.com>
17405
17406         * flow.c (propagate_one_insn): Change to use fatal_insn.
17407
17408 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17409
17410         * expmed.c (extract_fixed_bit_field): Remove unused code.
17411         * system.h: Poison SLOW_ZERO_EXTEND.
17412         * doc/tm.texi: Remove.
17413         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17414         * config/arm/arm.h: Likewise.
17415         * config/avr/avr.h: Likewise.
17416         * config/clipper/clipper.h: Likewise.
17417         * config/convex/convex.h: Likewise.
17418         * config/d30v/d30v.h: Likewise.
17419         * config/dsp16xx/dsp16xx.h: Likewise.
17420         * config/elxsi/elxsi.h: Likewise.
17421         * config/fr30/fr30.h: Likewise.
17422         * config/h8300/h8300.h: Likewise.
17423         * config/i370/i370.h: Likewise.
17424         * config/i386/i386.h: Likewise.
17425         * config/m68k/m68k.h: Likewise.
17426         * config/mips/mips.h: Likewise.
17427         * config/ns32k/ns32k.h: Likewise.
17428         * config/pdp11/pdp11.h: Likewise.
17429         * config/pj/pj.h: Likewise.
17430         * config/s390/s390.h: Likewise.
17431         * config/sh/sh.h: Likewise.
17432         * config/stormy16/stormy16.h: Likewise.
17433         * config/v850/v850.h: Likewise.
17434         * config/vax/vax.h: Likewise.
17435         * config/we32k/we32k.h: Likewise.
17436
17437 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
17438
17439         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17440         (altivec_lvsl): Change constraint to b.
17441         (altivec_lvsr): Same.
17442         (altivec_lvebx): Same.
17443         (altivec_lvehx): Same.
17444         (altivec_lvewx): Same.
17445         (altivec_lvxl): Same.
17446         (altivec_lvx): Same.
17447         (altivec_stvx): Add parallel.
17448         (altivec_stvxl): Same.
17449         (altivec_stvehx): Same.
17450         (altivec_stvebx): Same.
17451         (altivec_stvebx): Same.
17452
17453 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
17454
17455         * config.gcc: Change altivec.h to altivec-defs.h.
17456
17457         * config/rs6000/altivec.h: Delete.
17458
17459         * config/rs6000/altivec-defs.h: Add.
17460
17461 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17462
17463         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17464         and UMOD modes.
17465
17466         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17467         less than or equal to eight bytes.
17468
17469         * vax.md (andsi3): Remove constraints and change SET destination
17470         operand type to nonimmediate_operand.
17471         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
17472         when it is a CONST_INT.
17473
17474 2002-01-15  Jason Merrill  <jason@redhat.com>
17475
17476         * c-common.def (FILE_STMT): New code.
17477         * c-common.c (statement_code_p): It's a statement.
17478         * c-common.h (stmt_tree_s): Add x_last_filename.
17479         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17480         (last_expr_filename): New macro.
17481         * c-semantics.c (begin_stmt_tree): Initialize it.
17482         (add_stmt): If the filename changed, also insert a
17483         FILE_STMT.
17484         (expand_stmt): Handle seeing one.
17485
17486 2002-01-15  Eric Christopher  <echristo@redhat.com>
17487
17488         * flow.c (propagate_one_insn): Add error message and print out
17489         insn for debugging.
17490
17491 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
17492
17493         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17494         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17495         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17496         TRAMPOLINE_ALIGNMENT.
17497         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
17498         to be in bits.
17499         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17500         PCC_BITFIELD_TYPE_MATTERS.
17501         * config/interix.h (STDC_VALUE): Remove.  Use
17502         STDC_0_IN_SYSTEM_HEADERS.
17503         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17504         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17505         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17506
17507 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17508
17509         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17510         not work on this platform currently.
17511
17512 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
17513
17514         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17515         readonly_warning in _().
17516
17517 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
17518
17519         * gcc.c (delete_if_ordinary): Backout previous change.
17520
17521 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17522
17523         * config/h8300/h8300.c (print_operand): Remove support for
17524         unused operand characters.
17525
17526         * read-rtl.c: Fix formatting.
17527         * real.c: Likewise.
17528         * recog.c: Likewise.
17529         * regclass.c: Likewise.
17530         * regmove.c: Likewise.
17531         * reg-stack.c: Likewise.
17532         * reload1.c: Likewise.
17533         * rtlanal.c: Likewise.
17534
17535 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17536
17537         * config/i386/i386.c: Fix formatting.
17538
17539 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
17540
17541         * c-typeck.c (process_init_element): Don't save_expr
17542         COMPOUND_LITERAL_EXPR if just its initializer will be used.
17543
17544 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
17545
17546         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17547         emit optional traceback table if optimize_size or TARGET_ELF.
17548         * config/rs6000/rs6000.md (prefetch): New.
17549
17550 2002-01-15  Andreas Jaeger  <aj@suse.de>
17551
17552         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17553
17554 2002-01-15  Kazu Hirata  <kazu@hxi.com>
17555
17556         * mips-tfile.c: Fix formatting.
17557
17558 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
17559
17560         * unroll.c (final_reg_note_copy): Fix previous commit.
17561
17562 2002-01-14  Kazu Hirata  <kazu@hxi.com>
17563
17564         * config/h8300/h8300-protos.h: Remove the prototype for
17565         eq_operator.
17566         * config/h8300/h8300.c (eq_operator): Remove.
17567
17568 2002-01-14  Richard Henderson  <rth@redhat.com>
17569
17570         * config/i386/i386.md (prefetch): Tidy.
17571         (prefetch_3dnow): Fix locality operand.
17572
17573 2002-01-14  Richard Henderson  <rth@redhat.com>
17574
17575         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17576         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17577
17578 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
17579
17580         * reload1.c (reload_combine): Pass reg_sum replacement through
17581         copy_rtx in loop performing multiple changes.
17582
17583 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
17584
17585         * except.c (remove_unreachable_regions): New.
17586         (free_eh_status): Clear exception_handler_labels.
17587         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17588         (find_exception_handler_labels): Don't add the same label more than
17589         once.
17590         (remove_exception_handler_label): Don't die if
17591         find_exception_handler_labels hasn't been called for the current
17592         function yet.
17593
17594 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
17595
17596         * toplev.c (rest_of_compilation): Rebuild jump labels after
17597         gcse.
17598
17599 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
17600
17601         * doc/extend.texi: Move documentation of X86 built-in functions
17602         here.
17603         * doc/invoke.texi: From here.
17604         * doc/sourcebuild.texi: Document location of documentation for
17605         machine built-in functions.
17606
17607 2002-01-13  Christopher Faylor  <cgf@redhat.com>
17608
17609         * cppfiles.c (TEST_THRESHOLD): New macro.
17610         (SHOULD_MMAP): Ditto.
17611         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17612         be used.
17613
17614 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
17615
17616         * unroll.c (final_reg_note_copy): Properly handle
17617         REG_LABEL
17618         (unroll_loops): Fix LOOP_CONDITION heuristics.
17619
17620 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
17621
17622         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17623         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17624
17625 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
17626
17627         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17628         threaded loop.
17629
17630 2002-01-14  Tom Rix  <trix@redhat.com>
17631
17632         * config/rs6000/rs6000.md: Fix typo with sradi.
17633
17634 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
17635
17636         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17637         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17638         (clrstrdi, clrstrsi): Adapt callers.
17639
17640         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17641
17642         (movti splitter): Never use register 0 as base register.
17643
17644 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
17645
17646         * combine.c (simplify_shift_const): Always generate new rtx
17647         for shift expression instead of reusing given expression.
17648
17649 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17650
17651         * config/alpha/alpha.c (alpha_expand_mov): Don't call
17652         alpha_legitimize_address unless mode is Pmode.
17653
17654 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
17655
17656         * doc/md.texi (Modifiers): Document the '*' constraint for the
17657         user.
17658
17659         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17660         * doc/extend.texi (Function Attributes): 'interrupt' is valid
17661         for xstormy16 too.
17662
17663 2002-01-13  Richard Henderson  <rth@redhat.com>
17664
17665         * reload.c (find_reloads): Use a hard reg destination as reload reg
17666         for an input reload of the source.
17667
17668 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17669
17670         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17671         more generic.
17672
17673 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
17674
17675         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17676         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17677
17678         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17679
17680 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17681
17682         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17683
17684 2002-01-12  Tom Rix  <trix@redhat.com>
17685
17686         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
17687         TARGET_POWERPC64.
17688
17689 2002-01-12  Richard Henderson  <rth@redhat.com>
17690
17691         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17692
17693         * doc/invoke.texi: Update Alpha options.
17694
17695         * doc/invoke.texi: Update i386 built-in function lists.
17696
17697 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
17698
17699         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17700         referencing outside.
17701
17702 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17703
17704         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17705         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17706         offsets, and change line folding.
17707         * optabs.c (expand_binop): Remove warnings.
17708         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
17709
17710 2002-01-12  Graham Stott <grahams@redhat.com>
17711
17712         * attribs.c (handle_deprecated_attribute): constify WHAT.
17713         * diagnostic.c (warn_deprecated_use): Add braces, fixes
17714         dangling else warning and constify WHAT.
17715         * except.h (struct function, struct inline_remap): Move
17716         struct tag forward defs before all prototypes.
17717         (duplicate_eh_regions): Whitespace.
17718
17719 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
17720
17721         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17722         MODE_BASE_REG_CLASS.
17723         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17724
17725 2002-01-12  Richard Henderson  <rth@redhat.com>
17726
17727         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17728         (ix86_expand_vector_move): New.
17729         (bdesc_2arg): Remove andps, andnps, orps, xorps.
17730         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
17731         Remove old prefetch builtins.  Special case the logicals removed above.
17732         (ix86_expand_builtin): Likewise.
17733         (safe_vector_operand): Use V4SFmode, not TImode.
17734         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
17735         (ix86_expand_timode_binop_builtin): New.
17736         * config/i386/i386-protos.h: Update.
17737         * config/i386/i386.h (enum ix86_builtins): Update.
17738         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17739         Use ix86_expand_vector_move in vector move expanders.
17740         (movti_internal, movti_rex64): Add xorps alternative.
17741         (sse_clrv4sf): Rename and adjust from sse_clrti.
17742         (prefetch): Don't work so hard.
17743         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17744         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17745         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
17746
17747 2002-01-11  Richard Henderson  <rth@redhat.com>
17748
17749         * config/i386/mmintrin.h: New file.
17750         * config/i386/xmmintrin.h: New file.
17751         * config.gcc (i?86-*-*): Add extra_headers.
17752         * simplify-rtx.c (simplify_unary_operation): Handle saturating
17753         truncation codes.
17754         (simplify_binary_operation): Handle saturating arithmetic codes.
17755         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
17756         not the lowpart subreg.
17757         (ix86_expand_builtin): Return a TImode dummy register instead of 0
17758         on error.
17759         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
17760
17761 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17762
17763         * conflict.c (conflict_graph_compute): Free regsets when finished.
17764         * ssa.c (compute_coalesced_reg_partition): Likewise.
17765
17766 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17767
17768         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
17769         every where we allocate a register.
17770
17771 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17772
17773         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
17774         * lcm.c (compute_earliest, compute_farthest): Likewise.
17775
17776 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
17777
17778         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
17779
17780 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
17781
17782         * doc/rtl.texi (Insns): Fix 2 typos.
17783
17784 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
17785
17786         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
17787         options.  Use @table @gcctabopt for MMIX options.  Add index
17788         entries for MMIX options.  Start new paragraph with first
17789         heading of the machine-dependent options.
17790
17791 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17792
17793         PR other/5299
17794         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
17795         * combine.c (force_to_mode): Same.
17796         * reload1.c (clear_reload_reg_in_use): Same.
17797
17798 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
17799
17800         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
17801         and 'subtargets'.
17802
17803 2002-01-11  Andreas Jaeger  <aj@suse.de>,
17804             Brad Lucier <lucier@math.purdue.edu>
17805
17806         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
17807         mcpu.
17808
17809 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
17810
17811         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
17812         Protect with IN_LIBGCC.
17813         (LINK_EH_SPEC): Add required trailing space.
17814
17815 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
17816
17817         * c-tree.h: Move function declarations so that they are listed
17818         under the filename which contains them.
17819         (check_identifier, finish_decl_top_level,
17820         lookup_name_current_level_global, shadow_record_fields): Remove.
17821
17822 2002-01-11  Andreas Jaeger  <aj@suse.de>
17823
17824         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
17825         march.
17826
17827 2002-01-10  Richard Henderson  <rth@redhat.com>
17828
17829         * config/alpha/alpha.c (print_operand): Add 'J'.
17830         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
17831         new operand with the sequence number for the lituse.  When splitting
17832         the insns, use gen_movdi_er_high_g and generate a sequence number.
17833         (gen_movdi_er_high_g): Print the sequence number if non-zero.
17834
17835 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
17836
17837         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
17838         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
17839         stvxl.
17840         (altivec_expand_builtin): Same.
17841         (altivec_expand_stv_builtin): New.
17842
17843         * config/rs6000/rs6000.h (rs6000_builtins): Same.
17844
17845         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
17846         ("altivec_lvehx"): New.
17847         ("altivec_lvewx"): New.
17848         ("altivec_lvxl"): New.
17849         ("altivec_lvx"): New.
17850         ("altivec_stvx"): New.
17851         ("altivec_stvebx"): New.
17852         ("altivec_stvehx"): New.
17853         ("altivec_stvewx"): New.
17854         ("altivec_stvxl"): New.
17855
17856 2002-01-10  Richard Henderson  <rth@redhat.com>
17857
17858         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
17859         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
17860         care not to delete instructions twice.
17861
17862 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
17863
17864         * toplev.c: Don't declare environ (it's not used anywhere).
17865         * configure.in: Don't check for declaration of environ.
17866         * config/i386/xm-mingw32.h: Don't #define environ.
17867         * config.in, configure: Regenerate.
17868
17869 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
17870
17871         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
17872         * configure: Regenerate.
17873
17874         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
17875         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
17876         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
17877         alpha/xm-vms.h.
17878         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
17879         LIMITS_H_TEST here, not in m68k/x-next.
17880         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
17881         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
17882
17883         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
17884         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
17885         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
17886
17887         * config/i386/x-djgpp: Renamed i386/t-djgpp.
17888         * config/m88k/x-dolph: Renamed m88k/t-dolph.
17889         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
17890         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
17891         replacement of quadlib.asm with quadlib.c.
17892
17893         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
17894         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
17895         config/rs6000/xm-beos.h: Delete file.
17896
17897         * config.gcc: Update to match above changes.
17898
17899 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17900
17901         * config/h8300/h8300.h: Fix comment typos.
17902         * config/h8300/h8300.md: Likewise.
17903         * config/h8300/lib1funcs.asm: Likewise.
17904
17905 2002-01-10  Dale Johannesen  <dalej@apple.com>
17906
17907         PR optimization/5269
17908         * unroll.c (precondition_loop_p): Make *increment be the correct
17909         sign when n_iterations known, to avoid confusing caller.
17910
17911 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17912
17913         * doc/extend.texi (deprecated): Fix a typo.
17914
17915 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
17916
17917         * basic-block.h (update_br_prob_note): Declare.
17918         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
17919         (try_forward_edges): Care negative frequencies and update note.
17920         (outgoing_edges_match): Tweek conditional merging heuristics.
17921         (try_crossjump_to_edge): use update_br_prob_note.
17922         * cfglayout.c (fixup_reorder_chain): Likewise.
17923         * cfrtl.c (update_br_prob_note): New.
17924         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
17925
17926         * i386.c (ix86_decompose_address): Return -1 if address contains
17927         shift.
17928         (legitimate_address_p): Require ix86_decompose_address to return 1.
17929
17930         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
17931         (cprop_insn): Likewise.
17932
17933 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17934
17935         * toplev.c: Fix formatting.
17936         * tree.c: Likewise.
17937         * tree-dump.c: Likewise.
17938         * unroll.c: Likewise.
17939         * unwind-dw2.c: Likewise.
17940         * unwind-dw2-fde.c: Likewise.
17941         * unwind-dw2-fde-glibc.c: Likewise.
17942         * unwind-sjlj.c: Likewise.
17943
17944 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
17945
17946         * doc/invoke.texi: Document PDP-11 options.
17947
17948 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17949
17950         * config/h8300/h8300.h: Fix formatting.
17951
17952 2002-01-10  Ira Ruben   <ira@apple.com>
17953
17954         Add __attribute__ ((deprecated)).
17955         * extend.texi: Document __attribute__ ((deprecated)).
17956         * invoke.texi: Document -Wno-deprecated-declarations.
17957         * testsuite/g++.dg/other/deprecated.C: New C++ test.
17958         * testsuite/gcc.dg/deprecated.c: New C test.
17959         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
17960         (c_common_attribute_table): Add "deprecated" entry.
17961         (handle_deprecated_attribute): New function.
17962         * c-decl.c (deprecated_states): New enum.
17963         deprecated_state: State of "deprecated" handling.
17964         (start_decl): Set deprecated_state based on attributes.
17965         (grokdeclarator): Test for deprecated uses, propagate attribute.
17966         * c-typeck.c (build_component_ref): Test for deprecated fields.
17967         (build_external_ref): Test for deprecated primaries.
17968         * diagnostic.c (warn_deprecated_use) New function to issue
17969         warnings about __attribute__ ((depricated)) references.
17970         * flags.h (warn_deprecated_decl): Extern declared for
17971         -W[no-]deprecated-declarations option.
17972         * print-tree.c (print_node): Show deprecated flag status.
17973         * toplev.c (warn_deprecated_decl): Defined.
17974         (W_options): Added "deprecated-declaration".
17975         * toplev.h (warn_deprecated_use): Extern declared.
17976         * tree.h (struct tree_common): Define deprecated_flag.
17977         (TREE_DEPRECATED): New macro to access flag.
17978         * cp/call.c (build_call): Test for deprecated calls.
17979         * cp/class.c (add_implicitly_declared_members): Set global
17980         flag to tell grokdeclarator to not issue deprecated warnings.
17981         * cp/cp-tree.h: Add extern for adding_implicit_members.
17982         * cp/decl.c (deprecated_states): New enum.
17983         (start_decl): Set deprecated_state based on attributes.
17984         (grokdeclarator): Test for deprecated uses, propagate attribute.
17985         * cp/lex.c (do_identifier): Test for deprecated primaries.
17986         * cp/typeck.c (build_component_ref): Test for deprecated fields.
17987
17988 2002-01-10  Ira Ruben   <ira@apple.com>
17989
17990         Fix to assign attributes to inline member functions.
17991         * cp/decl.c (start_method): Handle attrlist.
17992
17993 2002-01-10  Kazu Hirata  <kazu@hxi.com>
17994
17995         * combine.c (expand_field_assignment): Use subreg_lsb().
17996
17997 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
17998
17999         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
18000         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
18001         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
18002         Recurse for any operand of AND as long as constant is non-zero.
18003
18004 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18005
18006         * config/h8300/h8300.md: Remove constraints from expanders.
18007
18008 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18009
18010         * varasm.c: Fix formatting.
18011         * varray.c: Likewise.
18012         * vmsdbgout.c: Likewise.
18013         * xcoffout.c: Likewise.
18014
18015 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
18016
18017         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
18018         update edge probabilities to match.
18019
18020 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
18021
18022         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
18023         dependencies.
18024         * doc/languages.texi, doc/sourcebuild.texi: New files.
18025         * doc/configfiles.texi: Make a subsubsection.  Update.
18026         * doc/configterms.texi: Add @node.  Remove warning that this isn't
18027         instructions for building GCC.
18028         * doc/makefile.texi: Make a subsection.
18029         * doc/gccint.texi: Update.
18030
18031 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
18032
18033         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
18034
18035 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
18036
18037         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
18038
18039 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
18040
18041         * optabs.c (expand_fix): Look for wider integer modes first.
18042
18043         * i386.md (mov?f): Avoid the fake const double trick for medium
18044         memory model.
18045         (min?f*/max?f*): Prohibit memory operands for i387 variant.
18046         (fop_df_4): Disable for SSE compilation.
18047
18048 2002-01-10  Graham Stott  <grahams@redhat.com>
18049
18050         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
18051         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
18052
18053 2002-01-10  Richard Henderson  <rth@redhat.com>
18054
18055         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
18056
18057 2002-01-10  Richard Henderson  <rth@redhat.com>
18058
18059         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
18060         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
18061
18062 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18063
18064         * combine.c (can_combine_p): Fix a comment typo.
18065
18066 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
18067
18068         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
18069         empty list correctly.  Change loop index $t to $f for
18070         consistency with rest of Makefile.
18071
18072 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
18073
18074         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
18075         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18076
18077         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
18078         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
18079         (altivec_init_builtins): Same.
18080         (altivec_expand_unop_builtin): Return NULL_RTX on error.
18081         (altivec_expand_binop_builtin): Same.
18082         (altivec_expand_ternop_builtin): Same.
18083         (bdesc_dst): New.
18084
18085         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
18086         ("altivec_vctuxs"): Fix typo.
18087         ("altivec_vnmsubfp"): Same.
18088         ("altivec_dssall"): New.
18089         ("altivec_mfvscr"): New.
18090         ("altivec_dss"): New.
18091         ("altivec_lvsl"): New.
18092         ("altivec_lvsr"): New.
18093         ("altivec_dstt"): New.
18094         ("altivec_dstst"): New.
18095         ("altivec_dststt"): New.
18096         ("altivec_dst"): New.
18097
18098         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
18099         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18100
18101 2002-01-09  Richard Henderson  <rth@redhat.com>
18102
18103         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
18104
18105 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
18106
18107         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
18108         function.
18109         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
18110         prototype.
18111         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
18112
18113 2002-01-09  Kazu Hirata  <kazu@hxi.com>
18114
18115         * read-rtl.c: Fix formatting.
18116         * real.c: Likewise.
18117         * regclass.c: Likewise.
18118         * regrename.c: Likewise.
18119         * reg-stack.c: Likewise.
18120         * reload1.c: Likewise.
18121         * reload.c: Likewise.
18122         * rtl.c: Likewise.
18123
18124 2002-01-09  Kazu Hirata  <kazu@hxi.com>
18125
18126         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
18127         to extract items in the expr_list chain.
18128
18129 2002-01-09  Richard Henderson  <rth@redhat.com>
18130
18131         * config/vax/vax.c (vax_rtx_cost): Never abort.
18132
18133         * config/vax/vax.h (REAL_ARITHMETIC): Define.
18134
18135 2002-01-09  Jan Hubicka  <jh@suse.cz>
18136
18137         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
18138
18139 2002-01-09  Richard Henderson  <rth@redhat.com>
18140
18141         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
18142         Unify code from various alternatives.
18143
18144 2002-01-09  Richard Henderson  <rth@redhat.com>
18145
18146         * regrename.c (copy_value): Ignore the copy if the source register
18147         is present in the value chain with a narrower mode.
18148
18149 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
18150
18151         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
18152         for the c4x target. Also improve layout.
18153
18154 2002-01-09  Richard Henderson  <rth@redhat.com>
18155
18156         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
18157         * config/m32r/m32r.md (and ior xor splitters): Swap operands
18158         to match insn patterns.
18159
18160 2002-01-09  Richard Henderson  <rth@redhat.com>
18161
18162         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
18163         (copyprop_hardreg_forward_1): Likewise.
18164
18165 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18166
18167         * pa.md (decrement_and_branch_until_zero): Change predicate for
18168         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
18169
18170 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
18171
18172         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
18173         gets undefined. For Darwin.
18174
18175 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18176
18177         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
18178
18179 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18180
18181         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
18182
18183 2002-01-08  Richard Henderson  <rth@redhat.com>
18184
18185         * regrename.c (copy_value): Ignore overlapping copies.
18186
18187 2002-01-08  Richard Henderson  <rth@redhat.com>
18188
18189         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18190         as needed to avoid shared structure.
18191
18192 2002-01-08  Kazu Hirata  <kazu@hxi.com>
18193
18194         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18195         H8/300H and H8/S.
18196
18197 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18198
18199         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18200         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18201         documentation of obsolete macros.
18202         * system.h: Poison these macros.
18203         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18204         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18205         config/c4x/c4x.h, config/clipper/clipper.h,
18206         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18207         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18208         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18209         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18210         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18211         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18212         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18213         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18214         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18215         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18216         config/sparc/sparc.h, config/stormy16/stormy16.h,
18217         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18218         definitions and commented out definitions of obsolete macros.
18219         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18220         of MAX_INT_TYPE_SIZE.
18221
18222 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
18223
18224         * config/s390/s390.c (s390_preferred_reload_class): Never
18225         return ADDR_REGS if it isn't a subset of the given class.
18226         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18227         FP_REGS, but all superclasses as well.
18228
18229         * config/s390/s390.c (s390_function_profiler): Fix thinko.
18230
18231         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18232         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18233         must not be a const_int.
18234
18235 2002-01-08  Richard Henderson  <rth@redhat.com>
18236
18237         * Makefile.in (toplev.o): Depend on options.h.
18238         (gcc.o): Depend on specs.h.
18239
18240 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
18241
18242         * expr.c (store_expr): Convert VOIDmode constants back to target's
18243         mode.
18244
18245 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18246
18247         * doc/invoke.texi: Markup gcc as @command.  Refer to
18248         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18249         of http://gcc.gnu.org/thanks.html.
18250
18251 2002-01-08  Dale Johannesen  <dalej@apple.com>
18252
18253         * config/rs6000/rs6000.md: Add missing int register
18254         target case to movdf_low.
18255
18256 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
18257
18258         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18259         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
18260         (cppinit.o): Depend on except.h.
18261         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18262         s-specs): New rules.
18263
18264         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18265         Don't create specs.h/options.h/gencheck.h here.  Remove
18266         unnecessary variable settings from last argument of AC_OUTPUT.
18267         * config.in, configure: Regenerate.
18268         * intl.c: Hardcode package name as "gcc".
18269
18270         * cppinit.c: Include except.h.
18271         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18272         appropriate.
18273         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18274         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18275         (!)USING_SJLJ_EXCEPTIONS.
18276         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18277
18278 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18279
18280         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18281         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18282         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18283         documentation of obsolete macros.
18284         * system.h: Poison these macros.
18285         * config/d30v/d30v.h, config/ns32k/encore.h,
18286         config/stormy16/stormy16.h: Remove definitions and commented out
18287         definitions of obsolete macros.
18288
18289 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
18290
18291         * objc/objc-act.c (handle_class_ref): Mark the declaration of
18292         %sobjc_class_ref_%s as used - to prevent unwanted compiler
18293         warnings.
18294
18295 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
18296
18297         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18298         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18299         to insn adjusting stack/frame pointer.
18300         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
18301         accept operands that cause the insn to be non-splittable.
18302
18303 2002-01-08  Graham Stott  <grahams@redhat.com>
18304
18305         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18306         (C_TYPE_FIELDS_VOLATILE): Likewise.
18307         (C_TYPE_BEING_DEFINED): Likewise.
18308         (C_IS_RESERVED_WORD): Likewise.
18309         (C_TYPE_VARIABLE_SIZE): Likewise.
18310         (C_DECL_VARIABLE_SIZE): Likewise.
18311         (C_MISSING_PROTOTYPE_WARNED): Likewise.
18312         (C_SET_EXP_ORIGINAL_CODE): Likewise.
18313         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18314         parenthesis.
18315         (C_DECL_ANTICIPATED): Likewise.
18316         (c_build_type_variant): Add parenthesis.
18317
18318 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18319
18320         * gcc.c (option_map): Remove --version.
18321         (process_command): Handle -fversion following the GNU Coding
18322         Standards.  Partially addresses PR other/704.
18323
18324 2002-01-08  Graham Stott  <grahams@redhat.com>
18325
18326         * combine.c (combine_instructions): Fix typo.
18327
18328 2002-01-08  Graham Stott  <grahams@redhat.com>
18329
18330         * debug.h: Use "tree" and "rtx" throughout.
18331
18332         * debug.c: Likewise.
18333
18334 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
18335
18336         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18337         constant pool, use the pool's version of the symbol instead.
18338
18339 2002-01-07  Richard Henderson  <rth@redhat.com>
18340
18341         * regrename.c (find_oldest_value_reg): Ignore the value chain if
18342         the original register was copied in a mode with a fewer number of
18343         hard registers than the desired mode.
18344         (copyprop_hardreg_forward_1): Likewise.
18345         (debug_value_data): Fix loop test.
18346         * toplev.c (parse_options_and_default_flags): Reenable
18347         -fcprop-registers at -O1.
18348
18349 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
18350
18351         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18352         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
18353
18354         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18355         predicates.
18356
18357         * config/rs6000/rs6000.md: Add altivec predicate patterns.
18358
18359 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18360
18361         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18362         (pa_output_function_prologue): Output local label at the beginning of
18363         the prologue when profiling.
18364         (hppa_profile_hook): Use the local label rather than the function label.
18365         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18366
18367 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
18368
18369         * config/rs6000/rs6000.c (print_operand): Remove extra space.
18370         (altivec_expand_unop_builtin): Fix thinko.
18371         (altivec_expand_binop_builtin): Same.
18372         (altivec_expand_ternop_builtin): Same.
18373         (altivec_expand_builtin): Same.
18374
18375 2002-01-07  Richard Henderson  <rth@redhat.com>
18376
18377         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18378
18379 2002-01-07  Jason Merrill  <jason@redhat.com>
18380
18381         * unwind-dw2.c (execute_cfa_program): Use < again.
18382
18383 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
18384
18385         * predict.c (combine_predictions_for_insn): Avoid division by zero.
18386
18387 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
18388
18389         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18390         Don't allow -1 - x -> ~x simplifications in the first pass.
18391
18392 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
18393
18394         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18395         arguments.
18396         (altivec_expand_binop_builtin): Same.
18397         (altivec_expand_unop_builtin): Same.
18398         (print_operand): Fix typo.
18399         (bdesc_1arg): Add vupk* variants.
18400
18401         * rs6000.h (rs6000_builtins): Add vupk* enums.
18402
18403         * rs6000.md: Add altivec_vupk* variants.
18404
18405 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
18406
18407         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18408         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18409         and last update dates.
18410
18411 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
18412
18413         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18414
18415 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
18416
18417         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18418         * config/avr/avr.h (CPP_SPEC): Likewise.
18419         (LINK_SPEC): Likewise.
18420         (CRT_BINUTILS_SPECS): Likewise.
18421         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18422         * doc/invoke.texi (AVR Options): Document them.
18423
18424 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
18425
18426         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18427         LABEL_NUSES.
18428
18429 2002-01-07  Graham Stott  <grahams@redhat.com>
18430
18431         * config/i386/i386.h: Update copyright date.
18432         (HALF_PIC_PTR): Add parenthesis.
18433         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18434         (CONSTANT_ALIGNMENT): Add parenthesis.
18435         (DATA_ALIGNMENT): Likewise.
18436         (LOCAL_ALIGNMENT): Likewise.
18437         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18438         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18439         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18440         (HARD_REGNO_NREGS): Add paranethesis.
18441         (VALID_SSE_REG_MODE): Whitespace.
18442         (VALID_MMX_REG_MODE): Whitespace.
18443         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18444         (ix86_hard_regno_mode_ok): Add parenthesis.
18445         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18446         (RETURN_IN_MEMORY): Whitespace.
18447         (N_REG_CLASSES): Add parenthesis.
18448         (INTEGER_CLASS_P): Add parenthesis and wrap.
18449         (FLOAT_CLASS_P): Likewise.
18450         (SSE_CLASS_P): Likewise.
18451         (MMX_CLASS_P): Likewise.
18452         (MAYBE_INTEGER_CLASS_P): Likewise.
18453         (MAYBE_FLOAT_CLASS_P): Likewise.
18454         (MAYBE_SSE_CLASS_P): Likewise.
18455         (MAYBE_MMX_CLASS_P): Likewise.
18456         (Q_CLASS_P): Likewise.
18457         (GENERAL_REGNO_P): Uppercase macro parameter.
18458         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18459         (FP_REGNO_P): Likewise.
18460         (ANY_FP_REGNO_P): Uppercase macro parameter.
18461         (SSE_REGNO_P): Likewise.
18462         (SSE_REGNO): Likewise.
18463         (SSE_REG_P): Likewise.
18464         (SSE_FLOAT_MODE_P): Likewise.
18465         (MMX_REGNO_P): Likewise.
18466         (MMX_REG_P):Likewise.
18467         (STACK_REG_P): Likewise.
18468         (NON_STACK_REG_P): Likewise.
18469         (STACK_TOP_P): Likewise.
18470         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18471         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18472         (SECONDARY_MEMORY_NEEDED): Likewise.
18473         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18474         (MD_ASM_CLOBBERS): Whitespace and wrap.
18475         (MUST_PASS_IN_STACK): Whitespace and wrap.
18476         (RETURN_POPS_ARGS): Add parenthesis.
18477         (INIT_CUMULATIVE_ARGS): Likewise.
18478         (FUNCTION_ARG): Likewise.
18479         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18480         (SETUP_INCOMING_VARARGS): Likewise.
18481         (BUILD_VA_LIST_TYPE):  Add parenthesis.
18482         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18483         parenthsis.
18484         (EXPAND_BUILTIN_VA_ARG): Likewise.
18485         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18486         (INITIALIZE_TRAMPOLINE): Add parenthesis.
18487         (INITIAL_ELIMINATION_OFFSET): Likewise.
18488         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18489         (REGNO_OK_FOR_BASE_P): Likewise.
18490         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18491         (REGNO_OK_FOR_DIREG_P): Likewise.
18492         (REG_OK_FOR_INDEX_P): Whitespace.
18493         (REG_OK_FOR_BASE_P): Whitespace.
18494         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18495         parenthesis.
18496         (FIND_BASE_TERM): Fix typo.
18497         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
18498         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18499         (SYMBOLIC_CONST; Whitespace.
18500         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
18501         (ENCODE_SECTION_INFO): Whitespace.
18502         (FINALIZE_PIC): Remove do { ... } while (0).
18503         (PROMOTE_MODE): Wrap in do { ... } while (0).
18504         (CONST_COSTS): Whitespace.
18505         (RTX_COSTS): Add paramethesis, whitespace and wrap.
18506         (REGISTER_MOVE_COST): Add parenthesis.
18507         (MEMORY_MOVE_COST): Likewise.
18508         (EXTRA_CC_MODES): Whitespace.
18509         (SELECT_CC_MODE): Add parenthesis and whitespace.
18510         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18511         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18512         (ASM_OUTPUT_LABEL): Add paramethesis.
18513         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18514         (ASM_OUTPUT_REG_POP): Likewise.
18515         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18516         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18517
18518         * config/i386/i386.c: Update copyright.
18519         (CHECK_STACK_LIMIT): Add parenthesis.
18520         (AT_BP): Uppercase macro parameter.
18521         (x86_64_int_parameter_registers): Constify.
18522         (x86_64_int_return_registers): Likewise.
18523         (ix86_compare_op0): Use rtx.
18524         (construct_container): Constify INTREG parameter.
18525         (function_arg): Use rtx.
18526
18527         * diagnostic.h: Update copyright date.
18528         (output_buffer_state): Add parenthesis.
18529         (output_buffer_format_args): Likewise.
18530
18531         * combine.c (combine_instructions): Replace XEXP (links, 0)
18532         with link.
18533
18534 2002-01-06  H.J. Lu <hjl@gnu.org>
18535
18536         * cfgcleanup.c (thread_jump): Fix 2 typos.
18537
18538 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
18539
18540         * config.gcc: Add support for --enable-altivec.
18541
18542 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18543
18544         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18545
18546 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
18547
18548         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18549         __objc_class_name_*.
18550
18551 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18552
18553         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18554
18555 2002-01-06  Richard Henderson  <rth@redhat.com>
18556
18557         * reorg.c (emit_delay_sequence): Remove death notes, not merely
18558         nop them out.  Increment label reference count for REG_LABEL.
18559         (fill_slots_from_thread): Frob label reference count around
18560         delete_related_insns.
18561
18562 2002-01-05  Richard Henderson  <rth@redhat.com>
18563
18564         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18565         jump threading.
18566
18567 2002-01-05  Richard Henderson  <rth@redhat.com>
18568
18569         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18570         * integrate.c (output_inline_function): Likewise.
18571         * toplev.c (rest_of_compilation): Do it here instead.  Move call
18572         to remove_unnecessary_notes after emitting abstract instance.
18573         Force an emitted nested function to have its parent emited as well.
18574         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18575         for null.
18576         (rtl_for_decl_location): Do not look at reload data structures
18577         before reload has run.
18578
18579 2002-01-05  Kazu Hirata  <kazu@hxi.com>
18580
18581         * cse.c: Fix formatting.
18582         * dwarf2asm.c: Likewise.
18583         * dwarf2out.c: Likewise.
18584         * explow.c: Likewise.
18585         * expmed.c: Likewise.
18586         * function.c: Likewise.
18587         * gcov.c: Likewise.
18588         * gencheck.c: Likewise.
18589         * genrecog.c: Likewise.
18590         * ggc-common.c: Likewise.
18591         * ggc-page.c: Likewise.
18592         * global.c: Likewise.
18593
18594 2002-01-05  Kazu Hirata  <kazu@hxi.com>
18595
18596         * combine.c: Fix formatting.
18597
18598 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
18599
18600         PR middle-end/1557
18601         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18602
18603 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
18604
18605         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18606         as 1 for __powerpc64__ as well.
18607
18608         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18609
18610         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18611         return it.
18612
18613 2002-01-05  Daniel Berlin  <dan@dberlin.org>
18614
18615         * lcm.c: Revert change, due to performance regression it causes on
18616         SPEC because it's slightly more conservative (sigh, I hate
18617         edge-based LCM).
18618
18619 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
18620
18621         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18622
18623 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
18624
18625         * doc/cppinternals.texi: Update.
18626
18627 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
18628
18629         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18630         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18631         negatives.
18632         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
18633         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18634         kludge for pre-october-14th mmix versions to handle new-found bug
18635         with PUSHJ/PUSHGO and the register stack.
18636         * config/mmix/mmix.h (struct machine_function): Rename member
18637         has_call_value_without_parameters to has_call_without_parameters.
18638         All referers changed.
18639         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18640         TARGET_MASK_BRANCH_PREDICT): New macros.
18641         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18642         -mno-reg-stack-fill-bug-workaround.
18643         * config/mmix/mmix.md ("call"): Set struct machine member
18644         has_call_without_parameters.
18645
18646 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
18647
18648         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18649
18650 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
18651
18652         * cfgcleanup.c: Include tm_p.h
18653         (mark_effect): Fix handling of hard register; fix handling of SET
18654
18655 2002-01-04  Kazu Hirata  <kazu@hxi.com>
18656
18657         * config/h8300/h8300.md (anonymous patterns): Check that
18658         operands are registers before using REGNO on them.
18659
18660 2002-01-03  Roland McGrath  <roland@frob.com>
18661
18662         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18663
18664 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
18665
18666         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18667         * c-common.h (genrtl_expr_stmt_value): Likewise.
18668         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18669         (expand_expr_stmt_value): Add maybe_last argument.
18670         Don't warn about statement with no effect if it is the last statement
18671         in expression statement.
18672         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18673         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18674         expand_expr_stmt_value.
18675         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18676         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18677         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18678         as maybe_last to expand_expr_stmt_value.
18679
18680 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
18681
18682         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18683         be passed in, do not build it.
18684         (c_begin_if_stmt): New function.
18685         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18686         * c-common.h (c_expand_start_cond): Update prototype.
18687         (c_begin_if_stmt): Prototype new function.
18688         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18689         * c-parse.in (if_prefix): Use c_begin_if_stmt,
18690         c_begin_while_stmt and c_finish_while_stmt_cond.
18691
18692 2002-01-04  William Cohen  <wcohen@redhat.com>
18693
18694         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18695         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18696         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18697         * config/pa/som.h (ASM_FILE_START): Likewise.
18698
18699 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
18700
18701         * lcm.c: Include df.h.
18702         Add available_transfer_function prototype.
18703         (compute_available): Rework to use iterative dataflow framework.
18704         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18705         with bb_info in df.h
18706         (available_transfer_function): New function.
18707
18708         * Makefile.in (lcm.o): add df.h to dependencies.
18709
18710 2002-01-04  Richard Henderson  <rth@redhat.com>
18711
18712         * config/alpha/alpha.c (some_operand): Accept HIGH.
18713         (input_operand): Likewise; accept simple references to globals.
18714         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18715         (alpha_const_double_ok_for_letter_p): Likewise.
18716         (alpha_extra_constraint): Likewise.
18717         (alpha_preferred_reload_class): Likewise.  Do not force
18718         symbolic constants to memory.
18719         (alpha_legitimate_address_p): Accept simple references
18720         to small_symbolic_operand.
18721         (alpha_legitimize_address): New arg scratch.  Be prepared to be
18722         called when no_new_pseudos.  Emit simple symbolic references.
18723         Split integers into low, high, and rest.
18724         (alpha_expand_mov): Use alpha_legitimize_address.
18725         (some_small_symbolic_mem_operand): New.
18726         (split_small_symbolic_mem_operand): New.
18727         * config/alpha/alpha-protos.h: Update.
18728         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18729         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18730         (EXTRA_CONSTRAINT): Likewise.
18731         (PREFERRED_RELOAD_CLASS): Likewise.
18732         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18733         (PREDICATE_CODES): Update.
18734         * config/alpha/alpha.md: New post-reload splitters to convert
18735         simplfied symbolic operands to the form that references $29.
18736         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18737         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18738
18739 2002-01-03  Richard Henderson  <rth@redhat.com>
18740
18741         * local-alloc.c (function_invariant_p): Update commentary.
18742
18743 2002-01-04  H.J. Lu <hjl@gnu.org>
18744
18745         * toplev.c (rest_of_compilation): Fix a typo when calling
18746         cleanup_cfg.
18747
18748 2002-01-03  Kazu Hirata  <kazu@hxi.com>
18749
18750         * c-common.c: Fix formatting.
18751         * diagnostic.c: Likewise.
18752         * doloop.c: Likewise.
18753         * dwarf2out.c: Likewise.
18754
18755 2002-01-03  Kazu Hirata  <kazu@hxi.com>
18756
18757         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
18758         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
18759
18760 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
18761
18762         * cpperror.c: Update comments and copyright.
18763         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
18764         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
18765
18766 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18767
18768         * collect2.c (main): Use strcmp when testing for "-shared".
18769
18770 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
18771
18772         * cppmacro.c: Don't include intl.h.  Update comments.
18773         (new_number_token): Allocate enough buffer for 64-bit unsigned
18774         integers; update prototype.
18775         * cppmain.c: Update comments.
18776
18777 2002-01-03  William Cohen  <wcohen@redhat.com>
18778
18779         * function.h (struct function): Add profile.
18780         (current_function_profile): New.
18781         doc/extend.texi: Update documentation.
18782         * final.c (final_start_function): Use current_function_profile
18783         instead of profile_flag.
18784         (profile_after_prologue): Likewise.
18785         * function.c (expand_function_start): Likewise.
18786         (expand_function_start): Likewise.
18787         * config/alpha/alpha.c (direct_call_operand):
18788         (alpha_does_function_need_gp): Likewise.
18789         (alpha_expand_prologue): Likewise.
18790         * config/arm/arm.c (arm_expand_prologue): Likewise.
18791         thumb_expand_prologue: Likewise.
18792         * config/d30v/d30v.c (d30v_stack_info): Likewise.
18793         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
18794         (fr30_expand_prologue): Likewise.
18795         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
18796         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
18797         * config/i386/i386.h (FINALIZE_PIC): Likewise.
18798         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
18799         * config/i960/i960.c (i960_output_function_prologue): Likewise.
18800         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
18801         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
18802         (m32r_expand_prologue): Likewise.
18803         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
18804         (m88k_expand_prologue): Likewise.
18805         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
18806         * config/mips/mips.c (compute_frame_size): Likewise.
18807         (mips_expand_prologue): Likewise.
18808         (mips_can_use_return_insn): Likewise.
18809         * config/pa/elf.h (ASM_FILE_START): Likewise.
18810         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18811         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18812         * config/pa/som.h (ASM_FILE_START): Likewise.
18813         * config/romp/romp.c (romp_using_r14): Likewise.
18814         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
18815         (rs6000_stack_info): Likewise.
18816         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18817         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
18818         * config/v850/v850.c (compute_register_save_size): Likewise.
18819
18820 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
18821
18822         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
18823         gen_lowpart_common fails, use gen_lowpart_SUBREG.
18824
18825 2002-01-03  Turly O'Connor  <turly@apple.com>
18826
18827         * darwin.c (machopic_output_possible_stub_label): Don't generate
18828         stub routines for pseudo-stubs which we've just defined.
18829
18830 2002-01-03  Kazu Hirata  <kazu@hxi.com>
18831
18832         * builtins.c: Fix formatting.
18833         * c-typeck.c: Likewise.
18834         * combine.c: Likewise.
18835         * expr.c: Likewise.
18836         * loop.c: Likewise.
18837
18838 2002-01-03  Andreas Schwab  <schwab@suse.de>
18839
18840         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
18841         and return true if _cpp_push_next_buffer pushed a new include
18842         file.
18843         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
18844         _cpp_pop_file_buffer did not push a new file.
18845         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
18846
18847 2002-01-02  Eric Christopher  <echristo@redhat.com>
18848
18849         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
18850         FIND_REG_INC_NOTE call. Update copyright.
18851         * loop.c (canonicalize_condition): Ditto.
18852         * reorg.c (delete_scheduled_jump): Ditto.
18853
18854 2002-01-03  Kazu Hirata  <kazu@hxi.com>
18855
18856         * gcse.c: Fix formatting.
18857
18858 2002-01-03  Graham Stott  <grahams@redhat.com>
18859
18860         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
18861         forward defs for struct tags rtx_def, union_tree, rtvec_def
18862         also output corresponding typedefs for rtx, tree, and rtvec.
18863
18864         * system.h: Move forward defs for struct tags rtx_def, union_tree,
18865         rtvec_def along with corresponding typedefs for rtx, tree, and
18866         rtvec to config.h, hconfig.h, tconfig.h.
18867
18868 2002-01-03  Graham Stott  <grahams@redhat.com>
18869
18870         * tree.h: Update copyright date.
18871         (IS_EXPR_CODE_CLASS): Add parenthesis.
18872         (TREE_SET_CODE): Add whitespace.
18873         (TREE_CHECK): Add parenthesis.
18874         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
18875         (CST_OR_CONSTRUCTOR_CHECK):
18876         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
18877         (TREE_SYMBOL_REFERENCED): Whitespace.
18878         (INT_CST_LT): Likewise.
18879         (INT_CST_LT_UNSIGNED): Likewise.
18880         (tree_real_cst): Unwrap comment.
18881         (tree_string): Likewise.
18882         (tree_complex): Likewise.
18883         (IDENTIFIER_POINTER): correct cast.
18884         (SAVE_EXPR_CONTEXT): Whitespace.
18885         (EXPR_WFL_FILENAME_NODE): Likewise.
18886         (EXPR_WFL_FILENAME): Remove parenthesis.
18887         (DECL_ORIGIN): Add parenthesis.
18888         (DECL_FROM_INLINE): Use NULL_TREE.
18889         (build_int_2): Whitespace.
18890         (build_type_variant): Add parenthesis.
18891
18892         * gcc/jcf-parse.c: Update copyright date.
18893         (yyparse): Constify resource_filename.
18894
18895 2002-01-03  Graham Stott  <grahams@redhat.com>
18896
18897         * rtl.h: Update copyright date.
18898         (RTL_CHECK1): Wrap long line.
18899         (RTL_CHECK2): Likewise.
18900         (RTL_CHECKC1): Wrap long line and whitespace.
18901         (RTL_CHECKC2): Likewise.
18902         (XWINT): Whitespace.
18903         (XINT): Likewise.
18904         (XSTR): Likewise.
18905         (XEXP): Likewise.
18906         (XVEC): Likewise.
18907         (XMODE): Likewise.
18908         (XBITMAP): Likewise.
18909         (XTREE): Likewise.
18910         (XBBDEF): Likewise.
18911         (XTMPL): Likewise.
18912         (X0WINT): Likewise.
18913         (X0INT):Likewise.
18914         (X0UINT): Likewise.
18915         (X0STR): Likewise.
18916         (X0EXP): Likewise.
18917         (X0VEC): Likewise.
18918         (X0MODE): Likewise.
18919         (X0BITMAP): Likewise.
18920         (X0TREE): Likewise.
18921         (X0BBDEF): Likewise.
18922         (X0ADVFLAGS): Likewise.
18923         (X0CSELIB): Likewise.
18924         (X0MEMATTR): Likewise.
18925         (XCWINT): Likewise.
18926         (XCINT): Likewise.
18927         (XCUINT): Likewise.
18928         (XCSTR): Likewise.
18929         (XCEXP): Likewise.
18930         (XCVEC): Likewise.
18931         (XCMODE): Likewise.
18932         (XCBITMAP): Likewise.
18933         (XCTREE): Likewise.
18934         (XCBBDEF): Likewise.
18935         (XCADVFLAGS): Likewise.
18936         (XCCSELIB): Likewise.
18937         (XC2EXP): Likewise.
18938         (INSN_UID): Likewise.
18939         (PREV_INSN): Likewise.
18940         (PATTERN): Likewise.
18941         (INSN_CODE): Likewise.
18942         (PUT_REG_NOTE_KIND): Likewise.
18943         (CODE_LABEL_NUMBER): Likewise.
18944         (NOTE_SOURCE_FILE): Likewise.
18945         (NOTE_BLOCK): Likewise.
18946         (NOTE_EH_HANDLER): Likewise.
18947         (NOTE_RANGE_INFO): Likewise.
18948         (NOTE_LIVE_INFO): Likewise.
18949         (NOTE_BASIC_BLOCK): Likewise.
18950         (NOTE_EXPECTED_VALUE): Likewise.
18951         (NOTE_LINE_NUMBER): Likewise.
18952         (LABEL_NAME): Likewise.
18953         (LABEL_NUSES): Likewise.
18954         (LABEL_ALTERNATE_NAME): Likewise.
18955         (ADDRESSOF_DECL): Likewise.
18956         (JUMP_LABEL): Likewise.
18957         (LABEL_NEXTREF): Likewise.
18958         (REGNO): Likewise.
18959         (ORIGINAL_REGNO: Likewise.
18960         (HARD_REGISTER_NUM_P): Add parenthesis.
18961         (SUBREG_REG): Whitespace.
18962         (SUBREG_BYTE): Likewise.
18963         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
18964         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
18965         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
18966         (ASM_OPERANDS_INPUT_VEC): Likewise.
18967         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
18968         (ASM_OPERANDS_INPUT): Likewise.
18969         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
18970         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
18971         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
18972         (ASM_OPERANDS_INPUT_MODE): Likewise.
18973         (ASM_OPERANDS_SOURCE_FILE): Likewise.
18974         (ASM_OPERANDS_SOURCE_LINE): Likewise.
18975         (MEM_SET_IN_STRUCT_P): Minor reformat.
18976         (TRAP_CONDITION): Whitespace.
18977         (TRAP_CODE): Likewise.
18978         (COND_EXEC_TEST): Likewise.
18979         (COND_EXEC_CODE): Likewise.
18980         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
18981         (PHI_NODE_P): Add parenthesis.
18982         (plus_constant): Whitespace and add parenthesis.
18983
18984 2002-01-03  Kazu Hirata  <kazu@hxi.com>
18985
18986         * config/avr/avr.c: Fix comment typos.
18987         * config/c4x/c4x.md: Likewise.
18988         * config/dsp16xx/dsp16xx.h: Likewise.
18989         * config/dsp16xx/dsp16xx.md: Likewise.
18990         * config/i386/i386.md: Likewise.
18991         * config/ia64/ia64.c: Likewise.
18992         * config/m32r/m32r.h: Likewise.
18993         * config/m68hc11/m68hc11.md: Likewise.
18994         * config/mmix/mmix.c: Likewise.
18995         * config/mn10200/mn10200.c: Likewise.
18996         * config/romp/romp.c: Likewise.
18997         * config/sh/sh.c: Likewise.
18998         * config/stormy16/stormy16.c: Likewise.
18999         * config/stormy16/stormy16.h: Likewise.
19000         * config/stormy16/stormy16.md: Likewise.
19001
19002 2002-01-03  Graham Stott  <grahams@redhat.com>
19003
19004         * loop.h: Update copyright date.
19005         (LOOP_MOVABLES): Fix typo.
19006         (LOOP_REGS): Likewise.
19007         (LOOP_IVS): Likewise.
19008
19009 2002-01-03  Graham Stott  <grahams@redhat.com>
19010
19011         * cppinit.c: Update copyright date.
19012         Don't include output.h
19013         * Makefile.in: Update copyright date.
19014         Update dependency.
19015
19016 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19017
19018         PR c/5226
19019         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
19020         (-pthread) Add to RS/6000 options.
19021
19022 2002-01-02  Kazu Hirata  <kazu@hxi.com>
19023
19024         * except.c: Fix comment typos.
19025         * loop.c: Likewise.
19026         * varasm.c: Likewise.
19027         * doc/tm.texi: Fix a typo.
19028
19029 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
19030
19031         * c-typeck.c (output_init_element): Allow initializing static storage
19032         duration objects with compound literals.
19033
19034 2002-01-02  Richard Henderson  <rth@redhat.com>
19035
19036         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
19037         after abusing it.
19038
19039 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19040
19041         * gcc.c (default_compilers): Const-ify.
19042         * mips-tdump.c (stab_names): Likewise.
19043         * mips-tfile.c (map_coff_types, map_coff_storage,
19044         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
19045         pseudo_ops_t, pseudo_ops): Likewise.
19046         * protoize.c (default_include): Likewise
19047
19048         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
19049         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
19050         Add array size in declaration.
19051         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
19052         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
19053         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
19054         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
19055         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
19056         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
19057         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
19058         emtens, make_nan): Const-ify.
19059         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
19060         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
19061
19062 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
19063
19064         * config.gcc (ia64-*-*): Set extra_headers.
19065         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
19066         * config/alpha/t-osf: Remove.
19067         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
19068
19069 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
19070
19071         * config/rs6000/t-aix43: Revert previous change.
19072
19073 2002-01-02  Jason Merrill  <jason@redhat.com>
19074
19075         * c-decl.c (c_expand_body): Call outlining_inline_function when
19076         emitting an inline function out of line.
19077
19078 2002-01-02  Richard Henderson  <rth@redhat.com>
19079
19080         * dwarf2out.c (limbo_die_node): Add created_for member.
19081         (new_die): New argument created_for.  Update all callers.
19082         (mark_limbo_die_list): New.
19083         (dwarf2out_init): Register limbo_die_list as a root.
19084         (dwarf2out_finish): Force insert limbo dies into their function
19085         context.
19086
19087 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
19088
19089         PR c++/5089
19090         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
19091
19092 2002-01-02  Kazu Hirata  <kazu@hxi.com>
19093
19094         * config/h8300/fixunssfsi.c: Update copyright.
19095         Fix comment typos.
19096         Fix formatting.
19097         * config/h8300/h8300.c: Update copyright.
19098         Eliminate warnings.
19099
19100 2002-01-02  Kazu Hirata  <kazu@hxi.com>
19101
19102         * config/romp/romp.c: Fix comment formatting.
19103         * config/romp/romp.h: Likewise.
19104         * config/romp/romp.md: Likewise.
19105         * config/s390/s390.c: Likewise.
19106         * config/stormy16/stormy16.c: Likewise.
19107         * config/stormy16/stormy16.h: Likewise.
19108
19109 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
19110
19111         * c-common.h (genrtl_expr_stmt_value): Declare.
19112         * c-semantics.c (genrtl_goto_stmt): Redirect to...
19113         (genrtl_goto_stmt_value): ... this new function.  Pass new
19114         argument down to expand_expr_stmt_value, taking
19115         TREE_ADDRESSABLE into account.
19116         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
19117         STMT_EXPR as addressable, i.e., one whose result we want.
19118         * expr.c (expand_expr): Don't save expression statement value
19119         of labeled_blocks or loop_exprs.
19120         * stmt.c (expand_expr_stmt): Redirect to...
19121         (expand_expr_stmt_value): ... this new function.  Use new
19122         argument to tell whether to save expression value.
19123         (expand_end_stmt_expr): Reset last_expr_type and
19124         last_expr_value if we don't have either.
19125         * tree-inline.c (declare_return_variable): Mark its use
19126         statement as addressable.
19127         * tree.h: Document new use of TREE_ADDRESSABLE.
19128         (expand_expr_stmt_value): Declare.
19129
19130 2002-01-01  Tom Rix  <trix@redhat.com>
19131
19132         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
19133         rs6000_emit_allocate_stack.
19134
19135 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
19136
19137         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
19138         ${srcdir}/ginclude/ to every entry in extra_headers.
19139         * configure: Regenerate.
19140         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
19141         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
19142         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
19143         * ginclude/proto.h: Rename to config/convex/proto.h.
19144
19145 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19146
19147         * attribs.c (handle_vector_size_attribute): Use host_integerp
19148         and tree_int_cst; remove warnings.
19149         * caller-save.c (insert_restore): Add cast to get rid of warning.
19150         (insert_save): Likewise.
19151         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19152         * regmove.c (find_matches): Add temporary var to kill a warning.
19153
19154 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
19155
19156         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
19157         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
19158         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
19159         (vms-dwarf2eh.o): Add Makefile rule.
19160         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
19161         * config/alpha/vms-dwarf2eh.asm: New file.
19162
19163         * gcc.c (delete_if_ordinary): Delete all versions.
19164
19165 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
19166
19167         * config/mmix/mmix.md: Update FIXME to not mention
19168         define_constants.
19169         (MMIX_rJ_REGNUM): New define_constants constant.
19170         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
19171         "*movdicc_real"): Adjust contraints formatting.
19172         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
19173         for branch prediction.
19174         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
19175         output template.
19176         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
19177         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
19178         number.  Delete related FIXMEs.
19179         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
19180         from number to MMIX_rJ_REGNUM.
19181         (TARGET_MASK_BRANCH_PREDICT): New.
19182         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
19183         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
19184         value.  Add -mbranch-predict and -mno-branch-predict.
19185         (TARGET_VERSION): Drop date.
19186         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19187         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19188         for finding out global symbols.
19189         (mmix_asm_output_labelref): Revert condition for global symbol.
19190         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19191         (mmix_print_operand_punct_valid_p): A '+' is valid.
19192
19193 See ChangeLog.6 for earlier changes.