OSDN Git Service

* config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
2
3         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
4
5 2002-06-13  David S. Miller  <davem@redhat.com>
6
7         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
8
9 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
10
11         * cpplib.c (end_directive): Handle line skipping.  Only remove
12         the rest of the line if the directive was valid.
13         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
14         expanding a traditional macro.
15         * cpptrad.c (recursive_macro): New.
16         (read_logical_line_trad): Handle skipping.
17         (scan_out_logical_line): Continue after a successful directive.
18         Don't expand macros whilst skipping, or if recursing.
19         (_cpp_create_trad_definition): scan_out_logical_line now sets
20         the output current position.
21
22 2002-06-12  Eric Christopher  <echristo@redhat.com>
23
24         From Chris Demetriou  <cgd@broadcom.com>
25         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
26         comment.
27         (ISA_HAS_MADD_MSUB): Ditto.
28         (ISA_HAS_NMADD_NMSUB): Ditto.
29
30 2002-06-12  Eric Christopher  <echristo@redhat.com>
31
32         * config.gcc: Consolidate little endian handling and
33         little/big endian targets.
34         * config/mips/elfl.h: Remove file.
35         * config/mips/elfl64.h: Ditto.
36         * config/mips/ecoffl.h: Ditto.
37         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
38
39 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
40
41         * gengtype.h (xvasprintf): New prototype.
42         (xasprintf): New prototype.
43         (struct outf): New.
44         (get_output_file): Return an outf_p.
45         (header_file): Is now an outf_p.
46         (base_files): Now are outf_p.
47         (oprintf): New.
48         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
49         rather than stdio operations.  Use xasprintf in a few places,
50         when appropriate.
51         (xvasprintf): New.
52         (xasprintf): New.
53         (struct filemap): Delete.
54         (files): Delete.
55         (output_files): New.
56         (oprintf): New.
57         (create_file): Create an outf_p.  Add parameter to indicate output
58         file name, change all callers.
59         (open_base_files): Create gtype-desc.c here.
60         (get_output_file_with_visibility): Rewrite.
61         (get_output_file_name): Just look at 'name' field in struct outf.
62         (close_output_files): Rewrite.
63
64 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
65
66         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
67         (MASK_G_FLOAT): Define.
68         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
69         (TARGET_SWITCHES): Likewise.
70         (TARGET_DEFAULT): Likewise.
71
72 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
73
74         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
75         * config/mips/mips.c (mips_output_filename): Don't print a
76         ".file" directive if we are using DWARF-2.
77         (mips_output_function_prologue): Do not emit source file
78         name for TARGET_GAS.
79
80 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
81
82         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
83         decide whether emit the short opcode.
84         * i386.h (x86_shift1): Declare.
85         (TARGET_SHIFT1): New macro.
86         * i386.c (x86_shift1): New global variable.
87
88         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
89         unconditionally; make loop to rebuild CFG; kill unnecesary
90         find_basic_block calls; kill compute_bb_for_insn call.
91         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
92         * haifa-sched.c (sched_init): Likewise.
93         * ssa-ccp.c (ssa_const_prop): Likewise.
94         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
95
96 2002-06-11  David S. Miller  <davem@redhat.com>
97
98         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
99         active_insn_p.
100
101 2002-06-11  Richard Henderson  <rth@redhat.com>
102
103         * c-common.c (builtin_define_type_max): New.
104         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
105         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
106
107         From Joseph S. Myers:
108         * glimits.h: Rewrite to expect the double underscore definitions
109         from the compiler.
110
111         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
112         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
113         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
114         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
115         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
116         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
117         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
118         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
119
120 2002-06-11  Richard Henderson  <rth@redhat.com>
121
122         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
123         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
124         (code_for_builtns): Update.
125         (alpha_init_builtins): Add __builtin_thread_pointer and
126         __builtin_set_thread_pointer.
127         (alpha_expand_builtin): Handle void builtins.
128         * doc/extend.texi (Alpha Built-in Functions): Update.
129
130 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
131
132         PR target/6997
133         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
134
135 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
136
137         * config.gcc: Make the name of the extra-modes file adjustable
138         by target stanzas.
139         (s390x, strongarm, xscale stanzas): Use this facility.
140         * configure.in: Update to match.
141         * configure: Regenerate.
142
143 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
144
145         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
146         max/mins as unsigned GE compares.
147
148 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
149
150         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
151         * config/vax/bsd.h: New file.
152         * config/vax/netbsd.h: Add missing notice.
153         (CPP_PREDEFINES): Remove.
154         (TARGET_OS_CPP_BUILTINS): Define.
155         (CPP_SPEC): Use NETBSD_CPP_SPEC.
156         * config/vax/openbsd.h: Update copyright years.
157         (CPP_PREDEFINES): Remove.
158         (TARGET_OS_CPP_BUILTINS): Define.
159         * config/vax/ultrix.h: Likewise.
160         * config/vax/vaxv.h: Likewise.
161         * config/vax/vms.h: Likewise.
162         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
163         (CPP_PREDEFINES, CPP_SPEC): Remove.
164
165 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
166
167         * i386.md (addqi_1_slp, subqi_1_slp
168         (andqi_ext0, testqi_ext0): Remove unnecesary check.
169         (addhi*, addqi*): Simplify "dec" condition.
170         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
171         (and, or, xor to QImode splitters): New.
172         (iorqi_ext*): New.
173         (xorqi_ext_0): New.
174         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
175         (andqi_ext_1_rex64): New.
176         (ashrqi*_slp): New.
177         (ashlqi*_slp): New.
178         (lshlqi*_slp): New.
179         (rotrqi3*_slp): New.
180         (rotlqi3*_slp): New.
181
182 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
183
184         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
185         softfloat.h.
186         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
187         (CPP_ENDIAN_LITTLE_SPEC): Delete.
188         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
189         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
190         __LONG_DOUBLE_128__ setting, _CALL_* setting.
191         (CPP_DEFAULT_SPEC): Delete.
192         (CPP_FLOAT_DEFAULT_SPEC): Delete.
193         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
194         (CPP_SYSV_DEFAULT_SPEC): Delete.
195         (CPP_ENDIAN_BIG_SPEC): Delete.
196         (CPP_ENDIAN_LITTLE_SPEC): Delete.
197         (CPP_ENDIAN_SPEC): Delete.
198         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
199         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
200         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
201         cpp_longdouble_default.
202         * config/rs6000/softfloat.h: Delete.
203         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
204         (EXTRA_SPECS): Delete cpp_cpu.
205         (TARGET_CPU_CPP_BUILTINS): New.
206         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
207         prototype.
208         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
209         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
210         (CPP_DEFAULT_SPEC): Delete.
211         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
212         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
213         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
214         (CPP_DEFAULT_SPEC): Delete.
215         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
216         (CPLUSPLUS_CPP_SPEC): Likewise.
217         (CPP_CPU_SPEC): Delete.
218         (CPP_DEFAULT_SPEC): Delete.
219         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
220         (CPLUSPLUS_CPP_SPEC): Likewise.
221         (CPP_CPU_SPEC): Delete.
222         (CPP_DEFAULT_SPEC): Delete.
223         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
224         (CPP_DEFAULT_SPEC): Delete.
225         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
226         (CPP_DEFAULT_SPEC): Delete.
227
228         * doc/gty.texi: Small updates.
229
230 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
231
232         * objc/objc-act.c (warn_with_ivar): Adjust calls to
233         diagnostic_count_error.
234         (warn_with_method): Likewise.
235
236         * diagnostic.h (warnings_are_errors_message): New field of
237         diagnostic_context.
238         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
239         match semantics.
240         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
241         (diagnostic_count_diagnostic): Make aware of other kinds of
242         diagnostics.
243         (diagnostic_initialize): Initialize warnings_are_errors_message field.
244
245 2002-06-11  Tom Tromey  <tromey@redhat.com>
246
247         For PR java/6520:
248         * fold-const.c (fold_convert): Don't modify existing tree's type.
249
250 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
251
252         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
253
254 2002-06-11  Richard Henderson  <rth@redhat.com>
255
256         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
257
258 2002-06-11  Richard Henderson  <rth@redhat.com>
259
260         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
261         DWARF2_UNWIND_INFO is false.
262
263 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
264
265         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
266
267 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
268
269         * config/s390/s390.c (emit_prologue): gen_store_multiple
270         returns an insn now, not a pattern.
271
272 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
273
274         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
275         $(TEXI2DVI) -o.
276
277 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
278
279         * i386.c (x86_promote_QImode): Set for Athlon
280         (x86_fast_prefix): New global variable.
281         (x86_arch_always_fancy_math_387): Fix formating.
282         * i386.h (x86_fast_prefix): Declare
283         (TARGET_FAST_PREFIX): define.
284         * i386.md (and to strict_low_part, HI to SI
285         promoting splitter): Use new macro.
286
287         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
288
289 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
290
291         * Makefile.in (distclean): Delete junk left in testsuite
292         directory, too.
293
294 2002-06-11  Jeffrey Law <law@redhat.com>
295
296         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
297         last insn created by the splitter.
298
299         * caller-save.c (init_caller_save): Move creation of SAVEINSN
300         and RESTINSN into into the scope of the sequence.
301
302         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
303         RETURN insns.
304
305         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
306
307         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
308         not the pattern.  So extract the pattern from the insn.
309
310         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
311
312 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
313
314         * config/s390/s390.md (movsi): Only use floating point
315         register alternatives when operands are already fprs.
316         (movdi_31, movdi_64): Likewise.
317
318 2002-06-11  David S. Miller  <davem@redhat.com>
319
320         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
321         Only run RTX equality checks on INSN_P rtl.
322
323 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
324
325         * config/s390/s390.md (reload_base, ltorg): Remove.
326         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
327         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
328         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
329         s390_asm_output_pool_prologue): Likewise.
330         * s390.h (s390_pool_start_insn): Likewise.
331
332         * s390.c (s390_output_symbolic_const): Remove support for
333         old-style pool chunks.
334         (s390_function_epilogue): Likewise.
335         (s390_output_constant_pool): Likewise.  Also, fix incorrect
336         alignment for 64-bit literal pools.
337         (print_operand_address): Remove 'y' and 'Y' format flags.
338         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
339         old-style pool chunks.
340         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
341         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
342         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
343
344         * s390.c (consttable_operand): New function.
345         * s390-protos.h (consttable_operand): Declare it.
346         * s390.h (PREDICATE_CODES): Add consttable_operand.
347         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
348         consttable_sf, consttable_df, pool_start_31, pool_end_31,
349         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
350         * s390.c (struct constant, struct constant_pool): New data types.
351         (constant_modes, gen_consttable): New variables.
352         (s390_start_pool, s390_end_pool, s390_add_pool,
353         s390_dump_pool, s390_free_pool): New functions.
354         (s390_chunkify_pool): Completely reimplement literal pool
355         overflow handling.
356
357         * s390.c (s390_pool_overflow): New variable.
358         * s390.h (s390_pool_overflow): Declare it.
359         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
360         jumps in literal pool overflow situations.
361
362         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
363         (s390_frame_info): Account for possible use of RETURN_REGNUM
364         by new literal pool overflow code.
365         (s390_emit_prologue): Likewise.
366
367 2002-06-05  David S. Miller  <davem@redhat.com>
368
369         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
370         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
371         emit_insns_before_scope, emit_insns_after,
372         emit_insns_after_scope): Delete declaration.
373         * ada/misc.c (insert_code_for): Use emit_insn* instead of
374         emit_insns_foo.
375         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
376         (alpha_set_memflags): Fix comment.
377         (set_frame_related_p): Use get_insns instead of gen_sequence.
378         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
379         emitting no insns.
380         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
381         gen_sequence.
382         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
383         * config/fr30/fr30.c (fr30_move_double): Likewise.
384         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
385         Likewise.
386         * config/ia64/ia64.c (spill_restore_mem): Likewise.
387         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
388         no insns.
389         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
390         instead of gen_sequence.
391         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
392         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
393         * config/sh/sh.c (sh_need_epilogue): Likewise.
394         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
395         attributes.
396         (setjmp pattern and split): Use them to avoid splitter which emits
397         no RTL.
398         * genattrtab.c (main): Emit include of function.h
399         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
400         get_insns instead of gen_sequence.
401         * config/cris/cris.c (cris_split_movdx): Likewise.
402         * emit-rtl.c (emit_insns*): Kill.
403         (try_split): Expect insn list instead of SEQUENCE.
404         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
405         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
406         Make them abort if a SEQUENCE is given and RTL checking is
407         enabled.
408         (emit_*_scope): Don't forget to set scope on final insn.
409         (gen_sequence): Move from here...
410         * ssa.c (gen_sequence): To here as private function.
411         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
412         comments.
413         (expand_builtin_return, expand_builtin_mathfn): Likewise.
414         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
415         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
416         (expand_builtin_expect_jump): Use get_insns and fix comments.
417         * calls.c (try_to_integrate): Use emit_insn_foo.
418         (expand_call, emit_library_call_value_1): Likewise.
419         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
420         (emit_move_insn_1): Use get_insns instead of gen_sequence.
421         (expand_expr): Use emit_insn_foo.
422         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
423         * except.c (build_post_landing_pads): Likewise.
424         * flow.c (attempt_auto_inc): Likewise.
425         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
426         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
427         * function.c (fixup_var_refs_insn): Use get_insns instead of
428         gen_sequence.
429         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
430         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
431         (fixup_stack_1, purge_addressof_1, expand_main_function,
432         get_arg_pointer_save_area): Likewise.
433         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
434         expand_function_end): Use emit_insn_foo.
435         (record_insns, keep_stack_depressed): Work with insn list instead
436         of SEQUENCE, fix comments.
437         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
438         noce_try_store_flag_constants, noce_try_store_flag_inc,
439         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
440         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
441         (noce_process_if_block): Use get_insns instead of gen_sequence.
442         * optabs.c (add_equal_note): Work with insn list, fix comments.
443         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
444         (expand_unop, expand_complex_abs, expand_unop_insn,
445         expand_no_conflict_block): Likewise.
446         (gen_move_insn): Use get_insns instead of gen_sequence.
447         (gen_cond_trap): Likewise.
448         * integrate.c (copy_rtx_and_substitute): Likewise.
449         (emit_initial_value_sets): Use emit_insn_foo.
450         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
451         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
452         now that RTL generators give insn lists.
453         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
454         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
455         instead of gen_sequence.
456         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
457         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
458         instead of gen_sequence.
459         * loop.c (move_movables, emit_prefetch_instructions,
460         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
461         Likewise.
462         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
463         (product_cheap_p): Likewise, and add commentary about RTL wastage
464         here.
465         * lcm.c (optimize_mode_switching): Use get_insns instead of
466         gen_sequence.
467         * profile.c (gen_edge_profiler): Likewise.
468         * regmove.c (copy_src_to_dest): Likewise.
469         * reg-stack.c (compensate_edge): Likewise and fix comment.
470         * gcse.c (process_insert_insn): Likewise.
471         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
472         * jump.c (delete_prior_computation): Update comment.
473         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
474         of gen_sequence, update comments to match.
475         * recog.c (peephole2_optimize): Work with insn lists instead of
476         SEQUENCE rtl.
477         * sched-vis.c (print_pattern): Abort on SEQUENCE.
478         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
479         Use get_insns instead of gen_sequence.
480         (copy_loop_body): Likewise and don't emit dummy NOTE.
481         * genrecog.c: Don't mention SEQUENCE rtl in comments.
482         * combine.c (try_combine): Expect insn lists from split generator.
483         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
484         hand.
485
486 2002-06-11  Roger Sayle  <roger@eyesopen.com>
487             Andreas Jaeger <aj@suse.de>
488
489         * cfgbuild.c: Update copyright years.
490
491 2002-06-11  Andreas Schwab  <schwab@suse.de>
492
493         * config/m68k/m68k.h (PREDICATE_CODES): Define.
494
495 2002-06-11  Eric Christopher  <echristo@redhat.com>
496
497         * doc/tm.texi (Run-time Target): Add comment about flag_iso
498         and strict ANSI.
499         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
500         * config/mips/ecoffl.h: Ditto.
501         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
502         (CPP_PREDEFINES): Ditto.
503         * config/mips/elfl64.h: Ditto.
504         * config/mips/elfl.h: Ditto.
505         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
506         out until irix header consolidation.
507         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
508         with SUBTARGET_OS_CPP_BUILTINS.
509         * config/mips/iris6.h: Ditto.
510         (CPLUSPLUS_CPP_SPEC): Remove.
511         * config/mips/linux.h: Ditto.
512         * config/mips/netbsd.h: Ditto.
513         * config/mips/openbsd.h: Ditto.
514         * config/mips/rtems.h: Ditto.
515         * config/mips/rtems64.h: Ditto.
516         * config/mips/sni-svr4.h: Ditto.
517         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
518         ISA_MIPS32, ISA_MIPS64): New defines.
519         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
520         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
521         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
522         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
523         (TARGET_CPU_CPP_BUILTINS): Define.
524         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
525         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
526         (movdicc): Remove check for ISA_MIPS32.
527          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
528         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
529         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
530         sunge_sf, sunle_df, sunle_sf): New patterns.
531
532 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
533
534         * Makefile.in: Update cppmain.o.
535         * cpphash.h (struct cpp_reader): Move some members to a
536         nested structure.
537         (trad_line): Rename saved_line.
538         (_cpp_read_logical_line_trad): Update.
539         (_cpp_remove_overlay): New.
540         * cppinit.c (cpp_create_reader): No need to set saved_line.
541         (cpp_destroy): Update.
542         (cpp_read_main_file): Only overlay if compiling.
543         * cpplex.c (continue_after_nul): Return false if in directive.
544         * cpplib.c (EXPAND): New.
545         (directive_table, SEEN_EOL): Update.
546         (end_directive): Remove overlay if traditional; don't skip
547         line in traditional #define.
548         (prepare_directive_trad): New.
549         (_cpp_handle_directive, run_directive): Update for traditional
550         directives.
551         (lex_macro_node): Simplify, don't use lex_identifier_trad.
552         * cpplib.h (struct options): Add preprocess_only.
553         * cppmain.c: Don't include intl.h.
554         (cpp_preprocess_file): Set options->preprocess_only.
555         (scan_translation_unit_trad): Fix, and print line numbers.
556         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
557         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
558         save_replacement_text, _cpp_create_trad_definition): Update for
559         variable renaming.
560         (_cpp_overlay_buffer): Save line number.
561         (_cpp_remove_overlay): Rename from restore_buff, restore line.
562         (_cpp_read_logical_line_trad): Don't handle overlays here.
563         (scan_out_logical_line): Process directives.
564
565 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
566
567         * gthr-win32.h: Wrap functions in extern "C".
568         (__gthread_key_t): Typedef as unsigned long,
569         not win32 DWORD.
570         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
571         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
572         (__gthr_win32_once, __gthr_win32_key_create,
573         __gthr_win32_key_delete, __gthr_win32_getspecific,
574         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
575         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
576         __gthr_win32_mutex_unlock): Declare.
577         (__gthread_once,__gthread_key_create,
578         __gthread_key_delete, __gthread_getspecific,
579         __gthread_setspecific, __gthread_mutex_init_function,
580         __gthread_mutex_lock,__gthread_mutex_trylock,
581         __gthread_mutex_unlock): Call corresponding
582         __gthr_win32_* extern implementations if #defined
583         __GTHREAD_HIDE_WIN32API.
584         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
585         $(srcdir)/config/i386/gthr-win32.c
586         * config/i386/gthr-win32.c: New implementation file.
587         (__gthr_win32_once, __gthr_win32_key_create,
588         __gthr_win32_key_delete, __gthr_win32_getspecific,
589         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
590         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
591         __gthr_win32_mutex_unlock): New functions, based on
592         static inlines in gthr-win32.h.
593
594 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
595
596         * config/xtensa/xtensa.c (override_options): Don't warn about
597         using -fpic or -fPIC when PIC is enabled by default.
598
599 2002-06-10  Roger Sayle  <roger@eyesopen.com>
600
601         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
602
603 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
604
605         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
606         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
607         exists, substitute its pathname as @extra_modes_file@, define
608         EXTRA_MODES_FILE to be an appropriate string to #include it
609         with, and define EXTRA_CC_MODES to 1.
610
611         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
612         it's defined.  Get rid of redundancy in calling sequence for
613         CC; don't use it to define CCmode, to avoid a warning.
614         * libgcc2.c: Include symcat.h for the sake of machmode.def.
615
616         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
617         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
618         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
619         New files.
620         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
621         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
622
623         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
624         defining extra CC modes.
625
626 2002-06-10  Roger Sayle  <roger@eyesopen.com>
627             Andreas Jaeger <aj@suse.de>
628
629         * cfgrtl.c (create_basic_block_structure):  Remove index argument
630         and use last_basic_block++ instead.  (create_basic_block): Update.
631         * cfgbuild.c (find_basic_blocks_1): Likewise.
632
633         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
634         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
635         * sched-ebb.c (schedule_ebbs): Likewise.
636         * sched-rgn.c (schedule_insns): Likewise.
637         * ssa-ccp.c (ssa_const_prop): Likewise.
638         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
639         * toplev.c (rest_of_compilation): Likewise.
640         * config/ia64/ia64.c (ia64_reorg): Likewise.
641
642 2002-06-10  Roger Sayle  <roger@eyesopen.com>
643
644         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
645         of matching registers.
646
647 2002-06-10  Roger Sayle  <roger@eyesopen.com>
648
649         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
650         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
651
652 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
653
654         * config/mmix/mmix.h: Improve comments.
655         (CPP_SPEC, CPP_PREDEFINES): Don't define.
656         (TARGET_CPU_CPP_BUILTINS): Define.
657         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
658         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
659         unused predicate.
660         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
661         compiler warning.
662         (mmix_constant_address_p): Remove another
663         redundant test before case.
664         (mmix_canonicalize_comparison): Remove unused function.
665         (mmix_print_operand_address): Don't test and adjust for operand in
666         non-canonical format.
667         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
668         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
669
670 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
671
672         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
673         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
674         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
675         (gen_compare): Use CCmode unconditionally.
676
677 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
678
679         PR optimization/6759
680         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
681         the REQ_EQUAL note.
682
683 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
684
685         PR c/6660
686         * c-decl.c (grokfield): Allow user defined types if they declare
687         structs or unions for unnamed fields.
688
689 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
690
691         PR c/6809
692         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
693
694 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
695
696         PR optimization/6842
697         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
698         operand subreg cannot be simplified.
699
700 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
701
702         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
703         (compare_constant): Likewise.
704         (output_addressed_constants): Likewise.
705
706 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
707
708         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
709         merge bb with itself.
710
711 2002-06-10  Richard Henderson  <rth@redhat.com>
712
713         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
714         (builtin_zapnot): Likewise.
715
716         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
717         reservation.
718
719 2002-06-10  Eric Christopher  <echristo@redhat.com>
720
721         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
722         prototype and function.
723         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
724         (call_insn_operand): Remove half pic references.
725         (legitimate_address_p): Ditto.
726         * config/i386/i386.h: Remove half pic defines.
727
728 2002-06-10  Eric Christopher  <echristo@redhat.com>
729
730         * doc/extend.texi (Return Address): Add note explaining the side-
731         effects of inlining on __builtin_return_address.
732
733 2002-06-10  Tom Tromey  <tromey@redhat.com>
734
735         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
736         (c-common.o): Depend on langhooks.h.
737
738 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
739
740         * cpphash.h (_cpp_read_logical_line_trad,
741         _cpp_expansions_different_trad): Update prototypes.
742         * cpplex.c (continue_after_nul): New.
743         * cppmain.c: Include cpphash.h.
744         (scan_translation_unit_trad): New.
745         (cpp_preprocess_file): Call it.
746         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
747         overlay.
748         (_cpp_expansions_different_trad): Update prototype.
749
750 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
751
752         Fix cfi generation for SH[1-4]:
753
754         * sh.c (frame_insn): New function.
755         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
756         (push): Now returns rtx.  Use frame_insn.
757         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
758         of a DF register.
759         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
760
761 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
762
763         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
764         and gtype-desc.c.
765         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
766         (distclean): ... not here.  But do delete all testsuite/*.log,
767         testsuite/*.sum files here.  Delete mkheaders.  Delete
768         po/*.gmo and the testsuite directory in a split tree build.
769
770 2002-06-10  Jeffrey Law  <law@redhat.com>
771
772         * alias.c (static_reg_base_value): New to hold RTL for
773         items allocated once per function for the aliasing code.
774         (init_alias_once_per_function): Initialize static_reg_base_value.
775         (init_alias_analysis): Avoid throw-away allocations of RTL by
776         using pre-computed values in static_reg_base_value.
777         * function.c (prepare_function_start): Call
778         init_alias_once_per_function appropriately.
779         * rtl.h (init_alias_once_per_function): Declare.
780         * caller-save (init_caller_save): Restructure slightly to
781         avoid lots of silly RTL generation.
782         * expr.c (init_expr_once): Likewise.
783         * reload1.c (reload_cse_regs_1): Allocate throw-away register
784         RTL object here.  Pass it into children.
785         (reload_cse_simplify_operands): Use passed-in register RTL
786         object.
787         (reload_cse_simplify): Pass through throw-away register
788         RTL object.
789
790 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
791
792         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
793
794 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
795
796         * gcc.c (process_command): Avoid assignment to read-only location.
797         Fix sizeof calculation.
798
799 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
800
801         * cpphash.h (struct cpp_macro): Put comments on their own lines.
802         (_cpp_expansions_different_trad): New.
803         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
804         * cpptrad.c (canonicalize_text): New.
805         (scan_out_logical_line): Handle no arguments correctly.
806         (save_replacement_text): Commit memory when finished.
807         (_cpp_expansions_different_trad): New.
808
809 2002-06-10  Tim Josling  <tej@melbpc.org.au>
810
811         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
812         TREELANG and COBOL.
813         (lang_names): Add treelang and cobol.
814         (get_file_basename): Add code to support treelang and cobol as
815         4th and 5th users of c-common.c.
816
817 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
818
819         * Makefile.in (install-driver): Install driver as
820         $(target_alias)-gcc-$(version).
821         * gcc.c (spec_version): Make const.
822         (process_command): Handle -V and -b by using exec.
823         * doc/invoke.texi (Target Options): Restore -V option,
824         update docs for -b option.
825
826 2002-06-10  Tim Josling  <tej@melbpc.org.au>
827
828         * configure.in (remaining_languages_check):
829         Added check that all languages specified were found.
830         Exit if not found. Previous behaviour was silent failure.
831         * configure: Regenerated.
832
833 2002-06-10  Tim Josling  <tej@melbpc.org.au>
834
835          First steps to making treelang documentation compliant, based on
836          instructions in sourcebuild.texi. Also add to gcc.c list of
837          default languages.
838
839         * doc/contrib.texi: Add self as contributor of treelang.
840
841         * doc/frontends.texi: Add mention of treelang.
842
843         * doc/invoke.texi (Overall Options): Add mention of treelang.
844
845         * doc/standards.texi:  Add mention of treelang.
846
847 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
848
849         * config/cris/cris.c: Include ggc.h
850
851 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
852
853         * cpphash.h (_cpp_push_text_context): Update.
854         (_cpp_arguments_ok): New.
855         * cppmacro.c (_cpp_arguments_ok): New, split out from...
856         (collect_args): ...here.
857         (_cpp_push_text_context): Change inputs.
858         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
859         replace_args_and_push): New.
860         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
861         Don't use IS macros directly.
862         (scan_out_logical_line): Handle function-like macro argument
863         collection.
864         (push_replacement_text): Update.
865         (replacement_length): Remove.
866         (_cpp_create_trad_definition): Don't skip whitespace before
867         checking for '('.
868
869 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
870
871         * config/avr/avr.c (avr_mcu_types): Update for new devices.
872         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
873         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
874         * config/avr/avr.md ("type" and "length" attributes): New type
875         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
876         output a single "call" or "rcall" insn depending on device size.
877         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
878
879 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
880
881         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
882         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
883         assembler option.
884         (CPP_CPU_SPEC): Add power3 and power4.
885         (PROCESSOR_DEFAULT): Change to 604e.
886         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
887         (CPP_CPU_SPEC): Similar additions.
888         (enum process_type): Add POWER4.
889         (RTX_COSTS): Add POWER4.
890         (CPP_CPU_SPEC): Similar additions.
891         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
892         (PROCESSOR_DEFAULT64): Define.
893         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
894         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
895         branch adjustment.
896         (rs6000_issue_rate): Add Power4.
897         * config/rs6000/rs6000.md (cpu attr): Add power4.
898         (iu compare): Remove 604, 604e, 620, 630.
899         Add basic Power4 scheduling information.
900         (mfcr/mtcrf): Change type attribute to cr_logical.
901
902 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
903
904         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
905         ATTRIBUTE_PRINTF_2.
906         * gengtype-lex.l: Fix format specifier warning.
907
908         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
909         not isspace.
910         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
911         lieu of isspace/IDchar.
912         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
913         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
914         ISSPACE.
915
916 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
917
918         * Makefile.in (LIBCPP_OBJS): Take out version.o.
919         * cpphash.h (cpp_reader): Take out print_version member.
920         * cppinit.c: (cpp_handle_option): Don't do anything with
921         -version.  Just set help_only for --version, --target-help.
922         Just set verbose option for -v.
923         (cpp_post_options): Don't print a version string.
924
925 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
926
927         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
928         (avr_section_type_flags): New, handle .noinit* sections.
929
930 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
931
932         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
933         and include netbsd_entry_point.
934         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
935         (NETBSD_ENTRY_POINT): Define.
936
937 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
938
939         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
940         if not already defined.
941         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
942
943 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
944
945         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
946         in a noreturn function.
947         (avr_output_function_prologue, avr_output_function_epilogue):
948         Correct function size calculation.  Do not crash on empty function.
949         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
950
951 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
952
953         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
954         netbsd_link_spec and netbsd_entry_point.
955         (LINK_SPEC): Use %(netbsd_link_spec).
956         (NETBSD_ENTRY_POINT): Define.
957
958 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
959
960         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
961         linker emulation.
962         (LINK_ARCH64_SPEC): Likewise.
963         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
964         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
965
966 2002-06-08  Marc Espie  <espie@openbsd.org>
967
968         * lists.c (free_list):  Fix typo in comment.
969
970 2002-06-08  Andreas Jaeger  <aj@suse.de>
971
972         * lcm.c (optimize_mode_switching): Add unused attribute for
973         variable.
974
975         * sched-deps.c (sched_analyze): Remove unused variable.
976
977 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
978
979         * diagnostic.def: Don't capitalize diagnostict descriptors.
980
981 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
982
983         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
984         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
985         (NETBSD_ENTRY_POINT): Define.
986
987 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
988
989         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
990         NETBSD_LINK_SPEC_ELF.
991         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
992         (NETBSD_ENTRY_POINT): Define.
993         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
994         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
995         netbsd_entry_point.
996         (NETBSD_ENTRY_POINT): Define.
997
998 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
999
1000         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1001         netbsd_link_spec and netbsd_entry_point.
1002         (LINK_SPEC): Use %(netbsd_link_spec).
1003         (NETBSD_ENTRY_POINT): Define.
1004
1005 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1006
1007         * config/netbsd-elf.h (LINK_SPEC): Rename to...
1008         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
1009         to specify program entry point.
1010
1011 2002-06-07  Jeff Law <law@redhat.com
1012
1013         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
1014         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
1015         than creating a new register.
1016         (distribute_notes): Likewise.
1017         * df.c (df_reg_use_gen): Likewise.
1018         (df_reg_clobber_gen): Likewise.
1019         (df_ref_record): Likewise.
1020         * expr.c (use_regs): Likewise.
1021         * flow.c (propagate_one_insn): Likewise.
1022         (mark_set_1): Likewise.
1023         (mark_used_reg): Likewise.
1024         * reload.c (emit_reload_insns): Likewise.
1025
1026 2002-06-07  Roger Sayle  <roger@eyesopen.com>
1027
1028         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
1029         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
1030         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
1031         comparison code comp can be reversed.
1032
1033 2002-06-07  Roger Sayle  <roger@eyesopen.com>
1034
1035         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
1036         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
1037         equivalent x > -1.0 when -ffast-math.
1038
1039 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1040
1041         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
1042         * config/mips/t-netbsd: New file.
1043
1044 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
1045
1046         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
1047         options their own entries.
1048         (parse_option): Clarify comment.
1049         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
1050         special case.  Replace if/strcmp chain for -W options with
1051         use of new OPT_* entries for them.
1052         (cpp_handle_options): Update to match.
1053         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
1054         * c-decl.c: Update call to cpp_handle_option.
1055
1056 2002-06-07  Akim Demaille  <akim@epita.fr>
1057
1058         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
1059         Whitespace changes.
1060
1061 2002-06-07  Jeffrey Law  <law@redhat.com>
1062
1063         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
1064         on empty lists.
1065
1066 2002-06-07  H.J. Lu  (hjl@gnu.org)
1067
1068         * configure.in: Add --enable-__cxa_atexit.
1069         * configure: Regenerated.
1070         * config.in: Likewise.
1071
1072         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
1073         not defined.
1074
1075 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
1076
1077         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
1078
1079 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1080
1081         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
1082
1083 2002-06-07  Jason Merrill  <jason@redhat.com>
1084
1085         * cppexp.c (num_equality_op): Use a temporary variable to work
1086         around gcc 3.0.4 bug.
1087
1088 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
1089
1090         * diagnostic.c (diagnostic_build_prefix): Tidy.
1091
1092 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1093
1094         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
1095         scan_parameters, save_replacement_text, replacement_length): New.
1096         (scan_out_logical_line): Take a macro and save parameters if
1097         non-NULL.
1098         (_cpp_logical_line_trad): Update.
1099         (_cpp_create_trad_definition): Update to handle function-like
1100         macros.
1101         * cpplex.c (new_buff): Update.
1102         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
1103         * cpphash.h: ...here.
1104         (CPP_ALIGN2, _cpp_save_parameter): New.
1105         * cppmacro.c (save_parameter): Rename, export.
1106         (parse_params): Update.
1107
1108 2002-06-07  Andreas Jaeger  <aj@suse.de>
1109
1110         * config/mmix/mmix.c: Remove extra broken prototype for
1111         mmix_init_machine_status.
1112
1113 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
1114
1115         * gengtype.c: Add comments before all the routines.
1116
1117 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1118
1119         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
1120         from and add t-sh64 to ${tmake_file}.
1121         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
1122         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
1123         * config/sh/t-netbsd-sh5-32: Remove.
1124         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
1125         MULTILIB_ENDIAN.
1126         (MULTILIB_DIRNAMES): Define.
1127
1128 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
1129
1130         * i386.md (and promoting splitters): Disable QI to SImode promoting
1131         when doing so changes immediate to be 32bit.
1132
1133         * rtl.h (emit_*_scope): Declare.
1134         * emit-rtl.c (emit_*_scope): New global functions.
1135         (try_split): Copy scope.
1136         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1137         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1138         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
1139         noce_process_if_block, find_cond_trap): Copy scopes.
1140         * recog.c (peephole2_optimize): likewise.
1141
1142 2002-06-06  Jeffrey Law  <law@redhat.com>
1143
1144         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
1145
1146 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
1147
1148         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
1149
1150 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1151
1152         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
1153         ($(docdir)/gccinstall.info): New target.
1154         (info): Depend on it.
1155         (gccinstall.dvi): New target.
1156         (dvi): Depend on it.
1157         * doc/.cvsignore: Ignore new info files.
1158         * doc/install.texi (@setfilename): Reflect new info filename.
1159
1160 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
1161
1162         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
1163         on an UNSPEC.
1164
1165 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1166
1167         PR objc/6834
1168         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
1169         c_common_get_alias_set.
1170         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
1171
1172 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1173
1174         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
1175         functions.
1176         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
1177         * avr/avr.c (avr_output_function_epilogue): Use above to determine
1178         function size.
1179         * pa/pa.c (pa_output_function_prologue): Likewise.
1180
1181 2002-06-05  David S. Miller  <davem@redhat.com>
1182
1183         * integrate.c (subst_constants): Handle 'B' RTL format.
1184
1185 2002-06-05  Eric Christopher  <echristo@redhat.com>
1186
1187         * varasm.c (make_decl_rtl): Fix comment for removed
1188         halfpic.c.
1189
1190 2002-06-05  Eric Christopher  <echristo@redhat.com>
1191
1192         * Makefile.in: Remove missed halfpic bits.
1193
1194 2002-06-05  Eric Christopher  <echristo@redhat.com>
1195
1196         * toplev.c: Remove half-pic.
1197         * config/mips/mips.c: Ditto.
1198         * config/mips/mips.h: Ditto. Remove unused defines.
1199         * config/mips/openbsd.h: Update comment to reflect above.
1200         * config/mips/mips.md: Remove half-pic constraints.
1201         * halfpic.h: Delete.
1202         * halfpic.c: Ditto.
1203
1204 2002-06-05  Jeffrey Law  <law@redhat.com>
1205
1206         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
1207         rejects (mem (lo_sum (reg) (unspec))), but will allow
1208         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
1209
1210 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1211
1212         * cpphash.h (_cpp_create_definition): Update prototype.
1213         (_cpp_push_text_context, _cpp_create_trad_definition): New.
1214         ( cpp_lex_identifier_trad): New.
1215         (_cpp_set_trad_context): New.
1216         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
1217         * cpplib.c (SEEN_EOL): Update.
1218         (lex_macro_node): Update for -traditional.
1219         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
1220         * cppmacro.c (_cpp_create_definition): Split into
1221         create_iso_definition() and _cpp_create_trad_definition().
1222         (warn_of_redefinition): Update prototype; handle traditional
1223         macros.
1224         (_cpp_push_text_context): New.
1225         * cpptrad.c (skip_whitespace, push_replacement_text): New.
1226         (lex_identifier): Call ht_lookup with correct start.
1227         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
1228         _cpp_set_trad_context): New.
1229         (scan_out_logical_line): Update to handle changing contexts.
1230
1231 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
1232
1233         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
1234         (shl*-*-elf*): Add.
1235         * config/sh/t-be (MULTILIB_ENDIAN): Set.
1236         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
1237         * t-sh (MULTILIB_ENDIAN): Set.
1238         (MULTILIB_OPTIONS): Use it.
1239         * t-sh64 (MULTILIB_OPTIONS): Likewise.
1240         (MULTILIB_DIRNAMES): Likewise.
1241
1242 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
1243
1244         * toplev.h (report_error_function): Remove.
1245
1246         * diagnostic.h (location_t): New datatype.
1247         (text_info): Likewise.
1248         (diagnostic_info): Likewise.
1249         (output_prefix): New macro.
1250         (diagnostic_last_function_changed): Likewise.
1251         (diagnostic_set_last_function): Likewise.
1252         (diagnostic_last_module_changed): Likewise.
1253         (diagnostic_set_last_module): Likewise.
1254         (report_diagnostic): Now macro.
1255         (diagnostic_set_info): Declare.
1256
1257         * diagnostic.c (report_problematic_module): Rename to
1258         diagnostic_repor_current_module.
1259         (set_diagnostic_context): Remove.
1260         (count_error): Rename to diagnostic_error_count.
1261         (error_function_changed): Remove.
1262         (record_last_error_function): Likewise.
1263         (error_module_changed): Likewise.
1264         (record_last_error_module): Likewise.
1265         (context_as_prefix): Rename to diagnostic_build_prefix.
1266         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
1267         (diagnostic_set_info): New function.
1268
1269         * objc/objc-act.c: #include diagnostic.h
1270         (error_with_ivar): Adjust call to count_error.
1271         (warn_with_method): Likewise.
1272         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
1273
1274 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
1275
1276         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
1277         lang_hooks.types.make_type instead of make_node; set up
1278         __va_list_tag type decl.
1279         (xtensa_builtin_saveregs): Remove broken use of
1280         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
1281         for saved registers; add varargs alias set.
1282
1283 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1284
1285 config:
1286         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
1287         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1288         CPP_PREDEFINES and part of CPP_SPEC.
1289         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
1290         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
1291
1292 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
1293
1294         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
1295
1296 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
1297
1298         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
1299
1300 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
1301
1302         * gengtype-yacc.y: Make sure all rules end with a semicolon.
1303
1304 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
1305
1306         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
1307         typo in function prototype and include "ggc.h" header.
1308
1309 2002-06-04  Richard Henderson  <rth@redhat.com>
1310
1311         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
1312         (print_operand) ['U']: Likewise.
1313         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
1314         (alpha_expand_unaligned_store_words): Likewise.
1315         (alpha_expand_builtin_vector_binop): Fix typo.
1316         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
1317         umulh, and cix insns.
1318         (one_arg_builtins): Add cix builtins.
1319         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
1320         (alpha_expand_builtin): Fix typo in arity.
1321         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
1322         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
1323         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
1324         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
1325         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
1326         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
1327         builtin_ctlz, builtin_ctpop): New.
1328         * doc/extend.texi (Alpha Built-in Functions): Update.
1329
1330 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
1331
1332         * gengtype.c (write_gc_root): Don't unnecessarily prevent
1333         global variable-length arrays being roots.
1334
1335         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
1336         * configure.in (config_gtfiles): New variable.
1337         (all_gtfiles): Initialise from config_gtfiles.
1338         * configure: Regenerate.
1339
1340 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1341
1342 config/i386:
1343         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
1344         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
1345         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
1346         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
1347         win32.h (CPP_SPEC): Remove cpp_cpu.
1348         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
1349         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
1350
1351 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
1352
1353         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
1354
1355 2002-06-04  Jeff Law <law@redhat.com.
1356             David Edelsohn <edelsohn@gnu.org>
1357             Michael Matz <matz@kde.org>
1358
1359         * sched-int.h (struct deps): New field libcall_block_tail_insn.
1360         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
1361         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
1362         is set, then mark the current insn as being part of a libcall
1363         scheduling group.
1364         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
1365
1366         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
1367         insns against the issue rate.
1368
1369 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
1370
1371         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
1372         * final.c (final_scan_insn): Likewise.
1373         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
1374         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
1375         * haifa-sched.c (unlink_other_notes): Likeewise.
1376         (reemit_notes): Likewise.
1377         * print-rtl.c (print_rtx): Likewise.
1378         * sched-deps (sched-analyze): Likewise.
1379         * rtl.c (note_insn_name): Likewise.
1380         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
1381         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
1382         (RANGE_*): Kill.
1383
1384 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1385
1386         * varasm.c (mark_constants): Handle RTX format 'B'.
1387
1388 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1389
1390         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
1391         (struct cpp_context): Add traditional fields.
1392         * cppmacro.c (paste_all_tokens, push_ptoken_context,
1393         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
1394         * cpptrad.c (skip_comment, lex_identifier,
1395         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
1396
1397 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
1398
1399         * gbl-ctors.h: Fix formatting.
1400         * gcc.c: Likewise.
1401         * gccspec.c: Likewise.
1402         * gcov.c: Likewise.
1403         * gcov-io.h: Likewise.
1404         * gcse.c: Likewise.
1405         * ggc-common.c: Likewise.
1406         * ggc.h: Likewise.
1407         * ggc-page.c: Likewise.
1408         * ggc-simple.c: Likewise.
1409         * global.c: Likewise.
1410         * graph.h: Likewise.
1411         * gthr-dce.h: Likewise.
1412         * gthr.h: Likewise.
1413         * gthr-posix.h: Likewise.
1414         * gthr-rtems.h: Likewise.
1415         * gthr-solaris.h: Likewise.
1416         * gthr-win32.h: Likewise.
1417
1418 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
1419
1420         Merge from pch-branch:
1421
1422         * gengtype.h (UNION_OR_STRUCT_P): New macro.
1423         * gengtype.c (write_gc_structure_fields): Use it.
1424         (write_gc_root): Use it here too.
1425
1426         * gengtype.c (write_gc_structure_fields): Assume that lengths
1427         of typenames fit into an 'int'; don't pass a size_t to "%d" in
1428         printf.
1429         (write_gc_marker_routine_for_structure): Likewise.
1430         (write_gc_types): Likewise.
1431         (write_gc_root): Likewise.
1432
1433         * varray.h (VARRAY_CLEAR): New.
1434         (varray_clear): Prototype.
1435         * varray.c (varray_clear): New.
1436         * cselib.c (reg_values_old): New.
1437         (used_regs_old): New.
1438         (cselib_init): Use cached varrays if available to avoid
1439         generating large amounts of garbage.
1440         (cselib_finish): Don't throw away old varrays.
1441
1442         * final.c (insn_addresses_): Move out of ifdef.
1443
1444         * varray.c (uses_ggc): Make more varray kinds GCable.
1445         * varray.h (union varray_data_tag): Let gengtype see
1446         fields 'generic' and 'te'.
1447         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
1448         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
1449         (reg_to_stack): Don't call VARRAY_FREE.
1450         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
1451         (insn_addresses_): Use gengtype to mark.
1452         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
1453         pointers; handle generic pointers in unused union fields.
1454         (get_output_file_with_visibility): Include cselib.h,
1455         insn-addr.h in gtype-desc.c.
1456         * function.c (prologue): Use gengtype to mark.
1457         (epilogue): Likewise.
1458         (sibcall_epilogue): Likewise.
1459         * dependence.c: Include gt-dependence.h, ggc.h.
1460         (struct def_use): Use gengtype to mark.
1461         (struct loop): Likewise.
1462         (struct induction): Likewise.
1463         (struct dependence): Likewise.
1464         (def_use_chain): Likewise.
1465         (dep_chain): Likewise.
1466         (loop_chain): Likewise.
1467         (induction_chain): Likewise.
1468         (init_dependence_analysis): Don't free anything, just clear pointers.
1469         (build_def_use): Use GGC to allocate def_use.
1470         (add_loop): Use GGC to allocate loop.
1471         (find_induction_variable): Use GGC to allocate induction.
1472         (check_node_dependence): Use GGC to allocate induction, dependence.
1473         (dump_node_dependence): Don't free varrays.
1474         (end_dependence_analysis): Likewise.
1475         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
1476         (struct elt_loc_list): Likewise.
1477         (struct elt_list): Likewise.
1478         * cselib.c: Don't include obstack.h.
1479         (hash_table): Use gengtype to mark.
1480         (reg_values): Use gengtype to mark.
1481         (used_regs): Use gengtype to mark.
1482         (cselib_obstack): Delete.
1483         (cselib_startobj): Delete.
1484         (empty_vals): Mark as deletable.
1485         (empty_elt_lists): Mark as deletable.
1486         (empty_elt_loc_lists): Mark as deletable.
1487         (new_elt_list): Use GGC to allocate struct elt_list.
1488         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
1489         (clear_table): Don't delete obstack; don't unnecessarily clear
1490         deletable variables.
1491         (new_cselib_val): Use GGC to allocate struct cselib_val.
1492         (cselib_init): Don't set up obstacks.  Use GGC to allocate
1493         hash table.
1494         (cselib_finish): Just clear variables, don't free anything.
1495         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
1496         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
1497         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
1498         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
1499         (gt-reg-stack.h): New rule.
1500         (gt-dependence.h): New rule.
1501         (gtype-desc.o): Add cselib.h, insn-addr.h.
1502
1503         * varray.c: Use only necessary headers.
1504         (element_size): New.
1505         (uses_ggc): New.
1506         (varray_init): Take type, not size.  Use GGC if appropriate.
1507         (varray_grow): Update for change to struct varray_head_tag.
1508         Use GGC if appropriate.
1509         * varray.h (struct const_equiv_data): Use gengtype.
1510         (enum varray_data_enum): New.
1511         (union varray_data_tag): Use gengtype.
1512         (struct varray_head_tag): Use gengtype.  Replace size field with
1513         enum varray_data_enum.
1514         (varray_init): Update prototype.
1515         (VARRAY_SCHED_INIT): Delete.
1516         (VARRAY_*_INIT): Update for change to varray_init.
1517         (VARRAY_SCHED): Delete.
1518         (VARRAY_PUSH_SCHED): Delete.
1519         (VARRAY_TOP_SCHED): Delete.
1520         * tree.h: Update for change to length specifier.
1521         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
1522         (clone_body): Likewise.
1523         * ssa.h (ssa_definition): Use gengtype to mark.
1524         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
1525         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
1526         * rtl.h (struct rtvec_def): Update for change to length specifier.
1527         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
1528         (struct initial_value_struct): Update for change to length specifier.
1529         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
1530         (ggc_add_tree_varray_root): Delete prototype.
1531         (ggc_mark_rtx_varray): Delete prototype.
1532         (ggc_mark_tree_varray): Delete prototype.
1533         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
1534         (ggc_add_tree_varray_root): Delete.
1535         (ggc_mark_rtx_varray): Delete.
1536         (ggc_mark_tree_varray): Delete.
1537         (ggc_mark_rtx_varray_ptr): Delete.
1538         (ggc_mark_tree_varray_ptr): Delete.
1539         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
1540         (create_varray): Delete prototype.
1541         * gengtype.c (varrays): Delete.
1542         (create_varray): Delete.
1543         (adjust_field_type): Detect array of string pointers.
1544         (process_gc_options): Remove code to handle varray_type option.
1545         (set_gc_used_type): Remove TYPE_VARRAY case.
1546         (output_escaped_param): New.
1547         (write_gc_structure_fields): Use output_escaped_param on all
1548         parameters.  Handle 'skip' with 'use_param' option.  Handle
1549         arrays of strings.  Remove TYPE_VARRAY handling.
1550         (write_gc_roots): Use boolean to detect 'length' option.
1551         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
1552         (struct_fields): Call adjust_field_type on array fields.
1553         (type): Remove VARRAY_TYPE case.
1554         (type_option): Likewise.
1555         * gengtype-lex.l: Don't consider varray_type a keyword.
1556         * function.h: Update for change to length specifier.
1557         (free_eh_status): Delete prototype.
1558         * function.c (free_after_compilation): Don't call free_eh_status.
1559         (reorder_blocks): Don't use VARRAY_FREE.
1560         * except.c (struct eh_status): Update for change to length specifier.
1561         remove varray_type specifier.
1562         (free_eh_status): Delete.
1563         * dwarf2out.c: Include gt-dwarf2out.h.
1564         (used_rtx_varray): Use gengtype to mark, move
1565         outside ifdefs.
1566         (incomplete_types): Likewise.
1567         (decl_scope_table): Likewise.
1568         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
1569         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
1570         * c-tree.h (struct lang_type): Update for change to length specifier.
1571         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
1572         * c-objc-common.c: Include gt-c-objc-common.h.
1573         (deferred_fns): Mark for gengtype.
1574         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
1575         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
1576         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
1577         (gtype-desc.o): Update dependencies.
1578         (dwarf2out.o): Add gt-dwarf2out.h.
1579         (varray.o): Update dependencies.
1580         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
1581         (gt-c-objc-common.h): New rule.
1582         (gt-dwarf2out.h): New rule.
1583         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
1584
1585         * doc/gty.texi (GTY Options): Correct spelling.
1586         (GGC Roots): Likewise.
1587         * Makefile.in (TEXI_CPP_FILES): New.
1588         (TEXI_GCC_FILES): New.
1589         (TEXI_GCCINT_FILES): New.
1590         (TEXI_CPPINT_FILES): New.
1591         ($(docdir)/cpp.info): Use new macros.
1592         ($(docdir)/gcc.info): Likewise.
1593         ($(docdir)/gccint.info): Likewise.
1594         ($(docdir)/cppinternals.info): Likewise.
1595         (cpp.dvi): Likewise.
1596         (gcc.dvi): Likewise.
1597         (gccint.dvi): Likewise.
1598         (cppinternals.dvi): Likewise.
1599
1600         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
1601         * doc/gccint.texi (Top): Include gty.texi.
1602         * doc/gty.texi: New file.
1603
1604         * bitmap.c: Include ggc.h, gt-bitmap.h.
1605         (bitmap_ggc_free): New.
1606         (bitmap_elem_to_freelist): New.
1607         (bitmap_element_free): Use bitmap_elem_to_freelist.
1608         (bitmap_element_allocate): Allow use of GGC.
1609         (bitmap_clear): Use bitmap_elem_to_freelist.
1610         (bitmap_copy): Update for change to bitmap_element_allocate.
1611         (bitmap_set_bit): Likewise.
1612         (bitmap_operation): Update for changes elsewhere.
1613         (bitmap_initialize): Allow to create bitmaps that will use GGC.
1614         * bitmap.h (struct bitmap_element_def): Use gengtype.
1615         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
1616         (bitmap_initialize): Add extra parameter.
1617         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
1618         (BITMAP_ALLOCA): Delete.
1619         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
1620         (BITMAP_GGC_ALLOC): New.
1621         * Makefile.in (gtype-desc.o): Add bitmap.h.
1622         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
1623         (GTFILES): Add bitmap.c.
1624         (gt-bitmap.h): New rule.
1625         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
1626         * basic-block.h: Update for changes to bitmap_initialize.
1627         * except.c (exception_handler_label_map): Move into...
1628         (struct eh_status): Here.
1629         (struct eh_region): Make 'aka' GCable.
1630         (free_eh_status): Don't need to specially handle
1631         exception_handler_label_map.
1632         (add_ehl_entry): Update for changes to exception_handler_label_map.
1633         (find_exception_handler_labels): Likewise.
1634         (remove_exception_handler_label): Likewise.
1635         (maybe_remove_eh_handler): Likewise.
1636         (for_each_eh_label): Likewise.
1637         (remove_eh_handler): Allocate 'aka' using GGC.
1638         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
1639         to list of includes.
1640
1641         * gengtype.c (write_gc_marker_routine_for_structure): Name
1642         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
1643         (write_gc_types): Arrange for the tests with NULL to be inlined.
1644         (write_gc_roots): Update uses of procedure pointers.
1645         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
1646
1647         * Makefile.in (explow.o): Add dependency on gt-explow.h.
1648         (sdbout.o): Add dependency on gt-sdbout.h.
1649
1650         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
1651         (mem_attrs_htab): Likewise.
1652         (init_emit_once): Don't call ggc_add_deletable_htab.
1653         * fold-const.c (size_htab): Use gengtype to clear unused entries.
1654         (size_int_type_wide): Don't call ggc_add_deletable_htab.
1655         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
1656         parameters, use them, change callers.
1657         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
1658         (write_gc_roots): Handle 'if_marked' option.
1659         (main): Don't need to call set_gc_used_type any more.
1660         * ggc.h (ggc_htab_marked_p): Delete.
1661         (ggc_htab_mark): Delete.
1662         (struct ggc_cache_tab): New.
1663         (gt_ggc_cache_rtab): New declaration.
1664         * ggc-common.c (struct d_htab_root): Delete.
1665         (d_htab_roots): Delete.
1666         (ggc_add_deletable_htab): Delete.
1667         (ggc_htab_delete): Handle new htab-deleting mechanism.
1668         (ggc_mark_roots): Use new htab-deleting mechanism.
1669         * tree.c (type_hash_table): Use gengtype to clear unused entries.
1670         Make static.
1671         (init_obstacks): Don't call ggc_add_deletable_htab.
1672
1673         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
1674         (struct hashed_entry): Likewise.
1675         (nst_method_hash_list): Likewise.
1676         (cls_method_hash_list): Likewise.
1677         (HASH_ALLOC_LIST_SIZE): Delete.
1678         (ATTR_ALLOC_LIST_SIZE): Delete.
1679         * objc/objc-act.c (hash_init): Use ggc to allocate
1680         nst_method_hash_list, cls_method_hash_list.
1681         (hash_enter): Use ggc to allocate; allocate one entry at a time.
1682         (hash_add_attr): Likewise.
1683         (ggc_mark_hash_table): Delete.
1684         (objc_act_parse_init): Delete.
1685         (objc_init): Delete reference to objc_act_parse_init.
1686         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
1687         obstack.h.  Replace references to 'struct hash_table' with htab_t.
1688         (struct symbol_hash_entry): Replace hash header with key field.
1689         (struct file_hash_entry): Replace hash header with key field.
1690         (struct demangled_hash_entry): Replace hash header with key field.
1691         (hash_string_eq): New.
1692         (hash_string_hash): New.
1693         (symbol_hash_newfunc): Delete.
1694         (symbol_hash_lookup): Modify to use htab_t.
1695         (file_hash_newfunc): Delete.
1696         (file_hash_lookup): Modify to use htab_t.
1697         (demangled_hash_newfunc): Delete.
1698         (demangled_hash_lookup): Modify to use htab_t.
1699         (tlink_init): Modify to use htab_t.
1700         * hash.h: Delete.
1701         * hash.c: Delete.
1702         * ggc.h: Delete forward structure declarations.
1703         Delete prototypes for deleted functions.
1704         * ggc-common.c: Don't include hash.h.
1705         (ggc_add_tree_hash_table_root): Delete.
1706         (ggc_mark_tree_hash_table_entry): Delete.
1707         (ggc_mark_tree_hash_table): Delete.
1708         (ggc_mark_tree_hash_table_ptr): Delete.
1709         * gengtype.c (write_gc_structure_fields): Allow param_is option.
1710         (write_gc_marker_routine_for_structure): Use visibility of
1711         the parameter if there is one.
1712         * function.c: Replace hash.h with hashtab.h.  Replace references
1713         to 'struct hash_table *' with htab_t.
1714         (struct insns_for_mem_entry): Include a plain key.
1715         (fixup_var_refs_insns_with_hash): Update to use htab_t.
1716         (insns_for_mem_newfunc): Delete.
1717         (insns_for_mem_hash): Update to use htab_t.
1718         (insns_for_mem_comp): Likewise.
1719         (insns_for_mem_walk): Likewise.
1720         * c-lang.c: Include ggc.h.
1721         * Makefile.in (OBJS): Remove hash.o.
1722         (c-lang.o): Add GGC_H.
1723         (COLLECT2_OBJS): Remove hash.o.
1724         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
1725         (ggc-common.o): Remove hash.h.
1726         (function.o): Remove hash.h, add HASHTAB_H.
1727         (genautomata.o): Remove hash.h, add HASHTAB_H.
1728
1729         * varasm.c (mark_const_str_htab_1): Delete.
1730         (mark_const_str_htab): Delete.
1731         (const_str_htab_del): Delete.
1732         (const_str_htab): Use gengtype to mark.
1733         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
1734         allocate them.
1735         * tree.c (mark_tree_hashtable_entry): Delete.
1736         (mark_tree_hashtable): Delete.
1737         * tree.h (mark_tree_hashtable): Delete prototype.
1738         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
1739         (ggc_mark): Likewise.
1740         (ggc_calloc): New.
1741         (htab_create_ggc): New.
1742         * ggc-common.c (ggc_calloc): New.
1743         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
1744         (struct type): Add param_struct structure.
1745         * gengtype.c (param_structs): New.
1746         (adjust_field_type): Handle param_is option.
1747         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
1748         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
1749         (write_gc_structure_fields): Add new PARAM parameter.  Update
1750         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
1751         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
1752         Use it to generate function name.  Update callers.
1753         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
1754         Process them.
1755         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
1756         option.
1757         (main): Define PTR as pointer-to-scalar.  Don't specially
1758         mark deferred_string or ehl_map_entry.
1759         * gengtype-yacc.y (PARAM_IS): Add new token.
1760         (externstatic): Use adjust_field_type.
1761         (type_option): Add PARAM_IS.
1762         * gengtype-lex.l: Add rule for typedef of function pointers.
1763         Add rule for PARAM_IS.
1764         (IWORD): Add size_t.
1765         * except.c (exception_handler_label_map): Use gengtype to mark.
1766         (type_to_runtime_map): Likewise.
1767         (mark_ehl_map_entry): Delete.
1768         (mark_ehl_map): Delete.
1769         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
1770         (t2r_mark_1): Delete.
1771         (t2r_mark): Delete.
1772         * Makefile.in (gtype-desc.o): Correct dependencies.
1773         (GTFILES): Add hashtab.h.
1774         (genautomata.o): Actually uses hashtab.h.
1775
1776         * Makefile.in (stringpool.o): Add $(GGC_H).
1777         (dwarf2asm.o): Likewise.
1778         (GTFILES): Add hashtable.h.
1779         * c-common.h (struct c_common_identifier): Use gengtype.
1780         * c-decl.h (c_mark_tree): Delete.
1781         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1782         * c-tree.h (struct lang_identifier): Use gengtype.
1783         (union lang_tree_node): New.
1784         (c_mark_tree): Delete prototype.
1785         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
1786         dwarf2_debug_hooks.
1787         * gengtype-lex.l (IWORD): Allow 'bool'.
1788         (ptr_alias): Match.
1789         * gengtype-yacc.y (ALIAS): New token.
1790         (type_option): New rule.
1791         (option): Use type_option.
1792         * gengtype.c (process_gc_options): New.
1793         (set_gc_used_type): Use it.
1794         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
1795         Add new variable 't' to hold the type of the field being processed.
1796         Add more error checking.  Use UNION_P when looking at 'desc' option.
1797         Handle language-specific structures containing other
1798         language-specific structures.
1799         (write_gc_types): Handle 'ptr_alias' option.
1800         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
1801         * ggc-common.c (ggc_pending_trees): Delete.
1802         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
1803         (ggc_mark_trees): Delete.
1804         (gt_ggc_m_tree_node): Delete.
1805         * ggc.h (ggc_pending_trees): Delete.
1806         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
1807         * hashtable.h (ht_identifier): Use gengtype.
1808         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
1809         * langhooks.h (struct lang_hooks): Delete mark_tree.
1810         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
1811         anyway.
1812         * system.h: Poison LANG_HOOKS_MARK_TREE.
1813         * tree.c (tree_node_structure): New.
1814         * tree.h (struct tree_common): Use gengtype.
1815         (struct tree_int_cst): Likewise.
1816         (struct tree_real_cst): Likewise.
1817         (struct tree_string): Likewise.
1818         (struct tree_complex): Likewise.
1819         (struct tree_vector): Likewise.
1820         (struct tree_identifier): Likewise.
1821         (struct tree_list): Likewise.
1822         (struct tree_vec): Likewise.
1823         (struct tree_exp): Likewise.
1824         (struct tree_block): Likewise.
1825         (struct tree_type): Likewise.
1826         (struct tree_decl): Likewise.
1827         (enum tree_structure_enum): New.
1828         (union tree_node): Use gengtype, with an alias.
1829         (tree_node_structure): Prototype.
1830         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1831
1832         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
1833         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
1834         to LANG_HOOKS_FUNCTION_FINAL.
1835         * Makefile.in (GTFILES): Add bitmap.h.
1836         * except.c (struct eh_region): Mark field 'aka' to be skipped.
1837
1838         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
1839         (alpha_init_machine_status): Give proper type.
1840         * Makefile.in (c-lang.o): Depend on gtype-c.h.
1841         (optabs.o): Depend on gt-optabs.h.
1842         (GTFILES): Add optabs.o.
1843         (gt-optabs.h): Add rule.
1844         * optabs.c: Include gt-optabs.h.
1845
1846         * gengtype.c (set_gc_used_type): Correct some errors in last change.
1847         (write_gc_structure_fields): If a field which should be NULL is
1848         not, abort.
1849         * c-pragma.c: Move struct align_stack and variable alignment_stack
1850         out from the ifdef.
1851
1852         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
1853         * config/xtensa/xtensa.c: Include gt-cris.h.
1854         (struct machine_function): Use gengtype to mark.
1855         * config/mmix/mmix.h (struct machine_function): Use gengtype
1856         to mark.
1857         * config/cris/t-cris: Add dependencies for gt-cris.h.
1858         * config/cris/cris.c: Include gt-cris.h.
1859         (struct machine_function): Use gengtype to mark.
1860         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
1861         to mark.
1862         * doc/tm.texi (Per-Function Data): Delete references to
1863         mark_machine_status.
1864         * config/ia64/ia64.c (ia64_override_options): Don't set
1865         mark_machine_status.
1866         * config/i386/i386.c (override_options): Likewise.
1867         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
1868         * config/arm/arm.c (arm_init_expanders): Likewise.
1869         * config/alpha/alpha.c (override_options): Likewise.
1870         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
1871         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
1872         (write_gc_structure_fields): Don't handle 'really' option.
1873         Handle 'maybe_null' option.
1874         (write_gc_types): Handle 'maybe_null' option.
1875         * function.h (struct function): Don't use "really".
1876         (mark_machine_status): Delete declaration.
1877         (mark_lang_status): Delete declaration.
1878         (gt_ggc_mr_machine_function): Delete prototype.
1879         (gt_ggc_mr_language_function): Delete prototype.
1880         * function.c (mark_machine_status): Delete.
1881         (mark_lang_status): Delete.
1882         (gt_ggc_mr_machine_function): Delete.
1883         (gt_ggc_mr_language_function): Delete.
1884         * c-tree.h (mark_c_function_context): Delete prototype.
1885         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
1886         * c-decl.c (struct language_function): Rename from struct
1887         c_language_function.  Update uses.  Use gengtype to mark.
1888         (mark_c_function_context): Delete.
1889         * c-common.h (struct c_language_function): Rename from struct
1890         language_function.
1891         (mark_stmt_tree): Delete prototype.
1892         (c_mark_lang_decl): Delete prototype.
1893         (mark_c_language_function): Delete prototype.
1894         * c-common.c (mark_stmt_tree): Delete.
1895         (c_mark_lang_decl): Delete.
1896         (mark_c_language_function): Delete.
1897
1898         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
1899         (lang_bitmap): New typedef.  Use where appropriate.
1900         (struct type): Add gc_used field, lang_struct field.
1901         (UNION_P): New macro.
1902         (new_structure): New prototype.
1903         (find_structure): Remove 'pos' parameter.  Change all callers.
1904         * gengtype-lex.l: Update for changes to find_structure.
1905         * gengtype-yacc.y (typedef_struct): Use new_structure.
1906         (yacc_ids): Suppress warning.
1907         (type): Use new_structure.
1908         * gengtype.c (string_type): Update for changes to struct type.
1909         (find_structure): Just find a structure, don't worry about
1910         creating one.
1911         (new_structure): New.
1912         (note_yacc_type): Use new_structure.
1913         (set_gc_used_type): New.
1914         (set_gc_used): New.
1915         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
1916         (write_gc_types): Handle TYPE_LANG_STRUCT.
1917         (write_gc_marker_routine_for_structure): New.
1918         (main): Call set_gc_used.  Add some calls to set_gc_used_type
1919         for places where GCC doesn't use gengtype properly yet.
1920         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
1921         (gt_ggc_m_tree_node): Likewise.
1922
1923         * varasm.c (copy_constant): Call expand_constant if we hit
1924         something we can't recognise.
1925
1926         * ggc-common.c (ggc_mark_rtvec_children): Delete.
1927         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
1928         (lang_mark_false_label_stack): Delete.
1929         * rtl.h (struct rtvec_def): Use gengtype to mark.
1930         * ggc.h (ggc_mark_rtvec): Delete.
1931         (gt_ggc_m_rtvec_def): Delete.
1932         (ggc_mark_nonnull_tree): Delete.
1933         (ggc_mark_rtvec_children): Delete prototype.
1934         (lang_mark_false_label_stack): Delete declaration.
1935
1936         * gengtype.h (note_yacc_type): Add prototype.
1937         * gengtype.c (note_yacc_type): New function.
1938         * gengtype-lex.l: Add lexer support for yacc files.
1939         * gengtype-yacc.y (start): Extract union from yacc files.
1940         (yacc_union): New rule.
1941         (yacc_typematch): New rule.
1942         (yacc_ids): New rule.
1943         (enum_items): Tweak for efficiency.
1944         (optionseq): Likewise.
1945
1946         * c-common.h (struct language_function): Use gengtype.
1947         (struct c_lang_decl): Likewise.
1948         * c-tree.h (struct lang_decl): Likewise.
1949         (struct lang_type): Likewise.
1950         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
1951         tree language substructures.
1952
1953         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
1954         ggc_mark_tree.
1955         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
1956
1957         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
1958
1959         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
1960         mark. Remove 'data.block.cleanup_ptr' field.
1961         (struct stmt_status): Use usual technique to mark struct nesting.
1962         (gt_ggc_mr_nesting_cond): Delete.
1963         (gt_ggc_mr_nesting_loop): Delete.
1964         (gt_ggc_mr_nesting_block): Delete.
1965         (gt_ggc_mr_nesting_case_stmt): Delete.
1966         (expand_start_cond): Set discriminator.
1967         (expand_start_loop): Likewise.
1968         (expand_start_null_loop): Likewise.
1969         (expand_start_bindings_and_block): Set discriminator.  Don't set
1970         deleted fields.
1971         (expand_decl_cleanup): Replace 'cleanup_ptr' with
1972         &thisblock->data.block.cleanups.
1973         (expand_start_case): Set discriminator.
1974         (expand_start_case_dummy): Set discriminator.
1975
1976         * ggc-callbacks.c: Remove.
1977
1978         * gengtype.h (struct type): Add 'u.s.bitmap' field.
1979         (find_structure): Add 'pos' parameter.
1980         * gengtype-lex.l: Update callers to find_structure.
1981         * gengtype-yacc.y: Likewise.
1982         * gengtype.c (find_structure): Allow for structures to be defined
1983         in multiple language backends.
1984         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
1985         (counter): Rename to gc_counter.
1986         (write_gc_structure_fields): Fail when writing out fields for
1987         an incomplete structure.  Ignore arrays of scalars.  Handle
1988         'tree_vec' special.
1989         (write_gc_types): Reset counter for each procedure written.
1990
1991         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
1992         (free_case_nodes): Delete.
1993         (expand_end_case_type): Delete call to free_case_nodes.
1994
1995         * Makefile.in (cselib.o): Include gt-<filename>.h.
1996         (gcse.o): Likewise.
1997         (profile.o): Likewise.
1998         (alias.o): Likewise.
1999         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
2000         alphabetize backend files.
2001         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
2002         * alias.c: Use gengtype for roots.
2003         * c-common.h (struct stmt_tree_s): Use gengtype.
2004         * c-decl.c: Use gengtype for roots.
2005         * cselib.c: Use gengtype for roots.
2006         * expr.c: Use gengtype for roots.
2007         * fold-const.c: Use gengtype for roots.
2008         * gcse.c: Use gengtype for roots.
2009         * gengtype-lex.l: Handle typedefs of function types.
2010         Allow for empty array bounds.
2011         Allow processing to stop on initialisers.
2012         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
2013         (semiequal): New rule.
2014         * gengtype.c (create_file): Tidy output files.
2015         (get_output_file_with_visibility): Fix paren warning.  Fix bug
2016         involving multiple input files mapping to one output file.
2017         (write_gc_structure_fields): Skip arrays of scalars.
2018         (write_gc_types): Tidy output files.
2019         (write_gc_root): New function.
2020         (write_gc_roots): Fix bugs, add support for roots that are
2021         structures.
2022         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
2023         (ggc_mark_tree_ptr): Delete.
2024         (ggc_add_rtx_root): Delete.
2025         (ggc_add_tree_root): Delete.
2026         (ggc_del_root): Delete.
2027         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
2028         allocate struct initial_value_struct.
2029         * profile.c: Use gengtype for roots.
2030         * sdbout.c: Use gengtype for roots.
2031         * varasm.c (mark_weak_decls): Delete unused prototype.
2032         (mark_const_hash_entry): Delete unused function.
2033         * config/darwin-protos.h: Use gengtype for roots.
2034         (machopic_add_gc_roots): Delete.
2035         * config/arm/arm.c: Use gengtype for roots.
2036         * config/arm/arm.h: Use gengtype for roots.
2037         * config/c4x/c4x-protos.h: Use gengtype for roots.
2038         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
2039         * config/d30v/d30v-protos.h: Use gengtype for roots.
2040         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
2041         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
2042         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
2043         * config/ia64/ia64-protos.h: Use gengtype for roots.
2044         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
2045         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
2046         * config/m68hc11/m68hc11.c (z_reg): Make global.
2047         (z_reg_qi): Make global.
2048         (m68hc11_add_gc_roots): Delete.
2049         * config/mcore/mcore-protos.h: Use gengtype for roots.
2050         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
2051         * config/mips/mips.c (mips_add_gc_roots): Delete.
2052         * config/mips/mips.h: Use gengtype for roots.
2053         * config/mmix/mmix.c (override_options): Use gengtype for roots.
2054         * config/mmix/mmix.h: Use gengtype for roots.
2055         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
2056         * config/mn10200/mn10200.h: Use gengtype for roots.
2057         * config/pa/pa.c: Use gengtype for roots, marking.
2058         (struct deferred_plabel): Use GGC, gengtype.
2059         (pa_add_gc_roots): Delete.
2060         (mark_deferred_plabels): Delete.
2061         * config/pj/pj-protos.h: Use gengtype for roots.
2062         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
2063         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
2064         machopic_add_gc_roots.
2065         * config/rs6000/rs6000.h: Use gengtype for roots.
2066         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
2067         (gt-darwin.h): Add rule.
2068         * config/sh/sh.c: Use gengtype for roots.
2069         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
2070         (gt-sh.h): Add rule.
2071         * config/sparc/sparc.c: Use gengtype for roots.
2072         (sparc_add_gc_roots): Delete.
2073         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
2074         (mark_ultrasparc_pipeline_state): Delete.
2075         * config/sparc/sparc.h: Use gengtype for roots.
2076
2077         * Makefile.in (c-parse.o): Update dependencies.
2078         (c-common.o): Likewise.
2079         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
2080         Add dependencies for the files they generate.
2081         * c-common.c: Replace ggc_add_* uses with GTY annotations.
2082         * c-common.h: Likewise.
2083         * c-decl.c: Likewise.
2084         (gt_ggc_mp_binding_level): Delete.
2085         * c-lang.c: Include gtype-c.h.
2086         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
2087         gt-c-parse.h.
2088         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
2089         (gt_ggc_mp_align_stack): Delete.
2090         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
2091         * function.c: Replace ggc_add_* uses with GTY annotations.
2092         (gt_ggc_mp_function): Delete.
2093         * function.h: Replace ggc_add_* uses with GTY annotations.
2094         * gengtype.c (lang_names): New.
2095         (NUM_BASE_FILES): New.
2096         (open_base_files): Create language base files.
2097         (startswith): New.
2098         (get_file_basename): New.
2099         (get_base_file_bitmap): New.
2100         (get_output_file_with_visibility): Rename from get_output_file.
2101         Add more mappings for various C/Objc filenames.
2102         (finish_root_table): New.
2103         (write_gc_roots): Handle dependencies and scoping properly.
2104         * gengtype.h: Add prototypes for new functions.
2105         * ggc-common.c (struct deletable_root): Delete.
2106         (deletables): Delete.
2107         (ggc_add_deletable_root): Delete.
2108         (ggc_mark_roots): No need to deal with deleted functionality.
2109         * ggc.h (ggc_add_deletable_root): Delete prototype.
2110         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
2111         (gtype-objc.h): Add rule to create.
2112         * objc/config-lang.in (gtfiles): New.
2113         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
2114         ggc_add_* with GTY markers.  Include gtype-objc.h.
2115         (ggc_mark_imp_list): Delete.
2116         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
2117         * objc/objc-lang.c: Random Whitespace Change.
2118
2119         * except.h (exception_handler_labels): Delete.
2120         (get_exception_handler_labels): New.
2121         * except.c (exception_handler_labels): Delete.
2122         (struct eh_status): Add exception_handler_labels field.
2123         (doing_eh): Don't add exception_handler_labels as root.
2124         (free_eh_status): Don't need to free exception_handler_labels.
2125         (get_exception_handler_labels): New.
2126         (find_exception_handler_labels): Update for move of
2127         exception_handler_labels.
2128         (remove_exception_handler_label): Likewise.
2129         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
2130         * jump.c (rebuild_jump_labels): Likewise.
2131         * loop.c (find_and_verify_loops): Likewise.
2132         * sched-rgn.c (is_cfg_nonregular): Likewise.
2133
2134         * gengtype.c (write_gc_structure_fields): Handle variable-length
2135         TYPE_ARRAYs.
2136
2137         * varasm.c (struct weak_syms): Use GGC, gengtype.
2138         (mark_weak_decls): Delete.
2139         (weak_decls): Likewise.
2140         (add_weak): Likewise.
2141         (remove_from_pending_weak_list): Likewise.
2142         (init_varasm_once): Likewise.
2143
2144         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
2145         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
2146         stor-layout.c, regclass.c, and lists.c.
2147         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
2148         gt-regclass.h and gt-lists.h on s-gtype.
2149         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
2150         * except.c: Use gengtype for roots.
2151         * explow.c: Use gengtype for roots.  Include gt-explow.h.
2152         * expr.h (init_stor_layout_once): Delete prototype.
2153         * function.c: Use gengtype for roots.
2154         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
2155         * gengtype-yacc.y (start): Can also be an externstatic.
2156         (externstatic): New production.
2157         (struct_fields): Correct array bounds inversion for 2-d arrays.
2158         * gengtype.c (variables): New variable.
2159         (note_variable): New function.
2160         (get_output_file): Include libfuncs.h into gtype-desc.c.
2161         (get_output_file_name): New function.
2162         (write_gc_structure_fields): Suppress warnings.
2163         (write_gc_types): Make static.
2164         (put_mangled_filename): New function.
2165         (write_gc_roots): New function.
2166         (main): Call write_gc_roots.
2167         * gengtype.h (note_variable): Prototype.
2168         (get_output_file_name): Prototype.
2169         (write_gc_types): Delete prototype.
2170         * ggc.h: Clean up unnecessary structure predefinitions.
2171         (struct ggc_root_tab): Define.
2172         (gt_ggc_m_rtx_def): Make function, not macro.
2173         (gt_ggc_m_tree_node): Likewise.
2174         * libfuncs.h: Use gengtype for roots.
2175         * lists.c: Use gengtype for roots.  Include gt-lists.h.
2176         (init_EXPR_INSN_LIST_cache): Delete.
2177         * optabs.c: Use gengtype for roots.
2178         (gt_ggc_mp_optab): Delete.
2179         * optabs.h: Use gengtype for roots.
2180         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
2181         * rtl.h: Use gengtype for roots.
2182         (init_EXPR_INSN_LIST_cache): Delete prototype.
2183         * stor-layout.c: Use gengtype for roots.
2184         Include gt-stor-layout.h.
2185         (init_stor_layout_once): Delete.
2186         * toplev.c: Use gengtype for roots.  Delete calls to deleted
2187         routines.
2188         * tree.c: Use gengtype for roots.
2189         * tree.h: Use gengtype for roots.
2190         * varasm.c: Use gengtype for roots.
2191
2192         * Makefile.in (GTFILES): Add @all_gtfiles@.
2193         * configure: Regenerate.
2194         * configure.in: Construct all_gtfiles from the gtfiles definitions
2195         in config-lang.in.
2196         * gengtype-yacc.y (type): Warn about duplicate structure names.
2197         * gengtype.c (get_output_file): Handle .c files in language
2198         subdirectories.
2199
2200         * Makefile.in (GTFILES): Run gengtype on all the config files
2201         and on the target .c file.
2202         * except.c (mark_eh_region): Delete.
2203         (init_eh_for_function): Use GGC on struct eh_status.
2204         (mark_eh_status): Delete.
2205         (free_eh_status): Use GGC.
2206         (expand_eh_region_start): Use GGC to
2207         (collect_eh_region_array): Allocate last_region_number using GGC.
2208         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
2209         (remove_eh_handler): Let GGC free struct eh_region.
2210         (add_call_site): Use GGC to reallocate call_site_record array.
2211         * function.c (init_machine_status): Update calling sequence.
2212         (mark_machine_status): Likewise.
2213         (mark_lang_status): Likewise.
2214         (prepare_function_start): Update init_machine_status call.
2215         (mark_function_status): Delete.
2216         (maybe_mark_struct_function): Delete.
2217         (ggc_mark_struct_function): Delete.
2218         (gt_ggc_mp_function): New.
2219         (gt_ggc_mr_machine_function): New.
2220         (gt_ggc_mr_language_function): New.
2221         (init_function_once): Use canonical names.
2222         * function.h (struct function): Use gengtype.
2223         (init_machine_status): Return the structure.
2224         (mark_machine_status): Take a 'void *'.
2225         (mark_lang_status): Likewise.
2226         * ggc-common.c (ggc_mark_trees): Use canonical name for
2227         ggc_mark_struct_function.
2228         * tree.h (ggc_mark_struct_function): Delete prototype.
2229         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
2230         (alpha_init_machine_status): Likewise.
2231         (override_options): Use canonical name for alpha_mark_machine_status.
2232         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
2233         * config/arm/arm.h (struct machine_function): Use gengtype.
2234         * config/arm/arm.c (arm_mark_machine_status): Delete.
2235         (arm_init_machine_status): Update calling sequence.
2236         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
2237         * config/cris/cris.c (cris_init_machine_status): Update
2238         calling sequence.
2239         * config/d30v/d30v.h (struct machine_function): Use gengtype.
2240         * config/d30v/d30v.c (d30v_init_machine_status): Update
2241         calling sequence.
2242         (d30v_mark_machine_status): Delete.
2243         * config/i386/i386.c: Include gt-i386.h.
2244         (struct machine_function): Use gengtype.
2245         (ix86_init_machine_status): Update calling sequence.
2246         (ix86_mark_machine_status): Delete.
2247         (override_options): Use canonical namke for ix86_mark_machine_status.
2248         * config/ia64/ia64.h (struct machine_function): Use gengtype.
2249         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
2250         sequence.
2251         (ia64_mark_machine_status): Delete.
2252         (ia64_override_options): Use canonical name for
2253         ia64_mark_machine_status.
2254         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
2255         sequence.
2256         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
2257         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2258         * gengtype.c (get_output_file): Fix warning.
2259         (main): Add prototype to suppress warning.
2260         * tree.c: Remove tree_hash_mark prototype.
2261
2262         * tree.h (init_stmt): Delete prototype.
2263         * toplev.c (lang_independent_init): Don't call init_stmt.
2264         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
2265         (stmt_obstack): Delete.
2266         (POPSTACK): No need to free 'struct nesting'.
2267         (gt_ggc_mr_nesting_cond): Use canonical names.
2268         (gt_ggc_mr_nesting_loop): Use canonical names.
2269         (gt_ggc_mr_nesting_block): Use canonical names.
2270         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
2271         (mark_stmt_status): Delete.
2272         (init_stmt): Delete.
2273         (clear_last_expr): Clear both last_expr_type and last_expr_value.
2274         Use it everywhere that last_expr_type was cleared.
2275         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
2276         (zap_lists): Delete.
2277         * ggc.h (ggc_add_deletable_root): Prototype.
2278         (mark_stmt_status): Remove prototype.
2279         * ggc-common.c (ggc_add_deletable_root): New.
2280         (ggc_mark_roots): Handle deletable roots.
2281         * function.c (ggc_mark_struct_function): Use canonical name
2282         for mark_stmt_status.
2283         * emit-rtl.c (free_sequence_stack): New.
2284         (start_sequence): Use a freelist for sequences.
2285         (end_sequence): Likewise.
2286         (init_emit_once): Add free_sequence_stack as a deleteable root.
2287         * c-pragma.c Include gt-c-pragma.h.
2288         (struct align_stack): Use gengtype.
2289         (push_alignment): Use GGC for struct align_stack.
2290         (mark_align_stack): Delete.
2291         (gt_ggc_mp_align_stack): New.
2292         (init_pragma): Use canonical name for mark_align_stack.
2293         * c-decl.c: Include gt-c-decl.h.
2294         (struct binding_level): Use gengtype.
2295         (make_binding_level): Use GGC; handle the freelist here.
2296         (pop_binding_level): New.
2297         (pushlevel): Move code into make_binding_level.
2298         (push_label_level): Likewise.
2299         (poplevel): Move code into pop_binding_level.
2300         (pop_label_level): Likewise.
2301         (mark_binding_level): Delete.
2302         (gt_ggc_mp_binding_level): New.
2303         (c_init_decl_processing): Use canonical name for mark_binding_level.
2304         Add free_binding_level as deletable root.
2305         (mark_c_function_context): Use canonical name for mark_binding_level.
2306         * Makefile.in (c-decl.o): Add gt-c-decl.h.
2307         (c-pragma.o): Add gt-c-pragma.h.
2308         (GTFILES): Add c-decl.c and c-pragma.c.
2309         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
2310
2311         * tree.c (struct type_hash): Use gengtype.
2312         (init_obstacks): Use canonical name for type_hash_mark.
2313         (type_hash_mark): Delete.
2314         Include gt-tree.h.
2315         * rtl.h (struct mem_attrs): Use gengtype.
2316         * optabs.h (struct optab): Use gengtype.
2317         * optabs.c (expand_binop): Squish signed/unsigned warning.
2318         (mark_optab): Make local, use canonical name, use autogenerated
2319         marker procedure.
2320         (init_optabs): Use canonical name for mark_optab.
2321         (new_optab): Use GGC to allocate optabs.
2322         * ggc.h: Delete mark_optab prototype.
2323         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
2324         mem_attrs marker procedure.
2325         * gengtype.c (get_output_file): Include headers in gtype-desc.c
2326         explicitly rather than deducing them from file names.
2327         (write_gc_structure_fields): Handle arrays of structures.
2328         (main): Return non-zero exit code if errors occur during output.
2329         * emit-rtl.c (mem_attrs_mark): Delete.
2330         (init_emit_once): Use canonical name for mem_attrs marker procedure.
2331         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
2332         (tree.o): Depend on gt-tree.h.
2333         (GTFILES): Add rtl.h, optabs.h, tree.c.
2334         (gt-tree.h): Add it to s-gtype rule.
2335
2336         * .cvsignore: Ignore gengtype flex/bison generated files.
2337         * Makefile.in (GGC_H): Add gtype-desc.h.
2338         (OBJS): Add gtype-desc.o.
2339         (GEN): Add gengtype.
2340         (STAGESTUFF): Add gengtype.
2341         (varasm.o): Add gt-varasm.h.
2342         (stmt.o): Add gt-stmt.h.
2343         (except.o): Add gt-except.h.
2344         (integrate.o): Add gt-integrate.h.
2345         (GTFILES): New.
2346         Add new rules for new files.
2347         * configure: Regenerate.
2348         * configure.in: Correct defaults.h paths.
2349         * emit-rtl.c (mark_sequence_stack): Delete.
2350         (mark_emit_status): Delete.
2351         (start_sequence): Allocate sequence structures using GGC.
2352         (end_sequence): Allocate sequence structures using GGC.
2353         * except.c: Use gengtype for various structures.  Include
2354         gt-except.h.
2355         * expr.c (mark_expr_status): Delete.
2356         * function.c: Use gengtype for various structures.  Include
2357         gt-function.h.
2358         (mark_function_status): Use standard gt_ggc names for marker functions.
2359         (ggc_mark_struct_function): Likewise.
2360         * function.h: Use gengtype for various structures.
2361         * gengtype-lex.l: New file.
2362         * gengtype-yacc.y: New file.
2363         * gengtype.c: New file.
2364         * gengtype.h: New file.
2365         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
2366         the standard names.  Remove some now-unnecessary prototypes.
2367         * integrate.c: Use gengtype for various structures.  Include
2368         gt-integrate.h.
2369         (mark_hard_reg_initial_vals): Delete.
2370         * integrate.h (mark_hard_reg_initial_vals): Delete.
2371         * stmt.c: Use gengtype for various structures.  Include
2372         gt-stmt.h.
2373         (mark_case_node): Delete.
2374         (mark_goto_fixup): Delete.
2375         (mark_stmt_status): Use standard gt_ggc names for marker functions.
2376         * system.h: Define GTY to empty.   In flex/bison files,
2377         don't poison malloc or realloc, instead just define them to
2378         xmalloc and xrealloc.
2379         * varasm.c: Use gengtype for various structures.  Include
2380         gt-varasm.h.  Use standard gt_ggc names for marker functions.
2381         (mark_pool_constant): Delete.
2382         (mark_varasm_status): Delete.
2383         (decode_rtx_const): #if 0 out non-typesafe hack.
2384
2385         * function.h (free_lang_status): Mark as obsolete.
2386         * function.c (free_lang_status): Mark as obsolete.
2387         * c-decl.c (push_c_function_context): Use GC to allocate and free
2388         struct language_function.
2389         (pop_c_function_context): Likewise.
2390         * c-common.c (mark_c_language_function): Mark struct
2391         language_function.
2392
2393         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
2394         Document that the machine_function structures must be allocated
2395         using GC.  Update mark_machine_status documentation.
2396         * function.h: Don't declare free_machine_status.
2397         * function.c (free_machine_status): Don't define.
2398         (free_after_compilation): Don't call free_machine_status.
2399         (ggc_mark_struct_function): Mark f->machine.  Call
2400         mark_machine_status only on non-NULL pointers.
2401         * system.h: Poison free_machine_status.
2402         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
2403         struct machine_function.
2404         (xtensa_free_machine_status): Delete.
2405         (override_options): Don't set free_machine_status.
2406         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
2407         free_machine_status.
2408         (rs6000_init_machine_status): Use GC on struct machine_function.
2409         (rs6000_free_machine_status): Delete.
2410         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
2411         machine_function.
2412         (ia64_mark_machine_status): Likewise.
2413         (ia64_free_machine_status): Delete.
2414         (ia64_override_options): Don't set free_machine_status.
2415         * config/i386/i386.c (override_options): Don't set
2416         free_machine_status.
2417         (ix86_init_machine_status): Use GC on struct machine_function.
2418         (ix86_mark_machine_status): Likewise.
2419         (ix86_free_machine_status): Delete.
2420         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
2421         machine_function.
2422         (d30v_mark_machine_status): Likewise.
2423         (d30v_free_machine_status): Delete.
2424         (d30v_init_expanders): Don't set free_machine_status.
2425         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
2426         machine_function.
2427         (arm_init_machine_status): Likewise.
2428         (arm_free_machine_status): Delete.
2429         (arm_init_expanders): Don't set free_machine_status.
2430         * config/alpha/alpha.c (override_options): Don't set
2431         free_machine_status.
2432         (alpha_init_machine_status): Use GC on struct machine_function.
2433         (alpha_mark_machine_status): Likewise.
2434         (alpha_free_machine_status): Delete.
2435
2436         * varasm.c (compare_constant): Fix typo.
2437
2438         * varasm.c: Don't include obstack.h.
2439         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
2440         (struct rtx_const): Give substructures names, improve formatting.
2441         (struct constant_descriptor): Delete.
2442         (struct constant_descriptor_tree): New, based on constant_descriptor.
2443         (const_hash_table): Is a hash table of trees.
2444         (mark_const_hash_entry): Is used for hashes of trees.  Mark
2445         constant_descriptor_tree structure.
2446         (mark_const_str_htab_1): Mark deferred_string structure.
2447         (compare_constant): Rewrite to compare trees.
2448         (compare_constant_1): Delete.
2449         (record_constant): Delete.
2450         (record_constant_1): Delete.
2451         (output_constant_def): Use struct constant_descriptor_tree.
2452         Don't duplicate trees twice.
2453         (struct constant_descriptor_rtx): New.
2454         (struct pool_constant): Used for rtx constants.
2455         (init_varasm_status): Update for change to struct varasm_status.
2456         (mark_varasm_status): Likewise.
2457         (free_varasm_status): Delete.
2458         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
2459         (record_constant_rtx): Likewise.
2460         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
2461         (force_const_mem): Likewise.
2462         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
2463         * function.c (free_after_compilation): Don't use free_varasm_status.
2464         * function.h: Don't prototype free_varasm_status.
2465
2466         * ggc-common.c (ggc_realloc): Handle X being NULL.
2467
2468         * ggc-common.c (ggc_realloc): New function.
2469         * ggc.h: Prototype it.
2470         * emit-rtl.c (free_emit_status): Delete.
2471         (init_emit): Allocate emit subarrays using GC.
2472         (gen_reg_rtx): Reallocate subarrays using GC.
2473         (init_emit): Use GC to allocate 'struct emit_status' and its
2474         subarrays.
2475         (mark_emit_status): Mark structure and its subarrays.
2476         * stmt.c (free_stmt_status): Delete.
2477         * expr.c (free_expr_status): Delete.
2478         * function.h: Remove prototypes for deleted functions.
2479         * function.c (free_after_compilation): Don't use deleted functions.
2480         Don't call free() on x_parm_reg_stack_loc.
2481         (free_after_parsing): Don't use free_stmt_status.
2482         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
2483         (mark_function_status): Mark x_parm_reg_stack_loc.
2484
2485         * varasm.c (init_varasm_status): Use GC to allocate
2486         'struct varasm_status' and its fields x_const_rtx_hash_table
2487         and x_const_rtx_sym_hash_table.
2488         (mark_varasm_status): Mark them.
2489         (free_varasm_status): Use GC to free them.
2490         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
2491         (mark_expr_status): Mark the structure itself.
2492         (free_expr_status): Use GC to free the structure.
2493         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
2494         (mark_stmt_status): Mark the 'struct stmt_status' itself.
2495         (init_stmt_for_function): Allocate the structure for GC.
2496
2497         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
2498         (equate_type_number_to_die): Likewise.
2499         * tree.h (TYPE_SYMTAB_DIE): New macro.
2500         (struct die_struct): Predeclare.
2501         (struct tree_type): Add field symtab.die.   Add a tag
2502         to the union type of field symtab.
2503
2504         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
2505         'struct rtvec_def *', not 'struct rtvec_def'.
2506
2507         * function.h (original_arg_vector): Make a real rtvec.
2508         * function.c (ggc_mark_struct_function): Adjust.
2509         * integrate.c (expand_inline_function): Adjust.
2510
2511 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2512
2513         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
2514         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
2515         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
2516         (TARGET_VERSION_CPU): Define according to the
2517         default target.
2518         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
2519         TARGET_VERSION_CPU.
2520         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
2521         if TARGET_SHMEDIA64.
2522         (LINK_DEFAULT_CPU_EMUL): Define according to the
2523         default target.
2524         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
2525         (SUBTARGET_LINK_SPEC): Define.
2526         (LINK_SPEC): Use SH_LINK_SPEC.
2527         (ASM_SPEC): Remove.
2528         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2529         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
2530         and TARGET_SHMEDIA64 which abort, for now.
2531         * config/sh/t-netbsd-sh5: New file.
2532         * config/sh/t-netbsd-sh5-32: New file.
2533         * config/sh/t-netbsd-sh5-64: New file.
2534
2535 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2536             Richard Henderson  <rth@redhat.com>
2537
2538         * config/alpha/alpha.c (reg_or_const_int_operand): New.
2539         (some_operand, input_operand): Accept CONST_VECTOR.
2540         (alpha_extra_constraint): Add 'W'.
2541         (alpha_expand_zap_mask): New.
2542         (alpha_expand_builtin_vector_binop): New.
2543         (enum alpha_builtin): New.
2544         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
2545         (alpha_init_builtins, alpha_expand_builtin): New.
2546         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
2547         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
2548         (PREDICATE_CODES): Update.
2549         * config/alpha/alpha-protos.h: Update.
2550         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
2551         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
2552         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
2553         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
2554         (movv2si, movv2si_fix, movv2si_nofix): New.
2555         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
2556         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
2557         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
2558         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
2559         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
2560         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
2561         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
2562         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
2563         builtin_unpkbw, unpkbw): New.
2564         * doc/extend.texi (Alpha Built-in Functions): New.
2565
2566 2002-06-03  Richard Henderson  <rth@redhat.com>
2567
2568         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
2569         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
2570
2571 2002-06-03  Richard Henderson  <rth@redhat.com>
2572
2573         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
2574
2575         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
2576         (const0_operand): New.
2577         (reg_or_fp0_operand, fp0_operand): Remove.
2578         * config/alpha/alpha.h (PREDICATE_CODES): Update.
2579         * config/alpha/alpha-protos.h: Update.
2580         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
2581         and fp0_operand with reg_or_0_operand and const0_operand.
2582
2583 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
2584
2585         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
2586
2587 2002-06-03  Roger Sayle  <roger@eyesopen.com>
2588
2589         * gcse.c (cprop_jump): Use single_set to get the pattern
2590         from the setcc argument.
2591
2592 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
2593
2594         * diagnostic.h (diagnostic_count): Move from output_buffer to
2595         diagnostic_context.
2596         (diagnostic_kind_count): Adjust definition.
2597
2598 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
2599
2600         * except.c (except.c): Do not rebuild CFG.
2601         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
2602         optimization.
2603
2604 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
2605
2606         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
2607         * toplev.c: Include cfglahout.h
2608         * Makefile.in (toplev.c): Add dependnecy.
2609
2610 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2611
2612         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
2613         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
2614         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
2615
2616 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
2617
2618         * config/ns32k/netbsd.h: Update copyright years.
2619         (TARGET_OS_CPP_BUILTINS): Define.
2620         (CPP_PREDEFINES): Remove.
2621         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
2622         (TARGET_CPU_CPP_BUILTINS): Define.
2623
2624 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
2625
2626         * emit-rtl.c: Fix formatting.
2627         * errors.h: Likewise.
2628         * except.c: Likewise.
2629         * explow.c: Likewise.
2630         * expmed.c: Likewise.
2631         * expr.c: Likewise.
2632         * expr.h: Likewise.
2633
2634 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
2635
2636         * config/h8300/elf.h: Fix formatting.
2637         * config/h8300/rtems.h: Likewise.
2638
2639 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
2640
2641         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
2642
2643 2002-06-02  Tom Tromey  <tromey@redhat.com>
2644
2645         * fixinc/fixincl.x: Rebuilt.
2646         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
2647
2648 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2649
2650 config/i370:
2651         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
2652         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
2653         * mvs.h: Similarly.
2654         * oe.h: Similarly.
2655
2656 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
2657
2658         * final.c (final):  Allow notes to not have computed addresses;
2659         kill no longer needed STACK_REGS ifdef.
2660
2661 2002-06-02  Richard Henderson  <rth@redhat.com>
2662
2663         * gcse.c (bypass_conditional_jumps): Fix typo last change.
2664
2665 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
2666
2667         * loop.c (emit_prefetch_instructions): Properly place the address
2668         computation.
2669
2670 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
2671
2672         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
2673         (set_block_for_insn): Turn into macro.
2674         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
2675         * cfglayout.c (insn_scopes): Kill.
2676         (scope_to_insns_initialize): Do not use insn_scopes.
2677         (scope_to_insns_finalize): Likewise.
2678         (duplicate_insn_chain): Likewise.
2679         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
2680         * cfgrtl.c (basic_block_for_insn): Kill.
2681         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
2682         (create_basic_block_structure): Use reorder_insns.
2683         (compute_bb_for_insn): Do not use basic_block_for_insn.
2684         (merge_blocks_nomove): Likewise.
2685         (update_bb_for_insn): Likewise.
2686         (verify_flow_info): Likewise.
2687         (set_block_for_insn): Kill.
2688         * combine.c (try_combine): Update gen_rtx_INSN call.
2689         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
2690         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
2691         scopes and BBs.
2692         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
2693         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
2694         Clear BB.
2695         (emit_insns_after): Simplify.
2696         (emit_copy_of_insn_after): Copy scope.
2697         * final.c (final_start_function): Lower scopes.
2698         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
2699         * integrate.c (copy_insn_list): Cope scopes.
2700         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
2701         * loop.c (loop_optimize): Do not care block notes.
2702         * print-rtl.c (print_rtx): Print BB.
2703         * recog.c (apply_change_group): Simplify.
2704         * rtl.c (copy_rtx): Handle 'B'.
2705         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
2706         * rtl.h (Field accessors): Update indexes.
2707         * sched-ebb.c (schedule_ebbs): Do not lower notes.
2708         * sched-rgn.c (schedule_insns): Likewise.
2709         * toplev.c (rest_of_compilation): Lower notes.
2710         * unroll.c (unroll_loop): Do not care scoping notes.
2711         (copy_loop_body): Copy scopes.
2712
2713 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2714
2715 config/h8300:
2716         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2717         SUBTARGET_SPEC.
2718         * rtems.h: Similarly.
2719         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
2720         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
2721         (TARGET_CPU_CPP_BUILTINS): Use.
2722
2723 2002-06-02  Richard Henderson  <rth@redhat.com>
2724
2725         * alias.c: Include target.h.
2726         (mark_constant_function): Use targetm.binds_local_p instead
2727         of checking TREE_PUBLIC ourselves.
2728         * Makefile.in (alias.o): Add TARGET_H.
2729
2730 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2731
2732         * c-lex.c: Update copyright and file description.
2733
2734 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2735
2736         * config/fr30/fr30.h: Update to new CPP macros.
2737
2738 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2739
2740         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
2741
2742 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2743             Zack Weinberg <zack@codesourcery.com>
2744
2745         * c-common.c (c_common_init): Override cpplib's default
2746         warn_long_long setting.
2747         * c-lex.c (lex_number): Replace with interpret_integer,
2748         interpret_float, narrowest_unsigned_type and
2749         narrowest_signed_type, taking advantage of the new
2750         cpplib functionality.
2751         * cpperror.c (_cpp_begin_message): If a warning is turned
2752         into an error, avoid printing "warning:".
2753         * cppexp.c (cpp_num_sign_extend): New.
2754         * cppinit.c: Update comment.
2755         * cpplib.h (cpp_num_sign_extend): New.
2756         * tree.h: Update comment.
2757
2758 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
2759
2760         * diagnostic.h (struct diagnostic_context):  Add new member
2761         internal_error.
2762         (internal_error_function): Remove declaration.
2763         * diagnostic.c (internal_error_function): Remove definition..
2764         (internal_error): Adjust use.
2765
2766 2002-06-02  Richard Henderson  <rth@redhat.com>
2767
2768         * rtl.h (CC0_P): New.
2769         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
2770         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
2771         (bypass_block): Save old dest block for dump text.
2772         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
2773         Allow only true SET insns, not single_set.
2774
2775 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
2776
2777         * diagnostic.c (diagnostic_finish): Rename to output_flush.
2778         (clear_disgnostic_info): Rename to output_clear_data.  Use false
2779         instead of 0 for boolean value.
2780         Adjust function call throughout.
2781
2782 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
2783
2784         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
2785         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
2786
2787 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2788
2789         * d30v.h (CPP_PREDEFINES): Replace with
2790         (TARGET_CPU_CPP_BUILTINS): New.
2791
2792 2002-06-02  Roger Sayle  <roger@eyesopen.com>
2793
2794         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
2795
2796 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
2797
2798         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
2799
2800 2002-06-02  Richard Henderson  <rth@redhat.com>
2801
2802         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
2803
2804 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2805
2806         Support for C++ constructors/destructors.
2807         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
2808         instead of looping if main() returns.
2809         (asm_file_start): Output global symbols that cause .data and .bss
2810         initialization code to be linked in, unconditionally for now.
2811         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
2812         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
2813         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2814         (LIBSTDCXX): New.
2815         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
2816         (__tablejump__): New.
2817         (__do_copy_data, __do_clear_bss): New.
2818         (__do_global_ctors, __do_global_dtors): New.
2819         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
2820         _ctors, _dtors.
2821
2822 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2823
2824         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
2825         (CPP_SPEC, CPP_PREDEFINES): Kill.
2826         * c4x/rtems.h (CPP_PREDEFINES): Kill.
2827         (TARGET_OS_CPP_BUILTINS): New.
2828
2829 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
2830
2831         * Makefile.in (tracer.o): New.
2832         * params.def (TRACER_*): New options.
2833         * rtl.h (tracer): Declare.
2834         * timevar.def (TV_TRACER): New.
2835         * toplev.c (dump_file_index): Add DFI_tracer.
2836         (dump_file_info): Add tracer.
2837         (flag_tracer): New.
2838         (lang_indepdenent_options): Add tracer.
2839         (rest_of_compilation): Call tracer.
2840         * tracer.c: New file.
2841         * invoke.texi (-ftracer): Document.
2842         (--param tracer-*): Document.
2843
2844 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
2845
2846         * tree-inline.c (expand_call_inline): Make the statement
2847         expression we generate have a COMPOUND_STMT.
2848
2849 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2850
2851         * gcse.c (cprop_cc0_jump): Function deleted.
2852         (cprop_jump): Take an additional argument which is the possibly
2853         NULL cc setting insn immediately before the conditional jump.
2854         When a MODE_CC set is present, substitute it into the JUMP_INSN
2855         before attempting the constant propagation.
2856         (cprop_insn):  Recognize cc setters followed by conditional jumps
2857         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
2858         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
2859         (find_bypass_set): New function based upon find_avail_set used by
2860         cprop, but finds constant expressions available at the end of
2861         basic blocks.
2862         (bypass_block): New function.  Given a basic block that begins
2863         with a conditional jump and multiple incoming edges, perform
2864         the jump bypass optimization.
2865         (bypass_conditional_jumps): New function.  Call bypass_block with
2866         each suitable basic block in the CFG using a simple single pass.
2867
2868 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2869
2870         * tree.c (real_minus_onep): New function to test for -1.0.
2871         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
2872
2873 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2874
2875         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
2876         and "!p && !q" into "(p|q) == 0" under suitable conditions.
2877
2878 2002-06-01  Andreas Jaeger  <aj@suse.de>
2879
2880         * cppexp.c (cpp_classify_number): Cast precission to int for
2881         correct printf format.
2882
2883 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2884
2885         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
2886         expected, but don't really exist: atmega83, atmega85, attiny10.
2887         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
2888         emulations for all devices.
2889         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
2890         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
2891
2892 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
2893
2894         * config/h8300/h8300-protos.h: Add a prototype for
2895         h8300_shift_needs_scratch_p.
2896         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
2897         * config/h8300/h8300.h (OK_FOR_R): New.
2898         (OK_FOR_S): Likewise.
2899         (OK_FOR_T): Likewise.
2900         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
2901         * config/h8300/h8300.md (anonymous shift patterns): Use
2902         constraints R, S, and T.
2903
2904 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2905
2906         * basic-block.h (struct basic_block_def): New field loop_father.
2907         (BB_VISITED): New flag.
2908         (struct loop): New field pred, removed field shared.
2909         (struct loops): New field parray.
2910         (LOOP_EXITS_DOMS): Removed.
2911         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
2912         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
2913         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
2914         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
2915         verify_loop_structure): Declare.
2916         * cfg.c (entry_exit_blocks): Initialize loop_father field.
2917         * cfganal.c (dfs_enumerate_from): New function.
2918         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
2919         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2920         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
2921         flow_loop_dump, flow_loops_dump, flow_loops_free,
2922         flow_loop_tree_node_add, flow_loop_level_compute,
2923         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
2924         flow_loop_outside_edge_p): Modified for new infrastructure.
2925         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
2926         redirect_edge_with_latch_update, flow_loop_free): New static functions.
2927         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
2928         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
2929         find_common_loop, verify_loop_structure, loop_latch_edge,
2930         loop_preheader_edge): New functions.
2931         (flow_loops_cfg_dump): Do not show dominators, as this information
2932         does not remain up to date long.
2933         (flow_loops_find): Store results in new format.
2934         * predict.c (propagate_freq, estimate_probability,
2935         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
2936         infrastructure.
2937
2938 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
2939
2940         * except.c (nothrow_function_p): Walk epilogue delay list
2941         checking the insn, not the chain for potential throws.
2942
2943 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
2944
2945         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
2946         (install): Refer to install-cpp directly.
2947         (uninstall-cpp): Folded into uninstall rule.
2948         * configure.in: Delete all code relating to --disable-cpp.
2949         * configure: Regenerate.
2950         * config/t-install-cpp: Delete.
2951
2952 2002-05-31  Richard Henderson  <rth@redhat.com>
2953
2954         * configure.in (HAVE_AS_TLS): Add alpha tests.
2955         * configure: Rebuild.
2956         * config/alpha/alpha.c (TARGET_AS_TLS): New.
2957         (alpha_tls_size, alpha_tls_size_string): New.
2958         (overide_options): Set it.  Always install machine_status hooks.
2959         (input_operand): Accept got tls predicates.
2960         (local_symbol_p): Merge into ...
2961         (local_symbolic_operand): ... here.  Reject tls symbols.
2962         (global_symbolic_operand): Likewise.
2963         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
2964         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
2965         (tp16_symbolic_operand, tp32_symbolic_operand): New.
2966         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
2967         (alpha_encode_section_info): Handle TLS symbols.
2968         (alpha_strip_name_encoding): Likewise.
2969         (alpha_legitimate_address_p): Likewise.
2970         (alpha_legitimize_address): Likewise.
2971         (alpha_expand_mov): Early exit to avoid nop moves.
2972         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
2973         (alpha_init_machine_status, alpha_mark_machine_status,
2974         alpha_free_machine_status): Always define.
2975         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
2976         (print_operand, print_operand_address): Add TLS relocs.
2977         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
2978         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
2979         (TARGET_SWITCHES): Add -mtls-kernel.
2980         (alpha_tls_size, alpha_tls_size_string): New.
2981         (TARGET_OPTIONS): Add -mtls-size=.
2982         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2983         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
2984         (ASM_OUTPUT_LABELREF): Skip %.
2985         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
2986         (PREDICATE_CODES): Update.
2987         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
2988         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
2989         UNSPEC_TP, UNSPECV_SET_TP): New.
2990         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
2991         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
2992         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
2993         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
2994         (call_value_osf_2_er): Accept anything as op4.
2995         * config/alpha/alpha-protos.h: Update.
2996         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
2997
2998 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
2999
3000         * cppinit.c (append_include_chain): Always pay attention to
3001         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
3002         marker on argument.
3003
3004 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
3005
3006         * target.h: Fix formatting.
3007         * timevar.h: Likewise.
3008         * tlink.c: Likewise.
3009         * toplev.c: Likewise.
3010         * toplev.h: Likewise.
3011         * tree.c: Likewise.
3012         * tree-dump.h: Likewise.
3013         * tree.h: Likewise.
3014         * tree-inline.h: Likewise.
3015         * unroll.c: Likewise.
3016         * unwind-dw2.c: Likewise.
3017         * unwind-dw2-fde.c: Likewise.
3018         * unwind-dw2-fde-glibc.c: Likewise.
3019         * unwind-dw2-fde.h: Likewise.
3020         * unwind.h: Likewise.
3021         * unwind-sjlj.c: Likewise.
3022         * varasm.c: Likewise.
3023         * varray.h: Likewise.
3024         * vmsdbg.h: Likewise.
3025         * vmsdbgout.c: Likewise.
3026         * xcoffout.h: Likewise.
3027
3028 2002-05-31  Igor Shevlyakov <igor@microunity.com>
3029
3030         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
3031         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
3032
3033 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
3034
3035         * gcc.c (cpp_unique_options): Remove "-d" options.
3036         (cpp_debug_options): New spec string.
3037         (default_compilers): Use it.
3038         * objc/lang-specs.h: Likewise.
3039
3040 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
3041
3042         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
3043         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
3044         * gcc/mklibgcc.in: Likewise.
3045         * gcc/config/arc/t-arc: Likewise.
3046         * gcc/configure.in: Likewise.
3047         * gcc/configure: Regenerate.
3048
3049 2002-05-31  Stan Shebs  <shebs@apple.com>
3050             Turly O'Connor  <turly@apple.com>
3051
3052         * c-decl.c (struct binding_level): Change int field n_incomplete
3053         to tree list incomplete_list.
3054         (clear_binding_level): Init field with NULL.
3055         (pushdecl): Add incomplete type to list.
3056         (mark_binding_level): Mark the incomplete list.
3057         (finish_struct): Scan the incomplete list for types instead
3058         of all decls in the current binding level.
3059
3060 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3061
3062         * pa.c (output_millicode_call): Add missing '%' characters.
3063         (output_call): Likewise.
3064
3065 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
3066
3067         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
3068         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
3069
3070 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
3071
3072         * varasm.c (mark_constant_pool): Walk epilogue delay list
3073         checking the insn, not the chain for potential constants.
3074
3075 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
3076
3077         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
3078
3079 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
3080
3081         * i386.c (classify_argument): Properly handle base types.
3082
3083         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
3084         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
3085         registers.
3086
3087 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
3088
3089         * gcse.c (gcse_emit_move_after): New.
3090         (pre_delete, hoist_store): Use it.
3091
3092         * reload1.c (emit_input_reload_insns): Use constrain_operands
3093         instead of constraint_accepts_reg_p to verify optimization.
3094         (constraint_accepts_reg_p): Kill
3095
3096         * reload1.c (reload_cse_delete_noop_set): Kill.
3097         (reload_cse_simplify): use delte_insn_and_edges.
3098
3099 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3100
3101         * cfgloop.c (flow_loops_find): Initialize first and last fields
3102         correctly.
3103
3104 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3105
3106         * c-common.c (builtin_define_std): Correct logic.
3107
3108 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3109
3110         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
3111         (output_call): Likewise.
3112
3113 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3114
3115         * pa.c: Move output.h include after tree.h include.
3116         (pa_asm_output_mi_thunk): Constify identifier lab.
3117
3118 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
3119
3120         * config/ns32k/ns32k.h: Define named constants for the
3121         bits in target_flags and use them.
3122         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
3123
3124 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3125
3126         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
3127         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
3128         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
3129         default scheduling model.
3130         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
3131         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
3132         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
3133         * doc/install.texi (hppa*-*-*): Document default scheduling.
3134
3135 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3136
3137         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
3138
3139 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
3140
3141         * config.gcc (ns32k-*-netbsd*): Set tm_file to
3142         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
3143         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
3144         netbsd.h, or netbsd-aout.h.
3145
3146 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
3147
3148         * longlong.h (count_trailing_zeros): Add missing \, and clean up
3149         whitespace in __ns32000__ case.
3150
3151 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
3152
3153         * expr.c (expand_expr): Output partially zeroed out vectors with
3154         output_constant_def.
3155
3156 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
3157
3158         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
3159         (sh-*-netbsdelf*)
3160         (shl*-*-netbsdelf*): New targets.
3161         * config/sh/netbsd-elf.h: New file.
3162         * config/sh/t-netbsd: New file.
3163
3164 2002-05-30  Richard Henderson  <rth@redhat.com>
3165             Eric Botcazou  <ebotcazou@multimania.com>
3166
3167         PR optimization/6822
3168         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
3169         to unsigned int for op1 comparisons.  Use gen_int_mode.
3170
3171 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
3172
3173         * expmed.c (const_mult_add_overflow_p): New.
3174         * expr.h: Declare it.
3175         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
3176         Don't eliminate the biv if the giv has a constant multiplier and
3177         the rhs argument of the comparison does satisfy the predicate.
3178         Use expand_mult_add to compute the replacement constant.
3179
3180 2002-05-30  Osku Salerma  <osku@iki.fi>
3181
3182         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
3183         (c_common_get_alias_set): Handle it.
3184         * doc/extend.texi: Document it.
3185
3186 2002-05-30  Richard Henderson  <rth@redhat.com>
3187
3188         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3189         * toplev.c (process_options): Don't check it.
3190         * doc/tm.texi: Don't document it.
3191         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
3192         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3193         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
3194         frame pointer optimization if current_function_profile.
3195
3196 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
3197
3198         * langhooks.c: Fix formatting.
3199         * langhooks.h: Likewise.
3200         * lcm.c: Likewise.
3201         * libgcc2.c: Likewise.
3202         * lists.c: Likewise.
3203         * local-alloc.c: Likewise.
3204         * loop.c: Likewise.
3205         * loop.h: Likewise.
3206
3207 2002-05-30  Marc Espie <espie@openbsd.org>
3208
3209         * config.gcc (sparc64-*-openbsd*): New.
3210         * config/sparc/openbsd1-64.h: New.
3211         * config/sparc/openbsd64.h: New.
3212
3213 2002-05-30  Jeff Law <law@redhat.com>
3214
3215         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
3216         a dead insn with a REG_RETVAL note when the entire libcall is not
3217         dead and remove the associated REG_LIBCALL note at the same time.
3218
3219 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
3220
3221         * lcm.c (output.h): #include.
3222         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
3223         as an ordinary block.
3224         (optimize_mode_switching): Don't pretend that the exit block is
3225         an ordinary block, or handle sucessors of entry block specially.
3226         Instead, split edges from entry block and to exit block, and
3227         put a computing definition on the thus gained post-entry-block,
3228         and a need on the pre-exit-block.
3229
3230 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
3231
3232         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
3233         * rtl.texi: Document 'B'
3234
3235 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
3236
3237         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
3238         at run-time.
3239         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
3240
3241 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
3242
3243         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3244         const0_rtx instead of NULL_RTX when in error.
3245         (altivec_expand_abs_builtin): Same.
3246         (rs6000_expand_binop_builtin): Same.
3247         (altivec_expand_predicate_builtin): Same.
3248         (altivec_expand_stv_builtin): Same.
3249         (rs6000_expand_ternop_builtin): Same.
3250         (altivec_expand_builtin): Same.
3251
3252 2002-05-29  David S. Miller  <davem@redhat.com>
3253
3254         * rtl.h (clear_emit_caches): Delete.
3255         * integrate.c (output_inline_function): Don't call it.
3256         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
3257         (clear_emit_caches): Delete definition.
3258         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
3259
3260 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
3261
3262         * config/mmix/mmix.c: Include real.h.
3263         (mmix_constant_address_p): Remove redundant test before switch.
3264
3265 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3266
3267         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
3268         only if not already defined.
3269
3270 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
3271
3272         * config/h8300/h8300-protos.h: Remove prototypes for
3273         ok_for_bclr and small_power_of_two.
3274         * config/h8300/h8300.c (small_power_of_two): Remove.
3275         (ok_for_blcr): Likewise.
3276         (fix_bit_operand): Make WHAT deal with an integer instead of a
3277         constraint character.
3278         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
3279         (CONST_OK_FOR_P): Likewise.
3280         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
3281         CONST_OK_FOR_P any more.
3282         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
3283         of fix_bit_operand.
3284         (iorqi3): Likewise.
3285         (xorqi3): Likewise.
3286
3287 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3288
3289         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3290         (CPP_PREDEFINES): Make sure this is undefined.
3291         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
3292         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
3293         or -U__MIPSEB__ before defining one or the other.  Instead,
3294         use %(subtarget_endian_default) if neither -EB nor -EL are
3295         specified.
3296         (SUBTARGET_EXTRA_SPECS): Define.
3297         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
3298         %(netbsd_cpp_spec).
3299
3300 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
3301
3302         * doc/md.texi (Patterns): Note pattern condition pitfall
3303         for unnamed insn.
3304
3305 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
3306
3307         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
3308         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
3309         ternary operations from here...
3310         (rs6000_expand_builtin): ...to here.
3311         New argument expandedp.
3312         Change all instances of altivec_expand_binop_builtin to
3313         rs6000_expand_binop_builtin.
3314         (altivec_expand_unop_builtin): Rename to
3315         rs6000_expand_unop_builtin.
3316         (altivec_expand_binop_builtin): Rename to
3317         rs6000_expand_binop_builtin.
3318         (altivec_expand_ternop_builtin): Rename to
3319         rs6000_expand_ternop_builtin.
3320
3321 2002-05-29  Richard Henderson  <rth@redhat.com>
3322
3323         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
3324         (TARGET_BI_ARCH): Likewise.
3325         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
3326         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
3327         (TARGET_64BIT_DEFAULT): Default to 0.
3328         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
3329
3330 2002-05-29  Richard Henderson  <rth@redhat.com>
3331
3332         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
3333         (get_pc_thunk_name): New.
3334         (output_set_got): Use it.
3335         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
3336         into linkonce sections.
3337
3338 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3339
3340         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3341         (CPP_PREDEFINES): Make sure this is undefined.
3342         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
3343         (CPP_SUBTARGET_SPEC): Don't provide different versions for
3344         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
3345         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
3346         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
3347         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3348         (CPP_PREDEFINES): Make sure this is undefined.
3349         (SUBTARGET_EXTRA_SPECS): Define.
3350         (CPP_SPEC): Use %(netbsd_cpp_spec).
3351
3352 2002-05-29  Jeff Law <law@redhat.com>
3353
3354         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
3355
3356         * flow.c (propagate_one_insn): Do not remove a dead insn if it
3357         contains a REG_RETVAL note.
3358
3359         * haifa-sched (sched_analyze): Remove another useless clearing
3360         of SCHED_GROUP_P I missed yesterday.
3361
3362         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
3363         * pa.c (pa_asm_output_mi_thunk): New function.
3364         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
3365
3366 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3367             Marek Michalkiewicz  <marekm@amelek.gda.pl>
3368
3369         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
3370         (avr_asm_only_p): Make non-static.
3371         (enum avr_arch): Remove.
3372         (avr_arch_types): New.
3373         (avr_mcu_types): Update.
3374         (avr_override_options): Use avr_arch_types table instead of switch.
3375         * avr.h (CPP_PREDEFINES): Die.
3376         (avr_base_arch_macro, avr_extra_arch_macro): New.
3377         (TARGET_CPU_CPP_BUILTINS): New.
3378         (CPP_SPEC, EXTRA_SPECS): Simplify.
3379         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
3380         CPP_AVR5_SPEC): Die.
3381
3382 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3383
3384         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3385         NETBSD_OS_CPP_BUILTINS_AOUT.
3386         (SUBTARGET_EXTRA_SPECS): Define.
3387         (CPP_SPEC): Use %(netbsd_cpp_spec).
3388
3389 2002-05-29  Richard Henderson  <rth@redhat.com>
3390
3391         * config/i386/i386.c (ix86_output_function_epilogue): New.
3392         (TARGET_ASM_FUNCTION_EPILOGUE): New.
3393         (pic_label_name): Remove.
3394         (pic_labels_used): New.
3395         (ix86_asm_file_end): Emit one pc load stub for each register used.
3396         (output_set_got): Generate deep pc load to any register.
3397         (ix86_select_alt_pic_regnum): New.
3398         (ix86_save_reg): Don't save pic register if we can find a valid
3399         call-clobbered replacement.
3400         (ix86_expand_prologue): If we found a valid replacement, renumber
3401         pic_offset_table_rtx.
3402         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
3403         pic_offset_table_rtx after reload.
3404         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
3405         * config/i386/i386.md (set_got): Make insn, not expander.
3406         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
3407
3408 2002-05-29  Richard Henderson  <rth@redhat.com>
3409
3410         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
3411         alignment for alloca.
3412
3413 2002-05-29  Richard Henderson  <rth@redhat.com>
3414
3415         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
3416         (print_operand_address): Only add rip for symbolic addresses
3417         for which we do not have another relocation type.
3418
3419 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3420
3421         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3422         (EXTRA_SPECS): Add netbsd_cpp_spec.
3423         (CPP_SPEC): Use %(netbsd_cpp_spec).
3424         (CPP_PREDEFINES): Remove.
3425         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3426         (EXTRA_SPECS): Define.
3427         (CPP_SPEC): Use %(netbsd_cpp_spec).
3428         (CPP_PREDEFINES): Remove.
3429
3430 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3431
3432         PR preprocessor/6844
3433         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
3434         NUL.
3435
3436 2002-05-29  Eric Christopher  <echristo@redhat.com>
3437
3438         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
3439         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
3440
3441 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
3442
3443         * config/fr30/fr30.md: Remove previous restriction on splits.
3444         Enforce conformance through gen_lowpart and cont_int_operand.
3445         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
3446         as the assembler does not support ".bss".
3447
3448 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3449
3450         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3451         (CPP_PREDEFINES): Remove.
3452         (SUBTARGET_EXTRA_SPECS): Define.
3453         (CPP_SPEC): Use %(netbsd_cpp_spec).
3454         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3455         (CPP_PREDEFINES): Remove.
3456         (SUBTARGET_EXTRA_SPECS): Define.
3457         (CPP_SPEC): Use %(netbsd_cpp_spec).
3458         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
3459         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
3460         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
3461         Add netbsd_cpp_spec.
3462         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
3463
3464 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3465             Zack Weinberg <zack@codesourcery.com>
3466
3467         * cppexp.c (cpp_num): Move to cpplib.h.
3468         (CPP_ERROR): Remove.
3469         (interpret_float_suffix, interpret_int_suffix): New.
3470         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
3471         (cpp_classify_number, cpp_interpret_integer): New.
3472         (interpret_number): Remove.
3473         (eval_token): Update to use new routines.
3474         * cpphash.h (cpp_num_part): Move to cpplib.h.
3475         * cppinit.c (cpp_post_options): Set warn_long_long.
3476         * cpplib.h (struct cpp_options): Add warn_long_long.
3477         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
3478         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
3479         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
3480         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
3481         cpp_interpret_integer): New.
3482
3483 2002-05-29  Joel Sherrill <joel@OARcorp.com>
3484
3485         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
3486
3487 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3488
3489         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3490         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
3491         (CPP_SUBTARGET_SPEC): Define.
3492         (SUBTARGET_EXTRA_SPECS): Define.
3493         (CPP_SPEC): Remove.
3494
3495 2002-05-29  Chris Lattner  <sabre@nondot.org>
3496
3497         * ssa.c (rename_insn_1): Rename uses of undefined registers to
3498         prevent confusion if/when the register is defined.
3499
3500 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
3501
3502         PR target/6838
3503         * config/cris/cris.md: Fix typos and thinkos in comments.
3504         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
3505         second alternative.
3506         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
3507         ("*mov_sideqi_mem"): Similar, but for operand 3.
3508         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
3509         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
3510         Remove spurious mode specifier on operand 2.
3511
3512 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
3513
3514         * config/h8300/h8300-protos.h: Remove the prototype for
3515         o_operand.
3516         Add prototypes for single_one_operand and single_zero_operand.
3517         * config/h8300/h8300.c (o_operand): Remove.
3518         (single_one_operand): New.
3519         (single_zero_operand): Likewise.
3520         (print_operand): For 'V' operand, and the operand with 0xff.
3521         For 'V' and 'W' operands, do not and the bit position with 7.
3522         * config/h8300/h8300.md (various anonymous patterns): Replace
3523         use of exact_log2 with single_one_operand/single_zero_operand.
3524
3525 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
3526
3527         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
3528
3529 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
3530
3531         * config/s390/s390.c (legitimate_pic_operand_p): Do not
3532         accept symbolic LARL operands.
3533         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
3534         epilogue insns.
3535
3536 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
3537
3538         * config/s390/s390.md (cmpstr_64/31): Mark whole
3539         input registers as used.
3540
3541 2002-05-28  Richard Henderson  <rth@redhat.com>
3542
3543         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
3544         not current_function_uses_pic_offset_table and
3545         current_function_uses_const_pool; examine current_function_profile.
3546         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
3547         input to blockage if needed.
3548         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
3549         (legitimize_pic_address): Likewise.  Set regs_ever_live for
3550         pic_offset_table_rtx when invoked during reload.
3551         * config/i386/i386.h (FINALIZE_PIC): Remove.
3552         * config/i386/i386.md (tablejump): Reformat.  Do not set
3553         current_function_uses_pic_offset_table.
3554         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
3555         (blockage): Accept anything as operand 0.
3556
3557 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
3558
3559         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
3560         common CPP built-ins for all NetBSD a.out targets.
3561         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
3562         common CPP built-ins for all NetBSD ELF targets.
3563         * config/netbsd.h: Add missing notice.
3564         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
3565         for all NetBSD targets.
3566         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
3567         for all NetBSD targets using an LP64 code model.
3568         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
3569         NetBSD targets.
3570
3571 2002-05-28  Richard Henderson  <rth@redhat.com>
3572
3573         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
3574         update if UPDATE_LIFE_LOCAL.
3575
3576 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3577
3578         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
3579
3580 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
3581                           Jason R. Thorpe <thorpej@wasabisystems.com>
3582
3583         config/sh reorganization to factor out endianness and coff:
3584
3585         * config/sh/little.h: New file.
3586         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
3587         defined, define to 0 to select big-endian.
3588         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
3589         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3590         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3591         * config/sh/t-be: New file.
3592         * config/sh/t-le: New file.
3593
3594         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
3595         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
3596         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
3597         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
3598         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3599         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3600         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
3601         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
3602         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
3603         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
3604         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
3605         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
3606         (LINK_SPEC): Define to SH_LINK_SPEC.
3607         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
3608         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
3609         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3610         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
3611         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
3612         * config/sh/coff.h: New file.
3613         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
3614         (TARGET_OBJFMT_CPP_BUILTINS): Define.
3615         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
3616         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
3617         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
3618         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
3619         (PTRDIFF_TYPE): Likewise.
3620         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
3621         (CPP_PREDEFINES): Don't define.
3622         (TARGET_OBJFMT_CPP_BUILTINS): Define.
3623         (LINK_SPEC): Define to SH_LINK_SPEC.
3624         (LINK_EMUL_PREFIX): Redefine.
3625         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
3626         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
3627         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
3628         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
3629         (TARGET_OS_CPP_BUILTINS): Define.
3630         (TARGET_DEFAULT): Redefine.
3631         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3632         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
3633         (LINK_SPEC): Don't redefine.
3634         (LINK_DEFAULT_CPU_EMUL): Redefine.
3635         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3636         * sh.c (sh_asm_named_section): Don't declare / define.
3637         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
3638         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
3639         (sh64-*-elf* tm_file): Likewise.
3640         (sh-*-rtemself* tm_file): Likewise.
3641         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
3642         (sh-*-linux* tmake_file): Add sh/t-le.
3643         (sh-*-rtems* tm_file): Add sh/coff.h
3644         (sh-*-* tm_file): Likewise.
3645
3646 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
3647
3648         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
3649         CONSTANT_POOL_ADDRESS_P.
3650
3651         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
3652
3653 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
3654             Jeff Law <law@redhat.com>
3655
3656         * optabs.c (expand_binop): Fix nwords sign warnings.
3657         generate pseudo for add_optab.
3658
3659         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
3660         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
3661
3662 2002-05-28      Marc Espie <espie@openbsd.org>
3663
3664         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
3665         inherited from gas.h.
3666         (ASM_QUAD):  Undef.  OpenBSD does not support it.
3667
3668 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
3669
3670         * doc/install.texi (binaries): Change mingw binaries
3671         link to www.mingw.org.
3672
3673 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3674
3675         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
3676
3677 2002-05-28  Richard Henderson  <rth@redhat.com>
3678
3679         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
3680         bottom alignment for leaf functions.
3681
3682 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
3683
3684         * config/pa/milli32.S, config/pa/lib1funcs.asm,
3685         config/sparc/sol2-g1.asm: Delete unused files.
3686
3687 2002-05-28  Richard Henderson  <rth@redhat.com>
3688
3689         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
3690
3691         * flow.c (calculate_global_regs_live): Rename call_used to
3692         invalidated_by_call.  Initialize from regs_invalidated_by_call
3693         instead of call_used_regs.
3694
3695         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
3696         DECL_EXTERNAL.
3697
3698 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
3699
3700         * tree.h: Don't include real.h.
3701         Forward-declare struct realvaluetype.
3702         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
3703         contain it.
3704         (TREE_REAL_CST_PTR): New accessor.
3705         (TREE_REAL_CST): Update.
3706         * real.h: Include machmode.h.
3707         (realvaluetype): Make it struct realvaluetype, not a typedef.
3708         (build_real): Prototype here.
3709
3710         * tree.c: Include real.h.
3711         (build_real): Allocate the REAL_VALUE_TYPE as a separate
3712         object in GC memory, set TREE_REAL_CST_PTR to point to it.
3713         (build_real_from_int_cst): Use build_real.
3714         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
3715         REAL_CST.
3716
3717         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
3718         fold-const.c, print-tree.c, real.c: Include real.h.
3719         * Makefile.in: Update dependency lists.
3720
3721 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3722
3723         * basic-block.h (last_basic_block): Declare.
3724         (expunge_block_nocompact): Declaration removed.
3725         (compact_blocks): Declare.
3726         * cfg.c (last_basic_block): New variable.
3727         (expunge_block_nocompact): Removed.
3728         (expunge_block): Do not compact basic blocks.
3729         (compact_blocks): New.
3730         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
3731         longer change.
3732         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
3733         last_basic_block.
3734         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
3735         real positions of blocks.
3736         (delete_unreachable_blocks): Simplified -- quadratic behavior now
3737         cannot occur.
3738         (cleanup_cfg): Compact blocks.
3739         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
3740         basic_block_info varray.
3741         (flow_delete_block): Comment update.
3742         (back_edge_of_syntactic_loop_p): Modify position check code.
3743         (verify_flow_info): Update checking.
3744         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
3745         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3746         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
3747         indices no longer change.
3748         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
3749         last_basic_block.
3750         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
3751         * profile.c (branch_prob): Compact blocks.
3752         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
3753         last_basic_block.
3754
3755 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
3756
3757         * config/h8300/h8300.md (two anonymous patterns): New.
3758
3759 2002-05-28  David S. Miller  <davem@redhat.com>
3760
3761         * config/sparc/sparc.md (cpu): Tidy.
3762         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
3763         'trap'.
3764         (in_call_delay): Delete reference to 'return' type.
3765         (eligible_for_return_delay, in_return_delay, define_delay
3766         referencing those): Delete.
3767         (rest of file): Use new type attributes as appropriate.
3768         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
3769         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
3770         * config/sparc/ultra1_2.md (us1_single): New reservation.
3771         (us1_ialuX): Likewise.
3772         * config/sparc/ultra3.md (us3_single): Likewise.
3773         (us3_ialuX): Likewise.
3774         (us3_imul, us3_idiv): Tweak.
3775
3776 2002-05-28  Richard Henderson  <rth@redhat.com>
3777
3778         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
3779         STRING_CST.
3780
3781 2002-05-28  Richard Henderson  <rth@redhat.com>
3782
3783         * config.gcc: Obsolete mn10200.
3784
3785 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3786
3787         * cppexp.c (interpret_number): Optimize for single-digit
3788         and less-than-half-precision cases.
3789         (num_trim, num_positive, num_div_op): Cast constants.
3790
3791 2002-05-27  Bo Thorsen  <bo@suse.de>
3792
3793         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
3794         3.1 branch. The file was made by Jakub Jelinek.
3795         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
3796         support so multilib doesn't break. And don't define this at all
3797         when -Dinhibit_libc is used.
3798         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
3799         * config/i386/t-linux64: Implement full multilib support. Patch
3800         originally done by Andreas Jaeger and Jakub Jelinek.
3801
3802 2002-05-27  Roger Sayle  <roger@eyesopen.com>
3803
3804         * c-common.c: Add support for __attribute__((nothrow)) to specify
3805         that a function cannot throw an exception (using TREE_NOTHROW).
3806         (handle_nothrow_attribute): New function to process this attribute.
3807
3808         * doc/extend.texi: Document the new nothrow function attribute.
3809
3810 2002-05-27  H.J. Lu  (hjl@gnu.org)
3811
3812         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
3813         (num_positive): Likewise.
3814         (num_div_op): Likewise.
3815
3816 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3817
3818         * c-common.c (c_common_init): Always use intmax_t.
3819
3820 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3821
3822         * c-common.c (c_common_init): Use intmax_t for now.
3823
3824 2002-05-24  Andrew Haley  <aph@redhat.com>
3825
3826         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
3827         if T is a boolean type.
3828
3829 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3830
3831         * basic-block.h (last_basic_block): Defined as synonym for
3832         n_basic_blocks.
3833         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
3834         flow_depth_first_order_compute, flow_preorder_transversal_compute,
3835         flow_dfs_compute_reverse_init): Replaced relevant occurences of
3836         n_basic_blocks with last_basic_block.
3837         * cfgbuild.c (make_edges): Likewise.
3838         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
3839         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
3840         * combine.c (combine_instructions): Likewise.
3841         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
3842         iterative_dataflow_bitmap): Likewise.
3843         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3844         calc_idoms, idoms_to_doms): Likewise.
3845         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
3846         Likewise.
3847         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
3848         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
3849         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
3850         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
3851         delete_null_pointer_checks, compute_code_hoist_vbeinout,
3852         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3853         compute_store_table, build_store_vectors): Likewise.
3854         * haifa-sched.c (sched_init): Likewise.
3855         * ifcvt.c (if_convert): Likewise.
3856         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3857         pre_edge_lcm, compute_available, compute_nearerout,
3858         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
3859         Likewise.
3860         * predict.c (estimate_probability, process_note_prediction,
3861         note_prediction_to_br_prob): Likewise.
3862         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
3863         * recog.c (split_all_insns, peephole2_optimize): Likewise.
3864         * regrename.c (copyprop_hardreg_forward): Likewise.
3865         * resource.c (init_resource_info): Likewise.
3866         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
3867         init_regions, schedule_insns): Likewise.
3868         * ssa-ccp.c (ssa_const_prop): Likewise.
3869         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3870         * ssa.c (compute_dominance_frontiers,
3871         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
3872
3873         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
3874         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
3875         sizes consistently.
3876
3877 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
3878
3879         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
3880         new.
3881         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
3882         hoist_insn_after, hoist_insn_to_edge): New.
3883
3884 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
3885
3886         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
3887         (PROP_FINAL): Include.
3888         * flow.c (life_analysis, update_life_info,
3889         init_propagate_block_info, mark_set_1, mark_used_rgs):
3890         Support SCAN_DEAD_STORE.
3891
3892 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3893
3894         * c-common.c (c_common_init): Set CPP arithmetic precision.
3895         * cppexp.c (cpp_num_part): Move typedef ...
3896         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
3897         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
3898         (sanity_checks): Update.
3899
3900 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
3901
3902         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
3903         (mkheaders): New rule.
3904         (install-mkheaders): New rule.
3905         * configure.in (all_outputs): Add mkheaders.
3906         * configure: Regenerate.
3907         * mkheaders.in: New file.
3908
3909 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
3910
3911         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
3912
3913 2002-05-26  Andreas Jaeger  <aj@suse.de>
3914
3915         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
3916
3917 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3918
3919         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
3920         right_shift): Remove.
3921         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
3922         HIGH_PART): New.
3923         (struct op): Use cpp_num.
3924         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
3925         num_part_mul, num_unary_op, num_binary_op, num_negate,
3926         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
3927         num_div_op, num_lshift, num_rshift, append_digit): New.
3928         (interpret_number, parse_defined, eval_token, reduce): Update
3929         for two-integer arithmetic.
3930         (binary_handler): New typedef.
3931         (optab): Update.
3932         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
3933         (_cpp_parse_expr, reduce): Update to handle two-integers.
3934         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
3935
3936 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3937
3938         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
3939         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
3940         branch insn into account, do not assume 1.
3941         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
3942         over single word insn.  Handle upper half of I/O space too.
3943         * config/avr/avr.md (*sbrx_branch): Use it.
3944         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
3945         (*sbix_branch, *sbix_branch_bit7): Likewise.
3946         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
3947         Use RTL peepholes to optimize register operand sign tests.
3948
3949 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3950
3951         * config/avr/avr.c (avr_asm_only_p): New variable.
3952         (avr_override_options): Set it here if AVR1.
3953         (asm_file_start): Test it here, report an error if set.
3954
3955 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
3956
3957         * alias.c: Fix formatting.
3958         * attribs.c: Likewise.
3959         * bb-reorder.c: Likewise.
3960         * bitmap.c: Likewise.
3961         * bitmap.h: Likewise.
3962         * builtins.c: Likewise.
3963
3964 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
3965
3966         * reload.c (find_valid_class): Accept new argument DEST,
3967         choose class accordingly.
3968         (push_reload): Update callers.
3969
3970 2002-05-26  Andreas Jaeger  <aj@suse.de>
3971
3972         * combine.c (combine_instructions): Do not indent #if for
3973         traditional C.
3974
3975 2002-05-25  Richard Henderson  <rth@redhat.com>
3976
3977         * c-pragma.c (apply_pragma_weak): Convert value identifier to
3978         string for decl_attributes.
3979         (handle_pragma_weak): Call assemble_alias if we're modifying
3980         an existing decl.
3981
3982 2002-05-25  Richard Henderson  <rth@redhat.com>
3983
3984         PR target/6788
3985         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
3986         using rtl instead of fprintf.
3987         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
3988         * config/sparc/sparc-protos.h: Update.
3989
3990 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3991
3992         * Makefile.in (C_COMMON_H): Fix.
3993         Update other targets.
3994         * c-common.c: Don't include c-lex.h.
3995         (builtin_define_with_value): Make static and prototype.
3996         (builtin_define_std): Move from c-lex.h.
3997         * c-common.h (init_c_lex): Move from c-lex.h.
3998         * c-decl.c: Don't include c-lex.h.
3999         (make_pointer_declarator): Move from c-parse.in.
4000         * c-lex.c: Don't include c-lex.h.
4001         * c-lex.h: Remove.
4002         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
4003         (make_pointer_declarator): Move to c-decl.c.
4004         * c-pragma.c: Don't include c-lex.h.
4005         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
4006         * c-tree.h (make_pointer_declarator): New.
4007 doc:
4008         * passes.texi, tm.texi: Update.
4009 objc:
4010         * Make-lang.in: Update and correct.
4011         * objc-act.c: Don't include c-lex.h or cpplib.h.
4012 treelang:
4013         * treetree.c: Don't include c-lex.h.
4014 config:
4015         * darwin-c.c: Don't include c-lex.h.
4016         * c4x/c4x-c.c: Don't include c-lex.h.
4017         * c4x/t-c4x: Update.
4018         * i370/i370-c.c: Don't include c-lex.h.
4019         * i370/t-i370: Update.
4020         * i960/i960-c.c: Don't include c-lex.h.
4021         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
4022         * i960/t-960bare: Update.
4023         * i960/t-vxworks: Update.
4024         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
4025         * rs6000/t-darwin: Update.
4026         * rs6000/t-rs6000-c-rule: Update.
4027         * v850/v850-c.c: Don't include c-lex.h.
4028         * v850/v850.c: Don't include c-lex.h or cpplib.h.
4029
4030
4031 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
4032
4033         * tree.def: Fix typos.
4034         * doc/install.texi: Likewise.
4035
4036 2002-05-25  Richard Henderson  <rth@redhat.com>
4037
4038         * configure.in (HAVE_AS_TLS): Add ia64 test.
4039         * configure: Rebuild.
4040         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
4041         (override_options): Set it.
4042         (TARGET_HAVE_TLS): New.
4043         (sdata_symbolic_operand): Look for 's'.
4044         (tls_symbolic_operand): New.
4045         (ia64_expand_load_address): Abort for tls symbols.
4046         (gen_tls_get_addr): New.
4047         (gen_thread_pointer): New.
4048         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
4049         (rtx_needs_barrier): Add new unspecs.
4050         (ia64_encode_section_info): Handle tls symbols.
4051         (ia64_strip_name_encoding): Strip two encoding chars.
4052         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
4053         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
4054         (TARGET_OPTIONS): Add tls-size.
4055         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
4056         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
4057         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
4058         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
4059         (movsf, movdf): Likewise.
4060         (movdi_symbolic): Use match_scratch.  Don't split if we won't
4061         have a scratch availiable.
4062         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
4063         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
4064         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
4065         * config/ia64/ia64-protos.h: Update.
4066         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
4067         sdata_symbolic_operand.
4068         (ASM_OUTPUT_LABELREF): Strip two characters.
4069
4070 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
4071
4072         * combine.c (simplify_set): Remove an unnecessary subreg.
4073
4074 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4075
4076         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
4077
4078         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
4079
4080 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
4081
4082         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
4083
4084 2002-05-25  Roger Sayle  <roger@eyesopen.com>
4085
4086         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
4087         (cond (compare x y) 0) into the equivalent (cond x y).
4088
4089 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
4090
4091         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
4092
4093 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
4094
4095         * config.gcc: Remove all stanzas for previously obsoleted
4096         systems.  Where necessary, add explicit error stanzas to
4097         prevent removed systems from being misidentified as something
4098         else.  Begin a fresh obsoletions list, with the systems that
4099         were reprieved last round.
4100         * doc/install.texi: Remove all mention of dead targets.
4101         * fixinc/mkfixinc.sh: Likewise.
4102
4103         * config/arm/arm.h: Bit 31 of target_flags is no longer
4104         reserved.
4105
4106         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
4107         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
4108         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
4109         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
4110         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
4111         config/alpha/osf12.h, config/alpha/osf2or3.h,
4112         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
4113         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
4114         config/clipper/clipper-protos.h, config/clipper/clipper.c,
4115         config/clipper/clipper.h, config/clipper/clipper.md,
4116         config/clipper/clix.h, config/convex/convex-protos.h,
4117         config/convex/convex.c, config/convex/convex.h,
4118         config/convex/convex.md, config/convex/fixinc.convex,
4119         config/convex/proto.h, config/elxsi/elxsi-protos.h,
4120         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
4121         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
4122         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
4123         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
4124         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
4125         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
4126         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
4127         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
4128         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
4129         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
4130         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
4131         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
4132         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
4133         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
4134         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
4135         config/m68k/altos3068.h, config/m68k/apollo68.h,
4136         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
4137         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
4138         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
4139         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
4140         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
4141         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
4142         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
4143         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
4144         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
4145         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
4146         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
4147         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
4148         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
4149         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
4150         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
4151         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
4152         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
4153         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
4154         config/mips/dec-osf1.h, config/mips/elflorion.h,
4155         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
4156         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
4157         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
4158         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
4159         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
4160         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
4161         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
4162         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
4163         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
4164         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
4165         config/ns32k/sequent.h, config/ns32k/tek6000.h,
4166         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
4167         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
4168         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
4169         config/sparc/rtems.h, config/we32k/we32k-protos.h,
4170         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
4171         Delete file.
4172
4173 2002-05-24  Richard Henderson  <rth@redhat.com>
4174
4175         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
4176         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
4177         * config/i386/i386.c (tls_model_chars): Add leading space.
4178         (tls_symbolic_operand): Don't bias by 1.
4179         (legitimize_address): Don't unbias by 1.
4180
4181 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4182
4183         * lcm.c (optimize_mode_switching): Change bb used as indices
4184         to bb->index.
4185
4186 2002-05-24  Richard Henderson  <rth@redhat.com>
4187
4188         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
4189         of update_life_info_in_dirty_blocks.
4190
4191 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
4192
4193         PR other/6782
4194         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
4195
4196 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4197
4198         PR preprocessor/6780
4199         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
4200
4201 2002-05-24  Jim Blandy  <jimb@redhat.com>
4202
4203         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
4204         entry with a type code of zero, marking the end of the compilation
4205         unit's macro info.
4206
4207 2002-05-24  Richard Henderson  <rth@redhat.com>
4208
4209         * varasm.c (asm_output_bss): Always output one byte.
4210         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4211
4212 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
4213
4214         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
4215         namespace.
4216
4217 2002-05-24  Andreas Jaeger  <aj@suse.de>
4218
4219         * ggc-page.c (alloc_page): Cast variables of type size_t to
4220         unsigned long, adjust printf format string.
4221         (ggc_alloc): Likewise.
4222         (ggc_print_statistics): Likewise.
4223         (ggc_print_statistics): Correct printf format string for SCALE to
4224         use unsigned long.
4225
4226 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
4227
4228         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
4229
4230 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
4231             Zack Weinberg     <zack@codesourcery.com>
4232
4233         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
4234         quoted strings.
4235         * dwarf2out.c (lookup_filename): Properly quote filename in .file
4236         directive in assembly file.
4237         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4238         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4239         * config/pj/pj.h (ASM_FILE_START): Likewise.
4240         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
4241         * config/avr/avr.c (asm_file_end): Likewise.
4242         * toplev.c (output_quoted_string): Handle possibly signed plain
4243         char.
4244         * toplev.h (output_clean_symbol_name): Declare
4245         * toplev.c (output_clean_symbol_name): Define.
4246         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
4247         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
4248
4249 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
4250
4251         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
4252
4253 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
4254
4255         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
4256         of size of unsigned.
4257
4258 2002-05-23  Richard Henderson  <rth@redhat.com>
4259
4260         * configure.in (HAVE_AS_TLS): New test.
4261         * config.in, configure: Rebuild.
4262         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
4263         (ix86_tls_dialect_string, ix86_tls_dialect): New.
4264         (override_options): Set it.
4265         (tls_model_chars, tls_symbolic_operand): New.
4266         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
4267         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
4268         (local_exec_symbolic_operand): New.
4269         (get_pic_label_name): Merge into output_set_got.
4270         (ix86_asm_file_end): Emit pic_label_name if defined.
4271         (legitimate_constant_p, constant_address_p): New.
4272         (legitimate_pic_operand_p): New.
4273         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
4274         (legitimate_address_p): Likewise.
4275         (ix86_encode_section_info): Rename from i386_; handle tls decls.
4276         (ix86_strip_name_encoding): New.
4277         (get_thread_pointer): New.
4278         (legitimize_address): Handle tls symbols.
4279         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
4280         Remove UNSPEC_PLT.
4281         (struct machine_function): Add some_ld_name.
4282         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
4283         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
4284         (output_addr_const_extra): New.
4285         (maybe_get_pool_constant): New.
4286         (ix86_split_to_parts): Use it.
4287         (ix86_expand_move): Handle tls symbols.
4288         (ix86_tls_get_addr): New.
4289         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
4290         (TARGET_OPTIONS): Add tls-dialect.
4291         (CONSTANT_ADDRESS_P): Use new out-of-line function.
4292         (LEGITIMATE_CONSTANT_P): Likewise.
4293         (LEGITIMATE_PIC_OPERAND_P): Likewise.
4294         (TARGET_STRIP_NAME_ENCODING): New.
4295         (ASM_OUTPUT_LABELREF): New.
4296         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
4297         (OUTPUT_ADDR_CONST_EXTRA): New.
4298         (PREDICATE_CODES): Update.
4299         (ix86_tls_dialect, ix86_tls_dialect_string): New.
4300         * config/i386/i386.md: Regroup and renumber unspec constants.
4301         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
4302         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
4303         (tls_global_dynamic, tls_local_dynamic_base): New.
4304         (tls_local_dynamic_once): New.
4305         * config/i386/i386-protos.h: Update.
4306
4307 2002-05-23  Richard Henderson  <rth@redhat.com>
4308
4309         * genemit.c (gen_insn): Print file:lineno comment before function.
4310         (main): likewise.
4311         * gensupport.c (struct queue_elem): Add filename member.
4312         (queue_pattern): Initialize it; update all callers.
4313         (process_include): Don't free filename.
4314         (read_md_rtx): Set read_rtx_filename.
4315
4316 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
4317
4318         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
4319
4320 2002-05-23  Richard Henderson  <rth@redhat.com>
4321
4322         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
4323
4324 2002-05-23  Richard Henderson  <rth@redhat.com>
4325
4326         * doc/extend.texi (C++98 Thread-Local Edits): Update with
4327         commentary from Mark.
4328
4329 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4330
4331         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
4332         Use FOR_EACH_BB macros to iterate over basic block chain.
4333         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
4334         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
4335         Likewise.
4336         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
4337         find_unreachable_blocks, create_edge_list, verify_edge_list,
4338         remove_fake_edges, add_noreturn_fake_exit_edges,
4339         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
4340         Likewise.
4341         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4342         find_sub_basic_blocks): Likewise.
4343         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
4344         Likewise.
4345         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
4346         Likewise.
4347         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
4348         Likewise.
4349         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
4350         commit_edge_insertions, commit_edge_insertions_watch_calls,
4351         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
4352         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
4353         * conflict.c (conflict_graph_compute): Likewise.
4354         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4355         df_modified_p, df_refs_unlink, df_dump): Likewise.
4356         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
4357         * final.c (compute_alignments): Likewise.
4358         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
4359         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
4360         count_or_remove_death_notes): Likewise.
4361         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
4362         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
4363         classic_gcse, compute_transp, cprop, compute_pre_data,
4364         compute_transpout, invalidate_nonnull_info,
4365         delete_null_pointer_checks_1, delete_null_pointer_checks,
4366         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
4367         compute_store_table, build_store_vectors, store_motion): Likewise.
4368         * global.c (global_conflicts, mark_elimination): Likewise.
4369         * graph.c (print_rtl_graph_with_bb): Likewise.
4370         * haifa-sched.c (sched_init): Likewise.
4371         * ifcvt.c (if_convert): Likewise.
4372         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4373         compute_available, compute_nearerout, compute_rev_insert_delete,
4374         optimize_mode_switching): Likewise.
4375         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
4376         * predict.c (estimate_probability, note_prediction_to_br_prob,
4377         propagate_freq, counts_to_freqs, expensive_function_p,
4378         estimate_bb_frequencies): Likewise.
4379         * profile.c (instrument_edges, get_exec_counts,
4380         compute_branch_probabilities, compute_checksum, branch_prob,
4381         find_spanning_tree): Likewise.
4382         * recog.c (split_all_insns, peephole2_optimize): Likewise.
4383         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
4384         Likewise.
4385         * regclass.c (scan_one_insn, regclass): Likewise.
4386         * regmove.c (mark_flags_life_zones, regmove_optimize,
4387         record_stack_memrefs): Likewise.
4388         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
4389         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
4390         * resource.c (find_basic_block): Likewise.
4391         * sched-ebb.c (schedule_ebbs): Likewise.
4392         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
4393         find_single_block_region, find_rgns, schedule_insns)
4394         * sibcall.c (optimize_sibling_and_tail_recursive_call)
4395         * ssa-ccp.c (optimize_unexecutable_edges,
4396         ssa_ccp_df_delete_unreachable_insns): Likewise.
4397         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4398         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
4399         rename_block, convert_to_ssa, compute_conservative_reg_partition,
4400         compute_coalesced_reg_partition, rename_equivalent_regs,
4401         convert_from_ssa): Likewise.
4402         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
4403         process_for_unwind_directive): Likewise.
4404
4405         * df.c (FOR_ALL_BBS): Removed.
4406         * gcse.c (struct null_pointer_info): Type of current_block field
4407         changed.
4408         (struct reg_avail_info): Type of last_bb field changed.
4409         * config/ia64/ia64.c (block_num): Removed.
4410         (need_copy_state): Type changed.
4411         (last_block): New.
4412
4413 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4414
4415         * cppinit.c (mark_named_operators): Split out from init_builtins.
4416         (cpp_finish_options): Call it from here instead.
4417
4418 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
4419
4420         * builtin-attrs.def: Update copyright years.
4421         (ATTR_NONNULL): New attribute identifier.
4422         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
4423         attribute tree lists.
4424         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
4425         format operand.
4426         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
4427         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
4428         attribute lists.  Chain the appropriate nonnull attribute.
4429         * c-format.c (check_format_arg): Remove null format string
4430         warning.
4431         * testsuite/gcc.dg/format/null-1.c: New test.
4432
4433 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4434
4435         * Makefile.in (ADAC): Define.
4436         (SYSLIBS): Define.
4437         (.SUFFIXES): Move before language makefile fragments.
4438         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
4439
4440 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
4441
4442         * varasm.c (make_decl_rtl): Don't allow weak variables to be
4443         placed in common.
4444
4445 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
4446
4447         * cfg.c (dump_flow_info): Print results of
4448         maybe_hot/probably_never_executed predicates.
4449         * toplev.c (open_dump_file): Print function frequency.
4450
4451 2002-05-23  David S. Miller  <davem@redhat.com>
4452
4453         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
4454         regsets.
4455
4456 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
4457
4458         * c-common.c (warn_nonnull): Declare.
4459         (c_common_attribute_table): Add "nonnull" attribute.
4460         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
4461         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
4462         check_function_arguments_recurse): New functions.
4463         * c-common.h (warn_nonnull): Declare extern.
4464         (check_function_arguments, check_function_arguments_recurse): New
4465         prototypes.
4466         * c-decl.c (c_decode_option): Add -Wnonnull option.
4467         * c-format.c (set_Wformat): Set warn_nonnull if enabling
4468         format checking.
4469         (format_check_context): New structure.
4470         (check_format_info_recurse): Remove recursion and rename to...
4471         (check_format_arg): ...this.  Update comment.
4472         (check_format_info): Use check_function_arguments_recurse.
4473         * c-typeck.c (build_function_call): Call check_function_arguments
4474         instead of check_function_format.
4475         * doc/extend.texi: Document "nonnull" attribute.
4476         * doc/invoke.texi: Docuemnt -Wnonnull option.
4477         * testsuite/gcc.dg/nonnull-1.c: New test.
4478         * testsuite/gcc.dg/nonnull-2.c: New test.
4479
4480 2002-05-23  David S. Miller  <davem@redhat.com>
4481
4482         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
4483         * cfgcleanup.c (cleanup_cfg): If it is set do not
4484         attempt to delete trivially dead insns.
4485         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
4486         * toplev.c (rest_of_compilation): Document non-trivial aspect
4487         the RTL before optimize_save_area_alloca is run.
4488
4489 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4490
4491         * c-lex.c (indent_level): Remove.
4492         (cb_file_change, c_lex): Remove indent level handling.
4493         * c-lex.h (indent_level): Remove.
4494         * input.h (struct file_stack): Remove indent_level.
4495         * toplev.c (push_srcloc): Remove indent_level handling.
4496
4497 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
4498
4499         PR target/6753
4500         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
4501         of x in constraints for clarity.
4502         (sse_mov?fcc split): abort if op2 == op3.
4503         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
4504         sse_movsfcc_const0_4): Add earlyclobber.
4505         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
4506         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
4507         Use Y instead of x in constraints.
4508
4509 2002-05-23  Richard Henderson  <rth@redhat.com>
4510
4511         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
4512         (C++98 Thread-Local Edits): New subsection.
4513
4514         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
4515         (ix86_arch): Set type to enum processor_type.
4516
4517         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
4518         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
4519
4520 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
4521
4522         * configure.in: Fix as version test for binutils 2.12.1 releases
4523         (without dates).
4524         * configure: Rebuilt.
4525
4526 2002-05-23  Richard Henderson  <rth@redhat.com>
4527
4528         * config/i386/i386.c (get_pic_label_name): New.
4529         (load_pic_register): Remove.
4530         (output_set_got): New.
4531         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
4532         * config/i386/i386.md (UNSPEC_SET_GOT): New.
4533         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
4534         (prologue_set_got, prologue_get_pc): Remove.
4535         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
4536         (builtin_setjmp_receiver): Use gen_set_got.
4537         * config/i386/i386-protos.h: Update.
4538
4539 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
4540
4541         * gcse.c (hash_expr): Do not use alias set for hashing.
4542
4543 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
4544
4545         * dbxout.c (dbxout_class_name_qualifiers): New function.
4546         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
4547
4548 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4549
4550         * cpperror.c (_cpp_begin_message): No special casing
4551         of CPP_FATAL_LIMIT.
4552         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
4553         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
4554         * cpplib.c (do_include_common): Use DL_ERROR.
4555         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
4556         (DL_ICE): Renumber.
4557         * fix-header.c (read_scan_file): Update.
4558
4559 2002-05-22  Richard Henderson  <rth@redhat.com>
4560
4561         * config/i386/i386.c (ix86_expand_call): New function, extracted
4562         from md call patterns.  Add pic_offset_table_rtx to
4563         CALL_INSN_FUNCTION_USAGE when needed.
4564         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
4565         (call_value_pop, call_value, untyped_call): Likewise.
4566         (call_exp, call_value_exp): Remove.
4567         * config/i386/i386-protos.h: Update.
4568
4569 2002-05-22  Richard Henderson  <rth@redhat.com>
4570
4571         * varasm.c (default_section_type_flags): Check for VAR_DECL
4572         before using DECL_THREAD_LOCAL.
4573
4574 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
4575
4576         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
4577         (STARTFILE_SPEC): Delete PE crt0.o.
4578         * config/rs6000/aix51.h: Same.
4579         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
4580         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
4581         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
4582         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
4583         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
4584
4585 2002-05-22  Richard Henderson  <rth@redhat.com>
4586
4587         * varasm.c (default_section_type_flags): Handle tls data and
4588         default sections.
4589         (default_unique_section): Handle tls sections.
4590
4591 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
4592
4593         * configure.in (CROSS): Define NATIVE_CROSS.
4594         * configure: Regenerate.
4595         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
4596         (startfile_prefix_spec): New var.
4597         (static_specs): Add startfile_prefix_spec.
4598         (do_spec_2): Split out from..
4599         (do_spec): ..here.
4600         (main): Process startfile_prefix_spec.
4601         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
4602         dynamic linker.
4603         (STARTFILE_PREFIX_SPEC): Define.
4604         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
4605         absolute paths.
4606
4607 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
4608
4609         * cpperror.c: Fix formatting.
4610         * cppexp.c: Likewise.
4611         * cppfiles.c: Likewise.
4612         * cpphash.c: Likewise.
4613         * cpphash.h: Likewise.
4614         * cppinit.c: Likewise.
4615         * cpplex.c: Likewise.
4616         * cpplib.c: Likewise.
4617         * cppmacro.c: Likewise.
4618         * cppmain.c: Likewise.
4619         * cppspec.c: Likewise.
4620
4621 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
4622
4623         * combine.c (force_to_mode): Use gen_int_mode.
4624         Don't clear CONST_INT bits outside of mode.
4625
4626 2002-05-22  Richard Henderson  <rth@redhat.com>
4627
4628         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
4629         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4630
4631 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
4632
4633         PR c/6643
4634         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
4635         if DECL_SIZE_UNIT is INTEGER_CST.
4636
4637 2002-05-22  Richard Henderson  <rth@redhat.com>
4638
4639         * flow.c (life_analysis): Delete broken reg_label check.
4640
4641 2002-05-22  Richard Henderson  <rth@redhat.com>
4642
4643         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
4644         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4645
4646 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
4647
4648         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
4649         (embed-bb.c): New rule.
4650         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
4651         * config/sh/embed_bb.c: Delete.
4652
4653 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
4654
4655         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
4656
4657 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
4658
4659         * config/h8300/h8300.md (*andorqi3): New.
4660
4661 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4662
4663         PR preprocessor/6517
4664         * Makefile.in: Update.
4665         * c-common.c (c_common_post_options): Add preprocessor
4666         errors to the error count.
4667         * c-lang.c (c_post_options): Kill.
4668         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4669         * hooks.h: Add header guards.
4670         * langhooks-def.h: Include hooks.h.
4671         (LANG_HOOKS_POST_OPTIONS): Update.
4672         * langhooks.h (struct lang_hooks): Update post_options.
4673         * toplev.c (parse_options_and_default_flags): Update.
4674 objc:
4675         * objc-lang.c (objc_post_options): Kill.
4676         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4677
4678 2002-05-21  Bruce Korb  <bkorb@gnu.org>
4679
4680         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
4681         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
4682         * fixinc/fixincl.x: regen.
4683
4684 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
4685
4686         * cfgbuild.c: Fix formatting.
4687         * cfg.c: Likewise.
4688         * cfgcleanup.c: Likewise.
4689         * cfglayout.c: Likewise.
4690         * cfgloop.c: Likewise.
4691         * cfgrtl.c: Likewise.
4692
4693 2002-05-21  Richard Henderson  <rth@redhat.com>
4694
4695         * c-common.h (enum rid): Add RID_THREAD.
4696         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
4697         (grokdeclarator): Grok __thread.
4698         * c-parse.in (reswords): Add __thread.
4699         (rid_to_yy): Add RID_THREAD.
4700
4701         * tree.h (DECL_THREAD_LOCAL): New.
4702         (struct tree_decl): Add thread_local_flag.
4703         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
4704         * tree.c (staticp): TLS variables are not static.
4705
4706         * target-def.h (TARGET_HAVE_TLS): New.
4707         * target.h (have_tls): New.
4708         * output.h (SECTION_TLS): New.
4709         * varasm.c (assemble_variable): TLS variables can't be common for now.
4710         (default_section_type_flags): Handle .tdata and .tbss.
4711         (default_elf_asm_named_section): Handle SECTION_TLS.
4712         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
4713
4714         * flags.h (flag_tls_default): Declare.
4715         * toplev.c (flag_tls_default): Define.
4716         (display_help): Display help for it.
4717         (decode_f_option): Set it.
4718
4719         * doc/extend.texi (Thread-Local): New node describing language-level
4720         thread-local storage.
4721         * doc/invoke.texi (-ftls-model): Document.
4722
4723         * fixinc/inclhack.def (thread_keyword): New.
4724         * fixinc/fixincl.x: Rebuild.
4725
4726 2002-05-21  Jeffrey A Law  <law@redhat.com>
4727
4728         * optabs.c (expand_binop): For double-word integer multiplies,
4729         do not compute intermediate results into something that is
4730         not a register (such as a SUBREG or MEM).
4731
4732         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
4733         (ix86_sched_reorder): Make sure to initialize scheduling
4734         data even when there's only one insn in the ready queue.
4735
4736 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
4737
4738         * genautomata.c (reserv_sets_hash_value): Fix a typo.
4739
4740 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
4741
4742         * genautomata.c (reserv_sets_hash_value): Define hash_value as
4743         set_el_t.  Transform the hash value into unsigned.
4744         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
4745         (transform_3): Add code to process `(A,B)+(D,E)'.
4746
4747 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
4748
4749         * reload1.c (do_output_reload): Run delete_output_reload
4750         only if optimizing.
4751
4752 2002-05-21  Roger Sayle  <roger@eyesopen.com>
4753
4754         PR middle-end/6600
4755         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
4756         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
4757         (can_store_by_pieces): ... and here to limit the largest mode used.
4758         Add a comment to document this function.
4759
4760 2002-05-21  Richard Henderson  <rth@redhat.com>
4761
4762         * flow.c (life_analysis): Fix test for deleted label.
4763
4764 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4765
4766         * doc/tm.texi: Fix typo.
4767
4768 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
4769
4770         * c-common.c (c_common_init): Set options->unsigned_char from
4771         flag_signed_char.
4772         (cb_register_builtins): Define __STRICT_ANSI__ and
4773         __CHAR_UNSIGNED__ here...
4774         * cppinit.c (init_builtins): Not here.
4775         (cpp_create_reader): unsigned_char option defaults to 0, not
4776         !DEFAULT_SIGNED_CHAR.
4777         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
4778         and -funsigned-char.
4779
4780         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
4781         * cpphash.c (_cpp_init_hashtable): Don't set it.
4782         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
4783         directly.  Clarify comment.
4784
4785 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4786
4787         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
4788         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
4789         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
4790         BASIC_BLOCK (n_basic_blocks - 1).
4791         * cfganal.c (can_fallthru, flow_call_edges_add,
4792         flow_preorder_transversal_compute): Too.
4793         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4794         find_sub_basic_blocks): Too.
4795         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
4796         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
4797         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
4798         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
4799         * combine.c (this_basic_block): Type changed to basic_block.
4800         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
4801         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4802         get_last_value, distribute_notes, distribute_links): Too.
4803         * final.c (compute_alignments): Too.
4804         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
4805         * function.c (thread_prologue_and_epilogue_insns): Too.
4806         * gcse.c (compute_code_hoist_vbeinout): Too.
4807         * global.c (build_insn_chain): Too.
4808         * ifcvt.c (find_if_block, find_cond_trap): Too.
4809         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
4810         * regmove.c (regmove_optimize): Too.
4811         * resource.c (find_basic_block): Too.
4812         * sched-ebb.c (schedule_ebbs): Too.
4813         * ssa-dce.c (find_control_dependence, find_pdom): Too.
4814
4815 2002-05-21  Andreas Jaeger  <aj@suse.de>
4816
4817         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
4818
4819 2002-05-21  Richard Henderson  <rth@redhat.com>
4820
4821         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
4822         unspec names, not numbers.
4823
4824 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4825
4826         * doc/sourcebuild.texi: Mention snapshot-README and
4827         snapshot-index.html as needing updating for new front ends.
4828
4829 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4830
4831         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
4832         disabling checking, and avoid multiple evaluation of RTX.
4833
4834 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
4835
4836         * bitmap.c (bitmap_find_bit): Return early if we have the correct
4837         element cached.
4838
4839 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4840
4841         * profile.c (gen_edge_profiler):  Set alias set before the memory is
4842         used.
4843
4844 2002-05-20  David S. Miller  <davem@redhat.com>
4845
4846         * cselib.c (max_value_regs): New.
4847         (cselib_lookup, cselib_invalidate_regno): Initialize it when
4848         adding new entries to the REG_VALUES table and we are dealing with
4849         a hard register.
4850         (clear_table): Initialize it.
4851         (cselib_invalidate_regno): Use it to determine which hard
4852         registers to scan when mode is not VOIDmode.
4853
4854 2002-05-20  Duraid Madina   <duraid@fl.net.au>
4855
4856         * tradcpp.c (fixup_newlines): Use old-style function header.
4857
4858 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
4859
4860         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
4861
4862 2002-05-20  H.J. Lu  (hjl@gnu.org)
4863
4864         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
4865
4866         * config/mips/mips.h (DFMODE_NAN): Defined.
4867         (SFMODE_NAN): Likewise.
4868
4869 2002-05-20  Dale Johannesen  <dalej@apple.com>
4870
4871         * combine.c (cant_combine_insn_p):  Back out my
4872         previous patch.
4873
4874 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
4875
4876         * params.c: Fix formatting.
4877         * params.h: Likewise.
4878         * predict.c: Likewise.
4879         * prefix.c: Likewise.
4880         * print-rtl.c: Likewise.
4881         * print-tree.c: Likewise.
4882         * profile.c: Likewise.
4883
4884 2002-05-20  H.J. Lu  (hjl@gnu.org)
4885
4886         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
4887
4888 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
4889
4890         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
4891         switches straight on to the assembler, do not abbreviate them.
4892         * config/arm/elf.h (ASM_SPEC): As above.
4893         * config/arm/semi.h (ASM_SPEC): As above.
4894         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
4895         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
4896         -mcpu=xscale on to the assembler by default.
4897         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
4898
4899 2002-05-20  Richard Henderson  <rth@redhat.com>
4900
4901         * cse.c (canon_hash): Reorder do_not_record test.  Always
4902         allow pic_offset_table_rtx.
4903
4904 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
4905
4906         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
4907         (expand_binop): Ditto (3 times).
4908
4909 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
4910
4911         * Makefile.in (distclean): Remove QMTest stuff.
4912         (QMTEST_PATH): New variable.
4913         (QMTESTFLAGS): Likewise.
4914         (QMTESTRUNFLAGS): Likewise.
4915         (QMTEST): Likewise.
4916         (QMTEST_GPP_TESTS): Likewise.
4917         (QMTEST_DIR): Likewise.
4918         (QMTEST_DIR/context): New target.
4919         (qmtest-g++): Likeise.
4920         (qmtest-gui): Likewise.
4921         (QMTEST_DIR/gpp-expected.qmr): Likewise.
4922
4923 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
4924
4925         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
4926         an altivec register if TARGET_ALTIVEC.
4927
4928         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
4929         to ALTIVEC_VECTOR_MODE.
4930         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
4931         (rs6000_va_arg): Vectors may go in registers if they are not
4932         altivec vectors.
4933
4934 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
4935
4936         * protoize.c: Fix formatting.
4937
4938 2002-05-19  Richard Henderson  <rth@redhat.com>
4939
4940         * gensupport.c (init_include_reader): Merge into ...
4941         (process_include): ... here.  Simplify composite path creation.
4942         Plug memory leaks.  Fix file/line number tracking.  Do not
4943         process_define_cond_exec.  Return void.
4944         (process_rtx): Don't check process_include return value.
4945
4946 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4947
4948         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
4949         fields.
4950         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4951         traversing basic block chain.
4952         (create_basic_block_structure, create_basic_block): Declaration changed.
4953         (link_block, unlink_block): Declare.
4954         * cfg.c (entry_exit_blocks): Initialize new fields.
4955         (link_block, unlink_block): New.
4956         (expunge_block_nocompact): Unlink basic block.
4957         (dump_flow_info): Print prev_bb/next_bb fields.
4958         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
4959         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
4960         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
4961         * cfgrtl.c (create_basic_block_structure, create_basic_block,
4962         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
4963         (verify_flow_info): Check that list agrees with numbering.
4964
4965 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
4966
4967         * c-common.c (preprocessing_asm): New macro.
4968         * c-lex.h (builtin_define, builtin_assert): Use pfile.
4969 doc:
4970         * tm.texi: Update.
4971 config/alpha:
4972         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
4973         (CPP_SPEC): Simplify.
4974         (TARGET_CPU_CPP_BUILTINS): Update.
4975         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
4976         (CPP_SPEC): Simplify.
4977         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
4978         (TARGET_OS_CPP_BUILTINS): Update.
4979         * osf.h (CPP_XFLOAT_SPEC): Kill.
4980         (TARGET_OS_CPP_BUILTINS): Update.
4981         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
4982         * osf5.h (CPP_XFLOAT_SPEC): Kill.
4983         * vms.h (CPP_SUBTARGET_SPEC): Kill.
4984         (TARGET_OS_CPP_BUILTINS): Update.
4985
4986 2002-05-19  Richard Henderson  <rth@redhat.com>
4987
4988         * varasm.c (default_binds_local_p): Fix typo.
4989
4990 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4991
4992         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
4993         CONST_INT operand to the correct mode after adding 1 to it.
4994
4995 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
4996
4997         * config.gcc (powerpc-wrs-windiss*): New target.
4998
4999 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5000
5001         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
5002         (ashrdi3): Use it.
5003
5004 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
5005
5006         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
5007         alphasort.
5008         * config.in: Regenerated.
5009         * configure: Regenerated.
5010
5011 2002-05-19  Richard Henderson  <rth@redhat.com>
5012
5013         * target-def.h (TARGET_BINDS_LOCAL_P): New.
5014         * target.h (struct gcc_target): Move boolean fields to the end.
5015         Add binds_local_p.
5016         * varasm.c (default_binds_local_p): New.
5017         * output.h: Declare it.
5018
5019         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
5020         * config/cris/cris.c (cris_encode_section_info): Likewise.
5021         * config/i386/i386.c (i386_encode_section_info): Likewise.
5022         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
5023         * config/sh/sh.c (sh_encode_section_info): Likewise.
5024
5025         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
5026         (TARGET_BINDS_LOCAL_P): New.
5027
5028 2002-05-19  Richard Henderson  <rth@redhat.com>
5029
5030         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
5031         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
5032         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
5033
5034         * toplev.c (display_help): Kill -a -ax help.
5035
5036         * config/1750a/1750a.h, config/alpha/alpha.h,
5037         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
5038         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
5039         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
5040         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
5041
5042         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
5043         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
5044
5045         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
5046         (ix86_output_function_block_profiler): Kill.
5047         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
5048         (m68hc11_function_block_profiler): Kill.
5049         * config/m68hc11/m68hc11-protos.h: Update.
5050         * config/m88k/m88k.c (output_block_profiler): Kill.
5051         (output_function_block_profiler): Kill.
5052         * config/m88k/m88k-protos.h: Update.
5053
5054 2002-05-19  Richard Henderson  <rth@redhat.com>
5055
5056         * system.h (STRIP_NAME_ENCODING): Poison it.
5057         * output.h (STRIP_NAME_ENCODING): Remove.
5058         (default_strip_name_encoding): Declare.
5059         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
5060         * target.h (strip_name_encoding): New.
5061         * varasm.c (default_strip_name_encoding): New.
5062
5063         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
5064         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
5065         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
5066         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
5067         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
5068         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
5069         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
5070         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
5071         config/v850/v850.h: Use the hook, not the macro.
5072
5073         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5074         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
5075         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
5076         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
5077         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
5078         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
5079         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
5080         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
5081         config/v850/v850.c, config/v850/v850.h:
5082         Move STRIP_NAME_ENCODING to out-of-line function and add
5083         TARGET_STRIP_NAME_ENCODING.
5084
5085         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
5086         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
5087         with TARGET_STRIP_NAME_ENCODING referencing existing function;
5088         make function static.
5089
5090         * xcoffout.c: Include target.h
5091         * Makefile.in (xcoffout.o): Update.
5092
5093         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
5094         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
5095         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
5096         reloc argument unused.
5097         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
5098
5099         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
5100         STRIP_NAME_ENCODING docs.
5101
5102 2002-05-19  Andreas Jaeger  <aj@suse.de>
5103
5104         * gengenrtl.c: Add prototype for excluded_rtx.
5105
5106         * real.h: Add prototype for exact_real_truncate.
5107
5108 2002-05-18  Richard Henderson  <rth@redhat.com>
5109
5110         * system.h (ENCODE_SECTION_INFO): Poison it.
5111         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
5112         * target.h (encode_section_info): New.
5113         * varasm.c (make_decl_rtl, output_constant_def): Use it.
5114         * hooks.c (hook_tree_int_void): New.
5115         * hooks.h: Declare it.
5116
5117         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5118         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
5119         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
5120         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
5121         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
5122         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
5123         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
5124         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
5125         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
5126         config/mcore/mcore-protos.h, config/mcore/mcore.c,
5127         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
5128         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
5129         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
5130         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
5131         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
5132         referencing existing function.  Make function static.
5133
5134         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
5135         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
5136         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
5137         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
5138         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
5139         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
5140         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
5141         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
5142         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
5143         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
5144         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
5145         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
5146         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
5147         Move ENCODE_SECTION_INFO to out-of-line function and add
5148         TARGET_ENCODE_SECTION_INFO.
5149
5150         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
5151         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5152
5153         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
5154         from SUBTARGET_*
5155         (switch_to_section): Replace in_rdata case with in_readonly_data.
5156
5157         * config/h8300/h8300.c (h8300_encode_label): Make static.
5158         * config/h8300/h8300-protos.h: Update.
5159
5160         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
5161         from rs6000_encode_section_info; make static.
5162         (rs6000_xcoff_encode_section_info): New.
5163
5164         * config/v850/v850.c (v850_encode_data_area): Make static.
5165         * config/v850/v850-protos.h: Update.
5166
5167         * config/vax/vax.c: Include flags.h.
5168         (vms_select_section): Fix typo.
5169
5170         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
5171         ENCODE_SECTION_INFO docs.
5172
5173 2002-05-18  Richard Henderson  <rth@redhat.com>
5174
5175         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
5176         REGISTER_TARGET_PRAGMAS.
5177         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
5178
5179         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
5180
5181 2002-05-18  Richard Henderson  <rth@redhat.com>
5182
5183         * system.h (SELECT_RTX_SECTION): Poison.
5184         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
5185         * target.h (select_rtx_section): New.
5186         * varasm.c (output_constant_pool): Use it.
5187         (default_select_rtx_section, default_elf_select_rtx_section): New.
5188         * output.h: Declare them.
5189
5190         * config/darwin.h (SELECT_RTX_SECTION): Move ...
5191         * config/darwin.c (machopic_select_rtx_section): ... here.
5192         * config/darwin-protos.h: Update.
5193
5194         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
5195         * config/nextstep.c (machopic_select_rtx_section): ... here.
5196         (nextstep_select_section): Rename variable to avoid macro clash.
5197         * config/nextstep-protos.h: Update.
5198
5199         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
5200         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
5201         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
5202         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
5203         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
5204         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
5205         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
5206         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
5207         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
5208         (SELECT_RTX_SECTION): Remove.
5209
5210         * config/darwin.h, config/elfos.h, config/nextstep.h,
5211         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
5212         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
5213         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
5214         config/sparc/lynx.h, config/xtensa/xtensa.c
5215         (TARGET_ASM_SELECT_RTX_SECTION): New.
5216
5217         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
5218         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
5219         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
5220         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
5221         (ia64_aix_select_rtx_section): New.
5222         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
5223         redefining.
5224         * config/mips/mips.c (mips_select_rtx_section): Make static.
5225         Support ELF SHF_MERGE features.
5226         * config/mips/mips-protos.h: Update.
5227         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
5228         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
5229         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
5230         make static, fall back to default_elf_select_rtx_section.
5231         * config/rs6000/rs6000-protos.h: Update.
5232         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
5233         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
5234         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
5235         * config/romp/romp.c (romp_select_rtx_section): New.
5236         * config/s390/s390.c (s390_select_rtx_section): New.
5237         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
5238         declarations before target macro definition.
5239         (xtensa_emit_call): Use static buffer.
5240         (xtensa_select_rtx_section): New.
5241         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
5242         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
5243         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
5244
5245         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
5246         SELECT_RTX_SECTION docs.
5247
5248 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
5249
5250         * i386.md (movsi/movdi): Fix template.
5251         (sse2 patterns): Set attributes consistently.
5252
5253         * i386.md (pushqi2, ashrqi_*): Fix constraint.
5254
5255 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
5256
5257         * optabs.c (complex_part_zero_p): New.
5258         * (expand_cmplxdiv_straight): Use it.
5259         * (expand_cmplxdiv_wide): Ditto.
5260         * (expand_binop): Ditto.
5261
5262 2002-05-18  Richard Henderson  <rth@redhat.com>
5263
5264         * final.c (HAVE_READONLY_DATA_SECTION): New.
5265         (shorten_branches): Use it instead of ifdefs.
5266         * varasm.c (enum in_section): Add in_readonly_data.
5267         (text_section, data_section): Tidy.
5268         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
5269
5270         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
5271         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
5272         (READONLY_DATA_SECTION): Don't undef.
5273
5274         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
5275         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
5276         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
5277
5278         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
5279         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
5280         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
5281         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
5282
5283         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
5284         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
5285         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5286         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
5287         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
5288         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
5289         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
5290         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
5291         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
5292
5293         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
5294         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
5295         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
5296         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
5297         config/pa/pa64-hpux.h, config/sparc/litecoff.h
5298         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
5299
5300         * config/elfos.h, config/netware.h, config/svr3.h,
5301         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5302         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5303         config/h8300/h8300.h, config/i386/i386-interix.h,
5304         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5305         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
5306
5307         * config/elfos.h, config/netware.h, config/svr3.h,
5308         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5309         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
5310         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5311         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
5312
5313         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
5314         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
5315         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
5316         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
5317         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
5318         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
5319         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
5320         config/rs6000/sysv4.h, config/v850/v850.h
5321         (EXTRA_SECTIONS): Remove in_const/in_rdata.
5322         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
5323
5324         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
5325         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
5326         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
5327         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
5328         * config/alpha/alpha.c (alpha_start_function): Likewise.
5329         (alpha_write_linkage): Likewise.
5330         * config/m32r/m32r.c (m32r_select_section): Likewise.
5331         * config/m88k/m88k.c (m88k_select_section): Likewise.
5332         * config/mips/mips.c (mips_select_rtx_section): Likewise.
5333         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
5334         (rs6000_elf_select_section): Likewise.
5335         * config/v850/v850.c (v850_select_section): Likewise.
5336
5337         * config/1750a/1750a.h, config/i860/sysv3.h
5338         (READONLY_DATA_SECTION_ASM_OP): New.
5339         READONLY_DATA_SECTION_ASM_OP.
5340         * config/i386/interix.c, config/i386/winnt.c
5341         (i386_pe_unique_section): Always use .rdata prefix.
5342         * config/pa/som.h (readonly_data): Always switch to read-only section.
5343         (READONLY_DATA_SECTION): Predicate on flag_pic.
5344         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
5345         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
5346         (READONLY_DATA_SECTION): Update.
5347
5348 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
5349
5350         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
5351         is used without -Wformat.
5352         * c-common.h (warn_format_zero_length): Declare extern.
5353         * c-decl.c (warn_options): Add "format-zero-length".
5354         * c-format.c (warn_format_zero_length): Declare.
5355         (set_Wformat): Set warn_format_zero_length for -Wformat.
5356         (check_format_info): Only warn about zero-length formats if
5357         warn_format_zero_length is true.  Include the format type
5358         name in the warning message.
5359         * doc/invoke.texi: Document -Wformat-zero-length.
5360         * testsuite/gcc.dg/format/zero-length-1.c: New test.
5361
5362 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
5363
5364         * timevar.c: Fix formatting.
5365         * tlink.c: Likewise.
5366         * toplev.c: Likewise.
5367         * tree-dump.c: Likewise.
5368         * tree-inline.c: Likewise.
5369
5370 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
5371
5372         * cppinit.c (cpp_post_options): If preprocessed, turn off
5373         traditional.  If traditional, turn off column numbers.
5374         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
5375         * cpptrad.c (handle_newline): Update line_base.
5376         (skip_comment): Handle -Wcomment.
5377
5378 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
5379
5380         * cppinit.c (struct builtin): Remove unused fields.
5381         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
5382         (operator_array): New - was second half of builtin_array.
5383         (init_builtins): Simplify loop over builtin_array/operator_array.
5384
5385 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
5386
5387         * defaults.h (UNIQUE_SECTION): Remove.
5388         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
5389
5390 2002-05-17  Richard Henderson  <rth@redhat.com>
5391
5392         * expr.c (init_expr_once): Don't use start/end_sequence.
5393         Use rtx_alloc instead of emit_insn.
5394         * toplev.c (lang_dependent_init): Run init_expr_once here ...
5395         (lang_independent_init): ... not here.
5396
5397 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
5398
5399         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
5400
5401 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5402
5403         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
5404         for fixed registers, possibly used for global register variables.
5405         (initial_elimination_offset, avr_output_function_prologue,
5406         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
5407
5408 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5409
5410         * Makefile.in: Update for cpptrad.c.
5411         * cpphash.h (struct cpp_buffer): New members for buffer
5412         overlays.
5413         (struct cpp_reader): New members for traditional output.
5414         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
5415         * cppinit.c (cpp_create_reader): Set trad_line.
5416         (cpp_destroy): Free trad_out_base if used.
5417         (cpp_read_main_file): Overlay an empty buffer if traditional.
5418         (cpp_finish_options): Don't do builtins.
5419         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
5420         (cpp_handle_option): Handle it.
5421         * cpplex.c (continue_after_nul): New.
5422         (_cpp_lex_direct): Use handle_nul.
5423         * cpplib.h (struct cpp_options): New traditional option.
5424         * cpptrad.c: New file.
5425
5426 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5427
5428         * c-common.c (c_common_init_options): Use C89 for Objective-C,
5429         and set the options flag.
5430         * cppinit.c (lang_flags): Remove objc.
5431         (lang_defaults): Remove OBJC and OBJCXX.
5432         (set_lang): Update.
5433         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
5434         (cpp_handle_option): Remove -+ and -lang-objc++.
5435         For ObjC, just set a flag.
5436         (print_help): Update.
5437         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
5438
5439 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5440
5441         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
5442         bootstrap with -mips3.
5443
5444 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
5445
5446         * final.c: Fix formatting.
5447         * fix-header.c: Likewise.
5448         * flow.c: Likewise.
5449         * fold-const.c: Likewise.
5450         * function.c: Likewise.
5451
5452 2002-05-17  David S. Miller  <davem@redhat.com>
5453
5454         PR c/6689, PR optimization/6615
5455         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
5456         and make it a pointer to rtx.  Update comments.
5457         (update_equiv_regs): When scanning for equivalences, record
5458         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
5459         it while making the equiv replacements.
5460
5461 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5462
5463         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
5464
5465 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5466
5467         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
5468         when encoding visibility into SYMBOL_REF_FLAG.
5469
5470 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
5471
5472         * expr.c (force_operand): Fix reversed move.
5473
5474 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
5475
5476         * doc/install.texi (Testing): Mention two common DejaGnu warnings
5477         that can be ignored.
5478
5479 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5480
5481         * doc/install.texi (Final install): Recommend to install into a
5482         "clean" target directory.
5483
5484 2002-05-17  Richard Henderson  <rth@redhat.com>
5485
5486         * config/ia64/ia64.md: Use braced strings instead of quoted strings
5487         for code blocks.  Tidy whitespace.
5488
5489 2002-05-17  Richard Henderson  <rth@redhat.com>
5490
5491         * hooks.c (hook_tree_bool_false): New.
5492         * hooks.h: Declare it.
5493         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
5494         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
5495         * target.h (select_section, unique_section): New.
5496         (in_small_data_p): New.
5497         * varasm.c (resolve_unique_section): Use hooks instead of macros.
5498         (variable_section, output_constant_def_contents): Likewise.
5499         (default_select_section, default_unique_section): New.
5500         (categorize_decl_for_section, default_elf_select_section): New.
5501         * output.h: Declare them.
5502
5503         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
5504         (TARGET_ASM_SELECT_SECTION): New.
5505         (SELECT_SECTION): Move ...
5506         * config/darwin.c (machopic_select_section): ... here.
5507         * config/darwin-protos.h: Update.
5508
5509         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
5510         (SELECT_SECTION): Move ...
5511         * config/nextstep.c (nextstep_select_section): ... here.
5512         * config/nextstep-protos.h: Update.
5513
5514         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
5515         (TARGET_ASM_SELECT_SECTION): New.
5516         * config/svr3.h (SELECT_SECTION): Remove.
5517
5518         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
5519         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
5520         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
5521         (alpha_encode_section_info): Use it.
5522         * config/alpha/alpha-protos.h: Update.
5523         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
5524         (SELECT_SECTION, UNIQUE_SECTION): Remove.
5525         (TARGET_ASM_SELECT_SECTION): New.
5526         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
5527
5528         * config/arm/pe.h (UNIQUE_SECTION): Remove.
5529         (TARGET_ASM_UNIQUE_SECTION): New.
5530
5531         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
5532         (avr_unique_section): Rename from unique_section; make static.
5533         * config/avr/avr-protos.h: Update.
5534         * config/avr/avr.h (UNIQUE_SECTION): Remove.
5535
5536         * config/c4x/c4x.h (SELECT_SECTION): Remove.
5537
5538         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
5539         (TARGET_ASM_UNIQUE_SECTION): New.
5540         * config/i386/i386-interix.h: Likewise.
5541         * config/i386/win32.h: Likewise.
5542         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
5543         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
5544         * config/i386/sco5.h (SELECT_SECTION): Remove.
5545         (TARGET_ASM_SELECT_SECTION): New.
5546         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
5547
5548         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
5549         instead of SELECT_SECTION.
5550         * config/m68k/dpx2.h: Likewise.
5551         * config/rs6000/lynx.h: Likewise.
5552
5553         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5554         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5555         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
5556         (ia64_in_small_data_p): New.
5557         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
5558         (ia64_aix_select_section, ia64_aix_unique_section): New.
5559         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
5560         (SELECT_SECTION, UNIQUE_SECTION): Remove.
5561
5562         * config/m32r/m32r.h (SELECT_SECTION): Remove.
5563         (TARGET_ASM_SELECT_SECTION): New.
5564         * config/m32r/m32r.c (m32r_select_section): Take align argument.
5565         * config/m32r/m32r-protos.h: Update.
5566
5567         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
5568         (SELECT_SECTION): Move ...
5569         * config/m88k/m88k.c (m88k_select_section): ... here.
5570
5571         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
5572         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
5573         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
5574         (mcore_unique_section): Make static.
5575         * config/mcore/mcore-protos.h: Update.
5576
5577         * config/mips/elf.h (UNIQUE_SECTION): Remove.
5578         (TARGET_ASM_UNIQUE_SECTION): New.
5579         * config/mips/elf64.h: Likewise.
5580         * config/mips/iris6gld.h: Likewise.
5581         * config/mips/linux.h: Likewise.
5582         * config/mips/mips-protos.h: Update.
5583         * config/mips/mips.c (mips_select_section): Add align argument.
5584         * config/mips/mips.h (SELECT_SECTION): Remove.
5585         (TARGET_ASM_SELECT_SECTION): New.
5586
5587         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5588         * config/mmix/mmix.c (mmix_select_section): Remove.
5589         (mmix_unique_section): Remove.
5590         * config/mmix/mmix-protos.h: Update.
5591
5592         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
5593         (SELECT_SECTION): Move ...
5594         * config/pa/pa.c (pa_select_section): ... here.
5595         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
5596
5597         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
5598         from rs6000_select_section and make static.
5599         (rs6000_elf_unique_section): Similarly.
5600         (rs6000_xcoff_select_section): From xcoff.h.
5601         (rs6000_xcoff_unique_section): Likewise.
5602         * config/rs6000/rs6000-protos.h: Update.
5603         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5604         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5605         * config/rs6000/xcoff.h: Likewise.
5606
5607         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
5608         (SELECT_SECTION): Move ...
5609         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
5610
5611         * config/v850/v850.h (SELECT_SECTION): Move ...
5612         * config/v850/v850.c (v850_select_section): ... here.
5613         (TARGET_ASM_SELECT_SECTION): New.
5614
5615         * config/vax/vms.h (SELECT_SECTION): Move ...
5616         * config/vax/vax.c (vms_select_section): ... here.
5617         (TARGET_ASM_SELECT_SECTION): New.
5618
5619         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
5620         for the target hooks.
5621
5622 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
5623
5624         * config/arm/arm.c (emit_multi_reg_push): Do not set
5625         RTX_FRAME_RELATED_P on the SEQUENCE.
5626
5627 2002-05-16  Richard Henderson  <rth@redhat.com>
5628
5629         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
5630         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
5631
5632 2002-05-16  Richard Henderson  <rth@redhat.com>
5633
5634         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
5635
5636         * config/ia64/ia64.c (saveable_obstack): Do not declare.
5637
5638 2002-05-16  Richard Henderson  <rth@redhat.com>
5639
5640         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
5641         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
5642         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
5643         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
5644         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
5645         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
5646         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
5647         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
5648         Revert "Basic block renumbering removal", and two followup patches.
5649
5650 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
5651
5652         * lcm.c (optimize_mode_switching): Revert previous change.
5653
5654 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5655
5656         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
5657         with only extant block numbers.
5658
5659 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
5660
5661         * lcm.c (optimize_mode_switching): Fix typo.
5662
5663 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5664
5665         * flow.c (calculate_global_regs_live): Queue blocks in program order.
5666
5667 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5668
5669         * doc/install.texi (Configuration): Document PWDCMD.
5670
5671 2002-05-16  Dale Johannesen  <dalej@apple.com>
5672
5673         * combine.c (cant_combine_insn_p):  Reenable combinations
5674         involving hard regs unless CLASS_LIKELY_SPILLED_P.
5675
5676 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5677
5678         * c-common.c (cb_register_builtins): Handle more built-ins
5679         here rather than in gcc.c specs.
5680         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
5681         (cpp_options): Pass -O flags even when only preprocessing.
5682         * toplev.c (set_fast_math_flags): New prototype.
5683         (fast_math_flags_set_p): New.
5684         (set_no_fast_math_flags): Remove.
5685         (decode_f_option): Update.
5686         * toplev.h (set_fast_math_flags): Update.
5687         (fast_math_flags_set_p): New.
5688         (set_no_fast_math_flags): Remove.
5689 config:
5690         * c4x/c4x.c (c4x_override_options): Update.
5691
5692 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
5693
5694         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
5695         Default-define here.
5696         (builtin_define_with_value): Can now wrap the expansion in
5697         quotation marks if such is wanted.
5698         (cb_register_builtins): Update calls to builtin_define_with_value.
5699         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
5700         here.
5701         (c_common_init): Set options->stdc_0_in_system_headers.
5702         * c-lex.h: Update prototype of builtin_define_with_value.
5703         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
5704         and REGISTER_PREFIX.
5705
5706         * cppinit.c (VERS, ULP, C, X): Kill.
5707         (builtin_array): Remove entries for __VERSION__,
5708         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
5709         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
5710         a constant.
5711         (init_builtins): Kill off a bunch of now-dead code.
5712         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
5713         -fno-leading-underscore.
5714         (cpp_handle_option): Remove code to set user_label_prefix.
5715         (cpp_post_options): Likewise.
5716
5717         * cpplib.h (struct cpp_options): Remove user_label_prefix.
5718         (stdc_0_in_system_headers): New.
5719         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
5720         stdc_0_in_system_headers) too to decide the value of __STDC__.
5721
5722         * tradcpp.c (user_label_prefix): Kill.
5723         (main): Remove code handling -f(no-)leading-underscore.
5724         (initialize_builtins): Don't define __REGISTER_PREFIX__
5725         or __USER_LABEL_PREFIX__.
5726         (install_value): Wrap compound statement in dummy loop so the
5727         macro works properly in an if statement.
5728
5729
5730 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
5731
5732         * loop.h (struct loop_info): Add member has_prefetch.
5733         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
5734         (prescan_loop): Initialize has_prefetch.
5735         (struct prefetch_info): Change prefetch_in_loop and
5736         prefetch_before_loop from bit fields to ints.
5737         (emit_prefetch_instructions): Several small fixes.
5738         (check_dbra_loop): Don't reverse loop that uses prefetch.
5739
5740 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5741
5742         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
5743         * configure.in: Likewise.
5744         * fixinc/check.tpl: Likewise.
5745         * fixinc/fixinc.dgux: Likewise.
5746         * fixinc/fixinc.svr4: Likewise.
5747         * fixinc/fixinc.winnt: Likewise.
5748         * fixinc/fixincl.sh: Likewise.
5749         * fixproto: Likewise.
5750         * configure: Regenerate.
5751
5752 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5753
5754         Basic block renumbering removal:
5755         * basic_block.h (struct basic_block_def): Renamed index to sindex,
5756         added prev_bb and next_bb fields.
5757         (n_basic_blocks): Renamed to num_basic_blocks.
5758         (last_basic_block): New, index of last basic block.
5759         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5760         traversing basic block chain.
5761         (BLOCK_NUM): index -> sindex.
5762         (create_basic_block_structure, create_basic_block): Declaration changed.
5763         (debug_num2bb): Declare.
5764         (expunge_block_nocompact): Declaration removed.
5765         (link_block, unlink_block, compact_blocks): Declare.
5766         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
5767         * cfg.c (entry_exit_blocks): Initialize new fields.
5768         (clear_edges, alloc_block, expunge_block, cached_make_edge,
5769         redirect_edge_pred, dump_flow_info, dump_edge_info,
5770         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
5771         free_aux_for_edges): Modified.
5772         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
5773         (expunge_block_nocompact): Removed.
5774         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
5775         find_unreachable_blocks, create_edge_list, print_edge_list,
5776         verify_edge_list, flow_edge_list_print, remove_fake_successors,
5777         remove_fake_edges, flow_reverse_top_sort_order_compute,
5778         flow_depth_first_order_compute, flow_preorder_transversal_compute,
5779         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
5780         flow_dfs_compute_reverse_execute): Modified.
5781         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
5782         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
5783         Modified.
5784         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5785         merge_blocks_move_predecessor_nojumps,
5786         merge_blocks_move_successor_nojumps, merge_blocks,
5787         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
5788         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
5789         * cfglayout.c (skip_insns_after_block, label_for_bb,
5790         record_effective_endpoints, scope_to_insns_finalize,
5791         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
5792         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
5793         cfg_layout_duplicate_bb): Modified.
5794         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
5795         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5796         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
5797         flow_loops_find, flow_loop_outside_edge_p): Modified.
5798         * cfgrtl.c (create_basic_block_structure, create_basic_block,
5799         flow_delete_block, compute_bb_for_insn, split_block,
5800         try_redirect_by_replacing_jump, redirect_edge_and_branch,
5801         force_nonfallthru_and_redirect, tidy_fallthru_edge,
5802         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
5803         commit_edge_insertions, commit_edge_insertions_watch_calls,
5804         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5805         purge_all_dead_edges): Modified.
5806         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
5807         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5808         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
5809         Modified.
5810         * conflict.c (conflict_graph_compute): Modified.
5811         * df.c (FOR_ALL_BBS): Removed.
5812         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5813         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
5814         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
5815         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
5816         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5817         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
5818         * final.c (compute_alignments, final_scan_insn): Modified.
5819         * flow.c (verify_local_live_at_start, update_life_info,
5820         update_life_info_in_dirty_blocks, free_basic_block_vars,
5821         delete_noop_moves, calculate_global_regs_live,
5822         initialize_uninitialized_subregs, allocate_bb_life_data,
5823         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
5824         mark_used_reg, count_or_remove_death_notes): Modified.
5825         * function.c (thread_prologue_and_epilogue_insns): Modified.
5826         * gcse.c (struct null_pointer_info): Change typo of current_block
5827         to basic_block.
5828         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
5829         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
5830         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
5831         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
5832         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
5833         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
5834         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
5835         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
5836         pre_delete, one_pre_gcse_pass, compute_transpout,
5837         invalidate_nonnull_info, delete_null_pointer_checks_1,
5838         free_code_hoist_mem, compute_code_hoist_vbeinout,
5839         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5840         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
5841         compute_store_table, build_store_vectors, insert_insn_start_bb,
5842         insert_store, replace_store_insn, free_store_memory, store_motion):
5843         Modified.
5844         * global.c (global_alloc, global_conflicts, mark_elimination,
5845         build_insn_chain): Modified.
5846         * graph.c (print_rtl_graph_with_bb): Modified.
5847         * haifa-sched.c (sched_init): Modified.
5848         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5849         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
5850         if_convert): Modified.
5851         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
5852         compute_insert_delete, pre_edge_lcm, compute_available,
5853         compute_farthest, compute_nearerout, compute_rev_insert_delete,
5854         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
5855         Modified.
5856         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
5857         * loop.c (loop_dump_aux): Modified.
5858         * predict.c (combine_predictions_for_insn, estimate_probability,
5859         last_basic_block_p, process_note_prediction, process_note_predictions,
5860         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
5861         expensive_function_p, estimate_bb_frequencies,
5862         compute_function_frequency): Modified.
5863         * print-rtl.c (print_rtx): Modified.
5864         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
5865         get_exec_counts, compute_branch_probabilities, compute_checksum,
5866         branch_prob, find_spanning_tree): Modified.
5867         * recog.c (split_all_insns, peephole2_optimize): Modified.
5868         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
5869         convert_regs_1, convert_regs_2, convert_regs): Modified.
5870         * regclass.c (scan_one_insn, regclass): Modified.
5871         * regmove.c (mark_flags_life_zones, regmove_optimize,
5872         combine_stack_adjustments): Modified.
5873         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
5874         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
5875         * reorg.c (dbr_schedule): Modified.
5876         * resource.c (find_basic_block, init_resource_info): Modified.
5877         * sbitmap.c (sbitmap_intersection_of_succs,
5878         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
5879         sbitmap_union_of_preds): Modified.
5880         * sched-deps.c (init_dependency_caches): Modified.
5881         * sched-ebb.c (schedule_ebbs): Modified.
5882         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
5883         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
5884         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
5885         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
5886         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
5887         ssa_const_prop): Modified.
5888         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
5889         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
5890         * ssa.c (remove_phi_alternative, find_evaluations,
5891         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
5892         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
5893         make_regs_equivalent_over_bad_edges,
5894         make_equivalent_phi_alternatives_equival,
5895         compute_conservative_reg_partition,
5896         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
5897         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
5898         Modified.
5899
5900 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
5901
5902         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
5903
5904 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
5905
5906         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
5907         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5908         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
5909         calling CONSTANT_POOL_ADDRESS_P.
5910         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
5911         to decide whether to define __arm__ or __thumb.
5912         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
5913         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5914
5915 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5916
5917         * config/arc/arc.h (CPP_PREDEFINES): Remove.
5918         (CPP_SPEC): Update.
5919         (TARGET_CPU_CPP_BUILTINS): New.
5920
5921 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5922
5923         * cpphash.h (cpp_macro): Move here, and make expansion a union.
5924         * cppmacro.c (cpp_macro): Remove.
5925         (enter_macro_context, replace_args, warn_of_redefinition,
5926         _cpp_create_definition, cpp_macro_definition): Update.
5927
5928 2002-05-16  Jason Merrill  <jason@redhat.com>
5929
5930         * config/mips/mips.c (mips_output_external): Don't do sdata
5931         optimization for a variable with DECL_COMDAT set.
5932
5933 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5934
5935         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
5936         Cleanups for accepting modifiers on pointers.
5937         Fix predicate typos.
5938         Allow long pointers as well as int pointers.
5939
5940 2002-05-15  Richard Henderson  <rth@redhat.com>
5941
5942         * varasm.c (merge_weak): Remove special case for extern and common.
5943
5944 2002-05-15  Matt Hiller  <hiller@redhat.com>
5945
5946         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
5947         XFAILing.
5948         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
5949         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
5950         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
5951         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
5952         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
5953         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
5954
5955 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5956
5957         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
5958
5959 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
5960
5961         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
5962         ("altivec_mfvscr"): Read from VSCR.
5963
5964         Add vscr sets for the following insns: altivec_vctuxs,
5965         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
5966         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
5967         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
5968         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
5969         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
5970         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
5971         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
5972         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
5973         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
5974         altivec_vsum2sws, altivec_vsumsws.
5975
5976         * config/rs6000/rs6000.h: Add VSCR fixed register.
5977         (CALL_REALLY_USED_REGISTERS): Add vscr.
5978         (CALL_USED_REGISTERS): Same.
5979         (FIXED_REGISTERS): Same.
5980         (REG_ALLOC_ORDER): Same.
5981         (reg_class): Add VSCR_REGS.
5982         (REG_CLASS_NAMES): Same.
5983         (REG_CLASS_CONTENTS): Same.
5984         (VSCR_REGNO): New.
5985         (REGISTER_NAMES): Add vscr.
5986         (DEBUG_REGISTER_NAMES): Same.
5987         (ADDITIONAL_REGISTER_NAMES): Same.
5988         (FIRST_PSEUDO_REGISTER): Increment.
5989         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5990
5991 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
5992
5993         * fold-const.c (fold): Fix a typo.
5994
5995 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
5996
5997         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
5998         comparison against the highest or lowest integer value before
5999         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
6000         transformation and that of an unsigned comparison against 0
6001         right after.
6002
6003 2002-05-15  Richard Henderson  <rth@redhat.com>
6004
6005         * varasm.c (merge_weak): Error for any weakening after definition.
6006         Adjust weakening after use warning to catch more cases.
6007         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
6008         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
6009
6010 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
6011
6012         * invoke.texi (-malign-double): Re-add lost warning.
6013
6014         * i386-protos.h (x86_output_mi_thunk): Declare.
6015         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
6016         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
6017
6018         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
6019         when flag_asynchronous_unwind_tables is set.
6020
6021         * flags.h (flag_reorder_functions): Declare.
6022         * function.c (prepare_function_start): Initialize frequnecy.
6023         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
6024         * Makefile.in (predict.o): Add dependency on target.h and params.h
6025         * defaults.h (HOT_TEXT_SECTION_NAME,
6026         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
6027         * predict.c (choose_function_section): New function.
6028         (estimate_bb_frequencies): Use it.
6029         * toplev.c (flag_reorder_functions): New global variable.
6030         (lang_independent_options): New.
6031         (parse_options_and_default_flags): Set.
6032         * varasm.c (assemble_start_function): Bypass functdion alignment
6033         for never executed functions.
6034         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
6035         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
6036         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6037         Document.
6038
6039         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
6040
6041         * predict.c: Inlude profile.h
6042         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
6043         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
6044         Use the information about maximal counter in the program.
6045
6046         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
6047
6048         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
6049         probably_never_executed_bb_p): New functions.
6050         * cfgcleanup.c (outgoing_edges_match): Use them.
6051         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
6052         (maybe_hot_bb_p, probably_cold_bb_p,
6053         probably_never_executed_bb_p): New functions.
6054
6055         * function.h (function): Add new field function_frequency.
6056         * predict.c (compute_function_frequency): New function.
6057         (estimate_probability): Call it.
6058
6059 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
6060
6061         PR optimization/5172, optimization/5200
6062         * gcse.c (gcse_main): Disable store_motion.
6063
6064 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
6065
6066         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
6067         (c_common_nodes_and_builtins): Use it.
6068         (builtin_define_with_value): New function.
6069         (cb_register_builtins): Define __SIZE_TYPE__,
6070         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
6071         using builtin_define_with_value.  Use consistent notation when
6072         defining __GXX_WEAK__.
6073         (WCHAR_TYPE_SIZE): Don't redefine.
6074         (combine_strings): Don't use WCHAR_TYPE_SIZE.
6075
6076         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
6077         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
6078         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
6079         * tradcpp.c (initialize_builtins): Likewise.
6080         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
6081
6082         * c-lex.h (builtin_define_with_value): Prototype.
6083         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
6084         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
6085         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
6086
6087         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
6088         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
6089         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
6090         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
6091         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
6092         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
6093         config/sparc/sol2-bi.h, config/sparc/sparc.h:
6094         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
6095         to __SIZE_TYPE__ etc from all spec strings. When this makes
6096         extra specs empty, delete them.
6097
6098 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6099
6100         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
6101         for PA8000 or generating dwarf2 call frame information.
6102         (output_call): Remove DO_FRAME_NOTES check from return pointer
6103         optimization.
6104         (following_call): Return 0 when scheduling for PA8000 or generating
6105         dwarf2 call frame information.  Revise comment.
6106
6107 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6108
6109 config/alpha:
6110         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
6111         and __IEEE_FP_INEXACT as appropriate.
6112         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
6113         (CPP_SPEC): Remove ieee defines.
6114         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
6115
6116 2002-05-14  Richard Henderson  <rth@redhat.com>
6117
6118         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
6119         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
6120
6121 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6122
6123         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
6124         (CPP_SPEC): Update.
6125         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
6126         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
6127         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
6128         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
6129         (EXTRA_SPECS): Update.
6130         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
6131         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
6132         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
6133         define TARGET_OS_CPP_BUILTINS if necessary.
6134
6135 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6136
6137         * gcc.c (cpp_options): Must pass -m* and -f* options
6138         to the front end even when only preprocessing.
6139         (cc1_options): Remove redundant -lang-c.
6140         * tradcpp.c (main): Ignore -m options.
6141 objc:
6142         * lang-specs.h: Similarly.
6143
6144 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
6145
6146         * genautomata.c (transform_3): Add code for transformation
6147         `(A,B,...)+C -> A+C,B,...'.
6148
6149 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
6150
6151         * final.c (end_final): Do not output profile_arcs constructor, when
6152         no functions are instrumented.
6153
6154 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
6155
6156         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
6157
6158 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6159
6160         * doc/install.texi: Remove special markup originally required for
6161         HTML generation with texi2html.
6162
6163 2002-05-14  Andreas Schwab  <schwab@suse.de>
6164
6165         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
6166         SELECT_SECTION.
6167         (UNIQUE_SECTION): Define to get small data correctly.
6168
6169         * varasm.c (resolve_unique_section): Add third parameter
6170         flag_function_or_data_sections and use it instead of
6171         flag_function_sections.
6172         (assemble_start_function): Pass flag_function_sections.
6173         (asm_emit_uninitialised): Pass flag_data_sections.
6174         (assemble_variable): Likewise.
6175
6176 2002-05-14  Richard Henderson  <rth@redhat.com>
6177
6178         * config/i386/i386.md: Use define_constants for unspec numbers.
6179         * config/i386/i386.c: Likewise.
6180
6181 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6182
6183         * doc/contrib.texi: Update my entry.
6184
6185 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
6186
6187         * fixinc/inclhack.def (winidss_valist): Limit applicability.
6188         * fixinc/fixincl.x: Regenerated.
6189         * fixinc/tests/base/math.h: Update.
6190         * fixinc/tests/base/testing.h: Likewise.
6191
6192 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
6193
6194         * genattr.c (gen_attr): Don't emit a comma after the last
6195         enumerator.
6196
6197 2002-05-13  Richard Henderson  <rth@redhat.com>
6198
6199         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
6200         by non-local gotos.
6201         * recog.c (peephole2_optimize): Likewise.
6202
6203 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
6204
6205         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
6206         input to O_BINARY.
6207
6208 2002-05-13  Jeffrey A Law  (law@redhat.com)
6209
6210         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
6211         Update prototype and callers.
6212         (propagate_one_insn): Stack pointer adjustments kill MEMs on
6213         the mem_set_list which reference the stack pointer, as do
6214         calls to constant functions as they may clobber outgoing
6215         argument space.
6216
6217         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
6218
6219         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
6220         (ia32_multipass_dfa_lookahead): New function.
6221
6222 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6223
6224         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
6225         (translate_options): Remove 'V'.
6226         (process_command): Similarly.
6227 doc:
6228         * invoke.texi: Remove documentation of 'V'.
6229
6230 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
6231
6232         * config/s390/linux.h: Revert 2002-04-22 changes.
6233
6234 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
6235
6236         * config/fr30/fr30.md: Only allow splits of immediate loads
6237         if the destination is a register.
6238
6239 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6240
6241         * Makefile.in (c-common.o, cppinit.o): Update.
6242         * c-common.c: Include except.h.
6243         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
6244         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
6245         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
6246         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
6247         CPP_PREDEFINES): Handle here.
6248 config:
6249         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
6250         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
6251         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
6252         TARGET_OS_CPP_BUILTINS.
6253         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
6254         (CPP_SPEC, EXTRA_SPECS): Update.
6255         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
6256         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
6257         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
6258         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
6259         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
6260 doc:
6261         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
6262         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
6263
6264 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
6265
6266         * emit-rtl.c (global_rtl): Update comment.
6267         (const_double_htab, const_double_htab_hash,
6268         const_double_htab_hash, lookup_const_double): New.
6269         (const_int_htab_hash, const_int_htab_eq): Remove const
6270         qualifiers, which cause tons of warnings with RTL checking on.
6271         (gen_rtx_CONST_DOUBLE): Deleted.
6272         (const_double_from_real_value): New function - bears some
6273         resemblance to the former immed_real_const_1.
6274         (immed_double_const): Moved here from varasm.c and
6275         simplified.
6276         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
6277         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
6278         (gen_rtx): Use immed_double_const.
6279         (init_emit_once): Initialize the const_double_htab.  Use
6280         REAL_VALUE_FROM_INT where possible.  Can now use
6281         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
6282         * varasm.c (struct varasm_status): Remove x_const_double_chain.
6283         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
6284         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
6285         (init_varasm_status, mark_varasm_status): Don't touch
6286         x_const_double_chain.
6287
6288         * output.h: Delete prototype for clear_const_double_mem.
6289         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
6290         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
6291         const_double_from_real_value, not immed_real_const_1, and use
6292         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
6293         CONST_DOUBLE_ATOF.
6294         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
6295         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
6296         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
6297         (gen_rtx_REG): Second arg is unsigned.
6298
6299         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
6300         (excluded_rtx): New, return true for CONST_DOUBLE.
6301         (genmacro): Write nothing for excluded codes.
6302         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
6303         * expr.c (expand_expr): Likewise.
6304         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
6305         CONST_DOUBLE_CHAIN.
6306         * toplev.c (rest_of_compilation): Don't call
6307         clear_const_double_mem.
6308
6309         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
6310         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
6311         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
6312         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
6313         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
6314         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
6315         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
6316         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
6317
6318 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6319
6320         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
6321
6322 2002-05-12  Tom Tromey  <tromey@redhat.com>
6323
6324         * tree.h (copy_node): Don't mention TREE_PERMANENT.
6325
6326 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
6327
6328         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
6329         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
6330         * gensupport.h: Prototype new routines.
6331         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
6332         use of printf.
6333         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
6334         (next_comma_elt): Use scan_comma_elt.
6335
6336         * config/i386/i386.md: Use new attribute notation to break up
6337         long lines in define_attr forms.
6338
6339 2002-05-12  Richard Henderson  <rth@redhat.com>
6340
6341         * expr.c (compress_float_constant): New.
6342         (emit_move_insn): Use it.
6343         (float_extend_from_mem): New.
6344         (init_expr_once): Initialize it.
6345         * real.c (exact_real_truncate): New.
6346
6347         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
6348         dropped into memory; penalize for size.
6349         (RTX_COSTS): FLOAT_EXTEND is free.
6350         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
6351         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
6352
6353 2002-05-12  Richard Henderson  <rth@redhat.com>
6354
6355         * profile.h (profile_info): Add missing extern to declaration.
6356         * profile.c (profile_info): Define it.
6357
6358 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6359
6360         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
6361         used for DImode and TImode.
6362
6363 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6364
6365         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
6366         fake a newline.
6367
6368 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
6369
6370         * config/rs6000/rs6000.c (rs6000_default_long_calls,
6371         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
6372         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
6373         (rs6000_override_options): Handle -m(no-)longcall.
6374         (init_cumulative_args, output_mi_thunk): Check for both
6375         longcall and shortcall attributes on the function.
6376         (rs6000_attribute_table): Add "shortcall".
6377         (rs6000_handle_longcall_attribute): Update comment.
6378         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
6379         altivec_expand_ternop_builtin): Add default clauses to switches
6380         to silence warnings.
6381
6382         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
6383         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
6384         (TARGET_OPTIONS): Add longcall and no-longcall.
6385
6386         * config/rs6000/rs6000.md (call_nonlocal_sysv,
6387         call_value_nonlocal_sysv): Split by alternatives.  One pair
6388         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
6389         the call cookie.  The other pair accepts only LR/CTR and has
6390         no restriction.
6391
6392         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
6393         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
6394         tmake_file.
6395         * config/rs6000/rs6000-c.c: New file.
6396         * config/rs6000/t-rs6000-c-rule: New file.
6397         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
6398         Prototype rs6000_pragma_longcall.
6399
6400         * doc/extend.texi: Document shortcall attribute.
6401         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
6402
6403 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6404
6405         * reorg.c (dbr_schedule): Remove unnecessary test.
6406
6407 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
6408
6409         * i386.md (testsi to testqi spliters): New.
6410
6411         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
6412
6413         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
6414
6415         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
6416
6417         * basic-block.h: New flag EDGE_CAN_FALLTHRU
6418         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
6419         that can be made fallthru.
6420
6421         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
6422
6423         * cfglayout.c (cleanup_unconditional_jumps): New static function.
6424         (cfg_layout_initialize): Use it.
6425
6426 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6427
6428         * config/avr/avr.c (avr_mcu_types): Update supported devices.
6429         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6430         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6431
6432 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
6433
6434         * dbxout.c: Fix formatting.
6435         * dependence.c: Likewise.
6436         * df.c: Likewise.
6437         * diagnostic.c: Likewise.
6438         * doloop.c: Likewise.
6439         * dominance.c: Likewise.
6440         * doschk.c: Likewise.
6441         * dwarf2asm.c: Likewise.
6442         * dwarf2out.c: Likewise.
6443         * dwarfout.c: Likewise.
6444
6445 2002-05-10  Richard Henderson  <rth@redhat.com>
6446
6447         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
6448         Convert integers constants as needed.  Replace "nwords" field with
6449         "sizeof_bb".
6450         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
6451         * function.h: Fix typo in comment.
6452         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
6453
6454 2002-05-10  Roger Sayle  <roger@eyesopen.com>
6455
6456         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
6457         into the equivalent (signed char)c > 0.
6458
6459 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
6460
6461         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
6462         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
6463         (struct prefetch_info): Fix spelling of member bytes_accessed.
6464         (emit_prefetch_instructions): Make dump messages more regular;
6465         restructure code to add more dump messages; use new macros for
6466         heuristics. (There are no code generation changes in any of this).
6467
6468 2002-05-10  David S. Miller  <davem@redhat.com>
6469
6470         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
6471         (struct rtx_def): Update unchanging flag comment.
6472         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
6473         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
6474         to be handled to INSN too.
6475         (dbr_schedule): Likewise.
6476         * resource.c (next_insn_no_annul): Likewise.
6477
6478         * cse.c (rtx_cost): Remove multiplication by power of 2 special
6479         casing.
6480
6481 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6482
6483         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
6484         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
6485         (possibly) work around broken /bin/sh.
6486
6487 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6488
6489         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
6490         . as N64/N32 libgcc_s.so subdirs.
6491
6492 2002-05-10  David S. Miller  <davem@redhat.com>
6493
6494         * config/sparc/sparc.md: Use define_constants for unspec numbers.
6495
6496         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
6497         more accurately.
6498         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
6499         comment.
6500         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
6501         * doc/rtl.texi: Document these macros more accurately.
6502         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
6503         JUMP_INSNs and CALL_INSNs.
6504         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
6505         or INSN_FROM_TARGET_P if the code is appropriate.
6506
6507 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6508
6509         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
6510         before using SYMBOL_REF_FLAG (addr).
6511
6512         * config/avr/avr-protos.h (avr_io_address_p): Declare.
6513         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
6514         Make non-static.  Update all callers.
6515         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
6516         New insns to clear/set/test a single bit in I/O address space.
6517
6518 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6519
6520         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
6521
6522 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6523
6524         * Makefile.in: Update.
6525         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
6526         builtin_define_std): New.
6527         (c_common_init): Register CPP builtins callback.
6528         * c-common.h (flag_iso, flag_undef): New.
6529         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
6530         * c-lex.c: Don't include target.h.
6531         (cb_register_builtins): Move to c-common.c.
6532         (init_c_lex): Don't register hook here.
6533         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
6534         (cpp_define, cpp_assert): Remove.
6535         * gcc.c (cc1_options): Pass -undef to front end.
6536         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
6537         (TARGET_INITIALIZER): Update.
6538         * target.h (struct cpp_reader): Don't predeclare.
6539         (struct gcc_target): Remove cpp builtin hook.
6540         * tree.c (default_register_cpp_builtins): Remove.
6541 doc:
6542         * tm.texi: Update.
6543
6544 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6545
6546         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
6547
6548 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6549
6550         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
6551         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
6552
6553 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
6554
6555         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
6556         * config/sparc/libgcc-sparc-glibc.ver: New file.
6557         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
6558         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
6559
6560 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
6561
6562         PR target/6429
6563         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
6564         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
6565         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
6566         base multilibs.
6567         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
6568         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
6569         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6570         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6571
6572 2002-05-09  Richard Henderson  <rth@redhat.com>
6573
6574         * config/ia64/ia64.md: Use define_constants for unspec numbers.
6575         * config/ia64/ia64.c: Likewise.
6576
6577 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
6578
6579         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
6580         (save_restore_insns): Likewise.
6581         (mips_expand_prologue, mips_expand_epilogue): Update callers.
6582         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
6583
6584 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
6585
6586         * athlon.md, k6.md, pentium.md, ppro.md): New files.
6587         * i386.md: Move scheduling information into new files.
6588
6589         * i386.md (type attribute): Add "rotate" for rotate insns.
6590         (rotate insns): Set type to "rotate".
6591         (various attributes and function units): Treat rotate like shift.
6592         (pent_pair attribute): Only rotates by one bit position are
6593         pairable.
6594         (sbb insns): Explicitly set pent_pair attribute on a couple
6595         that were missing it.
6596
6597 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
6598
6599         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
6600         make sure that buffer starts on odd word address.
6601         (sh_va_arg): Skip odd fp registers when reading a double precision
6602         value.
6603
6604 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6605
6606         * tree.h (preserve_data, object_permanent_p, type_precision):
6607         Remove.
6608
6609 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6610
6611         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
6612         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
6613 doc:
6614         * cpp.texi: Update for removal of obsolete features.
6615
6616 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
6617                           Jeffrey A Law  (law@redhat.com)
6618
6619         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
6620         the DFA interface for Pentium processors.
6621         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
6622         (attr_pent_pair, ix86_pent_find_pair): Remove.
6623         (ix86_sched_reorder_pentium): Remove.
6624         (ix86_sched_reorder): Remove reordering for Pentium.
6625         * i386.md (Pentium scheduling): Rewrite using DFA description.
6626
6627 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
6628
6629         * cfganal.c (can_fallthru): Fix fast path.
6630         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
6631         with edges to the next block.
6632
6633 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
6634                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
6635
6636         * final.c (end_final): Use C trees to output data structures for profiling.
6637
6638         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
6639         (profile.o): New dependency profile.h
6640         (final.o): New dependency profile.h
6641         * profile.h: New file. New global structure profile_info.
6642         * final.h (count_edges_instrumented_now): Declare.
6643         (current_function_cfg_checksum): Declare.
6644         (function_list): New structure.
6645         (functions_head, functions_tail): New static variables.
6646         (end_final): Emits more data, removed some -ax stuff.
6647         (final): Stores function names and chcksums.
6648         * gcov-io.h (__write_gcov_string): New function.
6649         (__read_gcov_string): New function.
6650         * gcov.c (read_profile): New function.
6651         (create_program_flow_graph): Uses read_profile instead of reading
6652         da_file.
6653         (read_files): Removed da_file checking, it's done by read_profile now.
6654         * libgcc2.c (bb_function_info): New structure.
6655         (bb): New field in structure, removed some -ax stuff.
6656         (__bb_exit_func): Changed structure of da_file.
6657         * profile.c (count_edges_instrumented_now): New global variable.
6658         (current_function_cfg_checksum): New global variable.
6659         (max_counter_in_program): New global variable.
6660         (get_exec_counts): New function.
6661         (compute_checksum): New function.
6662         (instrument_edges): Sets count_edges_instrumented_now.
6663         (compute_branch_probabilities): Uses get_exec_counts instead of
6664         reading da_file.
6665         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
6666         (init_branch_prob): Removed da_file checking, done in get_exec_counts
6667         now.
6668         (end_branch_prob): Removed da_file checking, done in get_exec_counts
6669         now.
6670         * gcov.texi: Updated information about gcov file format.
6671
6672 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
6673
6674         * sbitmap.c: Fix formatting.
6675         * scan.c: Likewise.
6676         * scan-decls.c: Likewise.
6677         * sched-deps.c: Likewise.
6678         * sched-ebb.c: Likewise.
6679         * sched-rgn.c: Likewise.
6680         * sched-vis.c: Likewise.
6681         * sdbout.c: Likewise.
6682         * sibcall.c: Likewise.
6683         * simplify-rtx.c: Likewise.
6684         * ssa.c: Likewise.
6685         * ssa-ccp.c: Likewise.
6686         * ssa-dce.c: Likewise.
6687         * stmt.c: Likewise.
6688         * stor-layout.c: Likewise.
6689         * stringpool.c: Likewise.
6690
6691 2002-05-09  David S. Miller  <davem@redhat.com>
6692
6693         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
6694
6695 2002-05-07  David S. Miller  <davem@redhat.com>
6696
6697         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
6698         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
6699         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
6700         library implementation clobbers the output before the inputs
6701         are fully consumed, use stack temporary for the output.
6702
6703 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
6704
6705         * config/netbsd.h (CPP_SPEC): Remove.
6706         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
6707         * config/i386/netbsd.h (CPP_SPEC): Define.
6708         * config/ns32k/netbsd.h (CPP_SPEC): Define.
6709         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
6710         * config/sparc/netbsd.h (CPP_SPEC): Define.
6711         * config/vax/netbsd.h (CPP_SPEC): Define.
6712
6713 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
6714
6715         * read-rtl.c: Fix formatting.
6716         * real.c: Likewise.
6717         * recog.c: Likewise.
6718         * regclass.c: Likewise.
6719         * regmove.c: Likewise.
6720         * reg-stack.c: Likewise.
6721         * reload1.c: Likewise.
6722         * reload.c: Likewise.
6723         * resource.c: Likewise.
6724         * rtlanal.c: Likewise.
6725         * rtl.c: Likewise.
6726         * rtl-error.c: Likewise.
6727
6728 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6729
6730         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
6731         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
6732
6733 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
6734
6735         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
6736         use __SSE2__ macro instead.
6737         * config/i386/xmmintrin.h: Likewise.
6738
6739 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
6740
6741         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
6742         and use it in all invocations of these macros.  Clean up comments.
6743         * rtl.c (rtl_check_failed_flag): Add an argument for the name
6744         of the flag access macro whose check failed.
6745         * doc/rtl.texi (Flags): Document additional flag uses.
6746
6747 2002-05-08  Robert Spier <rspier@pobox.com>
6748             Neil Booth  <neil@daikokuya.demon.co.uk>
6749
6750         PR preprocessor/6521
6751         * cppfiles.c (handle_missing_header): Don't do anything
6752         different for <> includes.
6753 doc:
6754         * cppopts.texi: Update documentation for -MG.
6755
6756 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6757
6758         * cpplex.c (cpp_interpret_charconst): Truncate as well as
6759         sign-extend.
6760 doc:
6761         * cpp.texi: Clarify multichar charconst valuation.
6762
6763 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
6764
6765         * doc/invoke.texi: Document -mwindiss option.
6766
6767 2002-05-08  Jason Merrill  <jason@redhat.com>
6768
6769         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
6770
6771         * dwarf2out.c (gen_type_die): Abort on broken recursion.
6772
6773         PR c++/6381
6774         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
6775         REAL_CST.
6776
6777 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
6778
6779         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
6780         little-endian multilibs to override arm/thumb multilibs.
6781         Do not build hardware floating point multilibs, nor apcs-26
6782         multilibs for the Thumb.
6783
6784 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
6785
6786         PR c/6569.
6787         * varasm.c (mark_weak): New function.
6788         (merge_weak): Use it.  Do not call declare_weak.
6789         (declare_weak): Use merge_weak.
6790
6791 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
6792
6793         * cse.c (dead_libcall_p): Update counts.
6794         (delete_trivially_dead_insns): Update call of dead_libcall_p.
6795
6796 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
6797
6798         * cfglayout.c (function_tail_eff_head): Rename to ...
6799         (function_footer): ... this one.
6800         (unlink_insn_chain): New functions.
6801         (label_for_bb): Only call block_label and emit debug message.
6802         (record_effective_endpoints): Actually unlink the headers and footers.
6803         (fixup_reorder_cahin): Re-insert the unlinked sequences.
6804         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
6805         * cfglayout.h (struct reorder_block_def): New fields footer/header;
6806         remove eff_head/eff_end.
6807         * rtl.h (set_first_insn): Declare.
6808         * emit-rtl.c (set_first_insn): New function.
6809
6810         * cfglayout.c (fixup_reorder_chain): Dump duplicated
6811         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6812         cfg_layout_duplicate_bb): New global function.
6813         (duplicate_insn_chain): New static function.
6814         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6815         cfg_layout_duplicate_bb): Declare.
6816         (struct reorder_block_def): Add "original" field.
6817         * emit-rtl.c (emit_copy_of_insn_after): New function.
6818         * rtl.h (emit_copy_of_insn_after): Declare.
6819
6820         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
6821         (fixup_reorder_chain): properly handle edges to exit block.
6822
6823 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6824                                Jan Hubicka  <jh@suse.cz>
6825
6826         * basic-block.h (note_prediction_to_br_prob): declare.
6827         * c-semantics.c: Inlucde predit.h
6828         (expand_stmt): predict GOTO_STMT as not taken.
6829         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
6830         (cleanup_cfg): Do not free tail_recursion_list.
6831         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
6832         (flow_delete_block): Kill predictions past end of basic block.
6833         * output.h (delete_unreachable_blocks): Declare.
6834         * predict.c (predicted_by_p, process_note_predictions,
6835         process_note_prediction, last_block_p): New function.
6836         (estimate_probability): Bypass loop on PRED_CONTINUE;
6837         do not handle noreturn heuristics; kill PRED_RETURN; add
6838         PRED_EARLY_RETURN.
6839         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
6840         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
6841         * predict.h (IS_TAKEN): New constant.
6842         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
6843         * rtl.c (NOTE_INSN_PREDICTION): New.
6844         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
6845         New macro.
6846         (insn_note): add NOTE_INSN_PREDICTION.
6847         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
6848         CFG; free tail_recursion_label_list.
6849         * stmt.c: Include predict.h;
6850         (return_prediction): New.
6851         (expand_value_return): Use it.
6852         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
6853
6854 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
6855
6856         * config/mips/mips.md: Name the unspecs with define_constant.
6857         (*HILO_delay): Rename to 'hilo_delay' (no star).
6858         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
6859         (reload_outdi, reload_outsi): Likewise.
6860
6861 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
6862
6863         * toplev.c: Fix formatting.
6864
6865 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
6866
6867         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
6868         * configure.in (ac_rtlflag_checking): New.
6869         * doc/install.texi (--enable-checking): Document RTL flag checking.
6870
6871 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6872
6873         * c-common.c (c_common_init): Set options->unsigned_wchar.
6874         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
6875         group target dependencies.
6876         (init_builtins, cpp_handle_option): Update.
6877         * cpplex.c (cpp_interpret_charconst): Update.
6878         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
6879         signed_char to unsigned_char, group target dependencies.
6880         * defaults.h (WCHAR_UNSIGNED): Remove.
6881         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
6882 config:
6883         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
6884         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
6885         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
6886         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
6887         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
6888 doc:
6889         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
6890
6891 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
6892
6893         * fixinc/inclhack.def (windiss_math1): New fix.
6894         (windiss_math2): Likewise.
6895         (windiss_valist): Likewise.
6896         * fixinc/fixincl.x: Regenerated.
6897
6898 2002-05-07  Andreas Jaeger  <aj@suse.de>
6899
6900         * genautomata.c (output_internal_min_issue_delay_func): Add
6901         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
6902         (output_internal_trans_func): Likewise.
6903
6904 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
6905
6906         * pa.c (hppa_profile_hook): Use force_reg to get the address
6907         of the profile hook into an appropriate pseudo register.
6908
6909 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
6910
6911         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
6912         (LINK_START_SPEC): Handle it.
6913         (LINK_OS_SPEC): Likewise.
6914         (CPP_SPEC): Likewise.
6915         (STARTFILE_SPEC): Likewise.
6916         (LIB_SPEC): Likewise.
6917         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
6918         all platforms.
6919         (CRTSAVRES_DEFAULT_SPEC): New macro.
6920         (LIB_WINDISS_SPEC): New macro.
6921         (CPP_OS_WINDISS_SPEC): Likewise.
6922         (STARTFILE_WINDISS_SPEC): Likewise.
6923         (ENDFILE_WINDISS_SPEC): Likewise.
6924         (LINK_START_WINDISS_SPEC): Likewise.
6925         (LINK_OS_WINDISS_SPEC): Likewise.
6926         * config/rs6000/windiss.h: New file.
6927
6928 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
6929
6930         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
6931
6932 2002-05-06  David S. Miller  <davem@redhat.com>
6933
6934         * config/sparc/sparc.md (shift insns): Do not mask off
6935         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
6936         take care of it.
6937
6938 2002-05-06  Richard Henderson  <rth@redhat.com>
6939
6940         PR c++/6212
6941         * expr.c (highest_pow2_factor_for_type): New.
6942         (expand_assignment): Use it.
6943
6944 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
6945
6946         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
6947         unspec_volatile.
6948         ("altivec_mfvscr"): Same.
6949
6950 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
6951
6952         * rtl.h (struct rtx_def): Update comments.
6953         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
6954         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
6955         RTL_FLAG_CHECK macros with list of expected RTL codes.
6956         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
6957         (rtl_check_failed_flag): New.
6958         * reload1.c (reload): Use REG macro before changing rtx to MEM.
6959         (reload_cse_noop_set_p): Check rtx code before using access macro.
6960         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
6961         before using access macro.
6962
6963 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
6964
6965         * doc/rtl.texi (Flags): Update to reflect current usage.
6966
6967 2002-05-06  Roger Sayle  <roger@eyesopen.com>
6968
6969         PR opt/3995
6970         * fold-const.c (sign_bit_p): New function.
6971         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
6972         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
6973         Reapply fold when converting (A & C) == C into (A & C) != 0.
6974         (fold_binary_op_with_conditional_arg): Fix typo in comment.
6975
6976 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6977
6978         * c-common.c (warn_multichar): New.
6979         (c_common_init): Set CPP's warn_multichar.
6980         * c-common.h (warn_multichar): New.
6981         * c-decl.c (warn_multichar): Remove.
6982         * c-lex.c (lex_charconst): Update.
6983         * c-tree.h (warn_multichar): Remove.
6984         * cppexp.c (eval_token): Sign-extend charconst value.
6985         * cppinit.c (cpp_create_reader): Set warn_multichar.
6986         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
6987         each character.  Update prototype.  Sign-extend the result.
6988         * cpplib.h: Fix conditions.
6989         (struct cpp_options): Add new warning flag.
6990         (cpp_interpret_charconst): Update prototype.
6991 doc:
6992         * cpp.texi: Update documentation.
6993
6994 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
6995
6996         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6997         Fix typo in usage of allof instead of unit.
6998
6999 2002-05-06  Richard Henderson  <rth@redhat.com>
7000
7001         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
7002         and any jump or call for IN.
7003
7004 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
7005
7006         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
7007         -msse2.
7008         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
7009
7010 2002-05-06  Roger Sayle  <roger@eyesopen.com>
7011
7012         * fold-const.c (lshift-double): Cast the high word to an unsigned
7013         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
7014         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
7015         avoid compiler warning.  (fold): Remove redundant code from
7016         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
7017
7018 2002-05-06  Jeff Law  <law@redhat.com>
7019
7020         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
7021         * pa.c (pa_adjust_cost): Remove all true dependency cost
7022         adjustments.  Also remove support for non-DFA scheduling.
7023         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
7024         to adjust true dependency costs.  Update various comments.
7025         (7100lc, 7200, 7300 scheduling): Simplify by combining the
7026         FP ALU & MPY units into a single unit.
7027
7028 2002-05-06  Catherine Moore  <clm@redhat.com>
7029
7030         * config/v850/v850.c (compute_register_save_size): Make sure
7031         to count all of the registers that will be saved.
7032
7033 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
7034
7035         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
7036
7037 2002-05-06  David S. Miller  <davem@redhat.com>
7038
7039         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
7040         allow result to overlap input operands in memory.
7041
7042 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7043
7044 doc:
7045         * cpp.texi: Update multichar charconst docs.
7046
7047 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7048
7049         * cpplex.c (cpp_interpret_charconst): Sign-extend each
7050         character.  Don't ignore excess characters.  Treat
7051         multicharacter character constants as signed.
7052         (cpp_parse_escape): Clarify diagnostic.
7053
7054 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
7055
7056         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
7057         use add instead of shift.
7058         (ashldi3_sp64): Likewise.
7059         (ashlsi3_const1, ashldi3_const1): Remove.
7060         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
7061         * config/sparc/sparc.c (const1_operand): New.
7062
7063 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
7064
7065         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
7066
7067 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
7068
7069         PR target/6561
7070         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
7071
7072 2002-05-05  Richard Henderson  <rth@redhat.com>
7073
7074         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
7075         memory latency adjustments.
7076         (alpha_variable_issue): Remove.
7077         (alpha_use_dfa_pipeline_interface): New.
7078         (alpha_multipass_dfa_lookahead): New.
7079         * config/alpha/alpha.md: Remove define_function_unit scheduling;
7080         include new dfa scheduling.
7081         (attr type): Add none.
7082         (blockage): Use it.
7083         * config/alpha/ev4.md: New.
7084         * config/alpha/ev5.md: New.
7085         * config/alpha/ev6.md: New.
7086
7087 2002-05-05  David S. Miller  <davem@redhat.com>
7088
7089         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
7090
7091 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
7092
7093         * cse.c: Fix formatting.
7094         * emit-rtl.c: Likewise.
7095
7096 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
7097
7098         * genautomata.c (initiate_states): Add additional guard to
7099         initialize `units_array'.
7100
7101 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
7102
7103         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
7104         process_unit_to_form_the_same_automaton_unit_lists,
7105         form_the_same_automaton_unit_lists
7106         check_unit_distributions_to_automata): New prototypes and
7107         functions.
7108         (check_automata): Rename it into `check_automata_insn_issues'.
7109         (unit_decl): New fields `the_same_automaton_unit' and
7110         `the_same_automaton_message_reported_p'.
7111         (unit_decl_t): New typedef.
7112         (the_same_automaton_lists): New gloval variable.
7113         (unit_regexp, unit_set_el, units_array, units_cmp,
7114         output_get_cpu_unit_code_func): Use the typedef.
7115         (evaluate_max_reserv_cycles): Increment
7116         `description->max_insn_reserv_cycles'.
7117         (initiate_states): Don't increment `max_cycles_num'.
7118         (transform_insn_regexps): Move code around transformation of
7119         regexps from `generate'.
7120         (generate): Remove call of `transform_insn_regexps'.
7121         (expand_automata): Call `transform_insn_regexps' and
7122         `check_unit_distributions_to_automata'.  Check errors before
7123         `generate'.
7124
7125         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
7126         automaton `ultrasparc3_1'.
7127
7128 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7129
7130         * c-common.c (c_common_init): Set up CPP arithmetic.
7131         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
7132         something reasonable for the host.
7133         (sanity_checks): Add checks.
7134         (cpp_read_main_file): Call sanity_checks() from here...
7135         (cpp_post_options): ... not here.
7136         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
7137         * cpplib.h (struct cpp_options): New member int_precision.
7138
7139 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7140
7141         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
7142
7143 2002-05-04  David S. Miller  <davem@redhat.com>
7144
7145         * config/sparc/linux.h, config/sparc/linux64.h
7146         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
7147
7148         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
7149         more RTX codes.
7150         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
7151
7152         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
7153         of SETs.
7154
7155 2002-05-05  Tim Josling  <tej@melbpc.org.au>
7156
7157         * treelang; New directory for new sample language treelang.
7158
7159 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7160
7161         * Makefile.in (c-lex.o): Update.
7162         * c-lex.c: Include target.h.
7163         (cb_register_builtins): New.
7164         (init_c_lex): Set builtins callback.
7165         * c-lex.h (cpp_define, cpp_assert): New prototypes.
7166         * cppinit.c (init_builtins): Use callback, including for
7167         GXX_WEAK.
7168         * cpplib.h (struct cpp_callbacks): New member.
7169         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
7170         (TARGET_INITIALIZER): Update.
7171         * target.h (struct gcc_target): New hook.
7172         * tree.c (default_register_cpp_builtins): New.
7173         * tree.h (default_register_cpp_builtins): New.
7174 doc:
7175         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
7176
7177 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7178
7179         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
7180         (cpp_post_options): Move sanity checks to...
7181         (sanity_checks): New.
7182         * cpplex.c (maybe_read_ucs): Fix prototype.
7183         (parse_string, cpp_parse_escape): Cast for %c format specifier.
7184         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
7185         if necessary.
7186
7187 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
7188
7189         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
7190         builtins.  Use V2DI patterns instead of TI for logical operations.
7191         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
7192         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
7193         (ix86_expand_builtins): Change the pattern used for movntdq.
7194         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
7195         sse2_nandv2di3): New patterns.
7196         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
7197         on operands.
7198         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
7199         (cvtdq2pd): Correct mode on operand 1.
7200         (sse2_umulsidi3): Describe without unspec.
7201         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
7202         machine modes.
7203         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
7204         (ashlv2di3): Likewise, from sse2_ashlv2di3.
7205         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
7206         ashlv4si3, ashlv2di3): Use SImode for shift count.
7207         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
7208         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
7209         New patterns.
7210         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
7211         New typedefs.
7212         (__m128i, __m128d): New macros.
7213         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
7214         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
7215         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
7216         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
7217         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
7218         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
7219         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
7220         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
7221         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
7222         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
7223         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
7224         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
7225         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
7226         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
7227         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
7228         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
7229         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
7230         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
7231         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
7232         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
7233         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
7234         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
7235         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
7236         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
7237         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
7238         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
7239         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
7240         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
7241         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
7242         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
7243         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
7244         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
7245         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
7246         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
7247         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
7248         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
7249         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
7250         functions.
7251         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
7252         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
7253
7254 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
7255
7256         * dwarf2out.c: Fix formatting.
7257         * varasm.c: Likewise.
7258
7259 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
7260
7261         PR c/6543
7262         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
7263         clobber and use result as temporary value.
7264
7265 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
7266
7267         * expr.c (force_operand): Use expand_simple_* to handle more
7268         cases.
7269
7270 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7271
7272         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
7273         and sign-extension.
7274         (lex_charconst): Update for change in prototype of
7275         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
7276         appropriately.
7277         * cpphash.h (BITS_PER_CPPCHAR_T): New.
7278         * cppinit.c (cpp_create_reader): Initialize them for no
7279         change in semantics.
7280         (cpp_post_options): Add sanity checks.
7281         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
7282         and truncation issues.  Calculate in type cppchar_t.
7283         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
7284         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
7285         run-time dependent precision correctly.  Return whether the
7286         result is signed or not.
7287         * cpplib.c (dequote_string): Use cppchar_t; update.
7288         * cpplib.h (cppchar_signed_t): New.
7289         struct cpp_options): New precision members.
7290         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
7291         * cppexp.c (eval_token): Update.
7292
7293 2002-05-03  David S. Miller  <davem@redhat.com>
7294
7295         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
7296         * config/sparc/sparc.c (sparc_rtx_costs): New function
7297         implementing RTX_COSTS and CONST_COSTS.
7298         * config/sparc/sparc.h (CONST_COSTS): Delete.
7299         (RTX_COSTS_CASES): Define.
7300         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
7301         the work.
7302
7303         * config/sparc/sparc.md (DFA schedulers): Split out...
7304         * config/sparc/cypress.md, config/sparc/hypersparc.md,
7305         config/sparc/sparclet.md, config/sparc/supersparc.md,
7306         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
7307
7308         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
7309         checks on it, always defined for Sparc.
7310
7311         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
7312         Tweak, and add more detailed comments.
7313
7314 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
7315
7316         * Re-apply patch accidentally reverted with
7317         DFA scheduler merge: remove all rules and variables to slurp
7318         source files out of libiberty and rebuild them with HOST_CC.
7319         ($(HOST_PREFIX_1)varray.o): New rule.
7320         (genattrtab rule): Word wrap.
7321
7322 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
7323
7324         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
7325         (CPP_SUBTARGET_SPEC): Define.
7326         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
7327         cpp_subtarget specs.
7328         (CPP_SPEC): Redefine to include %(cpp_subtarget).
7329
7330 2002-05-03  David S. Miller  <davem@redhat.com>
7331
7332         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
7333         * target.h (struct gcc_target): Delete cycle_display member.
7334
7335         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
7336         (rtx_needs_barrier): Delete reference to cycle_display unspec.
7337         (ia64_sched_reorder2): Mention need for cycle display handling
7338         once such notes exist.
7339
7340 2002-05-03  Richard Henderson  <rth@redhat.com>
7341
7342         * real.c (etoasc): Strip most trailing zeros for clarity.
7343         * sched-vis.c: Include real.h.
7344         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
7345         * Makefile.in (sched-vis.o): Add real.h.
7346
7347 2002-05-03  David S. Miller  <davem@redhat.com>
7348
7349         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
7350         no longer needed.
7351
7352 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
7353
7354         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
7355         when we get an out of range literal.
7356         (altivec_expand_ternop_builtin): Same.
7357         (altivec_expand_unop_builtin): Same.
7358         (altivec_expand_builtin): Same, for dss.
7359         (altivec_expand_builtin): Use trees instead of rtl when
7360         determining literal argument validity.
7361
7362 2002-05-03  David S. Miller  <davem@redhat.com>
7363
7364         Delete cycle display scheduling hook.
7365         * config/ia64/ia64.c (ia64_cycle_display,
7366         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
7367         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
7368         and use emit_insn_before instead of ia64_emit_insn_before.
7369         * config/ia64/ia64.md (unspec usage): Delete cycle display.
7370         (cycle_display): Delete insn pattern.
7371         * config/sparc/sparc.md (unspec usage): Delete cycle display.
7372         (cycle_display): Delete insn pattern.
7373         * config/sparc/sparc.c (sparc_cycle_display,
7374         TARGET_SCHED_CYCLE_DISPLAY): Delete.
7375         * doc/md.texi (cycle_display): Don't mention.
7376         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
7377
7378 2002-05-03  Richard Henderson  <rth@redhat.com>
7379
7380         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
7381         * recog.h: Declare them.
7382
7383         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
7384         * config/sparc/sparc.md: Use store_data_bypass_p instead.
7385         * config/sparc/sparc-protos.h: Update.
7386
7387 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
7388
7389         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
7390         -D__arch64__.  Add -D_LP64.
7391         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
7392         from sparc.h.
7393         (CPP_ARCH64_SPEC): Likewise.
7394         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
7395         (NO_BUILTIN_SIZE_TYPE): Undef.
7396
7397 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
7398
7399         * genautomata.c (min_issue_delay_pass_states): Change return type
7400         in the prototype.
7401         (min_issue_delay_pass_states): Change the algorithm.
7402         (min_issue_delay): Set up min_insn_issue_delay for the state.
7403         (output_min_issue_delay_table): Interchange the nested loops and
7404         and initiate min_insn_issue_delay for states.
7405
7406 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
7407
7408         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
7409         jump is simplejump.
7410
7411 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
7412
7413         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
7414         sequence.
7415
7416 2002-05-03  Richard Henderson  <rth@redhat.com>
7417
7418         PR opt/6534
7419         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
7420         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
7421         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
7422         code before JUMP, not EARLIEST.
7423
7424 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
7425
7426         * c-format.c (check_format_info_main): Don't check for presence of
7427         parameter for * width until after operand number has been read,
7428         and only check for it if format parameters are available.
7429         Fixes PR c/6547.
7430
7431 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
7432
7433         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
7434         (LINK_SPEC): Undef before defining.
7435
7436 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
7437
7438         PR preprocessor/6489
7439         * tradcpp.c (fixup_newlines): New.
7440         (main, finclude): Use it.
7441
7442 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
7443
7444         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
7445         * config/mips/mips.c (mips_unique_section): Strip encoding from
7446         decl name.
7447
7448 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
7449
7450         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
7451         mode.
7452
7453 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7454
7455         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
7456         (Specific): Removed buildstats references.
7457         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
7458         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
7459         Accomodate Solaris versions beyond 8.
7460         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
7461         (Specific, *-*-solaris2.8): Removed, obsolete.
7462
7463 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
7464
7465         PR target/6542
7466         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
7467         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
7468         fill leaf_reg_remap with identity.
7469         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
7470
7471 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
7472
7473         * config/h8300/crti.asm: Remove trailing spaces.
7474         * config/h8300/h8300.c: Likewise.
7475         * config/h8300/lib1funcs.asm: Likewise.
7476
7477 2002-05-02  Jason Merrill  <jason@redhat.com>
7478
7479         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
7480         * c-decl.c (c_init_decl_processing): Use it.
7481         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
7482         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
7483         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
7484
7485 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
7486
7487         * regrename.c: Fix formatting.
7488         * tree.c: Likewise.
7489
7490 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
7491
7492         * i386.md (attribute memory): Handle compares properly.
7493
7494 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
7495
7496         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
7497         to none.
7498
7499 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
7500
7501         * function.c: Fix formatting.
7502
7503 2002-05-02  Jan Hubicka  <jh@suse.cz>
7504
7505         * haifa-sched.c (schedule_insn): Print table of instructions and
7506         reservations.
7507         (sched_block): Do not print ready list at verbosity level 1.
7508         * sched-vis.c (print_insn): Make global.
7509         * sched-ebb.c (ebb_print_insn): Rename from...
7510         (print_insn): ... this one.
7511         * sched-int.h (print_insn): Declare
7512
7513 2002-05-02  Richard Henderson  <rth@redhat.com>
7514
7515         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
7516         emitted by cycle_display.
7517
7518 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
7519
7520         * doc/install.texi (*-*-freebsd*): Update to latest status.
7521
7522 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
7523
7524         PR target/6540
7525         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
7526         * config/float-sparc.h: Assume 128-bit long double if
7527         __LONG_DOUBLE_128__ is defined.
7528
7529 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
7530
7531         * genattrtab.c (write_function_unit_info): Add a dummy element
7532         when num_units == 0.
7533
7534 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7535
7536         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
7537         TYPE_MODE (double_type_node) instead of DFmode.
7538
7539 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
7540
7541         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
7542         jumps post reload.
7543         * toplev.c (rest_of_compilation): Revert Richard's patch.
7544
7545 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7546
7547         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
7548
7549 2002-05-02  Catherine Moore  <clm@redhat.com>
7550
7551         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
7552
7553 2002-05-02  Kazu Hirata  <kazu@hxi.com>
7554
7555         * combine.c: Fix comment typos.
7556         * expr.c: Likewise.
7557         * genautomata.c: Likewise.
7558         * stmt.c: Likewise.
7559         * tree.h: Likewise.
7560
7561 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7562
7563         * doc/install.texi: State GNAT version requirements.
7564
7565 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
7566
7567         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
7568         of the frame pointer or arg pointer register which strict register
7569         checking is not enabled.
7570
7571 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
7572
7573         * gcc.dg/altivec-8.c: New.
7574
7575         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
7576         PRE_INC and PRE_DEC for altivec modes.
7577
7578 2002-05-01  Bruce Korb  <bkorb@gnu.org>
7579
7580         * fixinc/check.tpl(set-writable): make sure the function exists first
7581         * fixinc/inclhack.def(alpha_assert): fix test_text
7582         * fixinc/tests/base/assert.h: add in missing result
7583
7584 2002-05-01  Jeff Law  <law@redhat.com>
7585
7586         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
7587         'T' constraint.
7588
7589 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
7590
7591         * dbxout.c (dbxout_type): Emit size information for range types,
7592         as well, but only when using GDB extensions.
7593
7594 2002-05-01  Richard Henderson  <rth@redhat.com>
7595
7596         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
7597         target-independent gnu binutils date test.
7598
7599 2002-05-01  Richard Henderson  <rth@redhat.com>
7600
7601         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
7602         info before expunging the block.
7603
7604 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
7605
7606         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
7607         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
7608         -M -or -MM is in effect.
7609
7610 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
7611
7612         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
7613         A29k configurations.
7614         * doc/install.texi: Update to match.
7615
7616 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7617
7618         PR bootstrap/6514
7619         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
7620         for duplicates. Always loop over whole list.
7621
7622 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7623
7624         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
7625
7626 2002-05-01      Joel Sherrill <joel@OARcorp.com>
7627
7628         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
7629         support routines.
7630
7631 2002-05-01      Joel Sherrill <joel@OARcorp.com>
7632
7633         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
7634
7635 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
7636
7637         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
7638         (nabs_nopower): Same.
7639         (floatdisf2): New pattern.
7640         (absdi2): Convert to define_insn_and_split.
7641         (nabsdi2): Same.
7642         (trunctfsf2): Same.
7643         (floatditf2): Same.
7644         (floatsitf2): Same.
7645         (fix_trunctfdi2): Same.
7646         (fix_trunctfsi2): Same.
7647
7648 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
7649
7650         * doc/install.texi: Update Texinfo version requirement
7651         documentation.
7652
7653 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
7654
7655         PR target/6512, PR target/5628
7656         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
7657         when memory is not aligned.
7658         (movdf_insn_v9only_vis): Likewise.
7659         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
7660         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
7661         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
7662
7663 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
7664
7665         * gcc.dg/altivec-7.c: New.
7666
7667         * config/rs6000/altivec.h: Cleanup.
7668
7669 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
7670
7671         * doc/invoke.texi (Option Summary): Add -mvrsave=.
7672         (RS/6000 and PowerPC Options): Document -mvrsave=.
7673
7674         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
7675         (rs6000_altivec_vrsave_string): Same.
7676         (rs6000_override_options): Call rs6000_parse_vrsave_option.
7677         (rs6000_parse_vrsave_option): New.
7678         (rs6000_stack_info): Only generate vrsave instructions when
7679         TARGET_ALTIVEC_VRSAVE.
7680
7681         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
7682         (rs6000_altivec_vrsave_string): Define extern.
7683         (rs6000_altivec_vrsave): Same.
7684         (TARGET_ALTIVEC_VRSAVE): New.
7685
7686 2002-04-30  Richard Henderson  <rth@redhat.com>
7687
7688         PR opt/6516
7689         * toplev.c (rest_of_compilation): Don't run cross-jump before
7690         bb-reorder.
7691
7692 2002-04-30  Tom Rix  <trix@redhat.com>
7693
7694         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
7695         check which_alternative.
7696
7697 2002-04-30  Kazu Hirata  <kazu@hxi.com>
7698
7699         * cpplex.c: Fix comment formatting.
7700         * function.c: Likewise.
7701         * integrate.c: Likewise.
7702         * regrename.c: Likewise.
7703         * sibcall.c: Likewise.
7704         * simplify-rtx.c: Likewise.
7705         * tree-inline.c: Likewise.
7706
7707 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7708
7709         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
7710         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
7711         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
7712         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
7713         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
7714         * pa/x-ada: New file.  Define ADA_CFLAGS.
7715
7716 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
7717
7718         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
7719         from MMIX_LAST_REGISTER_FILE_REGNUM.
7720         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
7721         (struct machine_function): New member highest_saved_stack_register
7722         previously static variable in mmix.c.
7723         (MACHINE_DEPENDENT_REORG): Define.
7724         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
7725         (MMIX_OUTPUT_REGNO): New.
7726         (mmix_target_asm_function_prologue): Move calculation of last used
7727         saved-stack-register into...
7728         (mmix_machine_dependent_reorg): New function.  Update to also handle
7729         !TARGET_ABI_GNU.
7730         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
7731         register names, simplify somewhat by new variable regno.
7732         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
7733         register.
7734         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
7735         emitting register names.
7736         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
7737         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
7738         Remove fixed FIXME.
7739         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
7740         Declare.
7741
7742         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
7743
7744 2002-04-30  Richard Henderson  <rth@redhat.com>
7745
7746         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
7747         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
7748         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
7749         emit_tfmode_cvt): New.
7750         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
7751         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
7752         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
7753         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
7754         * config/sparc/sparc-protos.h: Update.
7755
7756 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
7757
7758         * install.texi (Final install): Add to the list of info to include
7759         in a report of a successful bootstrap, and add link to 3.1 list.
7760
7761 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
7762
7763         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
7764         (mode): Add vector modes
7765         (i387): Kill attribute.
7766         (unit): New attribute.
7767         (length_immediate): Grok new types.
7768         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
7769         (modrm): Use "unit".
7770         (memory): Handle MMX/SSE properly.
7771         (scheduling descriptions): Kill uses of fop1.
7772         (sse, mmx, fp patterns): Set type and mode properly.
7773
7774 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
7775
7776         * pa.c (override_options): Default to PA8000 scheduling.
7777         * doc/invoke.texi (HP-PA options): Mention newly added 7300
7778         scheduling parameter.
7779
7780         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
7781         handling of double precision multiplies.
7782
7783         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
7784         fpdiv and fpsqrt instructions.
7785         (7200 & 7300 scheduling): Fix typo in handling of
7786         store-load and store-store penalties.
7787
7788 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7789
7790         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
7791         mips.  Add two missing commas.
7792
7793 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
7794
7795         * doc/contrib.texi (Contributors): Update Paolo Carlini's
7796         and Benjamin Kosnik's entries.
7797
7798 2002-04-29  David S. Miller  <davem@redhat.com>
7799
7800         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
7801         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
7802         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
7803         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7804
7805 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7806
7807         * combine.c (find_split_point): Use gen_int_mode.
7808
7809 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
7810
7811         Merging code from dfa-branch:
7812
7813         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7814
7815         * genautomata.c (output_reserv_sets): Fix typo.
7816
7817         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
7818
7819         * genautomata.c (output_reserv_sets): Remove
7820         next_cycle_output_flag.
7821
7822         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
7823
7824         * sched-rgn.c (init_ready_list): Make the DFA code handle
7825         USE/CLOBBER insns in the same way as the traditional
7826         scheduler.
7827         (new_ready): Similarly..
7828
7829         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
7830
7831         * haifa-sched.c (schedule_block): Change the DFA state only after
7832         issuing insn.
7833
7834         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
7835
7836         * pa.c (hppa_use_dfa_pipeline_interface): New function.
7837         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
7838         (override_options): Add PA7300 scheduling support.
7839         (pa_adjust_cost): Update various comments.  Properly
7840         handle anti and output dependencies when using the
7841         DFA scheduler.
7842         (pa_issue_rate): Add PA7300 scheduling support.
7843         (pa_can_combine_p): Call extract_insn before calling
7844         constrain_operands (taken from mainline tree).
7845         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
7846         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
7847         descriptions using DFA descriptions.  Add PA7300
7848         scheduling support.
7849
7850         2002-03-30  David S. Miller  <davem@redhat.com>
7851
7852         Add UltraSPARC-III DFA scheduling support.
7853         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
7854         Update FP conditional move on register insn patterns to use it, as
7855         appropriate.
7856         (define_attr cpu): Add ultrasparc3.
7857         (define_attr us3load_type): New, update integer load patterns to
7858         set it, as appropriate.
7859         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
7860         (rest): Add UltraSPARC3 scheduling description.
7861         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
7862         (PROCESSOR_ULTRASPARC3): New.
7863         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
7864         ({ASM,CPP}_CPU_SPEC): Likewise.
7865         (REGISTER_MOVE_COST): Likewise.
7866         (RTX_COSTS): Likewise.
7867         * config/sparc/sparc.c (sparc_override_options,
7868         sparc_initialize_trampoline, sparc64_initialize_trampoline,
7869         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7870         sparc_issue_rate): Likewise.
7871         * config/sparc/sol2.h: Likewise.
7872         * config/sparc/sol2-sld-64.h: Likewise.
7873         * config/sparc/linux64.h: Likewise.
7874
7875         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
7876
7877         * doc/md.texi: Add comments about usage the latency time for the
7878         different dependencies and about case when two or more conditions
7879         in different define_insn_reservations returns TRUE for an insn.
7880
7881         * doc/md.texi: Add reference for automaton based pipeline
7882         description.
7883
7884         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
7885
7886         * doc/passes.texi: Add missed information about genattrtab.
7887
7888         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
7889
7890         * genautomata.c (output_automata_list_transition_code): Check
7891         automata_list on NULL.
7892
7893         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
7894
7895         * genautomata.c (output_insn_code_cases,
7896         output_automata_list_min_issue_delay_code,
7897         output_automata_list_transition_code,
7898         output_automata_list_state_alts_code): Comment the functions.
7899
7900         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
7901
7902         * genautomata.c (automata_list_el_t): New typedef.
7903         (get_free_automata_list_el,free_automata_list_el,
7904         free_automata_list, automata_list_hash, automata_list_eq_p,
7905         initiate_automata_lists, automata_list_start, automata_list_add,
7906         automata_list_finish, finish_automata_lists,
7907         output_insn_code_cases, output_automata_list_min_issue_delay_code,
7908         output_automata_list_transition_code,
7909         output_automata_list_state_alts_code, add_automaton_state,
7910         form_important_insn_automata_lists): New functions and prototypes.
7911         (insn_reserv_decl): Add members important_automata_list and
7912         processed_p.
7913         (ainsn): Add members important_p.
7914         (automata_list_el): New structure.
7915         (first_free_automata_list_el, current_automata_list,
7916         automata_list_table): New global variables.
7917         (create_ainsns): Initiate member important_p.
7918         (output_internal_min_issue_delay_func): Generate the switch and
7919         call output_insn_code_cases.
7920         (output_internal_trans_func, output_internal_state_alts_func):
7921         Ditto.
7922         (generate): Call initiate_automata_lists.
7923         (automaton_states): New global variable.
7924         (expand_automata): Call form_important_insn_automata_lists.
7925         (write_automata): Call finish_automata_lists.
7926
7927         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
7928
7929         * genautomata.c (add_excls, add_presence_absence): Check that
7930         cpu units in the sets belong the same automaton.
7931
7932         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
7933         about that cpu units in the sets belong the same automaton.
7934
7935         * doc/md.texi: Ditto.
7936
7937         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
7938                     Nitin Gupta  <niting@noida.hcltech.com>
7939
7940         * config/sh/sh.c (sh_use_dfa_interface): New function.
7941
7942         (sh_issue_rate): New Function.
7943         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
7944         TARGET_SCHED_ISSUE_RATE: define.
7945
7946         * config/sh/sh.md: Add DFA based pipeline description for SH4.
7947
7948         (define_attr insn_class): New attribute used for DFA
7949          scheduling.
7950         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
7951         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
7952          cmpeqdi_t): Likewise.
7953
7954         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
7955          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
7956          ex_group.
7957         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
7958
7959         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
7960
7961         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
7962         break.
7963
7964         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
7965
7966         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
7967         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
7968         necessary.
7969         (output_dfa_start_func): Initiate new variable insn_codes_length,
7970         (write_automata): Output definition of the new variable.
7971
7972         2001-10-02  David S. Miller  <davem@redhat.com>
7973
7974         * haifa-sched.c (advance_one_cycle): New function.
7975         (schedule_block): Use it.
7976         (queue_to_ready): Use it, and also make sure to advance the DFA
7977         state on all stall cycles, not just those where insn_queue links
7978         are found.
7979
7980         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
7981
7982         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
7983         non-zero if the highest-priority instruction could be scheduled.
7984         (choose_ready): Remove last argument from max_issue call.
7985
7986         2001-09-28  David S. Miller  <davem@redhat.com>
7987
7988         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
7989         ultrasparc and 3 for other multi-issue sparcs.
7990
7991         2001-09-27  David S. Miller  <davem@redhat.com>
7992
7993         * config/sparc/sparc.md (cycle_display): New pattern.
7994         * config/sparc/sparc.c (sparc_cycle_display): New.
7995         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
7996
7997         2001-09-25  David S. Miller  <davem@redhat.com>
7998
7999         Convert all of Sparc scheduling to DFA
8000         * config/sparc/sparc.md: Kill all define_function_unit
8001         directives and replace with DFA equivalent.
8002         * config/sparc/sparc.c (ultrasparc_adjust_cost,
8003         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
8004         ultra_fpmode_conflict_exists, ultra_find_type,
8005         ultra_build_types_avail, ultra_flush_pipeline,
8006         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
8007         ultrasparc_variable_issue, ultrasparc_sched_init,
8008         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
8009         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
8010         ultra_cur_hist, ultra_cycles_elapsed): Kill.
8011         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8012         ultrasparc_store_bypass_p): New.
8013         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
8014         Declare.
8015
8016         2001-09-24  David S. Miller  <davem@redhat.com>
8017
8018         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
8019         ready->vec[foo] not ready[foo].
8020
8021         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
8022
8023         * doc/md.texi: Correct examples for define_insn_reservations
8024         `mult' and `div'.
8025
8026         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
8027
8028         * genautomata.c (create_automata): Print message about creation of
8029         each automaton.
8030         (generate): Remove printing meease about creation of
8031         automata.
8032
8033         2001-09-05  David S. Miller  <davem@redhat.com>
8034
8035         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8036         * config/sparc/linux64.h: Likewise.
8037
8038         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
8039
8040         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
8041         schedule_block, sched_init, sched_finish): Add missed calls of
8042         use_dfa_pipeline_interface.
8043
8044         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
8045         Ditto.
8046
8047         * sched-vis.c (get_visual_tbl_length): Ditto.
8048
8049         2001-08-27  Richard Henderson  <rth@redhat.com>
8050
8051         * genattr.c (main): Emit state_t even when not doing scheduling.
8052
8053         2001-08-27  Richard Henderson  <rth@redhat.com>
8054
8055         * genautomata.c (expand_automata): Always create a description.
8056
8057         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
8058
8059         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8060         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8061         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8062         RTL constructions.
8063
8064         * genattr.c (main): New variable num_insn_reservations.  Increase
8065         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
8066         pipeline hazard recognizer interface.
8067
8068         * genattrtab.h: New file.
8069
8070         * genattrtab.c: Include genattrtab.h.
8071         (attr_printf, check_attr_test, make_internal_attr,
8072         make_numeric_value): Move protypes into genattrtab.h.  Define them
8073         as external.
8074         (num_dfa_decls): New global variable.
8075         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8076         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8077         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8078         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
8079
8080         * genautomata.c: New file.
8081
8082         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8083
8084         * sched-int.h: (curr_state): Add the external definition for
8085         automaton pipeline interface.
8086         (haifa_insn_data): Add comments for members blockage and units.
8087
8088         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8089         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8090         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8091         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8092         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8093         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8094         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8095         macros.
8096         (TARGET_SCHED): Use the new macros.
8097
8098         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8099         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8100         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8101         dfa_bubble): New members in gcc_target.sched.
8102
8103         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8104         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8105         (insn_queue): Redefine it as pointer to array.
8106         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8107         INSN_QUEUE_SIZE.
8108         (max_insn_queue_index_macro_value): New variable.
8109         (curr_state, dfa_state_size, ready_try): New varaibles for
8110         automaton interface.
8111         (ready_element, ready_remove, max_issue): New function prototypes
8112         for automaton interface.
8113         (choose_ready): New function prototype.
8114         (insn_unit, blockage_range): Add comments.
8115         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8116         FUNCTION_UNITS_SIZE == 0.
8117         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8118         actual_hazard, potential_hazard): Add comments.
8119         (insn_cost): Use cost -1 as undefined value.  Remove
8120         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
8121         pipeline interface.
8122         (ready_element, ready_remove): New functions for automaton
8123         interface.
8124         (schedule_insn): Add new code for automaton pipeline interface.
8125         (queue_to_ready): Add new code for automaton pipeline interface.
8126         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8127         (debug_ready_list): Print newline when the queue is empty.
8128         (max_issue): New function for automaton pipeline interface.
8129         (choose_ready): New function.
8130         (schedule_block): Add new code for automaton pipeline interface.
8131         Print ready list before scheduling each insn.
8132         (sched_init): Add new code for automaton pipeline interface.
8133         Initiate insn cost by -1.
8134         (sched_finish): Free the current automaton state and finalize
8135         automaton pipeline interface.
8136
8137         * sched-rgn.c: Include target.h.
8138         (init_ready_list, new_ready, debug_dependencies): Add new code for
8139         automaton pipeline interface.
8140
8141         * sched-vis.c: Include target.h.
8142         (get_visual_tbl_length): Add code for automaton interface.
8143         (target_units, print_block_visualization):  Add comments.
8144
8145         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8146         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8147         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8148         (getruntime.o, genautomata.o): New entries.
8149         (genattrtab.o): Add new dependency file genattrtab.h.
8150         (genattrtab): Add new dependencies.  Link it with `libm.a'.
8151         (getruntime.o, hashtab.o): New entries for canadian cross.
8152
8153         * doc/md.texi: Description of automaton based model.
8154
8155         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8156         Add comments.
8157         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8158         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8159         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8160         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8161         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8162         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8163         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8164         hook descriptions.
8165         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8166         MAX_DFA_ISSUE_RATE): New macro descriptions.
8167
8168         * doc/contrib.texi: Add dfa based scheduler contribution.
8169
8170         * doc/gcc.texi: Add more information about genattrtab.
8171
8172 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8173
8174         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
8175         adjust_address_nv call.
8176
8177 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
8178
8179         * doc/install.texi (Testing): Provide additional information, and
8180         a stronger encouragement, for running the testsuites.
8181
8182 2002-04-29  DJ Delorie  <dj@redhat.com>
8183
8184         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
8185         given in upper case.
8186
8187 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8188
8189         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
8190         Solaris 2 <widec.h> if missing.
8191         * fixinc/fixincl.x: Regenerate.
8192         * fixinc/tests/base/widec.h: New file.
8193
8194 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
8195
8196         * toplev.c (f_options): Add "profile" switch so that
8197         -fno-profile can be used to disable -p.
8198
8199 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
8200
8201         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
8202         UV2DImode.
8203         * tree.c (build_common_tree_nodes_2): Likewise.
8204         * tree.h (enum tree_index): Likewise.
8205         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
8206
8207         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
8208         entries.
8209         (init_mmx_sse_builtins): Initialize SSE2 builtins.
8210         (ix86_expand_builtin): Add support for SSE2 builtins.
8211         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
8212         (VALID_SSE_REG_MODE): Use it.
8213         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
8214         (enum ix86_builtins): Add SSE2 builtins.
8215         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
8216         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
8217         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
8218         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
8219         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
8220         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
8221         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
8222         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
8223         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
8224         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
8225         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
8226         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
8227         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
8228         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
8229         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
8230         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
8231         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
8232         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
8233         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
8234         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
8235         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
8236         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
8237         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
8238         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
8239         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
8240         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
8241         lfence_insn): New patterns.
8242         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
8243         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
8244
8245 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
8246
8247         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
8248
8249 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8250
8251         * doc/contrib.texi (Contributors): Add Paolo Carlini and
8252         Janis Johnson.
8253         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
8254         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
8255         and CPU instead of cpu.
8256
8257 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
8258
8259         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
8260         variables.
8261         (lang_independent_options): Add -fif-conversion, -fif-conversion2
8262         (rest_of_compilation): Do if conversion only when asked for.
8263         (parse_options_and_default_flags): Set new variables to 1 for -O1
8264         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
8265
8266 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
8267
8268         * i386.c (dbx64_register_map): Fix typo.
8269
8270 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
8271
8272         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
8273         real_one_half, real_bb_freq_max): New static variables.
8274         (debug_profile_bbauxs): Kill.
8275         (process_note_predictions): Kill unused variable.
8276         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
8277         volatile double.
8278         (propagate_freq): Use REAL_ARITHMETICS.
8279         (estimate_bb_frequencies): Likevise; init new static variables.
8280         * Makefile.in (predict.o): Add dependency on real.h
8281
8282 2002-04-28  David S. Miller  <davem@redhat.com>
8283
8284         PR target/6500
8285         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
8286         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
8287         several {reads,writes} instead.
8288         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
8289         Define.
8290
8291 2002-04-27  David S. Miller  <davem@redhat.com>
8292
8293         PR target/6494
8294         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
8295         of the stack bias.
8296
8297         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
8298         including signal.h and sys/ucontext.h, not needed.
8299
8300 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
8301
8302         * varasm.c (output_constant_def): Correct test for not calling
8303         ENCODE_SECTION_INFO for INTEGER_CST.
8304
8305 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8306
8307         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
8308         keep most cases as function eval_token.
8309         (eval_token): New function.
8310         (_cpp_parse_expr): Read token here for improved diagnostics.
8311         Don't use op_as_text.  Detect bad ':' here.
8312         (reduce): Don't detect bad ':' here.
8313         (op_as_text): Remove.
8314         * cpphash.h (_cpp_test_assertion): Change prototype.
8315         * cpplib.c (_cpp_test_assertion): Change prototype.
8316
8317 2002-04-28  Richard Henderson  <rth@redhat.com>
8318
8319         PR c/5154
8320         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
8321         (ggc_mark_rtx_children): New.
8322
8323 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
8324
8325         PR target/6496
8326         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
8327         after call peepholes for UltraSPARC.
8328         (call + jump 64-bit peepholes): Remove.
8329
8330 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8331
8332         PR c/6497
8333         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
8334         result as temporary value.
8335
8336 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
8337
8338         PR c++/6396
8339         * toplev.c (rest_of_compilation): Only run regrename and copy
8340         propagation if optimizing.
8341
8342 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
8343
8344         PR optimization/6475
8345         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
8346         register of REGNO_DECL (i).
8347         * Makefile.in (reload1.o): Add $(TREE_H).
8348
8349 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8350
8351         * cppexp.c (lex): Update to use state.skip_eval.
8352         (struct op): Remove prio and flags members.
8353         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
8354         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
8355         (LEFT_ASSOC): New macro.
8356         (optab): New table of operator priorities and flags.
8357         (SHIFT): Update.
8358         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
8359         malloc-ed parser stack.
8360         (reduce): New; reduce the operator stack.
8361         (_cpp_expand_op_stack): Expand the operator stack as necessary.
8362         * cpphash.h (struct op): Predeclare.
8363         (struct cpp_reader): New members op_stack, op_limit.
8364         (struct lexer_state): New member skip_eval.
8365         (_cpp_parse_expr): Update.
8366         (_cpp_expand_op_stack): New.
8367         * cpplib.c (do_if): Update.
8368         * cppinit.c (cpp_create_reader): Create op stack.
8369         (cpp_destroy): And destroy it.
8370         * cpplib.h (CPP_LAST_CPP_OP): Correct.
8371         (TTYPE_TABLE): Correct.
8372
8373 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8374
8375         PR c/6343
8376         * c-decl.c (duplicate_decls): Call merge_weak.
8377         * c-pragma.c (apply_pragma_weak): Warn about misuse.
8378         * output.h (merge_weak): Prototype merge_weak.
8379         * varasm.c (merge_weak): New function.
8380         (declare_weak): Make sure we don't give an error on VAR_DECLs.
8381         Mark RTL with SYMBOL_REF_WEAK.
8382
8383 2002-04-27  Kurt Garloff <garloff@suse.de>
8384
8385         * tree-inline.c (inlinable_function_p): Improve heuristics
8386         by using a smoother function to cut down allowable inlinable size.
8387         * param.def: Add parameters max-inline-insns-single,
8388         max-inline-slope, min-inline-insns that determine the exact
8389         shape of the above function.
8390         * param.h: Likewise.
8391
8392 2002-04-26  Richard Henderson  <rth@redhat.com>
8393
8394         * c-parse.in (malloced_yyss, malloced_yyvs): New.
8395         (yyoverflow): Re-add.  Set them.
8396         (free_parser_stacks): New.
8397         * c-common.h: Declare it.
8398         * c-lex.c (c_common_parse_file): Call it.
8399
8400 2002-04-26  Richard Henderson  <rth@redhat.com>
8401
8402         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
8403         for fallthru search.
8404
8405 2002-04-26  Eric Christopher  <echristo@redhat.com>
8406
8407         PR optimization/3700
8408         * config/mips/mips.c (mips_issue_rate): Define.  New function.
8409         (TARGET_SCHED_ISSUE_RATE): Use.
8410
8411 2002-04-25  David S. Miller  <davem@redhat.com>
8412
8413         PR target/6422
8414         * reorg.c (optimize_skip): Do not allow exception causing
8415         instructions to be considered for delay slots.
8416         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
8417         (relax_delay_slots): Do not try to consider exception causing
8418         instructions as redundant.
8419
8420 2002-04-26  Richard Henderson  <rth@redhat.com>
8421
8422         PR c/5225
8423         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
8424
8425 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
8426
8427         PR bootstrap/6445
8428         * config/i386/i386.md (untyped_call): Return the value in a float
8429         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
8430         TARGET_80387.
8431
8432 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
8433
8434         * tree.c (tree_int_cst_lt): Compare constants whose types differ
8435         in unsigned-ness correctly.
8436
8437 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8438
8439         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
8440         portable runtime model.
8441
8442 2002-04-26  Richard Henderson  <rth@redhat.com>
8443
8444         * c-parse.in (yyoverflow): Revert.
8445
8446 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
8447             Richard Henderson  <rth@redhat.com>
8448
8449         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
8450         result as temporary value.
8451
8452 2002-04-26  Richard Henderson  <rth@redhat.com>
8453
8454         PR c/3581
8455         * c-common.c (fix_string_type): Split out of ...
8456         (combine_strings): ... here.  Take a varray, not a tree list.
8457         (c_expand_builtin_printf): Use fix_string_type.
8458         * c-common.h: Update decls.
8459         * c-parse.in (string): Remove.  Update all uses to use STRING
8460         instead, and not call combine_strings.
8461         (yylexstring): New.
8462         (_yylex): Use it.
8463         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
8464         (build_asm_stmt): Likewise.
8465         * objc/objc-act.c (my_build_string): Use fix_string_type.
8466         (build_objc_string_object): Build varray for combine_strings.
8467
8468 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
8469
8470         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
8471         x86-64.
8472
8473 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8474
8475         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
8476         (HAVE_NO_R_OPERAND): Remove.
8477         (HAVE_VALUE): Remove.
8478         (op_to_prio): Update.
8479         (UNARY): Don't alter flags.
8480         (_cpp_parse_expr): want_value used to indicate whether
8481         a number or unary operator is expected next.  Distinguish
8482         unary and binary +/-.
8483         (op_as_text): Update for unary operators.
8484
8485 2002-04-25  Richard Henderson  <rth@redhat.com>
8486
8487         PR c/2161
8488         * c-parse.in (yyoverflow): New.
8489
8490 2002-04-25  Richard Henderson  <rth@redhat.com>
8491
8492         PR c/2098
8493         * c-common.c (shorten_compare): Simplfy conditions leading to
8494         the generation of a warning.
8495
8496 2002-04-25  Richard Henderson  <rth@redhat.com>
8497
8498         PR c/2035
8499         * expmed.c (extract_bit_field): Fall through to generic code rather
8500         than aborting on subreg special case.
8501
8502 2002-04-25  David S. Miller  <davem@redhat.com>
8503
8504         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
8505         for DECL being NULL.
8506
8507 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
8508
8509         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
8510
8511 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
8512
8513         * c-decl.c (grokdeclarator): Remove outdated ??? note
8514         on invalid declaration of flexible array members.
8515
8516 2002-04-25  Richard Henderson  <rth@redhat.com>
8517
8518         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
8519
8520 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
8521
8522         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
8523         needed by the compiler, even if they are used as global regs.
8524
8525 2002-04-25  Matt Hiller  <hiller@redhat.com>
8526
8527         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
8528         functions.
8529         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
8530         of the corresponding functions.
8531         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
8532         New prototypes.
8533
8534 2002-04-25  Matt Hiller  <hiller@redhat.com>
8535
8536         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
8537
8538         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
8539         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
8540         registers, adjust comment accordingly.
8541         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
8542         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
8543         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
8544         for coprocessor registers.
8545         (ADDITIONAL_REGISTER_NAMES): Include
8546         ALL_COP_ADDITIONAL_REGISTER_NAMES.
8547
8548         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
8549         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
8550         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
8551         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
8552         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
8553
8554         (mips_char_to_class): Adjust comment to include coprocessor
8555         constraint letters.
8556
8557         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
8558         New functions.
8559         (mips_reg_names, mips_regno_to_class): Include coprocessor
8560         information.
8561         (mips_sw_reg_names): Ditto, make non-static.
8562         (mips_move_1word): Handle moves to and from coprocessor registers.
8563         (mips_move_2words): Handle moves to and from coprocessor
8564         registers.
8565         (mips_class_max_nregs, mips_register_move_cost): Handle
8566         coprocessor register classes.
8567         (override_options): Initialize mips_char_to_class and
8568         mips_hard_regno_mode_ok properly for coprocessor registers.
8569
8570         * config/mips/mips.md (movdi_internal, movdi_internal2,
8571         movsi_internal1, movsi_internal2): Add constraint-sets for
8572         coprocessor registers.
8573         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
8574         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
8575         isn't mips.
8576         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
8577         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
8578         isn't mips.
8579         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
8580         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
8581         isn't mips.
8582         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
8583         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
8584         isn't mips.
8585
8586         * doc/tm.texi: Document feature.
8587
8588 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8589
8590         * integrate.c (function_attribute_inlinable_p): Simplify.
8591         Check the table pointer is not NULL.
8592
8593 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
8594
8595         * doc/c-tree.texi: Fix typo in introduction.
8596
8597 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8598
8599         * c-common.h (c_common_parse_file): Update.
8600         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8601         * c-lex.c (YYDEBUG): Get from c-lex.h.
8602         (c_common_parse_file): Update.
8603         * c-lex.h (YYDEBUG, yydebug): New.
8604         * c-parse.in (YYDEBUG): Get from c-lex.h.
8605         (c_set_yydebug): Remove.
8606         * c-tree.h (c_set_yydebug): Remove.
8607         * langhooks-def.h (lhd_do_nothing_i): New.
8608         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
8609         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
8610         * langhooks.c  (lhd_do_nothing_i): New.
8611         (lhd_set_yydebug): Remove.
8612         * langhooks.h (struct lang_hooks): Update.
8613         * toplev.c (set_yydebug): New.
8614         (compile_file): Update call to parse_file hook.
8615         (decode_d_option): Update.
8616 objc:
8617         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8618
8619 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
8620
8621         * loop.c (load_mems): Don't change the interface of called functions.
8622
8623         * calls.c (expand_call): Take current_function_pretend_args_size
8624         into account when setting argblock for sibcalls.
8625
8626 2002-04-24  Matt Hiller  <hiller@redhat.com>
8627
8628         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
8629         * c-lex.c: Ditto.
8630
8631         * cpplex.c (skip_line_comment): Process comment one multibyte
8632         character at a time rather than one char at a time, if
8633         appropriate.
8634         (parse_string): Process string one multibyte character at a time
8635         rather than one char at a time, if appropriate.
8636         * c-lex.c (lex_string): Lex and copy multibyte strings
8637         appropriately.
8638         * cpplib.h (cppchar_t): Change to unsigned.
8639
8640 2002-04-24  Richard Henderson  <rth@redhat.com>
8641
8642         PR c/3467
8643         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
8644         for c99.
8645
8646 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
8647
8648         * sh.c (sh_va_arg): If argument was passed by reference,
8649         dereference the pointer.
8650
8651         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8652
8653         * sh.md (divsi3_i4_media): Use match_operand for input values
8654         rather than hard registers.
8655         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
8656         unnecessarily through hard registers.  Keep copies of pseudo
8657         registers outside of the libcall sequence.
8658
8659         * sh.md (casesi_shift_media): Add modes.
8660
8661         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
8662         values in memory.
8663
8664 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8665
8666         * attribs.c (c_common_attribute_table): Move table and handlers
8667         to c-common.c.
8668         (format_attribute_table, lang_attribute_table,
8669         lang_attribute_common): Remove.
8670         (init_attributes): Replace NULL pointers with pointers to the
8671         empty table.
8672         (handle_packed_attribute, handle_nocommon_attribute,
8673         handle_common_attribute, handle_noreturn_attribute,
8674         handle_noinline_attribute, handle_always_inline_attribute,
8675         handle_used_attribute, handle_unused_attribute,
8676         handle_const_attribute, handle_transparent_union_attribute,
8677         handle_constructor_attribute, handle_destructor_attribute,
8678         handle_mode_attribute, handle_section_attribute,
8679         handle_aligned_attribute, handle_weak_attribute,
8680         handle_alias_attribute, handle_visibility_attribute,
8681         handle_no_instrument_function_attribute, handle_malloc_attribute,
8682         handle_no_limit_stack_attribute, handle_pure_attribute,
8683         handle_deprecated_attribute, handle_vector_size_attribute,
8684         vector_size_helper): Move to c-common.c.
8685         * c-common.c (c_common_attribute_table,
8686         handle_packed_attribute, handle_nocommon_attribute,
8687         handle_common_attribute, handle_noreturn_attribute,
8688         handle_noinline_attribute, handle_always_inline_attribute,
8689         handle_used_attribute, handle_unused_attribute,
8690         handle_const_attribute, handle_transparent_union_attribute,
8691         handle_constructor_attribute, handle_destructor_attribute,
8692         handle_mode_attribute, handle_section_attribute,
8693         handle_aligned_attribute, handle_weak_attribute,
8694         handle_alias_attribute, handle_visibility_attribute,
8695         handle_no_instrument_function_attribute, handle_malloc_attribute,
8696         handle_no_limit_stack_attribute, handle_pure_attribute,
8697         handle_deprecated_attribute, handle_vector_size_attribute,
8698         vector_size_helper): Move from attribs.c.
8699         * c-common.h (c_common_attribute_table,
8700         c_common_format_attribute_table): New.
8701         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8702         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8703         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
8704         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
8705         (LANG_HOOKS_INITIALIZER): Update.
8706         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
8707         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
8708         * target.h: Update comment.
8709         * tree.c (default_target_attribute_table): Remove.
8710         * tree.h (default_target_attribute_table, format_attribute_table,
8711         lang_attribute_table, lang_attribute_common): Remove.
8712 objc:
8713         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8714         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8715
8716 2002-04-24  Jason Merrill  <jason@redhat.com>
8717
8718         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
8719         * dwarf2out.c (dwarf_attr_name): Support it.
8720         (gen_array_type_die): Emit it.
8721         (lookup_type_die): No special handling for VECTOR_TYPE.
8722         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
8723
8724 2002-04-24  Richard Henderson  <rth@redhat.com>
8725
8726         * config/mips/mips.md (movdi_usd): Renumber.
8727
8728 2002-04-24  David S. Miller  <davem@redhat.com>
8729
8730         PR target/6420
8731         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
8732         32-bit Sparc and current_function_returns_struct is true.
8733
8734 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
8735
8736         * loop.c (canonicalize_condition): Use gen_int_mode.
8737
8738 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
8739
8740         * config/rs6000/altivec.h: Cleanup file.  Add non individual
8741         variants.
8742         (vec_vaddubm): New.
8743         (vec_vadduhm): New.
8744         (vec_vadduwm): New.
8745         (vec_vaddfp): New.
8746         (vec_vaddcuw): New.
8747         (vec_vaddubs): New.
8748         (vec_vaddsbs): New.
8749         (vec_vadduhs): New.
8750         (vec_vadduws): New.
8751         (vec_vaddsws): New.
8752         (vec_vand): New.
8753         (vec_vandc): New.
8754         (vec_vavgub): New.
8755         (vec_vavgsb): New.
8756         (vec_vavguh): New.
8757         (vec_vavgsh): New.
8758         (vec_vavguw): New.
8759         (vec_vavgsw): New.
8760         (vec_vrfip): New.
8761         (vec_vcmpbfp): New.
8762         (vec_vcmpequb): New.
8763         (vec_vcmpequh): New.
8764         (vec_vcmpequw): New.
8765         (vec_vcmpeqfp): New.
8766         (vec_vcmpgefp): New.
8767         (vec_vcmpgtub): New.
8768         (vec_vcmpgtsb): New.
8769         (vec_vcmpgtuh): New.
8770         (vec_vcmpgtsh): New.
8771         (vec_vcmpgtuw): New.
8772         (vec_vcmpgtsw): New.
8773         (vec_vcmpgtfp): New.
8774         (vec_vcmpgefp): New.
8775         (vec_vcfux): New.
8776         (vec_vcfsx): New.
8777         (vec_vctsxs): New.
8778         (vec_vctuxs): New.
8779         (vec_vexptefp): New.
8780         (vec_vrfim): New.
8781         (vec_lvx): New.
8782         (vec_lvebx): New.
8783         (vec_lvehx): New.
8784         (vec_lde): Add vector float variant.
8785         (vec_lvewx): New.
8786         (vec_lvxl): New.
8787         (vec_vlogefp): New.
8788         (vec_vmaddfp): New.
8789         (vec_vmhaddshs): New.
8790         (vec_vmaxub): New.
8791         (vec_vmaxsb): New.
8792         (vec_vmaxuh): New.
8793         (vec_vmaxsh): New.
8794         (vec_vmaxuw): New.
8795         (vec_vmaxsw): New.
8796         (vec_vmaxsw): New.
8797         (vec_vmaxfp): New.
8798         (vec_vmrghb): New.
8799         (vec_vmrghh): New.
8800         (vec_vmrghw): New.
8801         (vec_vmrglb): New.
8802         (vec_vmrglh): New.
8803         (vec_vmrglw): New.
8804         (vec_vminub): New.
8805         (vec_vminsb): New.
8806         (vec_vminuh): New.
8807         (vec_vminsh): New.
8808         (vec_vminuw): New.
8809         (vec_vminsw): New.
8810         (vec_vminfp): New.
8811         (vec_vmladduhm): New.
8812         (vec_vmhraddshs): New.
8813         (vec_msumubm): New.
8814         (vec_vmsummbm): New.
8815         (vec_vmsumuhm): New.
8816         (vec_vmsumshm): New.
8817         (vec_vmsumuhs): New.
8818         (vec_vmsumshs): New.
8819         (vec_vmuleub): New.
8820         (vec_vmulesb): New.
8821         (vec_vmuleuh): New.
8822         (vec_vmulesh): New.
8823         (vec_vmuloub): New.
8824         (vec_mulosb): New.
8825         (vec_vmulouh): New.
8826         (vec_vmulosh): New.
8827         (vec_vnmsubfp): New.
8828         (vec_vnor): New.
8829         (vec_vor): New.
8830         (vec_vpkuhum): New.
8831         (vec_vpkuwum): New.
8832         (vec_vpkpx): New.
8833         (vec_vpkuhus): New.
8834         (vec_vpkshss): New.
8835         (vec_vpkuwus): New.
8836         (vec_vpkswss): New.
8837         (vec_vpkshus): New.
8838         (vec_vpkswus): New.
8839         (vec_vperm): New.
8840         (vec_vrefp): New.
8841         (vec_vrlb): New.
8842         (vec_vrlh): New.
8843         (vec_vrlw): New.
8844         (vec_vrfin): New.
8845         (vec_vrsqrtefp): New.
8846         (vec_vsel): New.
8847         (vec_vslb): New.
8848         (vec_vslh): New.
8849         (vec_vslw): New.
8850         (vec_vsldoi): New.
8851         (vec_vsl): New.
8852         (vec_vslo): New.
8853         (vec_vspltb): New.
8854         (vec_vsplth): New.
8855         (vec_vspltw): New.
8856         (vec_vspltisb): New.
8857         (vec_vspltish): New.
8858         (vec_vspltisw): New.
8859         (vec_vsrb): New.
8860         (vec_vsrh): New.
8861         (vec_vsrw): New.
8862         (vec_vsrab): New.
8863         (vec_vsrah): New.
8864         (vec_vsraw): New.
8865         (vec_vsr): New.
8866         (vec_vsro): New.
8867         (vec_stvx): New.
8868         (vec_stvebx): New.
8869         (vec_stvehx): New.
8870         (vec_stvewx): New.
8871         (vec_stvxl): New.
8872         (vec_vsububm): New.
8873         (vec_vsubuhm): New.
8874         (vec_vsubuwm): New.
8875         (vec_vsubfp): New.
8876         (vec_vsubcuw): New.
8877         (vec_vsububs): New.
8878         (vec_vsubsbs): New.
8879         (vec_vsubuhs): New.
8880         (vec_vsubshs): New.
8881         (vec_vsubuws): New.
8882         (vec_vsubsws): New.
8883         (vec_vsum4ubs): New.
8884         (vec_vsum4sbs): New.
8885         (vec_vsum4shs): New.
8886         (vec_vsum2sws): New.
8887         (vec_vsumsws): New.
8888         (vec_vrfiz): New.
8889         (vec_vupkhsb): New.
8890         (vec_vupkhpx): New.
8891         (vec_vupkhsh): New.
8892         (vec_vupklsb): New.
8893         (vec_vupklpx): New.
8894         (vec_vupklsh): New.
8895         (vec_vxor): New.
8896
8897 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
8898
8899         PR c/5430
8900         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
8901         added literals from substracted literals.
8902         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
8903         (fold) [associate]: Preserve MINUS_EXPR if needed.
8904
8905 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
8906
8907         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
8908         are obsoleted.
8909
8910 2002-04-23  Tom Tromey  <tromey@redhat.com>
8911
8912         * gcc.c: Added --resource.  For PR java/6314.
8913
8914 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
8915
8916         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
8917         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
8918         these libraries.
8919
8920 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
8921
8922         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
8923
8924 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
8925
8926         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
8927         workaround.
8928         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
8929         (ix86_expand_clrstr): Fix typo.
8930         * loop.c (gen_load_of_final_value): New.
8931         (loop_givs_rescan, strength_reduce, check_dbra_loop):
8932         Use it.
8933
8934 2002-04-23  Roger Sayle  <roger@eyesopen.com>
8935
8936         * builtins.c (builtin_memset_gen_str): New function.
8937         (expand_builtin_memset): Optimize the case of constant length, but
8938         unknown value.
8939
8940 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
8941
8942         * config/rs6000/altivec.h (vec_step): Remove extraneous
8943         parentheses.
8944         (vec_ctu): Cast return.
8945
8946 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
8947
8948         PR target/6413
8949         * function.h: (struct function): Add profile_label_no field.
8950         (current_function_profile_label_no): Define.
8951         * function.c: (profile_label_no): New static var.
8952         (expand_function_start): Increment it, and copy to
8953         current_function_profile_label_no.
8954         * output.h (profile_label_no): Delete.
8955         * final.c (profile_label_no): Delete.
8956         (profile_function): Use current_function_profile_label_no.
8957         (final_end_function): Don't increment profile_label_no here.
8958         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
8959         profile_label_no with current_function_profile_label_no.
8960         * config/pa/pa.c (current_function_number): Delete.
8961         (pa_output_function_prologue): Don't output profile label here.
8962         (hppa_profile_hook): Use label_no param rather than
8963         current_function_number.
8964         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
8965         * config/pa/pa.h: .. here.
8966         (FUNCTION_PROFILER): Output profile label here.
8967
8968 2002-04-22  Eric Christopher  <echristo@redhat.com>
8969
8970         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
8971         patch of 2002-04-09 due to binutils issues.
8972         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
8973
8974 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
8975
8976         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
8977         constraint to 'o' for m=r and r=m alternatives.
8978         ("*movv8hi_internal1"): Same.
8979         ("*movv16qi_internal1"): Same.
8980         ("*movv4sf_internal1"): Same.
8981
8982 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
8983
8984         * rtl.h (RTX_FLAG): New macro.
8985         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
8986         * final.c (alter_subreg): Use macro to access rtx flag.
8987         * integrate.c (copy_rtx_and_substitute): Use new access macro.
8988         * print-rtl.c (print_rtx): Use new access macro.
8989
8990         * cse.c (insert): Check rtx code before accessing flag.
8991
8992         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
8993         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
8994         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
8995         convert_const_symbol_ref, make_canonical, make_alternative_compare,
8996         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
8997         simplify_test_exp, optimize_attrs, simplify_by_exploding,
8998         find_and_mark_used_attributes, unmark_used_attributes,
8999         add_values_to_cover, simplify_with_current_value,
9000         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
9001         copy_rtx_unchanging, main): Use new access macros.
9002
9003 2002-04-22  Tom Rix  <trix@redhat.com>
9004
9005         * expmed.c (init_expmed): Generate shifted constant once.
9006
9007 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
9008
9009         * c-lex.c (lex_charconst): Call convert to get constant in
9010         proper type; don't just smash the type field.
9011         Fixes PR c/6300.
9012
9013         * config.gcc: Add list of obsolete configurations.  Disallow
9014         building these without --enable-obsolete.
9015         * doc/install.texi: Document --enable-obsolete and obsoletion
9016         policy.  Mention obsoletion of individual targets in
9017         appropriate places.
9018
9019 2002-04-22  Richard Henderson  <rth@redhat.com>
9020
9021         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
9022
9023 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
9024
9025         PR f/6138.
9026         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
9027         (walk_fixup_memory_subreg): Likewise.
9028         (fixup_var_refs_insn): Adjust accordingly.
9029         (fixup_var_refs_1): Likewise.
9030
9031 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
9032
9033         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
9034         LIBPATH_ARCH64_SPEC): Define.
9035         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
9036         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
9037         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
9038         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
9039
9040 2002-04-22      Joel Sherrill <joel@OARcorp.com>
9041
9042         * gthr-rtems.h: Correct prototypes to remove warnings.
9043
9044 2002-04-22  Richard Henderson  <rth@redhat.com>
9045
9046         PR c/6344
9047         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
9048
9049         * gcse.c (free_insn_expr_list_list): New.
9050         (clear_modify_mem_tables): Use it.  Fix bit set usage.
9051         (canon_list_insert): Use EXPR_LISTs for expressions.
9052         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
9053
9054 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9055
9056         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
9057         file change and include code to _cpp_pop_buffer.
9058         * cpphash.h (struct pending_option): Predeclare.
9059         (struct cpp_reader): New member next_include_file.
9060         (_cpp_pop_file_buffer): Update.
9061         (_cpp_push_next_buffer): Update, rename.
9062         * cppinit.c (cpp_destroy): Free include chain and pending here.
9063         (cpp_finish_options): Simplify.
9064         (_cpp_push_next_buffer): Rename and clean up.
9065         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
9066         Clarify.
9067         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
9068
9069 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
9070
9071         * config/rs6000/altivec.h (vec_xor): Add variant for both args
9072         being vector signed int.
9073         (vec_andc): Same.
9074         (vec_xor): Add variant for both args being vector signed char.
9075         Remove redundant variant.
9076         (vec_andc): Same.
9077
9078 2002-04-21  David S. Miller  <davem@redhat.com>
9079
9080         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
9081         compare mode in output RTL.
9082
9083 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
9084
9085         * config/rs6000/rs6000.c (rs6000_override_options): Correct
9086         style and formatting of previous patch.
9087
9088 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
9089
9090         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
9091         flag_pic for ABI_AIX.
9092
9093 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9094
9095         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
9096         * cppfiles.c (read_include_file): Similarly.
9097         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
9098         uxstrdup ustrchr, ufputs): Similarly.
9099         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
9100         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
9101         cpp_ideq, parse_identifier, parse_number): Similarly.
9102         * cpplib.c (struct directive, dequote_string, D, run_directive,
9103         cpp_push_buffer): Similarly.
9104         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
9105         _cpp_create_definition, check_trad_stringification,
9106         cpp_macro_definition): Similarly.
9107
9108 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9109
9110         * cppmacro.c (funlike_invocation_p): Don't step back
9111         over CPP_EOF.
9112
9113 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
9114
9115         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
9116         labelno.
9117
9118 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
9119
9120         * doc/invoke.texi: Remove Chill references.
9121         * doc/gcc.texi: Update last modified date.
9122
9123 2002-04-20  Kazu Hirata  <kazu@hxi.com>
9124
9125         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
9126         push and pop.  Replace add.l with add.w.
9127
9128 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
9129
9130         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
9131         multiply instructions for H8/300H case.
9132
9133 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
9134
9135         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
9136         Bum three instructions from each routine.
9137
9138 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9139
9140         * Makefile.in: Update.
9141         * decl.c (push_c_function_context, pop_c_function_context,
9142         mark_c_function_context): Rename for consistency.
9143         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
9144         * c-tree.h (push_c_function_context, pop_c_function_context,
9145         mark_c_function_context): Rename for consistency.
9146         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9147         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9148         * function.c (init_lang_status, save_lang_status,
9149         restore_lang_status, mark_lang_status, free_lang_status):
9150         Move to langhooks.h.
9151         (push_function_context_to, pop_function_context_from,
9152         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
9153         Update.
9154         * function.h (init_lang_status, save_lang_status,
9155         restore_lang_status, mark_lang_status, free_lang_status):
9156         Move to langhooks.h.
9157         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
9158         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
9159         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
9160         LANG_HOOKS_FUNCTION_INITIALIZER): New.
9161         (LANG_HOOKS_INITIALIZER): Update.
9162         (lhd_do_nothing_f): New.
9163         * langhooks.h (struct lang_hooks_for_functions): New.
9164         (struct lang_hooks): New hooks.
9165         * langhooks.c (lhd_do_nothing_f): New.
9166 objc:
9167         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9168         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9169
9170 2002-04-19  David S. Miller  <davem@redhat.com>
9171
9172         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
9173         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
9174
9175 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
9176
9177         PR optimization/3756
9178         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
9179         x = ((int) y < 0) ? cst1 : cst2.
9180
9181 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
9182
9183         PR c/6358
9184         * function.c: Reapply patch for c/6358.
9185         (expand_function_end): Copy decl_rtl's mode, not
9186         current_function_return_rtx mode.
9187
9188 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
9189
9190         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
9191         targets.
9192
9193 2002-04-19  Tom Tromey  <tromey@redhat.com>
9194
9195         * doc/install.texi (Specific): Update status of Solaris 2.8.
9196         For PR libgcj/6158.
9197
9198 2002-04-19  Andreas Schwab  <schwab@suse.de>
9199
9200         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
9201         (PUT_REAL): Restore old definition.
9202
9203 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
9204             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9205
9206         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
9207         binutils 2.11.2 and higher generate smaller binaries than Sun's
9208         native tools.
9209
9210 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
9211
9212         PR c++/6352
9213         * toplev.c (rest_of_compilation): Do not defer functions for which
9214         TREE_SYMBOL_REFERENCED has already been set.
9215
9216 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
9217
9218         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
9219         alternative.
9220
9221 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9222
9223         * builtins.c: Include langhooks.h.
9224         (lang_type_promotes_to): Remove.
9225         (expand_builtin_va_arg): Use new hook.
9226         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
9227         (simple_type_promotes_to): Move to c-typeck.c.
9228         * c-common.h (simple_type_promotes_to): Remove.
9229         * c-decl.c (duplicate_decls, grokdeclarator): Update.
9230         * c-format.c: Include langhooks.h.
9231         (check_format_types): Update.
9232         * c-tree.h (c_type_promotes_to): New.
9233         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
9234         (type_lists_compatible_p): Update.
9235         * langhooks-def.h (lhd_type_promotes_to): New.
9236         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
9237         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9238         * langhooks.c (lhd_type_promotes_to): New.
9239         * langhooks.h (struct lang_hooks_for_types): New hook.
9240         * tree.h (lang_type_promotes_to): Remove.
9241 objc:
9242         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
9243
9244 2002-04-18  Richard Henderson  <rth@redhat.com>
9245
9246         * function.c: Revert patch for c/6358.
9247
9248 2002-04-18  Richard Henderson  <rth@redhat.com>
9249
9250         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
9251         blocks.  Handle multiple references to the TRAP block.  Handle
9252         non-adjacent THEN and OTHER blocks.
9253
9254 2002-04-18  Richard Henderson  <rth@redhat.com>
9255
9256         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
9257         crash with no type for by-mode libcalls.
9258
9259         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
9260
9261 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
9262
9263         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
9264         __xtensa_nonlocal_goto): Use a syscall instructions to flush
9265         the register windows.
9266
9267 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
9268
9269         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
9270         appropriate.  Document need for extended precision even when
9271         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
9272         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
9273         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
9274         instead of relying on later syntax error when REAL_WIDTH > 5.
9275         * real.c: Define NE based only on whether or not we have a
9276         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
9277         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
9278         define GET_REAL and PUT_REAL as simple memcpy operations; no
9279         need to byteswap or round.
9280         Use #error instead of #ifdef-ing out the entire file, for
9281         prompt error detection.
9282
9283         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
9284
9285 2002-04-18  David S. Miller  <davem@redhat.com>
9286
9287         * config/sparc/sparc.h (BRANCH_COST): Define.
9288
9289         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
9290         does it.
9291
9292 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
9293
9294         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
9295         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
9296         propagate_block calls after relaxation loop using new variable
9297         stabilized_prop_flags.
9298
9299 2002-04-18  Richard Henderson  <rth@redhat.com>
9300
9301         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
9302         (ia64_va_arg): Expect variable sized types by reference.
9303         * config/ia64/ia64-protos.h: Update.
9304         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
9305         ia64_function_arg_pass_by_reference.
9306
9307 2002-04-18  Richard Henderson  <rth@redhat.com>
9308
9309         * ifcvt.c: Include except.h.
9310         (block_has_only_trap): Break out from find_cond_trap.
9311         (find_cond_trap): Use it.  Always delete the trap block.
9312         (merge_if_block): Allow then block null.  Be less simplistic about
9313         what insns can end a block.
9314         * Makefile.in (ifcvt.o): Depend on except.h.
9315
9316         * config/ia64/ia64.md (trap, conditional_trap): New.
9317
9318 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
9319
9320         PR c/6358
9321         * function.c (assign_parms): Assign hard current_function_return_rtx
9322         register here...
9323         (expand_function_end): ...not here.
9324
9325 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
9326
9327         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9328         * c-tree.h (c_incomplete_type_error): New.
9329         * c-typeck.c (require_complete_type, build_component_ref): Update.
9330         (incomplete_type_error): Rename.
9331         * langhooks-def.h (lhd_incomplete_type_error): New.
9332         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
9333         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9334         * langhooks.c (lhd_incomplete_type_error): New.
9335         * langhooks.h (struct lang_hooks_for_types): New hook.
9336         * tree.c (size_in_bytes): Use new hook.
9337         * tree.h (incomplete_type_error): Remove.
9338 objc:
9339         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9340
9341 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
9342
9343         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
9344         TARGET_FLOAT_FORMAT blocks.
9345
9346 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9347
9348         * doc/install.texi (Downloading the source): Do not mention Chill
9349         any longer, but mention Ada.
9350         (Configuration): Do not mention Chill any longer.
9351
9352 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
9353
9354         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
9355
9356 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
9357
9358         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
9359         in last patch.
9360
9361 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
9362
9363         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
9364         instead of unsigned_type.
9365
9366 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
9367
9368         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
9369         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
9370         later.
9371
9372 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
9373
9374         * attribs.c (vector_type_node_list): New static variable.
9375         (handle_vector_size_attribute): Use it to avoid generating a
9376         new type node each time we are called.
9377
9378         * combine.c (subst): Avoid trying to make a vector mode subreg of
9379         an integer constant.
9380         (gen_lowpart_for_combine): Likewise.
9381
9382 2002-04-18  Roger Sayle  <roger@eyesopen.com>
9383             Jakub Jelinek  <jakub@redhat.com>
9384
9385         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
9386         for integer constant c (if x has unsigned type or sign bit is not
9387         set in c).  This folds the zero/sign extension into the bit-wise and
9388         operation.
9389
9390 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
9391
9392         PR middle-end/6205
9393         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
9394         otherwise xorps.
9395
9396 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
9397
9398         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
9399
9400 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
9401
9402         * gcc.c (read_specs): Detect and fail if an attempt is made to
9403         rename a spec string to an already existing string.
9404
9405 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9406
9407         * config/s390/s390.c (legitimize_pic_address): Do not generate
9408         illegal address constant without CONST.
9409
9410 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9411
9412         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
9413         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9414
9415 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9416
9417         PR optimization/6305
9418         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
9419         to make sure previous reloads are taken into account.  Generate
9420         better code if one operand is an in-range immediate constant.
9421
9422 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
9423
9424         * doc/install.texi (Building): libgcj requires GNU make.
9425
9426 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
9427
9428         PR bootstrap/6315
9429         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
9430         even if hard quad and register is not floating.
9431         (movtf reg<-mem split): Disallow splitting if hard quad and
9432         register is floating.
9433         (movtf mem<-reg split): Likewise.
9434         * config/sparc/sparc.c (fp_register_operand): New predicate.
9435         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
9436
9437 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
9438
9439         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
9440         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
9441         (unprotoize.o): Ditto.  Build from protoize.c.  Define
9442         UNPROTOIZE on command line.
9443         * protoize.c: Include cppdefault.h.  Delete include_defaults.
9444         (in_system_include_dir): Use cpp_include_defaults (defined in
9445         cppdefault.o).
9446         * unprotoize.c: Delete file.
9447
9448 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
9449
9450         * config/rs6000/altivec.h (vec_ld): Add array variants.
9451         (vec_lde): Same.
9452         (vec_ldl): Same.
9453
9454 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
9455             Aldy Hernandez <aldyh@redhat.com>
9456
9457         * config/rs6000/altivec.h: Define __ALTIVEC__.
9458         (bool): New.
9459         (__pixel): New.
9460         (pixel): New.
9461         (vec_cfux): New.
9462         (vec_vmaddfp): New.
9463         (vec_vsldoi): New.
9464         Add parentheses to all macro arguments.
9465
9466 2002-04-16  Richard Henderson  <rth@redhat.com>
9467
9468         PR c++/6320
9469         * except.c (remove_eh_handler): Insert inner regions at beginning
9470         of sibling chain.  Refactor expressions.
9471
9472 2002-04-16  Richard Henderson  <rth@redhat.com>
9473
9474         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
9475         * config/sparc/sol2-gas-bi.h: New file.
9476         * config.gcc (sparc*-solaris): Add it as needed.
9477         * configure.in (AS_SPARC64_FLAG): Remove check.
9478         * config.in, configure: Regenerate.
9479
9480         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
9481
9482 2002-04-16  Richard Henderson  <rth@redhat.com>
9483
9484         * config/mips/mips.c (override_options): Don't override N32 for
9485         a 64-bit ISA.
9486
9487         PR 6202
9488         * config/mips/mips.md (can_delay): Split out of existing define_delays.
9489         (HILO_delay): Set can_delay false.
9490
9491 2002-04-16  Dale Johannesen <dalej@apple.com>
9492
9493         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
9494         instruction addresses.
9495         (rs6000_output_function_epilogue): Likewise.
9496
9497 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
9498
9499         * c-parse.in (poplevel, compstmt_start,
9500         compstmt_primary_start): Add ending ';', in accordance
9501         with POSIX.
9502
9503 2002-04-16  Richard Henderson  <rth@redhat.com>
9504
9505         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
9506         Adjust tm_file order to get TARGET_DEFAULT set properly.
9507         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
9508         * doc/install.texi (sparc-solaris): Update.
9509
9510 2002-04-16  Dale Johannesen <dalej@apple.com>
9511
9512         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
9513         comparison operands do not match each other or if modes of
9514         conditions do not match result.
9515
9516 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
9517
9518         PR target/6305
9519         * config/s390/s390.md (mulsidi3): Set both subregs of the
9520         multiword register.
9521
9522 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
9523
9524         * config/rs6000/altivec.h (vec_addc): Type check.
9525
9526 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
9527
9528         PR middle-end/6279
9529         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
9530
9531         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
9532
9533 2002-04-15  Richard Henderson  <rth@redhat.com>
9534
9535         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
9536         call_really_used_regs too.
9537
9538 2002-04-15  Richard Henderson  <rth@redhat.com>
9539
9540         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
9541
9542 2002-04-15  David S. Miller  <davem@redhat.com>
9543
9544         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
9545         as being CLOBBERed.
9546
9547 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
9548
9549         PR c/6290
9550         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
9551         CONST_VECTOR is { 0, ... 0 }.
9552
9553 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
9554
9555         * doc/install.texi (Installing GCC: Configuration): Clarify
9556         the only supported ways to configure gcc.
9557
9558 2002-04-15  Roland McGrath  <roland@frob.com>
9559
9560         * config.gcc (alpha*-*-gnu*): New target configuration.
9561         * config/alpha/gnu.h: New file for it.
9562         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
9563
9564 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
9565
9566         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
9567         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
9568         * tree.h (expand_start_stmt_expr): Update prototype.
9569         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
9570         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
9571         on the STMT_EXPR created for the inline function.
9572
9573 2002-04-15  Richard Henderson  <rth@redhat.com>
9574
9575         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
9576         config/i386/linux-aout.h, config/i386/linux-oldld.h,
9577         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
9578         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
9579         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
9580         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
9581         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
9582         Define __gnu_linux__, not gnu_linux.
9583         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
9584
9585 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
9586
9587         Remove Chill front end.
9588         * gcc.c (default_compilers): Remove Chill entries.
9589         * ch: Remove directory.
9590         * doc/frontends.texi: Remove information about Chill.
9591         * doc/sourcebuild.texi: Likewise.
9592         * doc/standards.texi: Likewise.
9593
9594 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
9595
9596         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
9597         (LONGLONG_STANDALONE): Define.
9598
9599 2002-04-15  David S. Miller  <davem@redhat.com>
9600
9601         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
9602         Call emit_library_call with LCT_NORMAL.
9603         (sparc_initialize_trampoline): Use LCT_foo instead of
9604         magic constant in emit_library_call invocations.
9605         (sparc64_initialize_trampoline): Likewise.
9606         (sparc_profile_hook): Likewise.
9607         * config/sparc/sparc.md: Likewise.
9608
9609         * config/sparc/sparc.c (sparc_extra_constraint_check):
9610         Fix type of argument 'c'.
9611         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
9612         Likewise.
9613
9614 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
9615
9616         * diagnostic.h (output_buffer_state): Redefine.
9617         (output_format_decoder): New macro.
9618         (output_prefixing_rule): Likewise.
9619         (output_line_cutoff): Likewise.
9620         (diagnostic_format_decoder): Adjust.
9621         (diagnostic_prefixing_rule): Likewise.
9622         (diagnostic_line_cutoff): Likewise.
9623         (diagnostic_state): Likewise.
9624         (diagnostic_kind_count): Likewise.
9625         (diagnostic_buffer): Now a macro.
9626
9627         * diagnostic.c (diagnostic_buffer): Remove definition.
9628         (output_is_line_wrapping): Adjust.
9629         (set_real_maximum_length): Likewise.
9630         (output_set_maximum_length): Likewise.
9631         (init_output_buffer): Likewise.
9632         (lhd_print_error_function): Likewise.
9633         (output_do_verbatim): Likewise.
9634
9635 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
9636
9637         * cpperror.c (print_location): Don't print include chain
9638         if line == 0.
9639         (cpp_begin_message): Update to use DL_ macros.
9640         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9641         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9642         cpp_notice, cpp_notice_from_errno): Remove.
9643         (cpp_error, cpp_error_with_line): Update to take a diagnostic
9644         level.
9645         (cpp_errno): New.
9646         * cppexp.c (CPP_ICE): Remove.
9647         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
9648         lex, integer_overflow, _cpp_parse_expr): Update.
9649         * cppfiles.c (read_include_file, find_include_file,
9650         handle_missing_header, _cpp_read_file, remap_filename): Update.
9651         * cpphash.h (enum error_type): Remove.
9652         (_cpp_begin_message): Update.
9653         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
9654         cpp_handle_option, cpp_post_options): Update.
9655         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
9656         skip_whitespace, parse_identifier, parse_slow, parse_string,
9657         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
9658         cpp_interpret_charconst): Update.
9659         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
9660         lex_macro_node, do_undef, glue_header_name, parse_include,
9661         do_include_common, read_flag, do_line, do_linemarker, do_ident,
9662         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
9663         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
9664         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
9665         _cpp_pop_buffer, do_diagnostic): Update.
9666         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
9667         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
9668         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9669         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9670         cpp_notice, cpp_notice_from_errno): Remove.
9671         (cpp_error, cpp_error_with_line): Update to take a diagnostic
9672         level.
9673         (cpp_errno): New.
9674         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
9675         collect_args, enter_macro_context, save_parameter, parse_params,
9676         _cpp_create_definition, check_trad_stringification,
9677         cpp_macro_definition): Update.
9678         * cppmain.c (cpp_preprocess_file): Update.
9679         * fix-header.c (read_scan_file): Update.
9680
9681 2002-04-14  Andreas Schwab  <schwab@suse.de>
9682
9683         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
9684
9685 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9686
9687         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
9688
9689 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
9690
9691         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
9692         not gnu_hurd.
9693
9694 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
9695
9696         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
9697
9698 2002-04-13      Joel Sherrill <joel@OARcorp.com>
9699
9700         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
9701         sparc-elf and sparc-rtems targets.
9702
9703 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
9704
9705         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
9706         defined, and __gnu_hurd__ wherever __GNU__ is defined.
9707         * arm/linux-elf.h: Likewise.
9708         * cris/aout.h: Likewise.
9709         * cris/linux.h: Likewise.
9710         * i370/linux.h: Likewise.
9711         * i386/gnu.h: Likewise.
9712         * i386/linux-aout.h: Likewise.
9713         * i386/linux-oldld.h: Likewise.
9714         * i386/linux.h: Likewise.
9715         * i386/linux64.h: Likewise.
9716         * ia64/linux.h: Likewise.
9717         * m68k/linux-aout.h: Likewise.
9718         * m68k/linux.h: Likewise.
9719         * mips/linux.h: Likewise.
9720         * pa/pa-linux.h: Likewise.
9721         * pj/linux.h: Likewise.
9722         * rs6000/sysv4.h: Likewise.
9723         * s390/linux.h: Likewise.
9724         * sh/linux.h: Likewise.
9725         * sparc/linux-aout.h: Likewise.
9726         * sparc/linux.h: Likewise.
9727         * sparc/linux64.h: Likewise.
9728         * xtensa/linux.h: Likewise.
9729
9730 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
9731
9732         * stmt.c (check_unique_operand_names): Expect operand names to
9733         be strings rather than identifiers.  Use simple_cst_equal to
9734         compare them.
9735         (resolve_operand_name_1): Make same identifier to string change here.
9736         * c-parse.in (asm_operand): Convert a named operand into a string.
9737         * cp/parse.y (asm_operand): Likewise.
9738
9739 2002-04-13  Andreas Schwab  <schwab@suse.de>
9740
9741         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
9742
9743 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
9744
9745         Revert these changes:
9746
9747         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
9748
9749         PR c++/5571
9750         * stor-layout.c (layout_decl): Reset the RTL for the decl.
9751
9752 2002-04-12  Richard Henderson  <rth@redhat.com>
9753
9754         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
9755         (sparc*-*-solaris): Clean up header files.
9756         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
9757         and plan on generating 64-bit code.
9758         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
9759         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
9760         * config/sparc/sol2-sld-64.h: Rename ...
9761         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
9762         for AS_SPARC64_FLAG not defined.
9763         * config/sparc/sol2-gld-bi.h: New.
9764         * config/sparc/sol2-sld.h: Remove.
9765         * config/sparc/sol26-sld.h: New.
9766         * config/sparc/sol2.h: Tidy comments.
9767         * doc/install.texi: Document sparc-solaris configury changes.
9768
9769 2002-04-12  Richard Henderson  <rth@redhat.com>
9770
9771         * recog.c (offsettable_address_p): Match the logic in adjust_address.
9772
9773         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
9774         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
9775
9776 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9777
9778         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
9779
9780 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
9781
9782         * pa.c (pa_can_combine_p): Call extract_insn before calling
9783         constrain_operands.
9784
9785 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
9786
9787         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
9788         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
9789         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9790         (CPP_PREDEFINES): Handle __declspec.
9791         * config/i386/t-interix (USER_H): Remove.
9792
9793 2002-04-12  DJ Delorie  <dj@redhat.com>
9794
9795         * integrate.c (compare_blocks): Make comparisons safe for when
9796         sizeof(int) < sizeof(char *).
9797         (find_block): Likewise.
9798
9799 2002-04-12  Jan Hubicka  <jh@suse.cz>
9800             David Edelsohn  <edelsohn@gnu.org>
9801
9802         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
9803         registers.
9804         (symbol_ref_operand): New.
9805         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
9806         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
9807
9808 2002-04-12  Andreas Schwab  <schwab@suse.de>
9809
9810         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
9811         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
9812         overrides the definition in config/svr4.h.
9813
9814 2002-04-12      Eric Norum <eric.norum@usask.ca>
9815
9816         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
9817         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
9818         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
9819         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
9820         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
9821         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
9822         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
9823         definitions to config/rtems.h and make the targets more similar.
9824
9825 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9826
9827         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
9828         POINTERS_EXTEND_UNSIGNED.
9829         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
9830         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
9831
9832         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
9833         not specified.
9834
9835 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
9836
9837         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
9838         depends on TARGET_SHMEDIA, not TARGET_SH5.
9839
9840 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
9841
9842         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
9843         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
9844
9845 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
9846
9847         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
9848         no r0 clobber.
9849
9850 2002-04-12  Andreas Schwab  <schwab@suse.de>
9851
9852         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
9853
9854 2002-04-12  Richard Henderson  <rth@redhat.com>
9855
9856         PR bootstrap/4191
9857         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
9858
9859         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
9860         modes spanning multiple hard regs.
9861
9862         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
9863
9864 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9865
9866         * pa.c (pa_output_function_prologue): Don't accumulate the total
9867         number of code bytes when using TARGET_64BIT, or gas, SOM and not
9868         the portable runtime.
9869         (output_deferred_plabels): Handle 64bit plabels.
9870         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
9871         generating pic code using the GAS assembler for object formats that
9872         are not SOM (ie., ELF32 and ELF64).
9873         (output_millicode_call): Check attribute type if attribute length is 28.
9874         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
9875         dbr_sequence_length once.
9876         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
9877         dbr_sequence_length once.
9878         * pa.h (TARGET_SOM): Define if not defined.
9879         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
9880         with GAS and not SOM.
9881         (jump, call_internal_reg, call_value_internal_reg): Likewise.
9882         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
9883
9884 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9885
9886         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
9887         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
9888         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
9889         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
9890         elfos.h and dbxelf.h values are fine now.
9891         * config/i386/freebsd.h, config/alpha/freebsd.h
9892         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
9893
9894 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9895
9896         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
9897         or set Acpu or Amachine.  Reformat.
9898         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9899         define.
9900         (LINK_SPEC): Do not need to undef.
9901         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
9902         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
9903         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9904         define.
9905         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
9906         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
9907         (LINK_SPEC): Do not need to undef.
9908         (DONT_USE_BUILTIN_SETJMP): Do not define.
9909         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
9910         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
9911         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
9912         Remove trailing spaces.
9913         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
9914         __ELF__, or set Acpu or Amachine.  Reformat.
9915         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9916         define.
9917
9918 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9919
9920         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
9921         all other *-*-freebsd* targets.
9922
9923 2002-04-11  Richard Henderson  <rth@redhat.com>
9924
9925         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
9926
9927 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9928
9929         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
9930         Include {cpu}/{cpu}.h thru tm_file.
9931         (alpha*-*-linux*ecoff): Remove target.
9932         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
9933         (LINK_SPEC): Remove, is not OS independent.
9934         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
9935         (LINK_SPEC): Do not need to #undef any longer.
9936         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
9937         any longer.
9938         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
9939         __ELF__.
9940         (LINK_SPEC): Moved here from alpha/elf.h.
9941         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
9942         SUB_CPP_PREDEFINES.
9943         * config/alpha/linux-ecoff.h: Remove.
9944         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
9945         (CPP_SPEC): Define _POSIX_SOURCE as needed.
9946         (CPP_SUBTARGET_SPEC): Do not define.
9947         (LINK_SPEC): Do not need to #undef any longer.
9948         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
9949         * config/alpha/vms.h: Likewise.
9950
9951 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
9952
9953         * doc/extend.texi: Remove old claim that typedefs cannot have
9954         an alignment attribute.
9955
9956 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
9957
9958         PR optimization/6177
9959         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
9960         bitpos is 0 and bitsize CONCAT size.
9961
9962 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
9963
9964         PR c/6223
9965         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
9966
9967 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
9968
9969         * config/alpha/freebsd.h: Minor reformatting.
9970         (CPP_SPEC): Define ELF and add cpp_subtarget.
9971         (ASM_SPEC): No longer needed.
9972
9973 2002-04-11  Richard Henderson  <rth@redhat.com>
9974
9975         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
9976         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
9977         (dimode mem/zero splitter): New.
9978
9979 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
9980
9981         * config/cris/cris.c (cris_override_options): Tweak error message
9982         for PIC not implemented.
9983
9984         * config/cris/cris.h: Tweak comments related to parameter-passing.
9985
9986         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
9987
9988 2002-04-10  Richard Henderson  <rth@redhat.com>
9989
9990         * except.c (add_ehl_entry): Allow duplicates after landing pad
9991         creation.
9992
9993 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
9994
9995         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
9996
9997 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
9998
9999         * c-decl.c (c_init_decl_processing): Move generation of
10000         decls for g77_integer_type_node and friends from here ...
10001         * c-common.c (c_common_nodes_and_builtins): ... to here.
10002
10003 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
10004
10005         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
10006         is only used as frame pointer when frame_pointer_needed is true.
10007
10008 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
10009
10010         PR target/817
10011         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
10012         for the fact that the pool entry uses two words.
10013         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
10014         1k bytes.
10015         (movdf_soft_insn): Similarly.
10016         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
10017         for the fact that the pool entry uses three words.
10018
10019 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
10020
10021         * config/mips/mips.c (mips_va_arg): When using the struct version
10022         of the EABI va_list, allow arguments in the register save area to
10023         take up less room than a stack argument.
10024
10025 2002-04-10  Richard Henderson  <rth@redhat.com>
10026
10027         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
10028         if EXPAND_INITIALIZER.
10029
10030 2002-04-09  Richard Henderson  <rth@redhat.com>
10031
10032         * config/alpha/alpha.md (movdi_er_maybe_g): New.
10033         * config/alpha/alpha.c (alpha_expand_mov): Use it.
10034
10035 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
10036
10037         PR optimization/6233
10038         * rtlanal.c (pure_call_p): New function.
10039         * rtl.h (pure_call_p): Declare.
10040         * loop.c (prescan_loop): Use it to set has_nonconst_call.
10041         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
10042
10043 2002-04-09  Eric Christopher  <echristo@redhat.com>
10044
10045         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
10046         information to .comm directive.
10047
10048 2002-04-09  Richard Henderson  <rth@redhat.com>
10049
10050         PR c/5078
10051         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
10052
10053 2002-04-09  Richard Henderson  <rth@redhat.com>
10054
10055         * basic-block.h (flow_delete_block_noexpunge): Declare.
10056         (expunge_block_nocompact): Declare.
10057         * cfg.c (expunge_block_nocompact): Split out from ...
10058         (expunge_block): ... here.
10059         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
10060         (flow_delete_block_noexpunge): Split out from ...
10061         (flow_delete_block): ... here.
10062         * cfgcleanup.c (delete_unreachable_blocks): Compact while
10063         removing dead blocks.
10064         * except.c (exception_handler_labels): Remove.
10065         (exception_handler_label_map): New.
10066         (struct eh_region): Add aka member.
10067         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
10068         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
10069         (for_each_eh_label, for_each_eh_label_1): New.
10070         (init_eh): Register exception_handler_label_map.
10071         (free_eh_status): Use free_region.
10072         (find_exception_handler_labels): Use the map, not the list.
10073         (remove_exception_handler_label): Likewise.
10074         (maybe_remove_eh_handler): Likewise.
10075         (remove_eh_handler): Use the region aka bitmap.
10076         * except.h (exception_handler_labels): Remove.
10077         (for_each_eh_label): Declare.
10078         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
10079         * loop.c (invalidate_loops_containing_label): New.
10080         (find_and_verify_loops): Use it.  Use for_each_eh_label.
10081         * sched-rgn.c (is_cfg_nonregular): Use
10082         current_function_has_exception_handlers.
10083
10084 2002-04-09  Richard Henderson  <rth@redhat.com>
10085
10086         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
10087         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
10088         Do not return changed status.
10089         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
10090         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
10091         New functions that do return changed status.
10092         * sbitmap.h: Update decls.
10093         * gcse.c, lcm.c: Use _cg functions as needed.
10094
10095 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
10096
10097         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
10098         (sh64-*-elf*, sh-*-rtemself*): Likewise.
10099         * config/sh/embed_bb.c: New file.
10100         * config/sh/embed-elf.h: New file.
10101         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
10102         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
10103         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10104         __PTRDIFF_TYPE__ .
10105         (SUBTARGET_CPP_PTR_SPEC): Don't define.
10106         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
10107         Add subtarget_asm_endian_spec.
10108         (ASM_SPEC): Use subtarget_asm_endian_spec.
10109         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
10110         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
10111         (WCHAR_UNSIGNED): Define.
10112         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
10113         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10114         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
10115         Fix value.
10116         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
10117         (sh_adjust_cost): Likewise.
10118         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10119         __PTRDIFF_TYPE__ .
10120         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
10121         (WCHAR_TYPE_SIZE): Likewise.
10122         (ASM_SPEC): Use subtarget_asm_endian_spec.
10123         (SH_ELF_WCHAR_TYPE): #undef/ #define.
10124         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
10125         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
10126         (MAX_WCHAR_TYPE_SIZE): Don't #define .
10127         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
10128         (USER_LABEL_PREFIX): Don't #undef /#define .
10129         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10130         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
10131         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
10132         (ASM_SPEC): Likewise.
10133         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
10134         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
10135         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
10136         (LIB2FUNCS_EXTRA): Define.
10137         * t-sh64 (LIB2FUNCS_EXTRA): Define.
10138         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
10139         (LIB1ASMFUNCS_CACHE): Define.
10140         (LIB2FUNCS_EXTRA): Redefine empty.
10141
10142 2002-04-08  Richard Henderson  <rth@redhat.com>
10143
10144         * reorg.c (get_branch_condition): Use reversed_comparison_code.
10145
10146 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10147
10148         * config/m68hc11/larith.asm (__map_data_section): Fix condition
10149         and optimize for size.
10150         (__do_global_ctors): Fix pointer comparison.
10151         (__do_global_dtors): Likewise.
10152
10153 2002-04-09  David S. Miller  <davem@redhat.com>
10154
10155         * config/sparc/sparc.c (sparc_extra_constraint_check): New
10156         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
10157         allow reloading pseudos.
10158         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
10159         * config/sparc/sparc-protos.h: Declare it.
10160
10161         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
10162         unsigned comparison warning.
10163         (output_restore_regs): Mark leaf_function as unused.
10164
10165 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10166
10167         * expr.c (is_aligning_offset): New function.
10168         (expand_expr, case COMPONENT_EXPR): Call it.
10169
10170 2002-04-08  David S. Miller  <davem@redhat.com>
10171
10172         PR target/6082
10173         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
10174
10175         Make init_priority work on Sparc when using GNU ld.
10176         * config/sparc/linux.h, config/sparc/linux64.h,
10177         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
10178         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
10179         * config/sparc/sol2-gld.h: New file to do the same.
10180         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
10181         sparc/sol2-gld.h to tm_file.
10182
10183         PR optimization/4328
10184         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
10185         * doc/md.texi: Document it.
10186         * config/sparc/sparc.md (movdi_insn_sp64_novis,
10187         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
10188         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
10189         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
10190         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
10191
10192 2002-04-08  Andreas Jaeger  <aj@suse.de>
10193
10194         * stmt.c (expand_asm_operands): Revert last patch from Richard
10195         Henderson.
10196
10197 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10198
10199         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
10200         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
10201
10202 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10203
10204         * doc/contrib.texi (Contributors): Add David O'Brien.
10205
10206 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
10207
10208         * configure.in (auto-build.h): Use target_alias and build_alias
10209         when running configure.
10210         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
10211         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
10212         * configure: Regenerate.
10213
10214 2002-04-07  David S. Miller  <davem@redhat.com>
10215
10216         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
10217
10218 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10219
10220         PR 5933
10221         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
10222         generating 32-bit pic code.
10223
10224 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
10225
10226         * cppinit.c (cpp_create_reader): Initialize
10227         discard_comments_in_macro_exp.
10228         (COMMAND_LINE_OPTIONS): Add "-CC" option.
10229         (cpp_handle_option): Handle "-CC" option.
10230         * cpplex.c (save_comment): If saving a C++ comment in
10231         a directive, convert it to a C comment.
10232         (_cpp_lex_direct): Pass second comment start character to
10233         save_comment to indicate comment type.
10234         * cpplib.c (_cpp_handle_directive): If processing
10235         a "#define" directive and discard_comments_in_macro_exp
10236         is false,  re-enable saving of comments.
10237         (lex_macro_node): If discard_comments_in_macro_exp is false,
10238         discard any comments before the macro identifier.
10239         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
10240         member.
10241         * cppmacro.c (cpp_get_token): If expanding a macro while
10242         processing a directive, discard any comments we might encounter.
10243         (parse_params): If discard_comments_in_macro_exp is false,
10244         ignore comments in the macro parameter list.
10245         * gcc.c (cpp_unique_options): Add "-CC" option.
10246         (option_map): Map "--comments-in-macros" to "-CC".
10247         * doc/cppopts.texi: Document "-CC" option.
10248         * f/lang-specs.h: Add "-CC" option.
10249         * testsuite/gcc.dg/cpp/maccom1.c: New test.
10250         * testsuite/gcc.dg/cpp/maccom2.c: New test.
10251         * testsuite/gcc.dg/cpp/maccom3.c: New test.
10252         * testsuite/gcc.dg/cpp/maccom4.c: New test.
10253         * testsuite/gcc.dg/cpp/maccom5.c: New test.
10254         * testsuite/gcc.dg/cpp/maccom6.c: New test.
10255
10256 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10257
10258         PR middle-end/6180
10259         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
10260
10261 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
10262
10263         PR c++/5571
10264         * stor-layout.c (layout_decl): Reset the RTL for the decl.
10265
10266         PR opt/5120
10267         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
10268         RTX_UNCHANGING_P for the functions arguments when a tail call
10269         is made.
10270
10271 2002-04-06  Jason Merrill  <jason@redhat.com>
10272
10273         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
10274         (parse_options_and_default_flags): Set them appropriately.
10275         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
10276
10277 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
10278
10279         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
10280         here.
10281
10282         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
10283         semicolon.
10284
10285         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
10286         types come in by-reference.  Fix typo in comment.
10287
10288 2002-04-05  David S. Miller  <davem@redhat.com>
10289
10290         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
10291         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
10292         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
10293         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
10294
10295 2002-04-05  David S. Miller  <davem@redhat.com>
10296
10297         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
10298         are not going to emit return instructions, emit at least a nop
10299         for the sake of sane backtraces.
10300
10301 2002-04-05  Richard Henderson  <rth@redhat.com>
10302
10303         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
10304
10305 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
10306
10307         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
10308
10309 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
10310
10311         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
10312         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
10313         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
10314
10315 2002-04-05  Andreas Schwab  <schwab@suse.de>
10316
10317         * c-convert.c: Include c-common.h.
10318         * Makefile.in (c-convert.o): Updated.
10319
10320 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
10321
10322         * mklibgcc.in: Use separate libgcc.map for each multilib.
10323         * Makefile.in (distclean): Don't remove libgcc.map here.
10324
10325 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
10326
10327         * Makefile.in (s-mlib): Handle --disable-multilib by separate
10328         genmultilib invocation.
10329
10330 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
10331
10332         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
10333         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
10334         to num_gprs for symmetry.
10335         * config/mips/mips.c: Adjust accordingly.
10336
10337 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10338
10339         * c-common.c (truthvalue_conversion): Rename, update.
10340         * c-common.h (c_common_truthvalue_conversion): New.
10341         * c-convert.c (convert): Update.
10342         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10343         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
10344         * c-typeck.c (build_binary_op, build_unary_op,
10345         build_conditional_expr): Update.
10346         * fold-const.c (constant_boolean_node, fold): Use langhook.
10347         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
10348         * langhooks.h (struct lang_hooks): New hook.
10349         * stmt.c (expand_decl_cleanup): Use langhook.
10350         * tree.h (truthvalue_conversion): Remove.
10351 objc:
10352         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10353
10354 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
10355
10356         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
10357         Add rules to make null object file.
10358
10359 2002-04-04  Jim Blandy  <jimb@redhat.com>
10360
10361         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
10362         macro formal parameter names.
10363
10364 2002-04-04  David S. Miller  <davem@redhat.com>
10365
10366         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
10367
10368 2002-04-04  Richard Henderson  <rth@redhat.com>
10369
10370         PR middle-end/5099
10371         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
10372         Support copies into and out of memory.  Don't accept allows_reg
10373         and allows_mem as gospel.
10374
10375 2002-04-04  Richard Henderson  <rth@redhat.com>
10376
10377         PR opt/6165
10378         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
10379         (write_dependence_p): Likewise.
10380
10381 2002-04-04  Richard Henderson  <rth@redhat.com>
10382
10383         * predict.c (estimate_bb_frequencies): Do frequency calculation
10384         with a volatile temporary.
10385
10386 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
10387
10388         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
10389
10390 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10391
10392         PR c++/6119
10393         * final.c (final_start_function): Don't bump profile_label_no here...
10394         (final_end_function): ...but here.
10395
10396 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10397
10398         * config/sparc/sparc.md (pic): New attribute.
10399         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
10400         into stack slots.
10401         (split after do_builtin_setjmp_setup): New.
10402
10403 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10404
10405         PR fortran/6106
10406         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
10407         change.
10408
10409 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10410
10411         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
10412         UNITS_PER_WORD for zero sized aggregates.
10413
10414 2002-04-03  David S. Miller  <davem@redhat.com>
10415
10416         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
10417         one-character spec for this, just use %(link_gcc_c_sequence).
10418
10419 2002-04-03  David S. Miller  <davem@redhat.com>
10420
10421         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
10422         handling.
10423
10424 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10425
10426         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
10427         (DWARF_FRAME_RETURN_COLUMN): Move.
10428         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10429         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
10430         * pa.c (except.h, predict.h): Include.
10431         (FRP): Delete.
10432         (store_reg_modify, set_reg_plus_d): Revise prototypes.
10433         (output_ascii): Add cast.
10434         (store_reg_modify): Revise to add frame notes.
10435         (set_reg_plus_d): Likewise.
10436         (compute_frame_size): Include space for eh data registers in frame if
10437         the current function calls eh_return.
10438         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
10439         function calls eh_return.  Save eh data registers if the current
10440         function calls eh_return.  Fix code to add frame notes.  Emit
10441         blockage to prevent insns with frame notes being scheduled in the
10442         delay slot of calls.
10443         (hppa_expand_epilogue): Restore eh data registers and do final stack
10444         adjustment if the current function calls eh_return.  Don't add frame
10445         notes.
10446         (output_call): Revise for change in length of call insn.  Don't do
10447         return pointer adjustment for an unconditional jump in the delay slot
10448         of a call when using frame notes.
10449         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
10450         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
10451         (ARG_POINTER_CFA_OFFSET): Define.
10452         * pa.md (return_external_pic): New pattern.
10453         (prologue): Correct formatting.  Use return_external_pic if current
10454         function calls eh_return.
10455         (call_internal_symref, call_value_internal_symref,
10456         sibcall_internal_symref, sibcall_value_internal_symref): Change default
10457         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
10458         respectively.
10459         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
10460
10461         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
10462         list of targets to check using "nop" insn.
10463         * configure: Rebuilt.
10464
10465 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
10466
10467         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
10468
10469 2002-04-03  David S. Miller  <davem@redhat.com>
10470
10471         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
10472         library sequence passed to the linker.
10473         (LINK_COMMAND_SPEC): Use it.
10474         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
10475         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
10476         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10477
10478 2002-04-03  Jason Merrill  <jason@redhat.com>
10479
10480         * except.c (struct eh_status): Remove protect_list.
10481         (begin_protect_partials, end_protect_partials): Remove.
10482         (add_partial_entry): Remove.
10483         * except.h: Remove prototypes.
10484
10485         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
10486         expand_decl_cleanup_eh.
10487
10488         PR c++/5636
10489         * tree.h (CLEANUP_EH_ONLY): New macro.
10490         * stmt.c (expand_decl_cleanup_eh): New fn.
10491         (expand_cleanups): Check CLEANUP_EH_ONLY.
10492         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
10493         Use expand_decl_cleanup_eh.
10494         (expand_stmt): Adjust.
10495         * c-common.h: Adjust prototype.
10496
10497 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
10498
10499         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
10500         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
10501         (cris_target_asm_function_epilogue): Ditto.
10502         (cris_initial_frame_pointer_offset): Ditto.
10503         (cris_simple_epilogue): Ditto.
10504         (cris_expand_builtin_va_arg): Variable-size types come in
10505         by-reference.
10506
10507 2002-04-03  David S. Miller  <davem@redhat.com>
10508
10509         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
10510         little-endian.
10511         (set_fast_math): Correct 'fsr' type.
10512
10513 2002-04-03  Richard Henderson  <rth@redhat.com>
10514
10515         PR opt/3569
10516         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
10517         * toplev.c (check_global_declarations): Use it.
10518         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
10519         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10520         (LANG_HOOKS_DECLS): Add it.
10521         * langhooks.c (lhd_warn_unused_global_decl): New.
10522         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10523         * c-objc-common.c (c_warn_unused_global_decl): New.
10524         * c-tree.h (c_warn_unused_global_decl): Declare.
10525         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10526
10527 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10528
10529         * langhooks-def.h (lhd_set_decl_assembler_name,
10530         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
10531         (LANG_HOOKS_INITIALIZER): Update.
10532         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
10533         * langhooks.h (struct lang_hooks): New hook.
10534         * tree.c (set_decl_assembler_name): Move to langhooks.c.
10535         (lang_set_decl_assembler_name): Remove.
10536         (init_obstacks): Don't set hook.
10537         (decl_assembler_name): New function.
10538         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
10539         (decl_assembler_name): New.
10540         (lang_set_decl_assembler_name): Remove.
10541
10542 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
10543
10544         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
10545         works properly with .hidden symbols.
10546         * configure: Rebuilt.
10547         * config.in: Rebuilt.
10548         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10549         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
10550         properly with .hidden symbols.
10551
10552 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
10553
10554         PR middle-end/6102
10555         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
10556         USE argument.
10557
10558 2002-04-03  Richard Henderson  <rth@redhat.com>
10559
10560         PR opt/4120
10561         * sched-rgn.c (sets_likely_spilled): New.
10562         (sets_likely_spilled_1): New.
10563         (add_branch_dependences): Use it.
10564
10565 2002-04-02  Richard Henderson  <rth@redhat.com>
10566
10567         PR opt/4311
10568         * loop.h (LOOP_FIRST_PASS): New.
10569         * loop.c (strength_reduce): Mind it when deciding to unroll.
10570         * toplev.c (rest_of_compilation): Set it.
10571
10572 2002-04-02  David S. Miller  <davem@redhat.com>
10573
10574         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
10575         mems_ok_for_ldd_peep when the order of the loads being examined
10576         is reversed.
10577         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
10578         existing comment to increase comprehension of this situation.
10579
10580 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
10581
10582         * config/sh/sh.md: Don't use union real_extract.
10583
10584 2002-04-02  Richard Henderson  <rth@redhat.com>
10585
10586         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
10587
10588 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
10589
10590         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
10591         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
10592         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
10593         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
10594         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
10595         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
10596         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
10597         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
10598         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
10599         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
10600         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
10601         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
10602         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
10603         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
10604         Include as many configury headers via tm_file as possible.  This
10605         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
10606         * config/openbsd-oldgas.h: New file.
10607         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
10608         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
10609         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
10610         config/i386/i386-coff.h, config/i386/i386-interix.h,
10611         config/i386/iscdbx.h, config/i386/linux-aout.h,
10612         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
10613         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
10614         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
10615         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
10616         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
10617         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
10618         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
10619         config/i386/vxi386.h: Do not directly include configury headers.
10620         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
10621         Directly include configury headers that are no longer automatically
10622         included by the above headers.
10623         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
10624         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
10625         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
10626         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
10627         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
10628         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
10629         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
10630         (TARGET_VERSION): Define.
10631         * config/i386/beos-elf.h, config/i386/freebsd.h,
10632         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
10633         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
10634         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
10635         config/i386/sco5.h, config/i386/sysv4.h
10636         (TARGET_VERSION): Do not need to protect.
10637         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
10638         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
10639         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
10640         config/i386/i386-interix.h, config/i386/linux-aout.h,
10641         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
10642         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
10643         (YES_UNDERSCORES): Do not define - not needed.
10644         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
10645         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10646         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
10647         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
10648         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10649         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
10650         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
10651         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
10652
10653 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
10654             Richard Henderson  <rth@redhat.com>
10655
10656         PR c/5484
10657         * function.c (assign_temp): Accept either type or decl argument.
10658         Detect variables whose size is too large to fit into an integer.
10659         * stmt.c (expand_decl): Pass the decl, not the type.
10660
10661 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
10662
10663         * protoize.c: Match include directory usage with cppdefault.c.
10664
10665 2002-04-03  Jeffrey A Law  (law@redhat.com)
10666             Hans-Peter Nilsson  <hp@bitrange.com>
10667
10668         * combine.c (simplify_comparison): Avoid narrowing a comparison
10669         with a paradoxical subreg when doing so would drop signficant bits.
10670
10671 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
10672
10673         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
10674         if POINTERS_EXTEND_UNSIGNED is defined.
10675
10676 2002-04-02  Richard Henderson  <rth@redhat.com>
10677
10678         PR opt/3967
10679         * local-alloc.c (contains_replace_regs): LO_SUM may contain
10680         replace regs.
10681
10682 2002-04-02  Richard Henderson  <rth@redhat.com>
10683
10684         * doc/standards.texi: Document required freestanding libc entry points.
10685
10686 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
10687
10688         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
10689         associated splitter.  Remove MQ constraint.
10690         (ctrdi_internal4): Correct CCmode clobber.
10691
10692 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10693
10694         * milli64.S ($$dyncall): New function.
10695         * t-linux (LIB1ASMFUNCS): Revise module list.
10696         (LIB1ASMSRC): Use pa/milli64.S.
10697
10698 2002-04-02  Richard Henderson  <rth@redhat.com>
10699
10700         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
10701         rename solaris_sys_varargs_h.
10702
10703 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10704
10705         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
10706         the same mode as its component.
10707
10708 2002-04-02  Richard Henderson  <rth@redhat.com>
10709
10710         PR opt/190
10711         * final.c (this_is_asm_operands): Export.
10712         * output.h (this_is_asm_operands): Declare.
10713         * config/i386/i386.c (print_operand): Error odd asm operands.
10714
10715 2002-04-02  Richard Henderson  <rth@redhat.com>
10716
10717         PR opt/420
10718         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
10719
10720 2002-04-01  Richard Henderson  <rth@redhat.com>
10721
10722         PR target/1538
10723         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
10724         * fixinc/fixincl.x: Rebuild.
10725
10726 2002-04-01  Richard Henderson  <rth@redhat.com>
10727
10728         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
10729         (atomic_alloc, atomic_free): New.
10730         (SIZE, MASK_FOR, PTR_IN): New.
10731         (emergency_reg_state, emergency_reg_state_free): New.
10732         (emergency_labeled_state, emergency_labeled_state_free): New.
10733         (reg_state_alloced, labeled_state_alloced): New.
10734         (alloc_reg_state, free_reg_state): New.
10735         (alloc_label_state, free_label_state, free_label_states): New.
10736         (push, pop, dup_state_stack, free_state_stack): Use them.
10737         (desc_label_state): Likewise.
10738         (uw_frame_state_for): Free label states and state stack.
10739         (uw_update_reg_address): Eliminate warnings.
10740
10741 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
10742
10743         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
10744         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
10745
10746 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10747
10748         * c-decl.c (grokdeclarator): Update.
10749         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10750         * c-tree.h (c_mark_addressable): New.
10751         * c-typeck.c (default_function_array_conversion, build_unary_op,
10752         build_array_ref, convert_for_assignment): Update.
10753         (mark_addressable): Rename.
10754         * calls.c (try_to_integrate, expand_call): Use langhook.
10755         * expr.c (expand_expr): Use langhook.
10756         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
10757         * langhooks.h (struct lang_hooks): New hook.
10758         * stmt.c (expand_asm_operands): Use langhook.
10759         * tree.h (mark_addressable): Remove.
10760 objc:
10761         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10762
10763 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
10764
10765         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
10766         in previous change.
10767
10768 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
10769
10770         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
10771         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
10772
10773 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10774
10775         * c-common.c (unsigned_conversion_warning, convert_and_check,
10776         unsigned_type, signed_type, shorten_compare,
10777         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
10778         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
10779         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
10780         New.
10781         * c-decl.c (grokdeclarator): Update.
10782         * c-format.c (check_format_types): Update.
10783         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10784         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10785         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
10786         * convert.c (convert_to_integer): Use new hooks.
10787         * expmed.c (make_tree): Use new hooks.
10788         * expr.c (store_expr): Use new hooks.
10789         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
10790         all_ones_mask_p, unextend, fold): Use new hooks.
10791         * langhooks.h (struct lang_hooks_for_types): New hooks.
10792         * tree.h (signed_or_unsigned_type, signed_type,
10793         unsigned_type): Remove.
10794 objc:
10795         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10796         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10797
10798 2002-03-31  Richard Henderson  <rth@redhat.com>
10799
10800         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
10801         (desc_frgr_mem): Fix reference to f16-f31.
10802
10803 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10804
10805         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
10806         RTVEC_ELT): Const-ify.
10807         * varray.h (VARRAY_CHECK): Const-ify.
10808         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
10809         ggc_mark_rtvec, ggc_mark): Const-ify.
10810
10811 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10812
10813         * diagnostic.c: Include langhooks-def.h.
10814         * Makefile.in (diagnostic.o): Update.
10815
10816 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10817
10818         * c-common.c (c_unsafe_for_reeval): Rename.
10819         * c-common.h (c_unsafe_for_reeval): Rename.
10820         * c-decl.c (finish_incomplete_decl): Rename.
10821         (c_init_decl_processing): Don't set langhook.
10822         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10823         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10824         * c-objc-common.c (c_objc_common_init): Don't set langhook.
10825         * c-tree.h (finish_incomplete_decl): Rename.
10826         * langhooks-def.h (lhd_unsafe_for_reeval): New.
10827         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
10828         (LANG_HOOKS_INITIALIZER): Update.
10829         * langhooks.c (lhd_unsafe_For_reeval): New.
10830         * langhooks.h (struct langhooks): New hooks.
10831         * toplev.c (incomplete_decl_finalize_hook): Remove.
10832         (wrapup_global_declarations): Update.
10833         * tree.c (lang_unsafe_for_reeval): Remove.
10834         (unsafe_for_reeval): Update.
10835         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
10836         Remove.
10837 objc:
10838         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10839         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10840
10841 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10842
10843         * diagnostic.c (print_error_function): Remove.
10844         (default_print_error_function): Rename.
10845         (report_error_function): Update.
10846         * diagnostic.h (print_error_function): Remove.
10847         (default_print_error_function): Remove.
10848         * langhooks-def.h (struct diagnostic_context): Predeclare.
10849         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
10850         (LANG_HOOKS_INITIALIZER): Update.
10851         * langhooks.h (struct diagnostic context): Predeclare.
10852         (struct lang_hooks): New hook.
10853
10854 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10855
10856         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
10857         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
10858         !flag_pic.
10859         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
10860         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
10861         of PIC_OFFSET_TABLE_REGNUM thruout.
10862         * config/rs6000/rs6000.md: Likewise.
10863         * config/rs6000/darwin.h: Likewise.
10864
10865 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10866
10867         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
10868         unsigned HOST_WIDE_INT, not unsigned int.
10869
10870 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10871
10872         PR middle-end/6096, middle-end/6098, middle-end/6099
10873         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
10874         CODE_LABELs.
10875         (fill_slots_from_thread): Likewise.
10876
10877 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10878
10879         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
10880         floating fields in float regs.
10881         (function_arg_record_value_2): Likewise.
10882
10883 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
10884
10885         * config/mmix/mmix.md (define_constants): Remove misleading
10886         FIXME.  Add MMIX_fp_rO_OFFSET.
10887         ("nonlocal_goto_receiver"): Don't have stack-frame address of
10888         saved rO as part of the pattern.  Remove FIXME.
10889         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
10890         here, at output-time.
10891
10892 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10893
10894         PR middle-end/6100
10895         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
10896         REG_BR_PRED.
10897         (output_v9branch): Likewise.
10898
10899 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
10900
10901         * gcc.c: Revert previous patch for now.
10902         * config/i386/djgpp.h: Likewise.
10903
10904 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
10905
10906         * config/mmix/crti.asm (_init): Register _fini with atexit.
10907         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
10908
10909 2002-03-31  Richard Henderson  <rth@redhat.com>
10910
10911         PR target/3997
10912         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
10913         (ASM_OUTPUT_DEF_FROM_DECLS): New.
10914
10915 2002-03-31  Richard Henderson  <rth@redhat.com>
10916
10917         * libgcc2.c (__bb_exit_func): Make static.
10918
10919         * config/alpha/alpha.md (trap): New.
10920
10921 2002-03-31  Richard Henderson  <rth@redhat.com>
10922
10923         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
10924         promoted argument types; build trap.
10925         (expand_builtin_trap): New.
10926         (expand_builtin): Use it.
10927         * stmt.c (expand_nl_goto_receivers): Likewise.
10928         * expr.h (expand_builtin_trap): Declare.
10929         * libfuncs.h (LTI_abort, abort_libfunc): New.
10930         * optabs.c (init_optabs): Init abort_libfunc.
10931
10932 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
10933
10934         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
10935         (LINK_COMMAND_SPEC): ... from here.
10936         (init_gcc_specs): Duplicate it here too, omitting
10937         shared_name in the second copy.
10938         (init_spec): Test for duplicate
10939         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
10940
10941 2002-03-30  David S. Miller  <davem@redhat.com>
10942
10943         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10944         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
10945
10946 2002-03-30  Roger Sayle <roger@eyesopen.com>
10947             Richard Henderson  <rth@redhat.com>
10948
10949         * regmove.c (combine_stack_adjustments_for_block): Avoid
10950         emitting a stack adjustment of zero bytes.  Let delete_insn
10951         update bb->head.
10952
10953 2002-03-30  Richard Henderson  <rth@redhat.com>
10954
10955         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
10956         (sparc_emitting_epilogue): New.
10957         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
10958         * config/sparc/sparc-protos.h: Update.
10959         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
10960         (TARGET_SWITCHES): Update.
10961         * config/sparc/sparc.md (return): Remove.
10962         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
10963         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
10964         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
10965         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10966         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
10967         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
10968         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
10969         Remove MASK_EPILOGUE.
10970         * doc/invoke.texi: Update.
10971
10972 2002-03-30  Daniel Berlin  <dan@dberlin.org>
10973
10974         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
10975         CPP will start the file for us.
10976
10977 2002-03-30  Richard Henderson  <rth@redhat.com>
10978
10979         PR target/5446
10980         * config/ia64/ia64.c (group_barrier_needed_p): Special case
10981         prologue_allocate_stack.
10982         (ia64_single_set): Use insn codes for recognition of special
10983         cases, not rtl matching.
10984         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
10985
10986 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
10987
10988         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
10989
10990 2002-03-30  Richard Henderson  <rth@redhat.com>
10991
10992         PR target/6032
10993         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
10994         or -fomit-frame-pointer with profiling.
10995         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10996         (FUNCTION_PROFILER): Do nothing.
10997         (PROFILE_HOOK): New.
10998         * config/sparc/sparc.c (sparc_override_options): Don't check
10999         code models for profiling.
11000         (sparc_function_profiler): Remove.
11001         (sparc_profile_hook): New.
11002         * config/sparc/sparc-protos.h: Update.
11003
11004 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
11005
11006         PR optimization/6086
11007         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
11008         of SUBREG of volatile MEM or because the MEM was mode dependent,
11009         return CLOBBER instead of unmodified SUBREG.
11010
11011 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
11012
11013         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
11014         when not optimizing.
11015
11016         * toplev.c (rest_of_compilation): Cann mark_constant_function
11017         only when optimizing.
11018
11019         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
11020         are NULL.
11021
11022         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
11023         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
11024         (try_optimize_cfg): clear all AUX fields.
11025
11026         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
11027         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
11028         (ix86_address_cost): Be prepared for SUBREGed registers.
11029         (legitimate_address_p): Accept SUBREGed registers.
11030
11031 2002-03-29  Richard Henderson  <rth@redhat.com>
11032
11033         PR target/5672
11034         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
11035
11036 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11037
11038         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
11039         for aggregate and TFmode types.
11040
11041 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
11042
11043         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
11044
11045 2002-03-29  Richard Henderson  <rth@redhat.com>
11046
11047         PR target/5886
11048         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
11049         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
11050
11051 2002-03-29  Richard Henderson  <rth@redhat.com>
11052
11053         PR target/6041
11054         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
11055         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
11056         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
11057         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
11058         conditional.
11059         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
11060
11061 2002-03-29  Dale Johannesen <dalej@apple.com>
11062
11063         * loop.c (combine_movables): Do allow combination of pseudos.
11064
11065 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
11066
11067         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
11068         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
11069         No functional change except ...
11070         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
11071         * doc/install.texi (*-*-freebsd*): Document port configuration.
11072
11073 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11074
11075         * Makefile.in (convert.o, calls.o, expmed.o): Update.
11076         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
11077         Use new hooks.
11078         * builtin-types.def (BT_PTRMODE): Update.
11079         * c-common.c (type_for_size): Rename c_common_type_for_size.
11080         (type_for_mode): Similarly.
11081         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
11082         Use new hook.
11083         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
11084         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
11085         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
11086         Redefine.
11087         * c-typeck.c (common_type, comptypes, default_conversion):
11088         Use new hooks.
11089         * calls.c: Include langhooks.h.
11090         (emit_library_call_value_1): Use new hooks.  Avoid redundant
11091         calls.
11092         * convert.c: Include langhooks.h
11093         (convert_to_pointer, convert_to_integer): Use new hooks.
11094         * except.c (init_eh): Similarly.
11095         * expmed.c: Include langhooks.h.
11096         (expand_mult_add): Use new hooks.
11097         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
11098         try_casesi): Similarly.
11099         * fold-const.c (optimize_bit_field_compare, make_range,
11100         decode_field_reference, fold_truthop, fold): Similarly.
11101         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
11102         put_var_into_stack): Similarly.
11103         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
11104         LANG_HOOKS_TYPE_FOR_SIZE): New.
11105         (LANG_HOOKS_TYPES_INITIALIZER): Update.
11106         * langhooks.h (lang_hooks_for_types): New hooks.
11107         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
11108         * tree.c (get_unwidened, get_narrower): Similarly.
11109         * tree.h (type_for_mode, type_for_size): Remove.
11110         * varasm.c (force_const_mem): Use new hooks.
11111         * utils2.c (nonbinary_modular_operation): Update.
11112 objc:
11113         * objc-act.c (handle_impent): Update.
11114         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
11115         Redefine.
11116
11117 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
11118
11119         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
11120         * config/ia64/ia64.c (basereg_operand): New.
11121         * config/ia64/ia64-protos.h (basereg_operand): Declare.
11122         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
11123
11124 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
11125
11126         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
11127         unwind information when frame_pointer_needed.
11128         (mmix_assemble_integer): Tweak wording in comment.
11129
11130 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11131
11132         * Makefile.in (except.o): Update.
11133         * except.c: Include langhooks.h.
11134         (init_eh): Use langhook.
11135         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
11136         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
11137         (LANG_HOOKS_INITIALIZER): Update.
11138         * langhooks.h (lang_hooks_for_types): New.
11139         (struct lang_hooks): Add it.
11140         * tree.c (make_lang_type_fn, make_lang_type): Remove.
11141         * tree.h (make_lang_type_fn, make_lang_type): Remove.
11142 config:
11143         * alpha/alpha.c: Include langhooks.h.
11144         (alpha_build_va_list): Use langhook.
11145         * d30v/d30v.c: Include langhooks.h.
11146         (d30v_build_va_list): Use langhook.
11147         * i386/i386.c: Include langhooks.h.
11148         (ix86_build_va_list): Use langhook.
11149         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
11150         * s390/s390.c: Include langhooks.h.
11151         (s390_build_va_list): Use langhook.
11152         * stormy16/stormy16.c: Include langhooks.h.
11153         (stormy16_build_va_list): Use langhook.
11154
11155 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
11156
11157         PR c++/5964
11158         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
11159         attributes.
11160         (length): Compute variable length for branches/calls/jumps here.
11161         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
11162         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
11163         define branch_type attribute.
11164         (divsi3_sp32): Maximum length is 6 not 7.
11165         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
11166         call_address_untyped_struct_value_sp32,
11167         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
11168         * config/sparc/sparc.c (empty_delay_slot): New function.
11169         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
11170         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
11171
11172 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
11173
11174         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
11175         nonzero_bits if not needed.
11176         (nonzero_bits) [XOR]: Likewise.
11177         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
11178         reg_last_set_mode and mode are both MODE_INT, but not equal.
11179         (record_value_for_reg): Compute reg_last_set_nonzero_bits
11180         in nonzero_bits_mode for MODE_INT modes.
11181
11182 2002-03-28  Richard Henderson  <rth@redhat.com>
11183
11184         PR target/5715
11185         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
11186         to GAS.  Correct drift between alternatives.
11187
11188 2002-03-28  Richard Henderson  <rth@redhat.com>
11189
11190         PR target/6087
11191         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
11192
11193 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
11194
11195         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
11196         emulation to the linker.
11197
11198 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
11199
11200         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
11201         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
11202
11203 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
11204
11205         * combine.c (simplify_and_const_int): Make sure to apply mask
11206         when force_to_mode returns a constant integer.  PR3311.
11207
11208 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11209
11210         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
11211
11212 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11213
11214         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
11215         and Objective-C Dialect Options.
11216
11217 2002-03-28  Richard Henderson  <rth@redhat.com>
11218
11219         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
11220         comparison should be done vs !=0 not >0 return code.  Tidy cases.
11221
11222 2002-03-28  Richard Henderson  <rth@redhat.com>
11223
11224         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
11225         on to c_expand_body.
11226         * c-tree.h (finish_function): Update decl.
11227         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
11228
11229 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11230
11231         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
11232
11233 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
11234
11235         * rtlanal.c: Include flags.h
11236         (may_trap_p): Do not mark FP operations if trapping
11237         if !flag_trapping_math
11238         * Makefile.in (rtlanal.o): Add dependency on flag.h
11239         * ifcvt.c (noce_operand_ok): Avoid the lameness.
11240
11241 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
11242
11243         * mips.md: Use dconst1, not 1.0, as first argument of
11244         REAL_VALUE_LDEXP.  Don't use union real_extract.
11245
11246 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
11247
11248         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
11249         rather than $target.  Heed program_prefix and
11250         program_transform_name.  Search for gas in cross-compiler case too.
11251         "test -x" rather than "test -f".
11252         (gcc_cv_ld): Likewise.
11253         (gcc_cv_nm): Heed program_prefix and program_transform_name.
11254         (gcc_cv_objdump): Likewise.
11255         * configure: Regenerate.
11256
11257 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11258
11259         * Makefile.in (attribs.o): Update.
11260         * attribs.c: Include langhooks.h.
11261         (decl_attributes): Use langhook.
11262         * c-decl.c (insert_default_attributes): Rename.
11263         * c-tree.h (c_insert_default_attributes): New.
11264         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
11265         (LANG_HOOKS_INITIALIZER): Update.
11266         * langhooks.h (struct lang_hooks): New hook.
11267         * tree.h (insert_default_attributes): Remove.
11268 objc:
11269         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
11270
11271 2002-03-27  Andreas Schwab  <schwab@suse.de>
11272
11273         * config/i386/i386.c (classify_argument): Also check for
11274         QUAL_UNION_TYPE.
11275
11276 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11277
11278         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
11279         any more.
11280
11281 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11282
11283         * i960.md (ret): Set PC.
11284         (nonlocal_goto): Fix expander.
11285         * builtins.c (epxand_builin_longjmp): Check that we've emitted
11286         some jump or call.
11287
11288 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
11289
11290         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
11291         of libcall regions.
11292
11293 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11294
11295         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
11296         assigning to BLOCK_FOR_INSN directly.
11297
11298 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
11299
11300         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
11301
11302 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11303
11304         * c-common.c (c_expand_expr): Fix prototype.
11305         * c-common.h (c_expand_expr): Always declare, update.
11306         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11307         * c-objc-common.c (c_objc_common_init): No global hook.
11308         * expr.c (expand_expr): Use langhook.
11309         * expr.h (enum expand_modifier): Conditionally declare.
11310         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
11311         (LANG_HOOKS_INITIALIZER): Update.
11312         * langhooks.c (lhd_expand_expr): New.
11313         * langhooks.h (struct lang_hooks): New hook.
11314         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
11315         (lang_independent_init): Don't default hook.
11316 objc:
11317         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11318
11319 2002-03-27  Richard Henderson  <rth@redhat.com>
11320
11321         PR target/6054
11322         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
11323         TARGET_CONST_GP.  Simplify conditions.
11324
11325 2002-03-27  Richard Henderson  <rth@redhat.com>
11326
11327         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11328         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
11329         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
11330
11331 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
11332
11333         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
11334         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
11335         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
11336         Remove unnecessary masks.
11337         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
11338         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
11339         -mwindows, -mdll switches and their negations.
11340
11341 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11342
11343         * gcc-common.c (lang_mark_false_label_stack): Remove.
11344         * ggc.h (lang_mark_false_label_stack): Similarly.
11345
11346 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
11347
11348         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
11349
11350         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
11351         or __rtems_ is defined.
11352
11353 2002-03-26  Richard Henderson  <rth@redhat.com>
11354
11355         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
11356         if a non-trivial load was emitted.
11357         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
11358         in high+extra+low case.
11359
11360 2002-03-26  Richard Henderson  <rth@redhat.com>
11361
11362         * config.gcc (sparc*-solaris): Use float_format=sparc.
11363
11364 2002-03-26  Richard Henderson  <rth@redhat.com>
11365
11366         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11367         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
11368         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
11369         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
11370         (WINT_TYPE_SIZE): Fix at 32.
11371
11372 2002-03-26  Richard Henderson  <rth@redhat.com>
11373
11374         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
11375         until after eh landing pad generation.
11376         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
11377         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
11378
11379 2002-03-26  Richard Henderson  <rth@redhat.com>
11380
11381         * expr.h (ADD_PARM_SIZE): One more convert for INC.
11382
11383 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
11384
11385         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
11386         and warning switches.
11387         (cc1_options):  Likewise.
11388
11389 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
11390
11391         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
11392         Restore more of the signal context.  Set no_reg_stack_frame.
11393         * config/ia64/unwind-ia64.c (unw_state_record):
11394         Add no_reg_stack_frame, comments.
11395         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
11396         (uw_update_context): Adjust bsp when unwinding from leaf,
11397         but not signal frame.
11398
11399 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
11400
11401         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
11402
11403 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
11404
11405         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
11406
11407 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
11408
11409         PR target/5621
11410         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
11411         "Add a pool_range attribute", which was lost during the ARM/Thumb
11412         merge.
11413
11414 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
11415
11416         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
11417         a register into the MAC16 accumulator.
11418
11419 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
11420
11421         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
11422         (Warning Options): Document -Wswitch-enum.
11423         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
11424         -Wswitch.
11425         (warn_switch_enum): Define variables.
11426         * flags.h (warn_switch_enum): Declare variables.
11427         * stmt.c (expand_end_case_type): When warn_switch_enum /
11428         -Wswitch-enum, perform switch checks.
11429         Fix PR c/5044.
11430
11431 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
11432
11433         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
11434         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
11435         (reload_muladdsi_compare0_scratch): Delete.
11436
11437 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
11438
11439         * doc/install.texi (*-*-freebsd*): Update.
11440
11441 2002-03-26  Richard Henderson  <rth@redhat.com>
11442
11443         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
11444         (SUB_PARM_SIZE): Cast DEC to ssizetype.
11445
11446         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
11447         types from the normal argument frame.
11448
11449         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
11450         variable sized objects by reference.
11451         (sparc_va_arg): Receive them by reference too.
11452
11453 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
11454
11455         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
11456         code to not restoring global registers.
11457
11458 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
11459
11460         * Makefile.in (ggc-common.o): Update.
11461         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
11462         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11463         * c-tree.h (c_mark_tree): New.
11464         * ggc-common.c: Include langhooks.h.
11465         (gcc_mark_trees): Use new langhook.
11466         * ggc-callbacks.c: Delete file.
11467         * ggc.h (lang_mark_tree): Remove.
11468         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
11469         (LANG_HOOKS_INITIALIZER): Update.
11470         * langhooks.h (struct lang_hooks): New hook.
11471 objc:
11472         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11473
11474 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
11475
11476         * doc/cpp.texi: Exclude entire Top node from printed manual.
11477         Move option index after directive index.  Insert page breaks
11478         before GFDL and concept index.  Index environment variables
11479         with command line options.
11480         * doc/cppenv.texi: Use @vtable for environment variable list.
11481         Add paragraph explaining semantics of empty elements in path
11482         variables.  Exclude a cross-reference to Fishkill from the
11483         manpage.  Remove an unnecessary cross-reference of the entry
11484         right above the referer.  Don't use @anchor in text that goes
11485         into manpage.
11486         * doc/cppopts.texi: Cross-reference the environment variables
11487         section, not the specific environment variable, for consistency.
11488
11489 2002-03-25  Richard Henderson  <rth@redhat.com>
11490
11491         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
11492         anywhere in the block.  Don't refer to insns that have been
11493         removed from the chain.  Iterate backward through the new insns.
11494         Don't refer to edges that have been removed.
11495
11496 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
11497
11498         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
11499         test for overflow of constant.
11500
11501 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
11502
11503         PR target/2623
11504         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
11505         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
11506         these patterns on arm_archv4.
11507
11508 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
11509
11510         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
11511         int".
11512
11513 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
11514
11515         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
11516         float_handled, float_handler, float_signal, set_float_handler,
11517         and do_float_handler.  Set handler for SIGFPE to crash_signal.
11518         * toplev.h: Don't prototype do_float_handler.
11519
11520         * c-lex.c: Fold parse_float into lex_number.  Make warning
11521         about portability of hex float constants more informative, and
11522         don't issue it on top of a syntax error.
11523         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
11524         their callers.
11525         * real.h: Define REAL_VALUE_ABS here...
11526         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
11527         simplify_unary_real, simplify_binary_real, and
11528         simplify_binary_is2orm1 into their callers.
11529         * tree.c: Fold build_real_from_int_cst_1 into caller.
11530
11531         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
11532
11533         * tsystem.h: Include float.h here...
11534         * libgcc2.c: ... not here.
11535
11536 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
11537
11538         Fixes for: PR bootstrap/3591, target/5676
11539         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
11540         defined.  Do not disable exceptions or rtti.
11541         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
11542         mcore.h.  Disable exceptions and rtti, since they are not
11543         supported by EPOC.
11544
11545 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11546
11547         * c-decl.c (maybe_build_cleanup): Remove.
11548         * expr.c (expand_expr): Use langhook.
11549         * langhooks-def.h (lhd_return_null_tree,
11550         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
11551         (LANGHOOKS_INITIALIZER): Update.
11552         * langhooks.c (lhd_return_null_tree): New.
11553         * langhooks.h (struct lang_hooks): New hook.
11554         * tree-inline.c (initialize_inlined_parameters): Use langhook.
11555         * tree.h (maybe_build_cleanup): Remove.
11556
11557 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
11558
11559         * regrename.c (build_def_use): Move recog_memoized
11560         before extract_insn.
11561
11562 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
11563
11564         PR target/6043
11565         * expr.c (emit_group_store): Handle storing into CONCAT.
11566
11567 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
11568
11569         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
11570         corresponding MATCH_DUP.
11571
11572 2002-03-24  Richard Henderson  <rth@redhat.com>
11573
11574         * unroll.c (unroll_loop): Zero label_map.
11575
11576         * gcse.c: Include except.h.
11577         * Makefile.in (gcse.o): Update.
11578
11579 2002-03-24  Richard Henderson  <rth@redhat.com>
11580
11581         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
11582         Do resolve_unique_section before shared data clause.
11583
11584 2002-03-24  Richard Henderson  <rth@redhat.com>
11585
11586         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
11587
11588 2002-03-24  Richard Henderson  <rth@redhat.com>
11589
11590         * recog.c (peephole2_optimize): Split blocks when EH insns are
11591         generated in the middle of a block.  Do global life update if
11592         zapped EH edges.
11593
11594 2002-03-24  Richard Henderson  <rth@redhat.com>
11595
11596         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
11597
11598 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11599
11600         preprocessor/3951
11601         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
11602         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
11603         (init_dependency_output): Don't make no_output decision here.
11604
11605 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
11606
11607         * stmt.c (check_for_full_enumeration_handling): Remove tests of
11608         warn_switch.  Update description.
11609         (expand_end_case_type): Call check_for_full_enumeration_handling
11610         when warn_switch.
11611
11612 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11613
11614         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
11615         (m68hc11_split_move): Call it to see if the source and destination
11616         operands use the same direction auto inc/dec mode, otherwise make the
11617         source an offsetable memory operand and generate an add.
11618
11619 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11620
11621         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
11622         register for operand 2.
11623         ("*subsi3_zero_extendqi"): Likewise.
11624         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
11625         bits so that it is compatible with a pop.
11626         ("*andhi3_gen"): Likewise.
11627         ("xorhi3"): Likewise.
11628
11629 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11630
11631         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
11632         -pedantic here...
11633         (cpp_post_options): ... not here.
11634
11635 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11636             Aldy Hernandez  <aldyh@redhat.com>
11637
11638         Removal of separate preprocessor cpp0.
11639
11640         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
11641         cpp0, install-common): Update.
11642         * c-common.c (flag_preprocess_only): New.
11643         (c_common_init): Preprocess for -E.
11644         * c-common.h (flag_preprocess_only): New.
11645         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
11646         * c-objc-common.c (c_init_decl_processing): Exit quickly
11647         for NULL return from c_common_init.
11648         * cpplib.h (cpp_preprocess_file): New.
11649         * cppmain.c (main, general_init, pfile, progname): Remove.
11650         (do_preprocessing): Rename cpp_preprocess_file, don't call
11651         cpp_finish.  Don't close stdout here.
11652         (setup_callbacks): Update prototype.
11653         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
11654         Update.
11655         * tradcpp.c (main): Ignore -quiet.
11656 objc:
11657         * lang-specs.h (default_compilers): Preprocess with cc1obj.
11658
11659 2002-03-24  Richard Henderson  <rth@redhat.com>
11660
11661         PR optimization/5742
11662         * machmode.def: Add inner mode field to complex modes.
11663         * config/mips/mips.c (mips_function_value): Always define.  Add
11664         new argument to handle libcalls.
11665         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
11666         (FUNCTION_VALUE): Likewise.
11667         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
11668         * config/mips/mips-protos.h: Update.
11669
11670 2002-03-23  Richard Henderson  <rth@redhat.com>
11671
11672         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
11673         * config/sparc/sparc-protos.h: Update.
11674         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
11675
11676 2002-03-23  Richard Henderson  <rth@redhat.com>
11677
11678         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
11679         _start or _init begins the text segment.
11680
11681 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
11682
11683         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
11684         not HOST_WIDEST_INT.
11685         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
11686
11687 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
11688
11689         PR java/5489
11690         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
11691         operand argument to output_return_instruction.
11692         * arm.c (arm_print_operand, case 'd'): If the operand is
11693         const_true_rtx then just return.
11694         (arm_print_operand, case 'D'): If the operand is const_true_rtx
11695         then abort.
11696
11697 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11698
11699         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
11700         (Warning Options): Document -Wswitch-default.
11701         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
11702         -Wswitch.
11703         (warn_switch_default): Define variable.
11704         (warn_switch): Update comment.
11705         * flags.h (warn_switch_default): Declare variable.
11706         (warn_switch): Update comment.
11707         * stmt.c (expand_end_case): Check for and, when
11708         warn_switch_no_default, warn of a missing default case.
11709
11710 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
11711
11712         * real.h (N): Special case 128 bit doubles.
11713
11714         * combine.c (simplify_comparison): When widening modes, ignore
11715         sign extension on CONST_INTs.
11716
11717 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
11718
11719         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
11720         passed to adjust_address.  Fix comment formatting.
11721
11722
11723 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
11724
11725         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
11726         Always make REAL_VALUE_TYPE a struct containing an array of
11727         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
11728         big it is.  Don't declare or use union real_extract.
11729
11730         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
11731         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
11732         (print_operand), config/arm/arm.c (output_move_double),
11733         config/arm/arm.md (consttable_4, consttable_8),
11734         config/romp/romp.c (output_fpops), config/s390/s390.h
11735         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
11736         (xtensa_output_literal): Don't use union real_extract.
11737
11738         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
11739         (sfmode_constant_to_ulong), config/ns32k/merlin.h
11740         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
11741         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
11742         (PRINT_OPERAND): Don't use local version of union
11743         real_extract.
11744
11745         * config/convex/convex.c (check_float_value), config/vax/vax.c
11746         (vax_float_literal), config/m88k/m88k.md (divdf3),
11747         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
11748         config/pdp11/pdp11.c (output_move_quad): Don't do host
11749         arithmetic on target floating point quantities.
11750
11751         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
11752         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
11753
11754         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
11755         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
11756
11757         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
11758         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
11759         INFINITY.
11760         * print-rtl.c (print_rtx): Disable code which needs
11761         floating-point emulator.
11762         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
11763         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
11764         depending on HOST_FLOAT_FORMAT to be defined properly.
11765
11766         * config/1750a/1750a.c (get_double, float_label): Delete.
11767         (print_operand): Delete huge commented-out chunk.  Use
11768         REAL_VALUE_TO_DECIMAL.
11769         * config/1750a/1750a-protos.h: Delete prototypes of deleted
11770         functions.
11771         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
11772         IEEE_FLOAT_FORMAT.
11773         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
11774         Use REAL_VALUE_TO_DECIMAL as ELF version does.
11775         * config/m88k/m88k.c (real_power_of_2_operand,
11776         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
11777         real_extract out of the union; run the input through
11778         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
11779         from that into the union.
11780         * config/pdp11/pdp11.c (output_move_double): Rearrange
11781         parentheses to make automatic indenter happy.
11782
11783         * doc/tm.texi (Cross-compilation): Rename node to "Floating
11784         Point" and rewrite to describe current situation.  Also adjust
11785         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
11786         match code.
11787         * doc/rtl.texi: Adjust cross reference.
11788
11789 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
11790
11791         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
11792         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
11793         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
11794         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
11795         prevent use of sp as a reload register.
11796         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
11797         non_acc_reg_operand.
11798         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
11799         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
11800         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
11801         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
11802
11803 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11804
11805         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
11806         * cpplex.c (unterminated): Delete.
11807         (parse_string): No string literal may extend over multiple
11808         lines.  Suppress the error when preprocessing assembly.
11809         * cppmain.c (scan_translation_unit): Strings are single-line.
11810
11811         * doc/cpp.texi: Update to match.
11812
11813 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
11814
11815         PR optimization/5854
11816         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
11817         Shut up warnings.
11818         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
11819         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
11820         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
11821         const0 if scratch register was not allocated.
11822         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
11823         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
11824         with GEN_INT (...).
11825         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
11826         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
11827         with GEN_INT (...) everywhere.  Remove constraints in define_split
11828         patterns.
11829         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
11830         require scratch register for setting 0 into regs/non-pushable memory.
11831
11832 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
11833
11834         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
11835         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
11836
11837 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
11838
11839         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
11840         * cppinit.c (cpp_create_reader):  On by default.
11841         (cpp_handle_option):  Handle -W[no-]endif-labels.
11842         (cpp_post_options):  Also enable if -pedantic.
11843         * cpplib.c (do_else):  Use it.
11844         (do_endif):  Likewise.
11845         * doc/cppopts.texi:  Document new option.
11846         * doc/invoke.texi:  Document new option.
11847
11848 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
11849
11850         * config/i386/i386.c, config/i386/i386.md: Change all occurences
11851         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
11852
11853 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
11854
11855         * flow.c (calculate_global_regs_live): Clear aux fields of
11856         ENTRY and EXIT.
11857
11858 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
11859
11860         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
11861         REG or MEM subregs, pass rtx * instead of rtx to it.
11862         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
11863         rtx * instead of rtx to alter_subreg.
11864         * config/m32r/m32r.c (gen_split_move_double): Likewise.
11865         * config/pj/pj.c (pj_output_rval): Likewise.
11866
11867 2002-03-22  Richard Henderson  <rth@redhat.com>
11868
11869         PR target/3177
11870         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
11871         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
11872         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
11873         (ia64_expand_prologue): Look at int_regs, not words, for number
11874         of incomming int regs.
11875
11876 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
11877
11878         * expr.c (expand_expr): A RESULT_DECL is part of a call.
11879
11880 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
11881
11882         * toplev.c (flag_loop_optimize, flag_crossjumping):
11883         New static variables.
11884         (rest_of_compilation): Conditionalize crossjumping and
11885         loop optimizer.
11886         (parse_options_and_default_flags): Default loop_optimize and
11887         crossjumping.
11888         (lang_independent_options): Add -fcrossjumping and -floop-optimize
11889         * invoke.texi (crossjumping, loop-optimize): Document.
11890
11891 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11892
11893         * real.c (eiisneg): Move outside #ifdef NANS.
11894
11895 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11896
11897         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
11898         frequencies match; avoid match on different loop depths.
11899         (try_crossjump_to_bb): Kill tests that no longer brings time
11900         savings.
11901         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
11902         updating code.
11903         (split_edge): Likewise.
11904
11905         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
11906         variable.
11907
11908         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
11909         * cfgrtl.c: Include insn-config.h
11910         (split_block) Dirtify block in presence of conditional execution
11911
11912 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11913
11914         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
11915         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
11916         (function_arg): Constify CUMULATIVE_ARGS.
11917         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
11918         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
11919         (UNITS_PER_DOUBLE): New macro.
11920         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
11921         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
11922         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
11923         fp_regs and stack_words.
11924         (EABI_FLOAT_VARARGS_P): New macro.
11925         * config/mips/mips.c (struct mips_arg_info): New.
11926         (mips_arg_info): New function.
11927         (function_arg_advance): Use it.  Add adjustment instructions here
11928         rather than in function_arg.
11929         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
11930         for VOIDmode at the beginning of the function.
11931         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
11932         (function_arg_pass_by_reference): Likewise.
11933         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
11934         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
11935         (mips_va_start): Likewise.  Use the new stack_words field of
11936         CUMULATIVE_ARGS to set up overflow area.  Reformat.
11937         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
11938         doubles and other types, aligning the overflow pointer for non-doubles
11939         too.  Remove some code duplication.  Replace hard-coded constants.
11940
11941 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11942
11943         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
11944         (CLASS_UNITS): Undefine.
11945         (CLASS_MAX_NREGS): Use FP_INC.
11946         * config/mips/mips.c (compute_frame_size): Likewise.
11947         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
11948
11949 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11950
11951         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
11952         prototype, and handle lexing numbers and identifiers.
11953         (parse_identifier): Update to new form of parse_slow.
11954         (parse_number): Fast path only, use parse_slow otherwise.
11955         (_cpp_lex_direct): Update calls to parse_number.
11956
11957 2002-03-21  DJ Delorie  <dj@redhat.com>
11958
11959         * bb-reorder.c (make_reorder_chain_1): Protect against
11960         when redundant edges are omitted.
11961         * predict.c (dump_prediction): Likewise.
11962
11963 2002-03-21  Richard Henderson  <rth@redhat.com>
11964
11965         PR target/5996
11966         * fixinc/inclhack.def (solaris_stdio_tag): New.
11967         * fixinc/fixincl.x: Regenerate.
11968
11969 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
11970
11971         PR c/5597
11972         * c-typeck.c (process_init_element): Flag non-static
11973         initialization of a flexible array member as illegal.
11974
11975 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
11976
11977         * config/rs6000/t-linux64: New.
11978         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
11979         t-ppccomm.  Use t-rs6000 and t-linux64.
11980         (powerpc64-*-gnu* <tmake_file>): Likewise.
11981         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
11982         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
11983         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
11984
11985 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
11986
11987         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
11988         flag_really_no_inline instead of optimize == 0.
11989
11990         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
11991
11992         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
11993
11994         * flags.h (flag_really_no_inline): New.
11995
11996         * c-common.c (c_common_post_options): Initialize
11997         flag_really_no_inline.
11998
11999         * toplev.c (flag_really_no_inline): New.
12000
12001 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
12002
12003         * config/avr/avr.md (length): Fix length computation for
12004         conditional branches.
12005
12006 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12007
12008         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
12009         sdbout.o, profile.o): Update.
12010         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
12011         langhook.
12012         * c-common.h (gettags): Move here from tree.h.
12013         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
12014         insert_block, getdecls, kept_level_p, global_bindings_p): New.
12015         * dbxout.c (dbxout_init): Use getdecls langhook.
12016         * expr.c (expand_expr): Use insert_block langhook.
12017         * fold-const.c: Include langhooks.h.
12018         (fold_range_test, fold_binary_op_with_conditional_arg,
12019         fold): Use global_bindings_p langhook.
12020         * integrate.c (expand_inline_function): Use insert_block langhook.
12021         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
12022         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
12023         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
12024         LANG_HOOKS_GETDECLS): New.
12025         (LANG_HOOKS_INITIALIZER): Update.
12026         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
12027         langhook.
12028         * langhooks.h (struct lang_hooks_for_decls): New.
12029         (struct lang_hooks): Update.
12030         * profile.c: Include langhooks.h.
12031         (output_func_start_profiler): Use new langhooks.
12032         * sdbout.c: Include langhooks.h.
12033         (sdbout_init, sdbout_finish): Use getdecls langhook.
12034         * stmt.c: Include langhooks.h.
12035         (expand_fixup, fixup_gotos): Use new langhooks.
12036         * stor-layout.c: Include langhooks.h.
12037         (variable_size): Use global_bindings_p langhook.
12038         * toplev.c (compile_file): Use getdecls langhook.
12039         * tree-inline.c (remap_block): Use insert_block langhook.
12040         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
12041         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
12042
12043 2002-03-21  Richard Henderson  <rth@redhat.com>
12044
12045         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
12046         constants in .data when -fpic.
12047
12048 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12049
12050         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
12051         where appropriate.
12052
12053 2002-03-21  Tom Tromey  <tromey@redhat.com>
12054
12055         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
12056
12057 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12058
12059         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
12060
12061         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
12062
12063 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
12064             Richard Henderson  <rth@redhat.com>
12065
12066         PR c/5354
12067         * c-common.c (c_expand_expr): Preserve result of a statement
12068         expression if needed.
12069
12070 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
12071
12072         PR bootstrap/4195
12073         * genrecog.c (maybe_both_true_mode): Remove.
12074         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
12075         * machmode.def (Pmode): Likewise.
12076
12077 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
12078
12079         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
12080         (nonlocal_mentioned_p_1): New function.
12081         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
12082         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
12083         (mark_constant_function): Recognize pure functions.
12084         * rtl.h (global_reg_mentioned_p): New prototype.
12085         * rtlanal.c (global_reg_mentioned_p,
12086         global_reg_mentioned_p_1): New function.
12087
12088 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12089
12090         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
12091         UNIX assert.h.
12092         * fixinc/fixincl.x: Regenerate.
12093
12094 2002-03-20  Jason Merrill  <jason@redhat.com>
12095
12096         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
12097
12098 2002-03-20  Michael Meissner  <meissner@redhat.com>
12099
12100         * doc/invoke.texi (Optimize Options): Document that -O2 sets
12101         -fstrict-aliasing.
12102
12103 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
12104
12105         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
12106         ".literal_position" directive before the constant pool.
12107
12108 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12109
12110         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
12111         Add Craig Rodrigues.
12112         Add Brad Lucier to testers.
12113
12114 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
12115
12116         PR target/4792
12117         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
12118         to if_then_else.
12119         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
12120         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
12121         instead of insn_extract.
12122
12123 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
12124
12125         PR bootstrap/4192
12126         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
12127
12128         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
12129         stmt if some case has been output.
12130
12131 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
12132
12133         PR c/5972
12134         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
12135         movsfcc_1, movdfcc_1): Add %O2.
12136         * config/i386/i386.c (print_operand): Handle %ON.
12137         Print . before float condition codes in Sun as cmov syntax.
12138         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
12139         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
12140         no longer true.
12141
12142 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
12143
12144         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
12145         return instruction if PC was popped.
12146
12147 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
12148
12149         * config/xtensa/xtensa.md: Remove unused type attributes.
12150         (adddi_carry, subddi_carry): Change type attribute to "multi".
12151
12152 2002-03-19  Dale Johannesen  <dalej@apple.com>
12153
12154         PR optimization/5999, middle-end/5731
12155         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
12156         multiplications by reciprocals.
12157
12158 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12159
12160         * Makefile.in: Update.
12161         * c-common.c: Include langhooks.h.
12162         (inline_forbidden_p): Use new hook.
12163         * diagnostic.c: Include langhooks.h.
12164         (format_with_decl, announce_function,
12165         default_print_error_function): Use new hook.
12166         * dwarf2out.c (dwarf2_name): Use new hook.
12167         * function.c: Include langhooks.h.
12168         (init_function_start): Use new hook.
12169         * langhooks-def.h (lhd_decl_printable_name): New.
12170         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
12171         (LANGHOOKS_INITIALIZER): Update.
12172         * langhooks.c (lhd_decl_printable_name): New.
12173         * langhooks.h (struct lang_hooks): New hook.
12174         * toplev.c (decl_name, decl_printable_name): Remove.
12175         (open_dump_file): Use new hook.
12176         (process_options): Remove old hook.
12177         * tree.h (decl_printable_name): Remove.
12178 objc:
12179         * objc-act.c (objc_init): Remove old hook.
12180         (objc_printable_name): Export.
12181         * objc-act.h (objc_printable_name): New.
12182         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12183
12184 2002-03-19  Jim Blandy  <jimb@redhat.com>
12185
12186         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
12187         the start_source_file debug hook, not the current line number.
12188
12189 2002-03-19  Richard Henderson  <rth@redhat.com>
12190
12191         * flow.c (EH_USES): Provide default.
12192         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
12193         * doc/tm.texi (EH_USES): New.
12194
12195         * config/ia64/ia64.c (ia64_eh_uses): New.
12196         * config/ia64/ia64-protos.h: Update.
12197         * config/ia64/ia64.h (EH_USES): New.
12198
12199 2002-03-19  Richard Henderson  <rth@redhat.com>
12200
12201         * varasm.c (output_constant_def): Fix stupid typo.
12202
12203 2002-03-19  Richard Henderson  <rth@redhat.com>
12204
12205         PR 5879
12206         * except.c (current_function_has_exception_handlers): New.
12207         * except.h: Declare it.
12208         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
12209         Combine tests that disable all sibcalls for the function.
12210
12211 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
12212
12213         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
12214         for INTEGER_CST.
12215
12216 2002-03-19  Richard Henderson  <rth@redhat.com>
12217
12218         PR 5977, 5991
12219         * config/ia64/ia64.c: Revert 2002-03-01 patch.
12220         * config/ia64/ia64.h (INIT_EXPANDERS): New.
12221
12222 2002-03-19  Jim Blandy  <jimb@redhat.com>
12223
12224         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
12225         name, even if the replacement list contains no tokens, as required
12226         by Dwarf.
12227
12228 2002-03-19  Jason Merrill  <jason@redhat.com>
12229
12230         * varasm.c (globalize_decl): Get the name from the RTL, not
12231         DECL_ASSEMBLER_NAME.
12232
12233         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
12234
12235 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
12236
12237         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
12238         subdi_carry): Define.
12239
12240 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
12241
12242         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
12243         about -fpic/-fPIC if extra_warnings set.
12244
12245 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
12246
12247         * expr.c (expand_expr): Sign-extend CONST_INT generated from
12248         TREE_STRING_POINTER.
12249         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
12250
12251 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12252
12253         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
12254         in favor of SP if FRAME_POINTER_REQUIRED is false.
12255
12256 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
12257
12258         * emit-rtl.c (gen_int_mode): New function.
12259         * rtl.h: Prototype for it.
12260         * combine.c (make_extraction, simplify_comparison), expmed.c
12261         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
12262         (convert_modes, store_field), optabs.c (expand_fix),
12263         simplify-rtx.c (neg_const_int, simplify_unary_real),
12264
12265         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
12266         Use it instead of GEN_INT (trunc_int_for_mode (...)).
12267
12268 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
12269
12270         PR c/5656
12271         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
12272         convert_parm_for_inlining.
12273         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
12274         Define.
12275         * langhooks-def.h: Likewise.
12276         * objc/objc-lang.c: Likewise.
12277         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
12278         function.
12279         * tree-inline.c (initialize_inlined_parameters):
12280         Call convert_parm_for_inlining lang hook if needed.
12281         * c-typeck.c (c_convert_parm_for_inlining): New function.
12282         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
12283
12284 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
12285
12286         * calls.c (precompute_arguments): Do not assume that temporaries
12287         can be destroyed after expanding the argument.
12288         (expand_call): Likewise.
12289
12290 2002-03-15  Eric Christopher  <echristo@redhat.com>
12291
12292         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
12293         Fix register preference on last change.
12294         * config/mips/mips.c (mips_return_in_memory): New function.
12295         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
12296         * config/mips/mips-protos.h: Declare.
12297         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
12298         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
12299
12300 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
12301
12302         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
12303         a register too.
12304         (anddi3, iorsi3): Likewise.
12305
12306         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
12307         use %gprel for symbols that are going to be placed in linkonce
12308         sections.
12309
12310         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
12311         RETURN_ADDRESS_POINTER_REGNUM to $ra.
12312         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
12313         not needed.  Disregard leaf_function_p().
12314         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
12315         mips16 frame pointer.
12316         * config/mips/mips.md (store ra): Only to small SP offsets.
12317         2001-08-22  Graham Stott  <grahams@redhat.com>
12318         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
12319         return a REG rtx for the return address register.
12320
12321 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
12322
12323         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
12324         constant-pool addresses as "mode-dependent".
12325         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
12326
12327 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
12328
12329         PR target/5740
12330         * expr.c (emit_group_load): Use extract_bit_field if
12331         needed for CONCAT arguments.
12332
12333 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
12334
12335         PR target/4863
12336         * arm.md (tablejump): Make this a define_expand.  For PIC add the
12337         offset to the base of the table.
12338         (thumb_tablejump): Matcher for Thumb tablejump insn.
12339         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
12340         as the difference of two labels.
12341         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12342         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
12343         tables in the code.
12344         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12345         * arm.c (get_jump_table_size): If the table is not in the text
12346         section, return zero.
12347
12348 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
12349
12350         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
12351         of gen_rtx_SUBREG.
12352         (arm_reload_out_hi): Use gen_lowpart instead of
12353         gen_rtx_SUBREG to access QImode components.
12354         * config/arm/arm.md: Disable zero_extend split for QImode
12355         subregs in BIG_ENDIAN mode.
12356         (storehi_bigend): Match use of least significant byte.
12357         (storeinthi): Remove extraneous SUBREG.
12358         Add missing construction of operands[2].
12359         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
12360         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
12361         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
12362
12363 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
12364
12365         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
12366         any_operand.
12367
12368 2002-03-17  Richard Henderson  <rth@redhat.com>
12369
12370         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
12371         explicitly.
12372
12373 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
12374
12375         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
12376         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
12377
12378 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12379
12380         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
12381
12382         * predict.c (estimate_bb_frequencies): Delete unused variables.
12383
12384 2002-03-17  Richard Henderson  <rth@redhat.com>
12385
12386         * config/ia64/ia64.c (ia64_attribute_table): Move before
12387         targetm definition.  Make static.
12388
12389 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
12390
12391         * c-common.h (yyparse, c_common_parse_file): New.
12392         * c-lang.c: Include c-common.h.
12393         (LANG_HOOKS_PARSE_FILE): Redefine.
12394         * c-lex.c: Include c-common.h.
12395         (yyparse): Rename c_common_parse_file.  Call yyparse.
12396         * c-parse.in (yyparse): Remove macro.
12397         * c-tree.h (yyparse_1): Remove.
12398         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
12399         (LANG_HOOKS_INITIALIZER): Update.
12400         * langhooks.h (struct lang_hoooks): New hook parse_file.
12401         * toplev.c (compile_file): Use parse_file hook.
12402         * tree.h (yyparse): Remove.
12403         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
12404
12405 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
12406
12407         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
12408         float_truncate, not fix.
12409         ("*truncdfsf2_real"): Ditto.
12410         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
12411
12412         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
12413
12414 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
12415
12416         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
12417         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
12418         where appropriate.  Make the second reference to
12419         leaf_function_p a function call, as intended.  Reindented.
12420
12421         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
12422         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
12423
12424         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
12425         add register to non-constant into sp.
12426
12427         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
12428         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
12429         (mips16_gp_pseudo_rtx): Lose.
12430         (INIT_EXPANDERS): Deleted.
12431         * config/mips/mips.c (mips_init_machine_status): New.
12432         (mips_free_machine_status): New.
12433         (mips_mark_machine_status): New.
12434         (override_options): Set them.
12435         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
12436         (struct machine_function): ... new.  Replaced all references.
12437         (mips_add_gc_roots): Don't mark them.
12438         (embedded_pic_fnaddr_reg): New, extracted from...
12439         (embedded_pic_offset): ... here.
12440         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
12441         (movsi): Likewise.
12442
12443 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12444
12445         * cppinit.c: Revert -MD removal.
12446
12447 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12448
12449         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
12450         soft registers by default for 68HC12.
12451         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
12452         when compiling with -fomit-frame-pointer.
12453         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
12454         (expand_epilogue): Likewise.
12455         (m68hc11_gen_rotate): Use exg when rotating by 8.
12456
12457 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12458
12459         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
12460         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
12461         (splits): Remove unused add splits.
12462         ("*addhi3_68hc12"): Tune constraints.
12463         ("addhi_sp"): Try to use X instead of Y in all cases and if the
12464         constant fits in 8-bits and D is dead use abx/aby instructions.
12465         ("*addhi3"): Remove extern declaration of ix_reg.
12466         ("*subsi3"): Optimize and provide new split.
12467         ("subhi3"): Cleanup.
12468         ("*subhi3_sp"): Avoid saving X if we know it is dead.
12469         (arith splits): For 68hc12 save the address register on the stack
12470         and do the arithmetic operation with a pop.
12471
12472 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12473
12474         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
12475         allocating QImode in address registers.
12476         ("*movqi_m68hc11"): Likewise.
12477
12478 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
12479
12480         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
12481
12482 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12483
12484         * cppinit.c (print_help): Display -MD and -MMD.
12485         Don't display usage string.  Update assertion syntax and
12486         typo.
12487         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
12488         (cpp_handle_option): Update.
12489
12490 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
12491
12492         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
12493         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
12494         and define it so that regardless of target CPU size,
12495         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
12496         of "int" rather than "long."
12497
12498 2002-03-15  Richard Henderson  <rth@redhat.com>
12499
12500         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
12501         size as a tree.
12502
12503 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12504
12505         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
12506         ("tstqi" split): Avoid using memory for tstqi on address register.
12507         (splits): Remove constraints.
12508         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
12509         ("cmpdf", "cmpsf"): Remove since not used.
12510         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
12511         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
12512
12513 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12514
12515         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
12516         ("neghi2"): Tighten constraints.
12517         ("one_cmplsi2"): Optimize and simplify split.
12518         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
12519
12520 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12521
12522         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
12523         and split of AND operation to clear the upper bits.
12524         ("*logicalsi3_zextqi"): Likewise.
12525         ("*logicallhi3_zexthi_ashift8"): Likewise.
12526         ("*logicalsi3_silshr16"): Likewise.
12527         ("logicalsi3_silshl16"): Likewise.
12528         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
12529
12530 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12531
12532         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
12533         (m68hc11_indirect_p): New function.
12534         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
12535         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
12536         TARGET_M6812.
12537         (asm_print_register): Likewise.
12538         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
12539         (m68hc11_indirect_p): Declare.
12540         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
12541         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
12542         (TARGET_SWITCHES): New option -mrelax.
12543         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
12544         destination.
12545         ("iorsi3", "xorsi3"): Likewise.
12546         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
12547         ("*andhi3_mem"): New to handle destination in memory with bclr
12548         and a scratch register.
12549         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
12550         ("*andhi3_const"): New when operand2 is constant.
12551         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
12552         ("*andhi3_gen"): Cleanup of the old "andhi3".
12553         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
12554         ("xorqi3"): Update constraints.
12555
12556 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12557
12558         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
12559         for reg_equiv_memory_loc when the operand is a register that does
12560         not get a hard register (stack location).
12561         (tst_operand): After reload, accept all memory operand.
12562         (symbolic_memory_operand): Fix detection of symbolic references.
12563         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
12564         accept symbols and any constant.
12565
12566 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12567
12568         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
12569         note on the insn that sets the soft frame register.
12570         (must_parenthesize): ix and iy are also reserved names.
12571         (print_operand_address): One more place where parenthesis are required
12572         to avoid confusion with register names.
12573         (m68hc11_gen_movhi): Allow push of stack pointer.
12574         (m68hc11_check_z_replacement): Fix handling of parallel with a
12575         clobber.
12576         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
12577         the replacement register is.
12578         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
12579         and D8_REGS classes.
12580         (MODES_TIEABLE_P): All modes are tieable except QImode.
12581
12582 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12583
12584         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
12585         (___subdi3): Likewise.
12586         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
12587         (__map_data_section): Optimize 68hc11 case.
12588
12589 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12590
12591         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
12592         than a shift to avoid adding a register with itself.
12593         (m68hc11_memory_move_cost): Take into account NO_REGS.
12594         (m68hc11_register_move_cost): Update and use memory move cost
12595         for soft registers.
12596         (m68hc11_address_cost): Make cost of valid offset not 0 so that
12597         it gives more opportunities to cse to optimize.
12598         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
12599         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
12600
12601 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
12602
12603         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
12604         * c-common.def (CLEANUP_STMT): New tree node.
12605         * c-common.h (CLEANUP_DECL): New macro.
12606         (CLEANUP_EXPR): Likewise.
12607         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
12608         * expr.c (expand_expr): Tidy.
12609         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
12610         * tree-inline.c (initialize_inlined_parameters): Clean up
12611         new local variables.
12612
12613 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
12614
12615         PR bootstrap/4128
12616         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
12617         before movrXX only, use reg_overlap_mentioned_p.
12618         Only special case NE if just one insn can be generated.
12619
12620 2002-03-15  Jason Merrill  <jason@redhat.com>
12621
12622         * varasm.c (assemble_variable): Call resolve_unique_section before
12623         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
12624         of error_mark_node.
12625
12626 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
12627
12628         PR target/5170
12629         * arm.md (split pattern for thumb shiftable immediates): Add comment
12630         explaining non-obvious test.
12631
12632 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
12633
12634         PR target/5712
12635         * arm.md (movaddr, movaddr_insn): Delete.
12636
12637 2002-03-15  Jason Merrill  <jason@redhat.com>
12638
12639         * toplev.c (wrapup_global_declarations): Clarify variable handling.
12640         -fkeep-static-consts doesn't apply to comdats.
12641
12642 2002-03-14  Richard Henderson  <rth@redhat.com>
12643
12644         * c-decl.c: Include c-pragma.h.
12645         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
12646         (finish_function): Tidy.
12647         * c-pragma.c: Include c-common.h.
12648         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
12649         (handle_pragma_weak): Use them.
12650         (init_pragma): Register pending_weaks.
12651         * c-pragma.h (maybe_apply_pragma_weak): Declare.
12652         * print-tree.c (print_node): Print DECL_WEAK.
12653         * varasm.c (mark_weak_decls): Remove.
12654         (remove_from_pending_weak_list): Remove.
12655         (add_weak): Remove.
12656         (asm_emit_uninitialised): Call globalize_decl for weak commons.
12657         (weak_decls): Make a tree_list.
12658         (declare_weak): Cons weak_decls directly.
12659         (globalize_decl): Remove weak_decls elements directly.
12660         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
12661         symbols.  Don't pretend to handle aliases.
12662         (init_varasm_once): Update weak_decls registry.
12663         * Makefile.in: Update dependencies.
12664
12665 2002-03-14  Richard Henderson  <rth@redhat.com>
12666
12667         PR target/5312
12668         * config/ia64/ia64.c: Include tm_p.h last.
12669         (gen_nop_type): Remove duplicate definition.
12670         (cycle_end_fill_slots): Set sched_data for second L slot.
12671         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
12672         (nop_cycles_until): Fix typos.
12673
12674 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
12675
12676         PR optimization/5891
12677         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
12678
12679 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
12680
12681         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
12682           descriptors correctly.
12683
12684 2002-03-14  Michael Meissner  <meissner@redhat.com>
12685
12686         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
12687         100, allowing MAX_UNROLLED_INSNS to be overridden.
12688
12689         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
12690         --param.
12691
12692         * unroll.c (params.h): Include.
12693         (MAX_UNROLLED_INSNS): Delete, now in params.h.
12694
12695         * doc/invoke.texi (--param max-unroll-insns): Document.
12696
12697         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
12698
12699 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
12700
12701         * arm.md: Fix warnings about constraints in peepholes and splits.
12702
12703 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
12704
12705         * cpphash.h (struct lexer_state): Remove line_extension member.
12706         * cpplib.c (dequote_string, do_linemarker): New functions.
12707         (linemarker_dir): New data object.
12708         (DIRECTIVE_TABLE): No longer need to interpret #line in
12709         preprocessed source.  Delete obsolete comment about return
12710         values of handlers.
12711         (end_directive, directive_diagnostics, _cpp_handle_directive):
12712         Don't muck with line_extension.
12713         (directive_diagnostics): No need to issue warnings for
12714         linemarkers here.
12715         (_cpp_handle_directive): Issue warnings for linemarkers here,
12716         when appropriate.  Dispatch linemarkers to do_linemarker, not
12717         do_line.
12718         (do_line): Code to handle linemarkers split out to do_linemarker.
12719         Convert escape sequences in filename argument, both places.
12720
12721         * cppmacro.c (quote_string): Rename cpp_quote_string and
12722         export.  All callers changed.
12723         * cpplib.h (cpp_quote_string): Prototype.
12724         * cppmain.c (print_line): Call cpp_quote_string on to_file
12725         before printing it.
12726
12727         * doc/cpp.texi: Document that escapes are now interpreted in
12728         #line and in linemarkers, and that non-printing characters are
12729         converted to octal escapes when linemarkers are generated.
12730
12731 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
12732
12733         * emit-rtl.c (try_split): Use delete_insns.
12734         * recog.c (split_all_insns): Fix terminating condition.
12735
12736 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
12737             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
12738
12739         PR target/5828
12740         * arm.c (arm_output_epilogue): Fix floating-point register save
12741         adjustment when using a frame pointer.
12742
12743 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
12744
12745         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
12746         * config/mips/mips.c (compute_frame_size): Retrofit them here.
12747         (save_restore_insns, mips_expand_epilogue): And here.
12748         (build_mips16_call_stub): And here.
12749         (mips_function_value): Use the new macros to decide whether a single
12750         or complex float can be returned in floating-point registers.  Return
12751         a parallel rtx in the complex case.
12752
12753 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
12754
12755         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
12756         call after liveness analysis.
12757
12758         * recog.c (split_insn): Use delete_insn_and_edges.
12759
12760         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
12761         instructions to have branch prediction notes.
12762         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
12763
12764 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
12765
12766         * configure.in: Don't pass -Wno-long-long to a ADA compiler
12767         that doesn't support it.
12768         * configure: Regenerate.
12769
12770 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12771
12772         PR target/5626
12773         * config/sparc/sparc.md (normal_branch, inverted_branch,
12774         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12775         inverted_fp_branch): Adjust calls to output_cbranch.
12776         Set length attribute.
12777         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
12778         output_v9branch.  Set length attribute.
12779         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
12780         predicates.
12781         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
12782         (output_cbranch): Likewise.  Handle far branches.
12783         (output_v9branch): Handle far branches.
12784         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
12785         Adjust prototypes.
12786         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
12787         noov_compare64_op predicates.
12788
12789 2002-03-13  Jason Merrill  <jason@redhat.com>
12790
12791         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
12792         into the function and constify it.
12793         * gthr-dce.h, gthr-solaris.h: Likewise.
12794
12795 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
12796
12797         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
12798         * config/rs6000/rs6000.c (rs6000_va_arg): Use
12799         std_expand_builtin_va_arg if not ABI_V4.
12800
12801 2002-03-13  Jason Merrill  <jason@redhat.com>
12802
12803         * varasm.c (globalize_decl): New fn.
12804         (assemble_start_function): Use it.
12805         (asm_emit_uninitialized): Use it.
12806         (assemble_alias): Use it.
12807         (assemble_variable): Use it.
12808
12809 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
12810
12811         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
12812         2002-03-12 internal visibility change.
12813         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
12814         visibility into SYMBOL_REF_FLAG.
12815
12816 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
12817
12818         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
12819         VOIDmode operand.  Add compile-time optimization for constant results.
12820
12821 2002-03-12  Jason Merrill  <jason@redhat.com>
12822
12823         * c-typeck.c (convert_for_assignment): Don't allow conversions
12824         between pointers and references.  Only allow lvalues to convert to
12825         reference.
12826
12827 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
12828
12829         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
12830         before prologue, to avoid scheduling problems.
12831
12832 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12833
12834         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12835         (ELIMINABLE_REGS): Add sfp->sp.
12836         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
12837
12838 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12839
12840         PR optimization/5892
12841         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
12842
12843 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12844
12845         * loop.c (basic_induction_var): Don't call convert_modes if mode
12846         classes are different.
12847
12848 2002-03-12  Richard Henderson  <rth@redhat.com>
12849
12850         PR optimization/5901
12851         * function.c (reposition_prologue_and_epilogue_notes): Position
12852         the markers after/before the last/first insn not deleted.
12853
12854 2002-03-12  Richard Henderson  <rth@redhat.com>
12855
12856         PR optimization/5878
12857         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
12858         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
12859         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12860
12861         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
12862         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
12863         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
12864
12865         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
12866         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
12867         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
12868         also.  Don't set it if not flag_pic.
12869         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
12870         to be INVALID_REGNUM when not used.
12871
12872 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
12873
12874         * expmed.c (store_bit_field): Reset alias set for memory.
12875         (extract_bit_field): Same.
12876
12877 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12878
12879         * c-common.c (c_tree_code_type, c_tree_code_length,
12880         c_tree_code_name, add_c_tree_codes): Delete.
12881         * c-common.h (add_c_tree_codes): Delete.
12882         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
12883         Define.
12884         * c-objc-common.c (c_objc_common_init): Don't call
12885         add_c_tree_codes, instead set lang_unsafe_for_reeval.
12886         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
12887         objc_tree_code_name, add_objc_tree_codes): Delete.
12888         (objc_init): Don't call add_objc_tree_codes.
12889         * objc/objc-lang.c (tree_code_type, tree_code_length,
12890         tree_code_name): Define.
12891         * toplev.c (lang_independent_init): Don't set
12892         tree_code_length[IDENTIFIER_NODE].
12893         * tree.c (tree_code_type, tree_code_length, tree_code_name):
12894         Delete definitions, moved to language front-ends.
12895         * tree.def (IDENTIFIER_NODE): Hardwire the length.
12896         * tree.h (tree_code_type, tree_code_length, tree_code_name):
12897         Const-ify.
12898         (tree_code_length): Change type to unsigned char.
12899
12900 2002-03-12  Richard Henderson  <rth@redhat.com>
12901
12902         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
12903         internal visibility change.
12904
12905 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12906
12907         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
12908         validize_mem() instead of change_address to avoid clobbering
12909         memory attributes.
12910
12911 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
12912
12913         * c-lex.h (position_after_whitespace): Remove.
12914
12915 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
12916
12917         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
12918         (lex_string): Use unsigned char pointers.
12919
12920 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
12921
12922         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
12923         is not a valid memory_operand.
12924
12925 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12926
12927         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
12928         * config/xtensa/lib1funcs.asm: Fix copyright to include
12929         special case for libgcc files.
12930         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
12931         (__divsi3): Likewise.
12932         (__umodsi3): Likewise.
12933         (__modsi3): Likewise.
12934         * config/xtensa/lib2funcs.S: Fix copyright to include
12935         special case for libgcc files.
12936
12937 2002-03-12  Tom Rix  <trix@redhat.com>
12938
12939         * collect2.c (resolve_lib_name): Move outside of
12940         OBJECT_FORMAT_COFF ifdef.
12941         (ignore_library): Same.
12942
12943 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12944
12945         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
12946
12947 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12948
12949         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
12950         to function_section before writing out the constant pool.
12951
12952 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
12953
12954         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
12955         zero_constant.
12956         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
12957
12958 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
12959
12960         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
12961         (adddi3): Likewise.
12962         (movdf): Likewise.
12963         (movdi): Likewise.
12964         (cmpsi splitter): Likewise.
12965         (modsi3): Fail if <= 0.
12966         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
12967         redundant test when HOST_BITS_PER_WIDE_INT != 32.
12968         (reg_or_sub_cint64_operand): Likewise.
12969         (num_insns_constant_wide): Optimize sign extension.
12970         (rs6000_legitimize_address): Likewise.
12971
12972 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
12973
12974         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12975         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12976
12977 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
12978
12979         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
12980         address calculation.
12981
12982 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
12983
12984         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
12985         scratch register to DImode / TImode.
12986         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
12987         register used does not overlap the target.
12988
12989 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12990
12991         * Makefile.in (debug.o): Depend on debug.h.
12992         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
12993         * debug.c (do_nothing_debug_hooks): Likewise.
12994         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
12995         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
12996         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
12997         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
12998         * dwarfout.c (dwarf_debug_hooks): Likewise.
12999         * integrate.c (output_inline_function): Likewise.
13000         * objc/objc-act.c (synth_module_prologue): Likewise.
13001         * sdbout.c (sdb_debug_hooks): Likewise.
13002         * toplev.c (debug_hooks): Likewise.
13003         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13004
13005 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13006
13007         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
13008         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
13009         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
13010         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
13011         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
13012         * defaults.h (POINTER_SIZE): Define.
13013         * doc/tm.texi (POINTER_SIZE): Document default.
13014
13015 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13016
13017         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
13018
13019 2002-03-11  Richard Henderson  <rth@redhat.com>
13020
13021         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
13022         if rebuild_label_notes_after_reload.
13023
13024 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
13025
13026         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
13027         emit pic register load if "internal" visibility.
13028         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
13029         (cris_expand_builtin_va_arg): Do all computations on trees.
13030
13031 2002-03-11  Richard Henderson  <rth@redhat.com>
13032
13033         * rtlanal.c: Include recog.h.
13034         (keep_with_call_p): Fix thinko.
13035         * Makefile.in (rtlanal.o): Update dependencies.
13036
13037 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
13038
13039         * genflags.c (gen_insn): Use IS_VSPACE.
13040         * genoutput.c (output_insn_data): Likewise.
13041         (process_template): Likewise.
13042
13043 2002-03-11  Richard Henderson  <rth@redhat.com>
13044
13045         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
13046
13047 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13048
13049         * Makefile.in: Update.
13050         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
13051         Update documentation.
13052         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
13053         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
13054
13055 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
13056
13057         * Makefile.in: Give texi2pod its input file as a command line
13058         argument, not on stdin.
13059
13060 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
13061             Daniel Berlin  <dan@dberlin.org>
13062
13063         C++ alias analysis improvement.
13064         * alias.c (record_component_aliases): Record aliases for base
13065         classes too.
13066
13067 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
13068
13069         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
13070
13071 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
13072
13073         * toplev.c (vms_fopen): Remove, not needed.
13074
13075         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
13076
13077         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
13078
13079         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
13080         for FP, already done later.
13081
13082         * toplev.c (debug_args): Add entry for VMS_DEBUG.
13083         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
13084
13085 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
13086
13087         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
13088         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
13089         LARGEST_EXPONENT_IS_NORMAL for the given mode.
13090         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
13091         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
13092         (ediv, emul, eldexp, esqrt): Likewise.
13093         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
13094         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
13095         (saturate): New function.
13096         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
13097         (make_nan): Use a saturation value instead of a NaN if
13098         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
13099         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
13100         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
13101         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
13102         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
13103         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
13104         !ROUND_TOWARDS_ZERO.
13105         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
13106         (ROUND_TOWARDS_ZERO): Document.
13107
13108 2002-03-11  Andreas Jaeger  <aj@suse.de>
13109
13110         * cfg.c (dump_flow_info): Remove unused variable.
13111
13112 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
13113
13114         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
13115         computations on trees.
13116
13117 2002-03-10  Richard Henderson  <rth@redhat.com>
13118
13119         PR 5693:
13120         * reload.c (copy_replacements_1): New.
13121         (copy_replacements): Use it to recurse through the rtx.
13122
13123 2002-03-10  Richard Henderson  <rth@redhat.com>
13124
13125         * loop.c (strength_reduce): Compute number of iterations as
13126         unsigned HOST_WIDE_INT.
13127
13128 2002-03-10  Richard Henderson  <rth@redhat.com>
13129
13130         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
13131         to move away from the end of the block.
13132
13133 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
13134
13135         PR preprocessor/5899
13136         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
13137
13138 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13139
13140         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
13141
13142         * attribs.c (decl_attributes): Fix signed/unsigned warning.
13143
13144 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
13145
13146         * config/mmix/mmix.c: Improve comments.
13147         (mmix_target_asm_function_prologue): Drop variable
13148         empty_stack_frame.  Don't allocate unused slot above fp.
13149         (mmix_target_asm_function_epilogue): Mirror prologue changes.
13150         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
13151         brace in first column.
13152         (enum reg_class): Ditto.
13153         (FIRST_PARM_OFFSET): Now 0.
13154         (USER_LABEL_PREFIX): Remove #if 0:d definition.
13155
13156 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13157
13158         * combine.c (make_extraction): Fix error in last change.
13159
13160 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13161
13162         * c4x.c (c4x_fp_reglist): Const-ify.
13163         * cris.c (cris_print_operand): Likewise.
13164         * i386.c (ix86_va_arg): Likewise.
13165         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
13166         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
13167         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
13168         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
13169         * mcore.h (regno_reg_class): Likewise.
13170         * mips.c (gen_int_relational): Likewise.
13171         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
13172         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
13173         * pdp11.c (move_costs): Likewise.
13174         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
13175         * s390.c (s390_branch_condition_mnemonic, regclass_map):
13176         Likewise.
13177         * s390.h (regclass_map): Likewise.
13178         * sh.c (shift_amounts): Likewise.
13179         * sh.md (rotlsi3): Likewise.
13180
13181 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
13182
13183         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
13184         (ne0+5): Use new clobber to generate proper shift pattern.
13185         Patch by Michael Matz <matz@kde.org>.
13186
13187 2002-03-09  Andreas Schwab  <schwab@suse.de>
13188
13189         * gcc.c (validate_all_switches): Also handle `%W{...}'.
13190
13191 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
13192
13193         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
13194
13195 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
13196
13197         PR middle-end/5877
13198         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
13199         even for non-representable constants.
13200
13201 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13202
13203         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
13204         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
13205         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
13206         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
13207         (pop_function_context): Compute MAY_SHARE parameter for
13208         fixup_var_refs.
13209         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
13210         (gen_mem_addressof): Call fixup_var_refs with new parm.
13211
13212         * combine.c (make_extraction): Don't make extension of CONST_INT.
13213
13214 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
13215
13216         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
13217         in o32 and o64 ABIs.
13218         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
13219         but getting fixed-size structs passed in registers regardless of
13220         padding in o32 and o64 ABIs.
13221
13222         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
13223         offset before loading address of argument passed by transparent
13224         reference.
13225
13226 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13227
13228         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
13229
13230 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
13231
13232         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
13233         marker such that registers after it are saved.
13234
13235 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13236
13237         * sparc.c (arith_4096_operand): Fix error in last change.
13238
13239 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
13240
13241         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
13242         defaults for MEABI.
13243
13244 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
13245
13246         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
13247         vectors.
13248
13249 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
13250
13251         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
13252
13253 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
13254
13255         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
13256         removed; fix return value.
13257         * combine.c (combine_instructions): Dirtify blocks where we failed to
13258         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
13259         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
13260
13261 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13262
13263         * gcse.c (insert_insn_end_bb): Fix typo in last change.
13264
13265 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
13266
13267         * recog.c (peephole2_optimize): Re-distribute EH edges.
13268
13269 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
13270
13271         * expr.c (expand_expr): Use unsave lang hook.
13272         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
13273         (LANG_HOOKS_INITIALIZER): Update.
13274         * langhooks.h (struct lang_hooks): New hook unsave.
13275         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
13276         (unsave_expr_1): Remove unused lang_unsave_expr_now.
13277         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
13278         (unsave_expr_now): Remove.
13279         * tree.h (unsave_expr_now, lang_unsave,
13280         lang_unsave_expr_now): Remove.
13281         (lhd_unsave): New.
13282
13283 2002-03-08  Andreas Jaeger  <aj@suse.de>
13284
13285         * flow.c (propagate_block_delete_insn): Remove unused variable.
13286
13287 2002-03-08  Kazu Hirata  <kazu@hxi.com>
13288
13289         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
13290         insn length for memory load/store.
13291
13292 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13293
13294         * doc/install.texi (--with-libiconv-prefix): Document.
13295
13296 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
13297
13298         * doc/sourcebuild.texi: Fix typo.
13299
13300 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
13301
13302         PR c/3711
13303         * builtins.c (std_expand_builtin_va_arg): Do all computations on
13304         trees.
13305
13306 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13307
13308         * rtl.c (copy_most_rtx): Move from here ...
13309         * emit-rtl.c (copy_most_rtx): ... to here.
13310
13311 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
13312
13313         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
13314         SUBTARGET_CPP_SIZE_SPEC.
13315         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
13316
13317         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
13318
13319 2002-03-07  Matt Hiller  <hiller@redhat.com>
13320
13321         * gensupport.c (first_dir_md_include): Renamed from include;
13322         change all references.
13323         (last_dir_md_include): Renamed from last_include; change all
13324         references.
13325         (init_md_reader): Unconditionally initialize base_dir whether or
13326         not filename is a relative path.
13327
13328 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
13329
13330         * config/fp-bit.c (_unord_f2): Compile it in even if
13331         US_SOFTWARE_GOFAST is enabled.
13332
13333         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
13334         NULL_RTX.  Set all HFmode operations as NULL_RTX.
13335         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
13336         NULL_RTX, try reversing the comparison and the operands.
13337
13338 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
13339
13340         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
13341         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
13342         and MATCH_OP_DUP.
13343
13344 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
13345
13346         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
13347
13348 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
13349
13350         * basic-block.h (fixup_abnormal_edges): Declare.
13351         * reload1.c (fixup_abnormal_edges): New function.
13352         * reg-stack.c (convert_regs): Use it.
13353
13354         * gcse.c (insert_insn_end_bb): Handle trapping insns.
13355
13356         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
13357
13358 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
13359
13360         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
13361         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
13362         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
13363         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
13364         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
13365         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
13366         unless x and y could be infinite.
13367         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
13368         Check that the common type of both arguments is a real, even for
13369         targets without unordered comparisons.  Allow an integer argument
13370         to be compared against a real.
13371         (expand_tree_builtin): Use expand_unordered_cmp.
13372         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
13373         * cse.c (fold_rtx): Likewise.  Fix indentation.
13374         * fold-const.c (fold_real_zero_addition_p): New.
13375         (fold): Use it, and the new HONOR_... macros.
13376         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
13377         * jump.c (reversed_comparison_code_parts): After searching for
13378         the true comparison mode, use HONOR_NANS to decide whether it
13379         can be safely reversed.
13380         (reverse_condition_maybe_unordered): Remove IEEE check.
13381         * simplify-rtx.c (simplify_binary_operation): Use the new macros
13382         to decide which simplifications are valid.  Allow the following
13383         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
13384         and (a - -b) to (a + b).
13385         (simplify_relational_operation): Use HONOR_NANS.
13386         * doc/tm.texi: Document the MODE_HAS_... macros.
13387
13388 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
13389
13390         * combine.c (simplify_comparison): If simplifying a logical shift
13391         right and compare with constant, force the comparison to unsigned.
13392
13393 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
13394
13395         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
13396
13397         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
13398         -mabi=no-altivec
13399         (alt_reg_names): Remove % for vrsave.
13400
13401 2002-03-06  Richard Henderson  <rth@redhat.com>
13402
13403         PR optimization/5844
13404         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
13405         if used indicates we've already emitted one copy of an operand.
13406         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
13407         (gen_split): Supply a non-null used.
13408
13409 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
13410
13411         * reload1.c (reload): Unshare all rtl after reload is done.
13412
13413         * simplify-rtx.c (simplify_plus_minus): Do not abort,
13414         but simply fail if the expression is too complex to simplify.
13415         (simplify_gen_binary): Handle simplify_plus_minus failures.
13416
13417 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
13418
13419         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
13420         consistently call delete_trivially_dead_insns after CSE and GCSE;
13421         fix DFI_life dumping; do jump threading after liveness; do crossjumping
13422         after liveness2; update comment in last crossjumping.
13423         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
13424
13425 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
13426
13427         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
13428         after completing fast dead code elimination.
13429
13430         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
13431         COMPARE operator.
13432
13433 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
13434
13435         * version.c:  Fix misplaced leading blanks on first line.
13436
13437 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
13438
13439         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
13440
13441 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
13442
13443         * cfgcleanup.c (mentions_nonequal_regs): New function.
13444         (thread_jump): Use it.
13445         * toplev.c (rest_of_compilation): Run jump threading after
13446         liveness.
13447
13448 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
13449
13450         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
13451         patch.
13452
13453 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13454
13455         * predict.c (estimate_bb_frequencies): Do not reload the
13456         frequencies from notes.
13457
13458 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
13459
13460         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
13461         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
13462
13463         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
13464         delete_noop_moves): Return indeger.
13465         * flow.c (ndead): New variable.
13466         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
13467         BB argument; update callers.
13468         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
13469         (life_analysis): Do not call purge_all_dead_edges.
13470         (update_life_info): Return number of deleted insns; print statistics.
13471         (update_life_info_in_dirty_blocks): likewise.
13472         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
13473         return number of insns deleted.
13474
13475         * cse.c: Include timevar.h
13476         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
13477         iterate until stabilizes; print statistics; return number of killed
13478         insns.
13479         * Makefile.in: (cse.o): Add timevar.h dependency
13480         * rtl.h (delete_trivially_dead_insns): New.
13481         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
13482         * toplev.c (rest_of_compilation): Update callers.
13483
13484         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
13485         (try_optimize_cfg): Do not update liveness.
13486         (cleanup-cfg): Loop until try_optimize_cfg and dead code
13487         removal stabilizes; use delete_trivially_dead_insns.
13488
13489         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
13490
13491 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
13492
13493         * cppmain.c (setup_callbacks): Disable #pragma and #ident
13494         callbacks when processing assembly language.
13495
13496 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13497
13498         * pa.h (ASM_FILE_END): Define.
13499         * som.h (ASM_FILE_END): Delete.
13500
13501         * pa.c (function_arg): Don't pass floats in general registers in
13502         indirect calls if TARGET_ELF32.
13503
13504 2002-03-05  Richard Henderson  <rth@redhat.com>
13505
13506         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
13507
13508 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
13509
13510         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
13511
13512 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
13513
13514         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
13515         -r command line.  Don't hide any symbols if not building
13516         shared libgcc.
13517
13518 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
13519
13520         * cfg.c (dump_flow_info): Warn about profile mismatches.
13521         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
13522         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
13523
13524 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
13525
13526         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
13527         wide volatile memory by parts.
13528
13529 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
13530
13531         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
13532         is NULL.
13533
13534 2002-03-05  Richard Henderson  <rth@redhat.com>
13535
13536         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
13537
13538 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
13539
13540         * toplev.c (documented_lang_options): Document more
13541         language-specific options.
13542         * doc/invoke.texi (Warning Options): Correct documentation for
13543         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
13544         * c-decl.c (c_decode_option): Use a table to handle warning options.
13545
13546 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
13547
13548         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
13549         parameter to mmix_encode_section_info.
13550         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
13551         relocatably.  Always produce ELF, not mmo if linking relocatably.
13552         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
13553         first is non-zero, don't add symbol prefix.
13554         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
13555         prototype accordingly.
13556
13557 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
13558
13559         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
13560
13561 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
13562
13563         * configure.in: Increase required makeinfo version to 4.1.
13564         * configure: Regenerate.
13565
13566 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
13567
13568         * .cvsignore: Remove *.info* and genrtl*; these files are generated
13569         elsewhere now.
13570
13571 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
13572
13573         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
13574         * doc/invoke.texi: Fix @math uses.
13575
13576 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
13577
13578         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
13579         removal
13580
13581 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
13582
13583         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
13584         (powerpc-*-eabisimaltivec*): Same.
13585
13586         * config/rs6000/t-ppcendian: New.
13587
13588 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13589
13590         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
13591         nonimmediate_src_operand and nonimmediate_lsrc_operand to
13592         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
13593
13594 2002-03-03  Richard Henderson  <rth@redhat.com>
13595
13596         * toplev.c (rest_of_decl_compilation): Revert last two changes.
13597
13598 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
13599
13600         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
13601         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
13602         tree.c, config/m68k/m68k.c:
13603         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
13604         REAL_ARITHMETIC blocks unconditional.  Delete some further
13605         #ifdef blocks predicated on REAL_ARITHMETIC.
13606         * flags.h, toplev.c: Delete remaining references to
13607         flag_pretend_float.
13608
13609         * doc/invoke.texi: Remove documentation of -fpretend-float.
13610         * doc/tm.texi: Describe the various REAL_* macros as provided by
13611         real.h, not by the target configuration files.
13612
13613         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
13614         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
13615         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13616         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
13617         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
13618         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
13619         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
13620         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
13621         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13622         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
13623         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13624         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
13625         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
13626         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
13627         config/xtensa/xtensa.h:
13628         Do not define, undefine, or mention in comments any of
13629         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
13630         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
13631         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
13632         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
13633         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
13634         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
13635         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
13636         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
13637         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
13638
13639 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13640
13641         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
13642         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
13643         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
13644         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
13645         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
13646         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
13647         Delete.
13648         * defaults.h (BITS_PER_WORD): Define.
13649         * doc/tm.texi (BITS_PER_WORD): Document default value.
13650
13651         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
13652         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
13653         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
13654
13655 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13656
13657         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
13658         lieu of explicit sizeof/sizeof.
13659         * i386.c (override_options, ix86_init_mmx_sse_builtins,
13660         ix86_expand_builtin): Likewise.
13661         * mips.c (mips_add_gc_roots): Likewise.
13662         * mmix.c (mmix_output_condition): Likewise.
13663         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
13664         altivec_init_builtins): Likewise.
13665         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
13666         * cppexp.c (Nsuff, parse_number): Likewise.
13667         * cppinit.c (builtin_array_end): Likewise.
13668         * gcc.c (n_default_compilers, process_command): Likewise.
13669         * genpreds.c (output_predicate_decls): Likewise.
13670         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
13671         * lcm.c (N_ENTITIES): Likewise.
13672         * stor-layout.c (set_sizetype): Likewise.
13673
13674 2002-03-03  Richard Henderson  <rth@redhat.com>
13675
13676         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
13677         for types or labels.
13678
13679 2002-03-03  Richard Henderson  <rth@redhat.com>
13680
13681         * c-decl.c (start_decl): Initialized variables are not common.
13682
13683 2002-03-02  Per Bothner  <per@bothner.com>
13684
13685         * gcc.c (option_map):  Suport new --bootclasspath option.
13686         --CLASSPATH is now just an alias for --classpath.
13687
13688 2002-03-02  Richard Henderson  <rth@redhat.com>
13689
13690         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
13691         load if "internal" visibility.
13692         * doc/extend.texi: Document visibility meanings.
13693
13694 2002-03-02  Richard Henderson  <rth@redhat.com>
13695
13696         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
13697         to functions as well.
13698
13699 2002-03-02  Richard Henderson  <rth@redhat.com>
13700
13701         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
13702         (handle_visibility_attribute): Don't call assemble_visibility.
13703         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
13704         without asmspec.  Invoke assemble_alias when needed.
13705         * varasm.c (maybe_assemble_visibility): New.
13706         (assemble_start_function, assemble_variable, assemble_alias): Use it.
13707
13708 2002-03-02  Richard Henderson  <rth@redhat.com>
13709
13710         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
13711         invoke ENCODE_SECTION_INFO with first call flag.
13712
13713         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13714         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
13715         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
13716         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
13717         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
13718         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
13719         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
13720         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
13721         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
13722         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
13723         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
13724         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
13725         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
13726         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
13727         config/mcore/mcore-protos.h, config/mcore/mcore.c,
13728         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
13729         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
13730         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
13731         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
13732         config/sh/sh.h, config/sparc/sparc.h,
13733         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
13734         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
13735         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
13736         FIRST argument.  As needed, examine it and do nothing.
13737
13738         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
13739         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13740         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
13741
13742         * config/arm/t-pe (pe.o): Add dependencies.
13743
13744 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13745
13746         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
13747         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
13748         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
13749         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
13750         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
13751         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
13752         * defaults.h (BITS_PER_UNIT): Define.
13753         * doc/tm.texi (BITS_PER_UNIT): Document default value.
13754
13755 2002-03-02  Kazu Hirata  <kazu@hxi.com>
13756
13757         * config/h8300/h8300-protos.h: Add a prototype for
13758         compute_a_shift_length.
13759         * config/h8300/h8300.c (h8300_asm_insn_count): New.
13760         (compute_a_shift_length): Likewise.
13761         (h8300_adjust_insn_length): Do not adjust insn length of shift
13762         insns.
13763         * config/h8300/h8300.md (anonymous shift patterns): Use
13764         compute_a_shift_length.
13765
13766 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13767
13768         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
13769         trunc_int_for_mode.
13770
13771         * emit-rtl.c (offset_address): Call update_temp_slot_address.
13772
13773 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13774
13775         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
13776         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
13777         * flags.h (flag_zero_initialized_in_bss): Declare.
13778         * toplev.c (flag_zero_initialized_in_bss): New flag.
13779         (lang_independent_options): Add flag_zero_initialized_in_bss.
13780         * tree.c (initializer_zerop): New function.
13781         * tree.h (initializer_zerop): Declare.
13782         * varasm.c (assemble_variable): If we can emit bss, put zero
13783         initializers in the bss section.
13784
13785 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
13786
13787         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
13788         like more than one symbol per .weak directive.
13789
13790 2002-03-01  Richard Henderson  <rth@redhat.com>
13791
13792         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
13793         adjust argument_pointer by pretend_args_size.
13794         (ia64_va_start): Adjust va_start address by -pretend_args_size.
13795
13796 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13797
13798         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
13799
13800 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
13801
13802         * toplev.c (rest_of_compilation): Delete dead jumptables before
13803         loop.
13804         * flow.c (delete_dead_jumptables): Make global.
13805         * rtl.h (delete_dead_jumptables): Declare.
13806
13807 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
13808
13809         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
13810         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
13811         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
13812
13813 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13814
13815         * config/h8300/h8300-protos.h: Fix formatting.
13816         * config/h8300/h8300.c: Likewise.
13817         * config/h8300/h8300.h: Likewise.
13818
13819 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13820
13821         * config/h8300/h8300.c (print_operand): Support 16-bit
13822         constant addresses.
13823         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
13824
13825 2002-02-28  Richard Henderson  <rth@redhat.com>
13826
13827         * expmed.c (store_bit_field): Prevent generation of CONCATs;
13828         pun complex values as integers; use gen_lowpart instead of
13829         gen_rtx_SUBREG.
13830         (extract_bit_field): Likewise.
13831
13832 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
13833             David Edelsohn  <edelsohn@gnu.org>
13834
13835         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
13836         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
13837         (SUPPORTS_WEAK): Likewise.
13838         * output.h (add_weak): Add tree param.
13839         * varasm.c (add_weak): Likewise.  Save decl.
13840         (struct weak_syms): Add decl field.
13841         (mark_weak_decls): New function.
13842         (init_varasm_once): ggc_add_root mark_weak_decls.
13843         (assemble_start_function): Use ASM_WEAKEN_DECL.
13844         (assemble_variable): Likewise.
13845         (assemble_alias): Likewise.
13846         (declare_weak): Pass decl to add_weak.
13847         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
13848         (remove_from_pending_weak_list): Declare and define for
13849         ASM_WEAKEN_DECL.
13850         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
13851         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
13852         * defaults.h (SUPPORTS_WEAK): Likewise.
13853         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13854         .weak for code sym.  Do emit .size for descriptor sym.
13855         (ASM_DECLARE_FUNCTION_SIZE): Define.
13856         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
13857         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
13858         .lglobl unless TARGET_XCOFF.  Formatting fixes.
13859         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13860         .weak for code sym.
13861         (HANDLE_PRAGMA_WEAK): Remove.
13862         (ASM_WEAKEN_LABEL): Remove.
13863         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
13864
13865 2002-03-01  Jason Merrill  <jason@redhat.com>
13866
13867         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
13868         (TARGET_EXPR_CLEANUP): New macro.
13869
13870 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
13871
13872         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
13873         to take ptr_extend into account as third type of extension.
13874         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
13875         fields used by SUBREG_PROMOTED_UNSIGNED_P.
13876         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
13877         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
13878         * calls.c (precompute_arguments): Use new macro.
13879         (expand_call): Ditto.
13880         * combine.c (nonzero_bits): Ditto.
13881         (record_promoted_value): Ditto.
13882         * expr.c (store_expr): Ditto.
13883         (expand_expr): Ditto.
13884         * function.c (assign_parms): Ditto.
13885
13886 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
13887
13888         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
13889         override -shared and -shared-libgcc.
13890
13891 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
13892
13893         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
13894         of "ultrasparc".
13895         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
13896         to be broken.
13897
13898 2002-02-28  Richard Henderson  <rth@redhat.com>
13899
13900         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
13901         4 cycle latency from MM producers.
13902         (ia64_internal_sched_reorder): Likewise with pipeline flush.
13903
13904 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
13905
13906         * mklibgcc.in: Don't use GNU make extension.
13907
13908 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
13909
13910         * c-parse.in (STATIC): New terminal.
13911         (scspec): New non-terminal.  Update productions accordingly.
13912         (program): Remove bogus ifc / end ifc.
13913         (array_declarator): Simplify production using STATIC.
13914
13915 2002-02-28  Jim Meyering  <meyering@lucent.com>
13916
13917         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
13918         \a still means TARGET_BELL.
13919
13920 2002-02-28  Richard Henderson  <rth@redhat.com>
13921
13922         * haifa-sched.c (sched_emit_insn): New.
13923         (schedule_block): Use last_scheduled_insn to track last insn.
13924         * sched-int.h (sched_emit_insn): Prototype.
13925         * config/ia64/ia64.c (last_issued): Remove.
13926         (ia64_variable_issue): Don't set it.
13927         (nop_cycles_until): Use sched_emit_insn.
13928
13929 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
13930
13931         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
13932         extended constants.
13933
13934 2002-02-28  Kazu Hirata  <kazu@hxi.com>
13935
13936         * config/h8300/h8300.c: Fix formatting.
13937         * config/h8300/h8300.h: Likewise.
13938
13939 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13940
13941         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
13942         which may overwrite the high byte of the frame pointer.
13943
13944 2002-02-28  Bo Thorsen  <bo@suse.de>
13945
13946         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
13947         (STARTFILE_SPEC): Add 64 bit files.
13948         (ENDFILE_SPEC): Likewise.
13949
13950 2002-02-28  Jason Merrill  <jason@redhat.com>
13951
13952         * c-decl.c (finish_function): Only warn about missing return
13953         statement with -Wreturn-type.
13954
13955 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
13956
13957         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
13958
13959         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
13960         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
13961
13962 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13963
13964         * basic-block.h (BB_REACHABLE): Renumber.
13965         (BB_DIRTY, BB_NEW): New flags.
13966         (clear_bb_flags): Declare.
13967         (update_life_info_in_dirty_blocks): Declare.
13968         * cfg.c (clear_bb_flags): New function.
13969         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
13970         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
13971         reorder_insns, emit_insn_after): Mark block as dirty.
13972         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
13973         (update_life_info_in_dirty_blocks): New function.
13974         * recog.c (apply_change_group): Dirtify block.
13975
13976         * cse.c (cse_insn): Reorder emitting of jump insn to keep
13977         cfg consistent.
13978         * gcse.c (delete_null_pointer_checks): Likewise.
13979
13980         * toplev.c (dump_file_index): Move cse2 after bp,
13981         add DFI_null
13982         (dump_file_info): Similary.
13983         (rest_of_compilation): Avoid most of CFG rebuilds;
13984         do first if converision after null pointer checks, do cse2
13985         after branch prediction; avoid full liveness rebuild after
13986         initializing subregs.
13987         * invoke.texi (-d options): Document -du, renumber.
13988
13989         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
13990         (notice_new_block): Do not set BB_UPDATE_LIFE.
13991         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
13992          merge_blocks_move_successor_nojumps, merge_blocks,
13993          try_crossjump_to_edge): Likewise.
13994         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
13995         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
13996         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
13997         (merge_of_block): Do not use life_data_ok.
13998         (find_if_case_1): Do not use SET_UPDATE_LIFE.
13999         (if_convert): Use BB_DIRTY mechanizm to update life.
14000         * lcm.c (optimize_mode_switching): Update
14001         update_life_info_in_dirty_blocks
14002
14003 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
14004
14005         * Makefile.in (integrate.o): Update.
14006         * c-decl.c (copy_lang_decl): Rename.
14007         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14008         * integrate.c: Include langhooks.h.
14009         (copy_decl_for_inlining): Update to use langhook.
14010         * langhooks-def.h (lhd_do_nothing_t,
14011         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
14012         (LANG_HOOKS_INITIALIZER): Update.
14013         * langhooks.c (lhd_do_nothing_t): New.
14014         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
14015         * tree.h (copy_lang_decl): Remove.
14016 objc:
14017         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14018
14019 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
14020
14021         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
14022         POST_DEC, and POST_MODIFY.
14023
14024 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
14025
14026         * c-typeck.c (digest_init): Remove unused parameter; all
14027         callers changed.
14028
14029 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
14030
14031         * expmed.c (expand_shift): Correctly test for low part of a
14032         subreg.
14033
14034 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
14035
14036         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
14037         insn UIDs with insn addresses.
14038
14039 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
14040
14041         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
14042         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
14043         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
14044         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
14045         gcc.c, toplev.c: Delete code implementing -traditional mode.
14046
14047         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
14048         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
14049         Document removal of -traditional mode for compilation, and
14050         remove documentation only relevant to that mode.
14051
14052         * config/nextstep.h, config/ptx4.h, config/svr4.h,
14053         config/convex/convex.h, config/d30v/d30v.h,
14054         config/i386/dgux.h, config/i386/osf1elf.h,
14055         config/i386/osfelf.h, config/i386/osfrose.h,
14056         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
14057         config/m68k/hp310.h, config/m88k/dgux.h,
14058         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
14059         config/m88k/m88k.h, config/m88k/openbsd.h,
14060         config/mips/abi64.h, config/mips/osfrose.h,
14061         config/mips/svr4-5.h, config/mips/svr4-t.h,
14062         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14063         config/stormy16/stormy16.h: Remove all references to
14064         -traditional from target specs.  Delete all mention of the
14065         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
14066         delete a couple of commented-out definitions of
14067         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
14068         to -traditional.
14069
14070         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
14071         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
14072
14073 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
14074
14075         * mklibgcc.in: Don't use \n in a line subject to
14076         interpretation by echo.
14077
14078 2002-02-27  Graham Stott  <grahams@redhat.com>
14079
14080         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
14081         Constify NAME.
14082
14083         * loop.c (prescan_loop): Handle PARALLEL.
14084
14085         * unroll.c (loop_iterations): Return 0 if the add_val for
14086         a BIV is REG.
14087
14088         * final.c (output_operand_lossage): Constify PFX_STR.
14089
14090         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
14091
14092 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
14093
14094         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
14095         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
14096
14097 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
14098
14099         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14100
14101 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14102
14103         * cpplex.c (_cpp_lex_token): Handle directives in macro
14104         arguments.
14105         * cpplib.c (_cpp_handle_directive): Save and restore state
14106         if parsing macro args when entering a directive.
14107         * cppmacro.c (collect_args): No need to handle directives
14108         in macro arguments.
14109         (enter_macro_context, replace_args): Use the original macro
14110         definition in case it was redefined whilst collecting arguments.
14111 doc:
14112         * cpp.texi: Update.
14113
14114 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
14115
14116         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
14117         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
14118         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
14119         method on AIX.
14120         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
14121         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
14122         (load_toc_v4_PIC_2): Same.
14123
14124 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
14125
14126         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
14127
14128 2002-02-26  Richard Henderson  <rth@redhat.com>
14129
14130         * config/alpha/alpha.md (ashldi_se): Re-enable.
14131
14132 2002-02-26  Richard Henderson  <rth@redhat.com>
14133
14134         * config/alpha/alpha.c (alpha_encode_section_info): Examine
14135         MODULE_LOCAL_P; improve commentary.
14136
14137 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
14138
14139         * doc/cpp.texi: Clarify documentation of relationship between
14140         #line and #include.
14141
14142 2002-02-26  Kazu Hirata  <kazu@hxi.com>
14143
14144         * config/h8300/h8300-protos.h: Update the prototype for
14145         compute_logical_op_length.  Add the prototype for
14146         compute_logical_op_cc.
14147         * config/h8300/h8300.c (compute_logical_op_length): Figure out
14148         code from operands.
14149         (compute_logical_op_cc): New.
14150         * config/h8300/h8300.md: Combine all the logical op patterns
14151         in HImode and SImode.  Use compute_logical_op_cc.
14152
14153 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
14154
14155         * config/i386/i386.c (print_operand): Don't append ATT-style
14156         length suffixs to x87 opcodes when in Intel mode.
14157
14158 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
14159
14160         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
14161         (init_emit_once): Update calls.
14162         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
14163         (init_syntax_once): Prototype.
14164
14165 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14166
14167         * pa-linux.h (LIB_SPEC): Update definition.
14168         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14169
14170 2002-02-26  Richard Henderson  <rth@redhat.com>
14171
14172         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
14173         if we emitted a stop bit.
14174
14175 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
14176
14177         * configure.in (libgcc_visibility): Substitute.
14178         * configure: Rebuilt.
14179         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
14180         defined symbols .hidden.
14181
14182 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
14183
14184         * attribs.c (c_common_attribute_table): Add visibility.
14185         (handle_visibility_attribute): New function.
14186         * varasm.c (assemble_visibility): New function.
14187         * output.h (assemble_visibility): Add prototype.
14188         * tree.h (MODULE_LOCAL_P): Define.
14189         * crtstuff.c (__dso_handle): Use visibility attribute.
14190         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
14191         for MODULE_LOCAL_P symbols too.
14192         * config/ia64/ia64.c (ia64_encode_section_info): Handle
14193         MODULE_LOCAL_P symbols the same way as local symbols.
14194         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
14195         into .sdata/.sbss by the user.
14196         * doc/extend.texi (Function Attributes): Document visibility
14197         attribute.
14198
14199 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
14200
14201         PR debug/5770
14202         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
14203         STRING_CST initializer spanning the whole variable without
14204         embedded zeros.
14205         If expand_expr returned MEM, don't use it.
14206
14207 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
14208
14209         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
14210         generate a die for the lexical block.
14211
14212 2002-02-26  Kazu Hirata  <kazu@hxi.com>
14213
14214         * config/h8300/h8300-protos.h: Add a prototype for
14215         compute_logical_op_length.
14216         * config/h8300/h8300.c (compute_logical_op_length): New.
14217         * config/h8300/h8300.md (anonymous logical patterns): Use
14218         compute_logical_op_length for length.
14219
14220 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
14221
14222         * dwarf2out.c (modified_type_die): Do not call type_main_variant
14223         for vectors.
14224         (gen_type_die): Same.
14225
14226         * attribs.c (handle_vector_size_attribute): Set debug information.
14227
14228 2002-02-26  Daniel Egger  <degger@fhm.edu>
14229
14230         * config/rs6000/rs6000.md: Swap define_insn attributes to
14231         fix incorrect generation of merge high instructions instead
14232         of merge low.
14233
14234 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
14235
14236         * c-typeck.c (really_start_incremental_init): Use
14237         bitsize_zero_node for vectors.
14238
14239 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
14240
14241         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
14242         ("*set_vrsave_internal"): Same.
14243
14244 2002-02-25  Richard Henderson  <rth@redhat.com>
14245
14246         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
14247         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
14248
14249 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
14250
14251         PR target/5755
14252         * config/i386/i386.c (ix86_return_pops_args): Only pop
14253         fake structure return argument if it was passed on the stack.
14254
14255 2002-02-25  Jason Merrill  <jason@redhat.com>
14256
14257         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
14258         RESULT_DECL.
14259
14260 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
14261
14262         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
14263         link with shared_name only.
14264         * doc/invoke.texi (Link Options): Document new behavior.
14265
14266 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
14267
14268         * c-typeck.c (push_init_level): Handle vectors.
14269
14270 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
14271
14272         * config/sparc/sparc.c (const64_high_operand): Zero-extend
14273         operands of SPARC_SETHI_P.
14274         (input_operand): Likewise.
14275         (sparc_emit_set_const32): Likewise.
14276         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
14277         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
14278         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
14279         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
14280         (movdi_insn_sp64_vis): Likewise.
14281         (movdi split, movdf split): Use SETHI32.
14282         * doc/md.texi: Document SPARC constraints L, M and N.
14283
14284 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
14285
14286         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
14287         ("*set_vrsave_internal"): use mfspr for Darwin.
14288
14289         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
14290         gen_get_vrsave_internal.
14291
14292 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14293
14294         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
14295
14296 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14297
14298         * cpplex.c (cpp_interpret_charconst): Get signedness or
14299         otherwise of wide character constants correct.
14300         * cppexp.c (lex): Get signedness of wide charconsts correct.
14301
14302 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14303
14304         * optabs.c (widen_operand): Only call convert_modes for
14305         promoted SUBREG if signedness matches.
14306         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
14307
14308 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14309
14310         * cpplib.c (glue_header_name): Use local buffer to build up
14311         header name.
14312
14313 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14314
14315         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
14316
14317 2002-02-23  Kazu Hirata  <kazu@hxi.com>
14318
14319         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
14320         H8/300[HS] separately.
14321         * config/h8300/h8300.md: Remove the early clobber constraint
14322         from bit field patterns.
14323
14324 2002-02-23  Kazu Hirata  <kazu@hxi.com>
14325
14326         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
14327         register_operand.
14328         (mulhisi3): Likewise.
14329         (umulqisi3): Likewise.
14330         (umulhisi3): Likewise.
14331
14332 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14333
14334         * cppinit.c (output_deps): Correct test for stdout output.
14335         (init_dependency_output): Cure warning.
14336
14337 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14338
14339         * expr.c (store_expr): When converting expression to promoted
14340         equivalent type, allow using SUBREG_REG of TARGET as the target
14341         of the expansion of EXP.
14342         * loop.c (basic_induction_var, case SUBREG): Always look inside.
14343         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
14344         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
14345         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
14346         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
14347
14348 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
14349
14350         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
14351         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
14352         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
14353
14354 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
14355
14356         PR optimization/5747
14357         * loop.c (scan_loop): Update reg info if move_movables created new
14358         pseudos.
14359
14360 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
14361
14362         * gcc.c (init_gcc_spec): Revert last change.
14363
14364 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
14365
14366         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
14367         gpc_reg_operand constraint.
14368
14369 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
14370
14371         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
14372         Simplify comparison of `low'.
14373         (add_operand): Fix formatting.
14374         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
14375         (mask_operand): Disallow mask to wrap in 64-bit mode.
14376         (rs6000_stack_info): Remove redundant test setting push_p.
14377         (output_toc): Fix formatting.
14378         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
14379         cc_reg_not_cr0_operand constraint.
14380         (booldi3, boolcdi3 splitters): Same.
14381
14382 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
14383
14384         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
14385
14386 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
14387
14388         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
14389         gcc invoked with -shared-libgcc.
14390
14391 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
14392
14393         PR c++/5748
14394         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
14395         decl if any of elements was TREE_USED.
14396
14397 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
14398
14399         * config/sparc/sol2.h: Don't include sys/mman.h.
14400         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
14401         (arith_4096_operand): Don't throw high bits away.
14402         (const64_operand): Take sign extension of CONST_INTs into account.
14403         (const64_high_operand, sparc_emit_set_const32): Likewise.
14404         (GEN_HIGHINT64): Likewise.
14405         (sparc_emit_set_const64_quick1): Likewise.
14406         (const64_is_2insns): Likewise.
14407         (print_operand): Use trunc_int_for_mode for sign extension.
14408         * config/sparc/sparc.h (SMALL_INT32): Likewise.
14409         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
14410         chars.  Assume CONST_INT is already properly sign-extended.
14411         (movdi split): Sign-extend each SImode part.
14412         (andsi3 split): Don't mask high bits off, so that result
14413         remains properly sign-extend.
14414         (iorsi3 split): Likewise.
14415         (xorsi3 split): Likewise.
14416
14417 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
14418
14419         * fold-const.c (fold): Fix typo in comments.
14420
14421 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
14422
14423         * Makefile.in (langhooks.o): Update dependencies.
14424
14425 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
14426
14427         * langhooks.c: Include flags.h.
14428
14429 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
14430
14431         * testsuite/gcc.dg/attr-alwaysinline.c: New.
14432
14433         * c-common.c (c_common_post_options): Set inline trees by
14434         default.
14435
14436         * doc/extend.texi (Function Attributes): Document always_inline
14437         attribute.
14438         Update documentation about inlining when not optimizing.
14439
14440         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
14441
14442         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
14443         unless DECL_ALWAYS_INLINE.
14444
14445         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
14446         unless DECL_ALWAYS_INLINE.
14447         (c_disregard_inline_limits): Disregard if always_inline set.
14448
14449         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
14450         Disregard if always_inline set.
14451         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
14452         unless DECL_ALWAYS_INLINE.
14453
14454         * attribs.c (handle_always_inline_attribute): New.
14455         (c_common_attribute_table): Add always_inline.
14456
14457         * config/rs6000/altivec.h: Add prototypes for builtins
14458         requiring the always_inline attribute.
14459
14460 2002-02-21  Eric Christopher  <echristo@redhat.com>
14461
14462         * expmed.c (store_bit_field): Try to simplify the subreg
14463         before generating a new one when when the mode size of
14464         value is less than maxmode.
14465
14466 2002-02-21  Richard Henderson  <rth@redhat.com>
14467
14468         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
14469         than gen_rtx_PLUS to form the sum.
14470         * explow.c (force_reg): Rearrange to not allocate new pseudo
14471         when force_operand returns a register.
14472         * expr.c (expand_assignment): Allow offset_rtx expansion to
14473         return a sum.  Do not force addresses into registers.
14474         (expand_expr): Likewise.
14475         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
14476         to canonicalize arithmetic that didn't simpify.
14477         (simplify_plus_minus): New argument force; update
14478         all callers.  Don't split CONST unless we can do something with it,
14479         and wouldn't lose the constness of the operands.
14480
14481         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
14482         that we generated earlier.
14483
14484 2002-02-21  Tom Tromey  <tromey@redhat.com>
14485
14486         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14487         (output_line_info): Use constant `1', with a long explanatory
14488         comment.
14489         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
14490
14491 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
14492
14493         * jump.c (redirect_jump): If old label has no UID, don't try to
14494         delete it.
14495
14496 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
14497
14498         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
14499         If input is constant, do shifts at compile time.
14500
14501 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
14502
14503         * doc/extend.texi: Fix some more overfull hboxes.
14504
14505 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
14506
14507         PR optimization/4994
14508         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
14509         register moves.
14510
14511 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
14512
14513         PR c++/4574
14514         * expr.h (expand_and): Add mode argument.
14515         * expmed.c (expand_and): Add mode argument.
14516         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
14517         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
14518         * except.c (expand_builtin_extract_return_addr): Likewise.
14519         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
14520         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
14521         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
14522         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
14523         * config/c4x/c4x.md: Use GEN_INT (x) instead of
14524         gen_rtx (CONST_INT, VOIDmode, x).
14525
14526 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
14527
14528         PR c/4697:
14529         * stmt.c (warn_if_unused_value): Move side effects test once more.
14530
14531 2002-02-20  Torbjorn Granlund  <tege@swox.com>
14532
14533         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
14534         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
14535
14536 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
14537
14538         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
14539         SUBREG or ZERO_EXTEND.
14540
14541 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
14542
14543         * sh.h (current_function_anonymous_args): Remove.
14544         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
14545         of current_function_varargs and current_function_stdarg is set.
14546         * sh.c (sh_expand_prologue): Check current_function_varargs /
14547         current_function_stdarg / TARGET_SH5 instead of
14548         current_function_anonymous_args.
14549
14550         * sh64.h (TARGET_VERSION): Define.
14551
14552 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
14553
14554         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
14555         VRSAVE_REGNO on TARGET_ALTIVEC.
14556
14557 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
14558
14559         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
14560         bits of SImode const_int.
14561         (includes_rshift_p): Likewise.
14562         (print_operand): Call mask_operand and mask64_operand with correct
14563         mode.
14564         (rs6000_output_function_epilogue): Pad traceback table to word.
14565         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
14566         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
14567         mask64_operand with correct mode.
14568         (FUNCTION_ARG_REGNO_P): Correct parentheses.
14569
14570 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
14571
14572         PR debug/4461
14573         * varasm.c (get_pool_constant_mark): New.
14574         * rtl.h (get_pool_constant_mark): Add prototype.
14575         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
14576         be represented if it has not been output.
14577
14578 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
14579
14580         * combine.c (do_SUBST): Sanity check substitutions of
14581         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
14582         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
14583         CONST_INT into its operand.
14584         (known_cond): Likewise, for ZERO_EXTEND.
14585         * simplify-rtx.c (simplify_unary_operation): Fix condition to
14586         allow for simplification of wide modes.  Reject CONST_INTs in
14587         ZERO_EXTEND when their actual mode is not given.
14588
14589 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
14590
14591         * c-decl.c (pushdecl): If no global declaration is found for an
14592         extern declaration in block scope, try a limbo one.
14593
14594 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
14595
14596         PR c++/4401
14597         * c-common.c (pointer_int_sum): Moved from...
14598         * c-typeck.c (pointer_int_sum): ...here.
14599         * c-common.h (pointer_int_sum): Add prototype.
14600
14601 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
14602
14603         PR c++/5713
14604         * c-decl.c (duplicate_decls): Return 0 if issued error about
14605         redeclaration.
14606
14607 2002-02-20  Roger Sayle  <roger@eyesopen.com>
14608             Jakub Jelinek  <jakub@redhat.com>
14609
14610         PR c/4389
14611         * tree.c (host_integerp): Ensure that the constant integer is
14612         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
14613         when pos is zero or non-zero respectively.  Clarify comment.
14614         * c-format.c (check_format_info_recurse): Fix host_integerp
14615         usage; the pos argument should be zero when assigning to a
14616         signed HOST_WIDE_INT.
14617
14618 2002-02-20  Richard Henderson  <rth@redhat.com>
14619
14620         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
14621         of the operand, rather than assuming TImode.
14622         (ix86_expand_binop_builtin): Cope with commutative patterns
14623         using nonimmediate_operand for both operands.
14624         (ix86_expand_timode_binop_builtin): Likewise.
14625         (ix86_expand_store_builtin): Validate operand 1.
14626         (ix86_expand_unop1_builtin): Likewise.
14627
14628 2002-02-20  Philip Blundell  <philb@gnu.org>
14629
14630         PR 5705
14631         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
14632
14633 2002-02-20  Richard Henderson  <rth@redhat.com>
14634
14635         PR c/5615
14636         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
14637
14638 2002-02-20  Tom Tromey  <tromey@redhat.com>
14639
14640         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14641         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14642         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14643         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14644         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
14645         unconditionally.
14646
14647 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
14648
14649         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
14650           for (const_int 0) in X not just INTVAL.
14651
14652 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
14653
14654         * doc/extend.texi: Avoid or reduce overfull hboxes.
14655
14656 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
14657
14658         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
14659         operations if the field does not start at a mode boundary.
14660
14661 2001-02-20      Joel Sherrill <joel@OARcorp.com>
14662
14663         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
14664         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
14665         Also done for -Acpu and -Amachine.
14666
14667 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
14668
14669         * cppinit.c (init_dependency_output): Take deps output file
14670         from -o if none given with -MF.  Suppress normal output.
14671         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
14672         * doc/cpp.texi, doc/invoke.texi: Update.
14673
14674 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
14675
14676         * toplev.c (output_quoted_string): Write unprintable
14677         characters with octal escapes.
14678
14679 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
14680
14681         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
14682         really_call_used[VRSAVE_REGNO] if not Altivec.
14683
14684 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
14685
14686         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
14687         MODE_MASK.
14688         (constant_pool_expr_1): Fix formatting.
14689         (rs6000_legitimize_reload_address): Likewise.
14690
14691 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14692
14693         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
14694         now that we have one.
14695
14696 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
14697
14698         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
14699         end of first block of bitfields (which was only seven bits);
14700         rename dummy to unused_1; remove comment which is no longer true.
14701
14702 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
14703
14704         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
14705
14706 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
14707
14708         PR 5399
14709         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
14710         if generating PIC.
14711
14712         PR 5054
14713         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
14714         arm_is_longcall_p rather than inspecting call-type cookie
14715         directly.
14716         (call_value_insn) [TARGET_THUMB]: Likewise.
14717
14718 2002-02-19  Graham Stott  <grahams@redhat.com>
14719
14720         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
14721
14722 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
14723
14724         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
14725         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
14726         (FP_SAVE_INLINE): Delete.
14727
14728         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
14729         * config/rs6000/eabi.asm: Remove ABI save restore routines.
14730         * config/rs6000/t-ppccomm: Build crtsavres.o.
14731         * config/rs6000/crtsavres.asm: New file.
14732
14733 2002-02-19  Philip Blundell  <philb@gnu.org>
14734
14735         * config/arm/arm.c (use_return_insn): Don't reject interrupt
14736         functions.
14737         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
14738         (output_return_instruction): Allow interrupt functions to return with
14739         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
14740         (arm_expand_prologue): Subtract 4 before stacking LR in an
14741         interrupt function.
14742
14743 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
14744
14745         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
14746         decl, not just FUNCTION_DECL.
14747         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
14748         (arm_assemble_integer): Likewise.
14749         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
14750         marked local.
14751
14752 2002-02-19  matthew green  <mrg@eterna.com.au>
14753
14754         * config.gcc (sparc-*-netbsdelf*): Enable target.
14755         (sparc64-*-netbsd*): New target.
14756         * config/sparc/netbsd-elf.h: New file.
14757         * config/sparc/t-netbsd64: New file.
14758
14759 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
14760
14761         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
14762
14763 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
14764
14765         * doc/invoke.texi: explicitly list the style guidelines that
14766         -Weffc++ checks for.
14767
14768 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
14769
14770         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
14771
14772 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14773
14774         PR other/5718
14775         * gcc.c (cpp_unique_options): Treat -o as indicating object file
14776         only if not -E.  If -E, pass -o through to the preprocessor.
14777
14778 2002-02-19  Kazu Hirata  <kazu@hxi.com>
14779
14780         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
14781         register number with an appropriate macro.
14782
14783 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
14784
14785         * doc/rtl.texi (Constants): Close @code tag.
14786
14787 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
14788
14789         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
14790         ("mmx_uavgv4hi3"): Same.
14791         ("pmulhrwv4hi3"): Same.
14792
14793         * tree-inline.c (walk_tree): Handle vectors.
14794
14795         * c-common.c (constant_expression_warning): Handle vectors.
14796         (overflow_warning): Same.
14797
14798         * sched-deps.c (sched_analyze_2): Handle vectors.
14799
14800         * rtlanal.c (rtx_unstable_p): Handle vectors.
14801         (rtx_varies_p): Same.
14802         (count_occurrences): Same.
14803         (regs_set_between_p): Same.
14804         (modified_between_p): Same.
14805         (modified_in_p): Same.
14806         (volatile_insn_p): Same.
14807         (volatile_refs_p): Same.
14808         (side_effects_p): Same.
14809         (may_trap_p): Same.
14810         (inequality_comparisons_p): Same.
14811         (replace_regs): Same.
14812         (computed_jump_p_1): Same.
14813
14814         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
14815         argument.
14816         (inner_mode_array): New.
14817         (copy_rtx): Handle vectors.
14818         (copy_most_rtx): Same.
14819         (rtx_equal_p): Same.
14820         (get_mode_alignment): Adjust for vectors.
14821
14822         * resource.c (mark_referenced_resources): Handle vectors.
14823         (mark_set_resources): Same.
14824
14825         * reload1.c (eliminate_regs): Handle vectors.
14826         (elimination_effects): Same.
14827         (scan_paradoxical_subregs): Same.
14828
14829         * reload.c (subst_reg_equivs): Handle vectors.
14830
14831         * regrename.c (scan_rtx): Handle vectors.
14832
14833         * regclass.c (reg_scan_mark_refs): Handle vectors.
14834
14835         * recog.c (find_single_use_1): Handle vectors.
14836
14837         * local-alloc.c (equiv_init_varies_p): Handle vectors.
14838         (contains_replace_regs): Same.
14839         (memref_referenced_p): Same.
14840
14841         * integrate.c (copy_rtx_and_substitute): Handle vectors.
14842         (subst_constants): Same.
14843
14844         * genattrtab.c (attr_copy_rtx): Handle vectors.
14845         (encode_units_mask): Same.
14846         (clear_struct_flag): Same.
14847         (count_sub_rtxs): Same.
14848
14849         * gcse.c (want_to_gcse_p): Handle vectors.
14850         (oprs_unchanged_p): Same.
14851         (hash_expr_1): Same.
14852         (oprs_not_set_p): Same.
14853         (expr_killed_p): Same.
14854         (compute_transp): Same.
14855         (store_ops_ok): Same.
14856
14857         * function.c (purge_addressof_1): Do not allow paradoxical subregs
14858         of vectors.
14859         (fixup_var_refs_1): Same.
14860         (instantiate_virtual_regs_1): Same.
14861
14862         * fold-const.c (operand_equal_p): Handle vectors.
14863         (fold): Same.
14864         (rtl_expr_nonnegative_p): Same.
14865
14866         * flow.c (mark_used_regs): Handle vectors.
14867
14868         * df.c (df_uses_record): Handle vectors.
14869
14870         * cselib.c (cselib_subst_to_values): Handle vectors.
14871         (cselib_mem_conflict_p): Same.
14872         (hash_rtx): Same.
14873
14874         * cse.c (canon_reg): Handle vectors.
14875         (fold_rt): Same.
14876         (cse_process_notes): Same.
14877         (count_reg_usage): Same.
14878         (canon_hash): Same.
14879
14880         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
14881
14882         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
14883
14884         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
14885         (gen_rtx): Handle CONST_VECTOR.
14886         (gen_const_vector_0): New.
14887         (copy_rtx_if_shared): CONST_VECTORs can be shared.
14888         (reset_used_flags): Same.
14889         (copy_insn_1): Same.
14890         (initializer_constant_valid_p): Handle VECTOR_CST.
14891
14892         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
14893
14894         * doc/rtl.texi (Constants): Document const_vector.
14895         (CONST0_RTX): Update for vectors.
14896         (RTL sharing): Same.
14897
14898         * print-tree.c (print_node): Add case for VECTOR_CST.
14899
14900         * tree.h (TREE_VECTOR_CST_ELTS): New.
14901         (struct tree_vector): New.
14902         (union tree_node): Add vector node.
14903         (build_vector): Add prototype.
14904
14905         * tree.def (VECTOR_CST): New.
14906
14907         * tree.c (build_vector): New.
14908
14909         * expmed.c (make_tree): Handle CONST_VECTOR.
14910
14911         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
14912         (CONST_VECTOR_ELT): New.
14913         (CONST_VECTOR_NUNITS): New.
14914
14915         * machmode.h (GET_MODE_INNER): New.
14916         (DEF_MACHMODE): Accept 8th arg.
14917
14918         * machmode.def: Add 8th argument for vector inner mode.
14919         Add inner vector modes for vectors.
14920
14921         * rtl.def (VEC_CONST): Remove.
14922         (CONST_VECTOR): New.
14923
14924         * expr.c (clear_storage): Allow vectors.
14925         (is_zeros_p): Handle VECTOR_CST.
14926
14927         * varasm.c (output_constant_pool): Handle vectors.
14928         (rtx_const): Add veclo and vechi fields.
14929         (kind): Add RTX_VECTOR.
14930         (decode_rtx_const): Add case for vector.
14931
14932         * config/rs6000/rs6000-protos.h: Add zero_constant.
14933
14934         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
14935         constants.  Force easy vector constants into memory.
14936         (easy_vector_constant): New.
14937         (emit_easy_vector_constant): New.
14938         (rs6000_legitimize_reload_address): Do not generate bad reloads on
14939         darwin.
14940
14941         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
14942         instruction does.
14943         ("altivec_lvxl"): Same.
14944         (altivec_lvebx): Same.
14945         (altivec_lvehx): Same.
14946         (altivec_lvewx): Same.
14947         ("*movv4si_const0"): New.
14948         ("*movv4sf_const0"): New.
14949         ("*movv8hi_const0"): New.
14950         ("*movv16qi_const0"): New.
14951
14952 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14953
14954         * config/h8300/h8300.c (notice_update_cc): Use
14955         cc_status.value2.
14956
14957 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14958
14959         * config/h8300/h8300.md (divmod patterns): Change the
14960         constraints for operands[1] to register_operand.
14961
14962 2002-02-18  Kazu Hirata  <kazu@hxi.com>
14963
14964         * config/h8300/h8300-protos.h: Remove the prototype for
14965         p_operand.
14966         * config/h8300/h8300.c (p_operand): Remove.
14967         * config/h8300/h8300.md: Replace p_operand with
14968         const_int_operand.
14969
14970 2002-02-18 Philip Blundell <pb@nexus.co.uk>
14971
14972         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
14973         comment.
14974         (output_return_instruction): Allow use of LDR to unstack
14975         return addresss even for interrupt handlers or when
14976         interworking.  If compiling for ARMv5, use interworking-safe
14977         return instructions by default.  Remove duplicated code and
14978         lengthy "strcat" sequences.
14979
14980 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14981
14982         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
14983         (LINK_EH_SPEC): Define.
14984         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
14985
14986 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
14987
14988         * config/s390/s390.c (s390_emit_prologue): Do not set the
14989         frame_related flag for call-clobbered registers.
14990
14991 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
14992
14993         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
14994         (construct_container): Fix handling of SSE operands.
14995         (ix86_expand_builtin): Fix handling of 64bit pointers.
14996         (mmx_maskmovq_rex): New pattern.
14997
14998 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
14999
15000         * regrename.c (kill_set_value): Handle subregs properly.
15001
15002 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
15003
15004         * objc/objc-act.c (handle_impent): Remove leading '*'
15005         from objc_class_name.
15006
15007 2002-02-17  Richard Henderson  <rth@redhat.com>
15008
15009         * config/alpha/alpha.c (some_small_symbolic_operand,
15010         some_small_symbolic_operand_1, split_small_symbolic_operand,
15011         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
15012         Handle small SYMBOL_REFs anywhere, not just inside memories.
15013         * config/alpha/alpha-protos.h: Update.
15014         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15015         * config/alpha/alpha.md (small symbolic operand splitter): Update.
15016
15017 2002-02-17  Roland McGrath  <roland@frob.com>
15018
15019         * config.gcc (powerpc-*-gnu-gnualtivec*,
15020         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
15021         * config/rs6000/gnu.h: New file.
15022         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
15023         Grok "gnu" in rs6000_abi_name.
15024         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
15025         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
15026         Grok -mcall-gnu analogous to -mcall-linux et al.
15027         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15028         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
15029         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
15030
15031 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
15032
15033         PR c/3444:
15034         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
15035         shortening.
15036
15037 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15038
15039         * config/cris/cris.h: Undefine STARTFILE_SPEC and
15040         ENDFILE_SPEC before (re)defining them.
15041
15042 2002-02-17  Kazu Hirata  <kazu@hxi.com>
15043
15044         * config/h8300/h8300.c: Fix formatting.
15045         * config/h8300/h8300.h: Likewise.
15046
15047 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15048
15049         * doc/tm.texi: Explain why empty strings should not be
15050         marked for translation.
15051
15052 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15053
15054         * final.c (output_operand_lossage): Changed to accept
15055         printf style arguments. Change calls where necessary.
15056         * output.h (output_operand_lossage): Change declaration
15057         accordingly. Update copyright.
15058         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
15059         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
15060         Update copyright date where necessary.
15061
15062         * config/i386/i386.c (print_operand): Likewise. Remove use of
15063         sprintf.
15064
15065         * config/cris/cris.c (cris_operand_lossage): Likewise.
15066         Rename parameter so that exgettext recognizes it as
15067         translatable message.
15068         (LOSE_AND_RETURN): Rename parameter to msgid.
15069
15070 2002-02-17  Kazu Hirata  <kazu@hxi.com>
15071
15072         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
15073         hard coded register number with an appropriate macro.
15074         (HARD_REGNO_MODE_OK): Likewise.
15075         (ARG_POINTER_REGNUM): Likewise.
15076         (STATIC_CHAIN_REGNUM): Likewise.
15077         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
15078         * config/h8300/h8300.md (define_constants): Define more
15079         register numbers.
15080
15081 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15082
15083         * config/i386/i386.h: Don't mark empty strings for translation.
15084
15085 2002-02-16  H.J. Lu <hjl@gnu.org>
15086
15087         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
15088
15089 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
15090
15091         * cppinit.c (merge_include_chains): Check for brack being
15092         NULL before attempting to merge it with qtail.
15093
15094 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
15095
15096         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
15097         DBX_DEBUG.
15098
15099 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15100
15101         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
15102
15103 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15104
15105         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
15106         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
15107         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
15108
15109 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15110
15111         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
15112         now only if !TARGET_FIX.
15113         (*movsi_nt_vms_fix): New pattern.
15114
15115 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
15116
15117         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
15118         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
15119         (alpha_sa_mask, alpha_sa_size): Reflect above change.
15120         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
15121         (alpha_start_function, alpha_expand_epilogue): Likewise.
15122         (unicosmk_gen_dsib): Likewise.
15123
15124 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15125
15126         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
15127
15128 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
15129
15130         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
15131         check_and_change_labels, s390_final_chunkify): Delete.
15132         (s390_split_branches, s390_chunkify_pool): New functions.
15133         (s390_function_prologue): Call them.
15134
15135         * config/s390/s390.h (S390_REL_MAX): Delete.
15136         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
15137
15138         * config/s390/s390.md (cjump, icjump, jump): Fix length
15139         attribute calculation.
15140
15141
15142 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
15143
15144         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
15145         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
15146
15147 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15148
15149         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
15150         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
15151         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
15152
15153 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
15154
15155         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
15156
15157 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
15158
15159         * reload.c (find_dummy_reload): Check that an output register
15160         is valid for its mode.
15161
15162 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
15163
15164         * combine.c (known_cond): After replacing the REG of a SUBREG, try
15165         to simplify it.
15166
15167         * function.c (assign_parms): Demote promoted argument passed by
15168         transparent reference.
15169
15170 2001-02-14      Joel Sherrill <joel@OARcorp.com>
15171
15172         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
15173         -Acpu() and -Amachine() to eliminate warnings.
15174
15175 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
15176
15177         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
15178
15179 2002-02-14  Kazu Hirata  <kazu@hxi.com>
15180
15181         * config/h8300/h8300-protos.h: Update the prototype for
15182         const_costs.
15183         * config/h8300/h8300.c (const_costs): Treat SET as a little
15184         more expensive operation.
15185         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
15186         reference to const_costs.
15187
15188 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
15189
15190         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
15191
15192 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
15193
15194         PR c/5503:
15195         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
15196         use arguments from newtype.
15197
15198 2002-02-13  Eric Christopher  <echristo@redhat.com>
15199
15200         * config/mips/mips.c (override_options): Add check for march/mipsX
15201         on the same command line. Fix error message in cpu processing.
15202         Remove architecture and ISA checks.
15203
15204 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
15205
15206         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
15207
15208         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
15209
15210 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
15211
15212         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
15213         alternatives.
15214         ("*movv8hi_internal1"): Same.
15215         ("*movv16qi_internal1"): Same.
15216         ("*movv4sf_internal1"): Same.
15217
15218         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
15219         not push_reload for altivec modes.
15220
15221 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
15222
15223         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
15224         all RTEMS targets including removal of #includes from config/*/rtems*.h
15225         file and adding them to tm_file setting. Added xm_defines=POSIX to
15226         many targets.
15227         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
15228         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
15229         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
15230         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
15231         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
15232         config/m68k/rtemself.h: Ditto.
15233         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
15234         config/mips/rtems64.h: Ditto.
15235         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
15236         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
15237         Ditto.
15238         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
15239         config/sparc/rtemself.h: Ditto.
15240         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
15241         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
15242         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
15243         more like arm-elf.
15244         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
15245         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
15246         target made more similar to i386-elf.
15247         * config/i386/t-rtems-i386: Added soft float support and multilibs.
15248         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
15249         be similar to config/m68k/t-m68kelf.
15250         * gthr-rtems.h: Encapsulate with extern "C" for C++.
15251
15252 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
15253
15254         * regmove.c (kill_value): Handle subregs.
15255
15256 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
15257
15258         * i386.md (mul patterns): Allow memory operand to be first;
15259         add expanders where needed; fix constraints.
15260         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
15261         Allow memory operand to be the first.
15262
15263         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
15264         operands.
15265
15266 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
15267
15268         PR c/5681:
15269         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
15270         GET_MODE (x).
15271
15272 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
15273
15274         PR optimization/5547:
15275         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
15276         all valid IA-32 address modes involving non-scaled %ebx and
15277         GOT/GOTOFF as displacement.
15278
15279 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
15280
15281         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
15282         after emitting ltorg insns.
15283
15284         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
15285         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
15286         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
15287         *abssf2): Fix "op_type" attribute.
15288
15289 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
15290
15291         * mkconfig.sh: Avoid using a subshell redirect.
15292         ($output.T): Change to $(output)T.
15293         (ENABLE_NLS): Remove unneeded undef.
15294
15295         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
15296         * config/alpha/x-vms (libsubdir): Define.
15297
15298         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
15299         register frame procedures. Optimize retrieving context.
15300
15301         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
15302         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
15303         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
15304
15305 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15306
15307         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
15308         Make same change as for find_base_value.
15309
15310 2002-02-13  Kazu Hirata  <kazu@hxi.com>
15311
15312         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
15313         of QImode and SImode.
15314
15315 2002-02-13  Kazu Hirata  <kazu@hxi.com>
15316
15317         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
15318         length computation of movsi.
15319         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
15320
15321 2002-02-13  Kazu Hirata  <kazu@hxi.com>
15322
15323         * config/h8300/h8300.md (subqi3): Tighten the predicate for
15324         operands[2] to register_operand.
15325
15326 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
15327
15328         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
15329
15330 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
15331
15332         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
15333         for altivec_lvx* and altivec_stvx*.
15334         ("*movv4si_internal"): Add constraint for loading from GPRs.
15335         ("*movv8hi_internal1"): Same.
15336         ("*movv16qi_internal1"): Same.
15337         ("*movv4sf_internal1"): Same.
15338
15339         * config/rs6000/rs6000.c (altivec_register_operand): New.
15340
15341         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
15342         altivec_register_operand.
15343
15344 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
15345
15346         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
15347         handle SYMBOL_REF.
15348
15349 2002-02-13  Stan Shebs  <shebs@apple.com>
15350
15351         * c-typeck.c (digest_init): Handle vectors.
15352         (really_start_incremental_init): Same.
15353         (pop_init_level): Same.
15354         (process_init_element): Same.
15355
15356         * varasm.c (output_constant): Same.
15357
15358         * expr.c (clear_storage): Same.
15359         (store_constructor): Same.
15360
15361 2002-02-12  Eric Christopher  <echristo@redhat.com>
15362
15363         * explow.c (hard_function_value): Add comment explaining
15364         signed/unsigned comparison.
15365
15366 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
15367
15368         * jump.c (never_reached_warning): Add finish argument.
15369         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
15370         real insn after end.
15371         * rtl.h (never_reached_warning): Adjust prototype.
15372         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
15373         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
15374         never_reached_warning.
15375
15376 2002-02-12  Graham Stott  <grahams@redhat.com>
15377
15378         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
15379
15380 2002-02-12  Kazu Hirata  <kazu@hxi.com>
15381
15382         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
15383         logical shifts on H8/300.
15384         (shift_alg_si): Improve several shifts on H8/300.
15385         (get_shift_alg): Likewise.
15386
15387 2002-02-12  Graham Stott  <grahams@redhat.com>
15388
15389         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
15390
15391 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15392
15393         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
15394         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
15395
15396 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
15397
15398         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
15399         non-CONST_INT through default_assemble_integer.
15400         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
15401         <case 8>: Abort for CONST_DOUBLE.
15402
15403 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15404
15405         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
15406         is specified.
15407         * config/pa/pa-linux.h (LIB_SPEC): Delete.
15408         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15409
15410 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
15411
15412         * config/stormy16/stormy16.md (zero_extendqihi2): New.
15413
15414 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
15415
15416         * regrename.c (regrename_optimize): Don't accept a
15417         part-clobbered register if the replaced register is not part
15418         clobbered.
15419
15420         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
15421         take padding into account when computing the argument value.
15422
15423         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
15424
15425         * combine.c (try_combine): Apply substitutions in
15426         CALL_INSN_FUNCTION_USAGE too.
15427
15428 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
15429
15430         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
15431         __builtin_altivec_abs*.
15432         (bdesc_abs): New.
15433
15434         * config/rs6000/rs6000.h (rs6000_builtins): Add
15435         ALTIVEC_BUILTIN_ABS*.
15436
15437         * config/rs6000/altivec.h: Use const char for builtins expecting
15438         literals.
15439         (vec_abs): New versions for C and C++.
15440         (vec_abss): Same.
15441
15442 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15443
15444         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
15445         using Pmode.
15446
15447 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15448
15449         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
15450         constant definition from h8300.md.
15451         (FRAME_POINTER_REGNUM): Likewise.
15452         * config/h8300/h8300.md (define_constants): Add FP_REG.
15453
15454 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15455
15456         * config/h8300/h8300.c (print_operand): Remove redundant code.
15457
15458 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15459
15460         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
15461         * config/h8300/h8300.c (byte_reg): Make it static.
15462
15463 2002-02-10  Richard Henderson  <rth@redhat.com>
15464
15465         PR c/5623
15466         * c-typeck.c (incomplete_type_error): Handle flexible array members.
15467
15468 2002-02-10  Richard Henderson  <rth@redhat.com>
15469
15470         PR c++/5624
15471         * tree.c (append_random_chars): Don't abort if main_input_filename
15472         does not exist.
15473
15474 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
15475
15476         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
15477
15478 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15479
15480         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
15481         (pushhi1): Likewise.
15482
15483 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15484
15485         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
15486         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
15487
15488 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
15489
15490         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
15491         remove MASK_VIS.
15492         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
15493
15494 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15495
15496         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
15497         a half of an SImode register on H8/300.
15498
15499 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
15500
15501         * i386.md (movdi_2): Add missing '!'.
15502
15503 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15504
15505         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
15506         definitions.
15507
15508 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15509
15510         * config/h8300/h8300.md (length): Correct the distance valid
15511         for the short branch.
15512
15513 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15514
15515         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
15516
15517 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
15518
15519         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
15520         registers in SImode.
15521         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
15522         part-clobbered.
15523
15524         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
15525         patch.
15526
15527         Contribute sh64-elf.
15528         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
15529         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
15530         (sh_cannot_modify_jumps_p): New function.
15531         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
15532         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
15533         (sh_ms_bitfield_layout_p): New function.
15534         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
15535                     Zack Weinberg  <zack@codesourcery.com>
15536         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
15537         expand_simple_binop instead of expand_binop.
15538         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
15539         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
15540         use of .quad and .uaquad.
15541         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
15542         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
15543         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15544         * config/sh/sh.md (movdi_const, movdi_const_32bit,
15545         movdi_const_16bit): Make sure all CONSTs have modes.
15546         (sym2PIC): Ditto, but by adjusting all callers.
15547         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
15548         if the prologue calls the SHmedia argument decoder or register
15549         saver.
15550         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15551         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
15552         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
15553         (sh_expand_epilogue): Don't emit USE of return target register.
15554         (prepare_move_operands): Legitimize DImode PIC addresses.
15555         (sh_media_register_for_return): Skip tr0, used to initialize the
15556         PIC register.
15557         (sh_expand_prologue): Remove explicit USE of return register.
15558         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
15559         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
15560         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
15561         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
15562         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
15563         EXTRA_CONSTRAINT_T.
15564         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
15565         (MOVI_SHORI_BASE_OPERAND_P): New.
15566         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
15567         (EXTRA_CONSTRAINT_T): Define in terms of them.
15568         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
15569         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
15570         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
15571         alternatives supporting TARGET_REGS.
15572         (UNSPEC_GOTPLT): New constant.
15573         (movdi split): Move incrementing of LABEL_NUSES...
15574         (movdi_const, movdi_const_32bit): Here.  Use
15575         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
15576         (movdi_const_16bit): New.
15577         (call, call_value) [flag_pic]: Use GOTPLT.
15578         (call_pop, call_value_pop): New expands.
15579         (call_pop_compact, call_pop_rettramp): New insns.
15580         (call_value_pop_compact, call_value_pop_rettramp): New insns.
15581         (sibcall) [flag_pic]: Use GOT.
15582         (builtint_setjmp_receiver): Remove bogus, unused expand.
15583         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
15584         (*pt, *ptb, ptrel): New insns.
15585         (sym2GOT): Handle DImode GOT.
15586         (sym2GOTPLT, symGOTPLT2reg): New expands.
15587         (sym2PIC): New expand.
15588         (shcompact_return_tramp): Use GOTPLT to return trampoline.
15589         (shcompact_return_tramp_i): Use return register explicitly.
15590         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
15591         disable flag_reorder_blocks.
15592         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15593         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
15594         clobbers, for clarity.
15595         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
15596         restoring of r0 in macl as MAYBE_DEAD.
15597         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
15598         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
15599         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
15600         alter_subreg all over.
15601         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
15602         reload, instead of emitting instructions that would require
15603         reloading.
15604         (casesi_load_media): Add missing modes.
15605         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
15606         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
15607         as used if the argument decoder is called.
15608         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
15609         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
15610         Pmode, then extend it to DImode if necessary.
15611         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
15612         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
15613         constants in FPU-enabled SHmedia, let them be loaded from memory.
15614         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
15615         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
15616         Adjust whitespace in assembly output templates.
15617         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
15618         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
15619         mode of if_then_else.
15620         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
15621         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
15622         sh.h.
15623         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
15624                     Joern Rennecke <amylaar@redhat.com>
15625         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
15626         (SUBTARGET_CPP_PTR_SPEC): New.
15627         (SUBTARGET_CPP_SPEC): Remove.
15628         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
15629         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15630         Fix typo in previous checkin.
15631         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
15632         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
15633         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
15634                     Alexandre Oliva  <aoliva@redhat.com>
15635         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
15636         what single FP register can hold for SHmedia target.
15637         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
15638                     Alexandre Oliva  <aoliva@redhat.com>
15639         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15640         Do not split into SUBREG.
15641         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
15642         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
15643         and added new functions as specified in SH5 ABI r9.
15644         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
15645         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
15646         8-byte boundary.
15647         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
15648         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
15649         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
15650         and consttable_window_ends.
15651         2001-06-03  Graham Stott  <grahams@redhat,com>
15652         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
15653         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
15654         * config/sh/sh.c (print_operand): Handle floating-point pair,
15655         vector and matrix registers.
15656         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
15657         vector modes into account.
15658         * config/sh/sh.md (movv2sf): Split move between registers into
15659         movdf.
15660         (movv4sf, movv16sf): Introduce insns that get split only after
15661         reload.
15662         * config/sh/shmedia.h: Fix Copyright dates.
15663         * config/sh/ushmedia.h: Likewise.  Move loop counter
15664         declarations into conditionals that uses them.
15665         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
15666         loop boundary.
15667         * config/sh/sshmedia.h: Fix Copyright dates.
15668         (sh_media_PUTCFG): Fix constraints.
15669         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
15670         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
15671         ptrmemfunc_vbit_in_delta for SH5.
15672         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
15673         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
15674         * invoke.texi: Likewise.
15675         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
15676         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
15677         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
15678         GCC_pop_shmedia_regs_nofpu): New global symbols.
15679         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
15680         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
15681         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
15682         compact function with nonlocal labels.
15683         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
15684         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
15685         (initial_elimination_offset): Account for their stack space.
15686         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
15687         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
15688         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
15689         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
15690         least one of the operands to be a register.
15691         (movv2sf): Likewise.  Renamed to movv2sf_i.
15692         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
15693         prepare_move_operands() before emitting SHmedia insns.
15694         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
15695         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
15696         Don't save nor initialize r12.  Don't mis-align the stack.
15697         Pad the code with a nop.
15698         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
15699         stack.
15700         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
15701         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
15702         [__SHMEDIA__]: Implement.
15703         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
15704         * config/sh/sh.md: Set latency of `pt' closer to reality.
15705         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
15706         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
15707         Set move, load and store type attributes.
15708         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
15709         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
15710         profiling.
15711         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
15712         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
15713         * config/sh/sh.c (sh_media_register_for_return): New function.
15714         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
15715         branch-target register.
15716         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
15717         * config/sh/sh.md (return_media_i): Use any call-clobbered
15718         branch-target register.
15719         (return_media): If r18 wasn't copied in the prologue, copy it
15720         here.
15721         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
15722         Clear class FP0_REGS.
15723         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
15724         from elf.h.
15725         2001-03-08  DJ Delorie  <dj@redhat.com>
15726         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
15727         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
15728         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
15729         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
15730         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
15731         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
15732         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
15733         return value correctly for call_cookie.
15734         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
15735         * config/sh/crt1.asm (start): Modified so as to call
15736         ___setup_argv_and_call_main.
15737         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
15738         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
15739         SHmedia mode.
15740         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
15741         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
15742         (STRIP_NAME_ENCODING): Use it.
15743         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
15744         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
15745         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
15746         prepare_scc_operands().
15747         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
15748         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
15749         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
15750         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
15751         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
15752         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
15753         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
15754         used in shcompact_incoming_args.
15755         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
15756         change.
15757         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
15758         mode.
15759         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
15760         Adjust accordingly.
15761         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15762         Simplify.  Adjust.  Add sanity check.
15763         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
15764         FPU_SINGLE_BIT.
15765         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
15766         TARGET_SHCOMPACT.
15767         (udivsi3, divsi3): Use them.
15768         (force_mode_for_call): New insn.
15769         (call, call_value, sibcall_value): Emit it before SHcompact
15770         calls.
15771         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
15772         * config/sh/sh.md (call, call_value, sibcall): Make sure the
15773         call cookie is non-NULL before taking its value.
15774         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
15775         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
15776         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
15777         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
15778         block.
15779         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
15780         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
15781         temporary for stack adjusts.  Use MACL and MACH to pass
15782         arguments to shcompact_incoming_args.
15783         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
15784         clobber r1.
15785         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
15786         (nested_trampoline): Load static chain address into r1.
15787         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
15788         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
15789         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
15790         fp_arith_reg_operand().
15791         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
15792         * config/sh/sh.md (casesi): Sign-extend the first two operands,
15793         and use signed compares for them.
15794         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
15795         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
15796         ones properly aligned.
15797         (find_barrier): Account for extra alignment needed for 8-byte wide
15798         constants.
15799         (machine_dependent_reorg): Require a label for the second 4-byte
15800         constant after an 8-byte one.
15801         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
15802         change.
15803         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
15804         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
15805         last_float when switching float modes.
15806         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
15807         auto-increment for general-purpose registers.
15808         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
15809         result.
15810         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
15811         for stack adjust.
15812         * config/sh/sh.c (sh_builtin_saveregs): Support using all
15813         registers for varargs.
15814         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
15815         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
15816         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
15817         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
15818         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
15819         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
15820         call_cookie accordingly.
15821         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
15822         (SHCOMPACT_BYREF): Likewise.
15823         (SHCOMPACT_FORCE_ON_STACK): New macro.
15824         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
15825         (sh_builtin_saveregs): Likewise.
15826         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15827         shcompact_incoming_args): Use new shift values.  Support
15828         sequences of consecutive and non-consecutive pushes/pops.
15829         * config/sh/sh.md (return): Don't explicitly use PR_REG.
15830         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
15831         * config/sh/sh.h (TEXT_SECTION): Define.
15832         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
15833         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
15834         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
15835         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
15836         return values on FPU-enabled SHmedia.
15837         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
15838         FPU-enabled SHmedia.
15839         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
15840         value is returned in a non-FP reg and is not returned by
15841         reference.
15842         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
15843         jump_ind.
15844         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
15845         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
15846         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
15847         quad-aligned to be passed by callee-copy reference.
15848         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
15849         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
15850         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
15851         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
15852         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
15853         copying low-numbered FP regs to r7 and r8.
15854         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
15855         FP regs to general-purpose regs only if the copy was passed on the
15856         stack.
15857         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
15858         copying FP reg to r9.
15859         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
15860         copy FP regs to general-purpose regs only in outgoing calls.
15861         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
15862         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
15863         HOST_WIDE_INT.
15864         * config/sh/sh.h (struct sh_args): Document all fields.
15865         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
15866         passed partially on the stack should not consider making
15867         sibcalls.
15868         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
15869         stack_regs only for incoming calls.  When passing FP args,
15870         make sure there are FP regs available before modifying
15871         call_cookie.
15872         (SHCOMPACT_BYREF): Pass double args in general-purpose
15873         registers by reference.
15874         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
15875         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
15876         attempt to generate sibcalls if the caller got any arguments
15877         by reference.
15878         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
15879         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
15880         to 8-byte boundaries.
15881         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
15882         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
15883         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
15884         stored in the stack.
15885         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
15886         for the offsets to have the ISA bit set.
15887         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
15888         invocation.  Use beq instead of bgt to mark end of sequence of
15889         loads.
15890         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
15891         bgt to mark end of sequence of stores.
15892         * config/sh/sh.c (arith_operand): Don't check whether
15893         CONST_OK_FOR_J for now.
15894         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
15895         instead of long for conversion.
15896         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
15897         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
15898         before passing it to fprintf.
15899         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
15900         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
15901         Call set_fpscr before reading/writing SR.
15902         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
15903         Call set_fpscr.
15904         * config/sh/lib1funcs.asm: Add `.align 2' directives before
15905         SHmedia code.
15906         (FMOVD_WORKS): Define on SH5 with FPU.
15907         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
15908         setting.
15909         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
15910         _fpscr_values.
15911         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
15912         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
15913         address.
15914         (ia_main_table): Ditto.
15915         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
15916         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15917         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
15918         the definitions from sh.h.
15919         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
15920         TARGET_SH5.
15921         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
15922         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
15923         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15924         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
15925         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
15926         Increment LABEL_NUSES.
15927
15928         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
15929         TARGET_SH5.
15930         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
15931         defined.
15932         * config/sh/elf.h (SIZE_TYPE): Likewise.
15933         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15934         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15935         shcompact_incoming_args): Load switch table addresses using
15936         datalabel.
15937         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15938         (NO_BUILTIN_SIZE_TYPE): Define.
15939         (SIZE_TYPE): Don't define.
15940         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15941         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
15942         definition of __SH5__=32 for -m5-compact-nofpu.
15943         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
15944         ADDR_DIFF_VEC.
15945         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
15946         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
15947         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
15948         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
15949         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
15950         (INSN_LENGTH_ALIGNMENT): Likewise.
15951         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15952         * config/sh/sh.md (call, call_value, sibcall): Simplify
15953         copying of non-branch-target register.
15954         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15955         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
15956         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
15957         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
15958         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
15959         floating-point values as structs.
15960         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
15961         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
15962         general-purpose register.
15963         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
15964         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
15965         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
15966         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
15967         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
15968         (ENCODE_SECTION_INFO): Enclose variables and constants in
15969         DATALABEL unspecs.
15970         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
15971         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
15972         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
15973         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
15974         only for LABEL_REFs.  For SYMBOL_REFs, prepend
15975         SH_DATALABEL_ENCODING to the symbol name.
15976         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
15977         convert_mode().
15978         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
15979         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
15980         UNSPEC_DATALABEL.
15981         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
15982         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
15983         (DATALABEL_REF_P): Don't require CONST.
15984         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
15985         REL label.
15986         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
15987         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
15988         right.
15989         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
15990         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
15991         Use shallow_copy_rtx and PUT_MODE to change the mode of
15992         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
15993         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
15994         on SHmedia using GENERAL_REGs.
15995         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15996         bltu_media_i): Fix reversion of conditions.
15997         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
15998         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
15999         * config/sh/sh.c (output_far_jump): Save r13 in macl.
16000         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
16001         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
16002         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
16003         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
16004         (GCC_nested_trampoline): Likewise.
16005         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
16006         * config/sh/sh.c (gen_datalabel_ref): Define.
16007         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
16008         (INITIALIZE_TRAMPOLINE): Likewise.
16009         (TRAMPOLINE_ADJUST_ADDRESS): Define.
16010         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
16011         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
16012         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
16013         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
16014         (ic_invalidate): Adjust for SH5.
16015         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
16016         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
16017         _nested_trampoline.
16018         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
16019         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
16020         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
16021         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
16022         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
16023         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
16024         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
16025         * config/sh/sh.c (target_reg_operand): Match only target-branch
16026         registers and pseudos that aren't virtual registers.
16027         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16028         Copy operands that don't match target_reg_operand to pseudos.
16029         (call_media, call_value_media, sibcall_media): Use
16030         target_reg_operand instead of target_operand.
16031         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
16032         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
16033         * config/sh/sh.c (target_reg_operand): Match hardware registers
16034         other than branch-target registers.
16035         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
16036         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
16037         (fpscr_values) [SH5 == 32]: Define.
16038         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
16039         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16040         Handle function addresses coming in SUBREGs.
16041         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
16042         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16043         shcompact_return_trampoline): Use datalabel where appropriate.
16044         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
16045         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
16046         general-purpose register to copy one branch-target register to
16047         another.
16048         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
16049         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
16050         SYMBOL_REFs with VOIDmode.
16051         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16052         bltu_media_i): New insns.
16053         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
16054         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
16055         (INIT_CUMULATIVE_ARGS): Likewise.
16056         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
16057         * machmode.def (V16SFmode): New mode.
16058         * c-common.c (type_for_mode): Support V2SF and V16SF.
16059         * tree.c (build_common_tree_nodes_2): Likewise.
16060         * tree.h (tree_index): Likewise.
16061         * calls.c (emit_call_1): Take args_so_far.  Adjust all
16062         callers.  Introduce CALL_POPS_ARGS.
16063         * tm.texi (CALL_POPS_ARGS): Document.
16064         * config/sh/crt1.asm: Implement in SHmedia mode.
16065         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
16066         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
16067         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
16068         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
16069         Implement divsi and udivsi in SHmedia mode.  Introduce
16070         SHcompact trampolines.
16071         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
16072         only in SHmedia64.
16073         (regno_reg_class): Rewrite.
16074         (fp_reg_names): Remove.
16075         (sh_register_names, sh_additional_register_names): New.
16076         (print_operand): Added `u'.  Support SUBREGs in addresses.
16077         Add parentheses around shifted CONSTs.
16078         (output_file_start): Output .mode and .abi directives.
16079         (shiftcosts, addsubcosts, multcosts): Adjust.
16080         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
16081         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
16082         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
16083         bytes, not registers.  Take into account the need for the
16084         SHcompact incoming args trampoline.  Adjust all callers.
16085         (sh_expand_prologue): Take stack_regs into account.  Call
16086         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
16087         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
16088         stack aligned as per SH5 ABI.
16089         (sh_builtin_saveregs): Support SH5 ABI.
16090         (sh_build_va_list, sh_va_start): Likewise.
16091         (initial_elimination_offset): Take alignment into account.
16092         Compute location of PR according to the SH5 stack frame.
16093         (arith_reg_operand): Reject branch-target registers.
16094         (shmedia_6bit_operand): New.
16095         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
16096         (target_reg_operand): Match DImode only.  Accept SUBREGs.
16097         (target_operand): New.
16098         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
16099         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
16100         SIBCALL_REGS for SHmedia.
16101         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
16102         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
16103         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
16104         (TARGET_SWITCHES): New SH5 flags.
16105         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
16106         VALID_REGISTER_P to disable unsupported registers.
16107         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
16108         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
16109         (FUNCTION_ARG_PADDING): Define.
16110         (FASTEST_ALIGNMENT): Adjust.
16111         (SH_REGISTER_NAMES_INITIALIZER): New.
16112         (sh_register_names): Declare.
16113         (DEBUG_REGISTER_NAMES): Define.
16114         (REGISTER_NAMES): Define based on sh_register_names.
16115         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
16116         (sh_additional_register_names): Declare.
16117         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
16118         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
16119         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
16120         (REGISTER_NATURAL_MODE): Define.
16121         (FIRST_PSEUDO_REGISTER): Adjust.
16122         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
16123         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
16124         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
16125         (VECTOR_MODE_SUPPORTED_P): Define.
16126         (REG_CLASS_CONTENTS): Adjust.
16127         (SMALL_REGISTER_CLASSES): Adjust.
16128         (REG_ALLOC_ORDER): Adjust.
16129         (INDEX_REG_CLASS): Adjust.
16130         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
16131         (CONST_OK_FOR_LETTER_P): Adjust.
16132         (PREFERRED_RELOAD_CLASS): Adjust.
16133         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
16134         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
16135         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
16136         (FIRST_FP_PARM_REG): Adjust.
16137         (CALL_POPS_ARGS): Define.
16138         (FUNCTION_ARG_REGNO_P): Adjust.
16139         (struct sh_args): New fields.
16140         (GET_SH_ARG_CLASS): Adjust.
16141         (INIT_CUMULATIVE_ARGS): Adjust.
16142         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
16143         (FUNCTION_ARG_ADVANCE): Adjust.
16144         (FUNCTION_ARG): Adjust.
16145         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
16146         (FUNCTION_ARG_CALLEE_COPIES): Define.
16147         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
16148         (STRICT_ARGUMENT_NAMING): Define.
16149         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
16150         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
16151         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
16152         (SETUP_INCOMING_VARARGS): Adjust.
16153         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
16154         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
16155         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
16156         (SUBREG_OK_FOR_INDEX_P): Adjust.
16157         (EXTRA_CONSTRAINT_S): Update.
16158         (EXTRA_CONSTRAINT_T): New.
16159         (EXTRA_CONSTRAINT): Adjust.
16160         (GO_IF_LEGITIMATE_INDEX): Adjust.
16161         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
16162         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
16163         (MOVE_MAX): Adjust.
16164         (MAX_MOVE_MAX): Define.
16165         (Pmode): Adjust.
16166         (CONST_COSTS): Adjust.
16167         (REGISTER_MOVE_COST): Adjust.
16168         (BRANCH_COST): Adjust.
16169         (TEXT_SECTION_ASM_OP): Adjust.
16170         (DBX_REGISTER_NUMBER): Adjust.
16171         (ASM_OUTPUT_DOUBLE_INT): New.
16172         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
16173         (PREDICATE_CODES): Adjust.
16174         (PROMOTE_MODE): Adjust.
16175         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
16176         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
16177         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
16178         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
16179         (DR0_REG, DR2_REG, DR4_REG): Renumber.
16180         (TR0_REG, TR1_REG, TR2_REG): New.
16181         (XD0_REG): Renumber.
16182         (UNSPEC_COMPACT_ARGS): New.
16183         (type): Added pt and ptabs.
16184         (length): Default to 4 on SHmedia.  Default pt length to 12
16185         and     20 on SHmedia32 and SHmedia64, respectively.
16186         (pt): New function unit.
16187         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
16188         Add whitespace between operands of SHmedia instructions.
16189         (movdicc): Fix.
16190         (adddi3_media, addsi3_media): Adjust constraints.
16191         (subsi3) [SHmedia]: Force operand 1 into a register.
16192         (udivsi3_i1_media, udivsi3_i4_media): New.
16193         (udivsi3): Support SHmedia.
16194         (divsi3_i1_media, divsi3_i4_media): New.
16195         (divsi3): Support SHmedia.
16196         (anddi3, iordi3, xordi3): Adjust constraints.
16197         (zero_extendhidi2, zero_extendqidi2): New.
16198         (extendsidi2, extendhidi2, extendqidi2): New.
16199         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
16200         (pop_e, pop_fpul, pop_4): Likewise.
16201         (movsi_media): Support FP and BT registers.
16202         (movsi_media_nofpu): New.  Adjust splits to DImode.
16203         (lduw, ldub): Renamed to zero_extend* above.
16204         (movqi_media): Fix typo.
16205         (movdi_media): Support FP and BT registers.
16206         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
16207         (movdi_const_32bit): New.
16208         (shori_media): Require immediate operand.  Use `u' for output.
16209         (movdf_media, movsf_media): Simplified.
16210         (movdf_media_nofpu, movsf_media_nofpu): New.
16211         (movdf, movsf): Adjust
16212         (movv2sf, movv2sf, movv16sf): New.
16213         (beq_media, beq_media_i): Adjust constraints.  Don't use
16214         scratch BT register.
16215         (bne_media, bne_media_i): Likewise.
16216         (bgt_media, bgt_media_i): Likewise.
16217         (bge_media, bge_media_i): Likewise.
16218         (bgtu_media, bgtu_media_i): Likewise.
16219         (bgeu_media, bgeu_media_i): Likewise.
16220         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
16221         bunordered): Emit jump insn.  Force operands to registers when
16222         needed.
16223         (jump_media, jump): Simplify.
16224         (call_compact, call_compact_rettramp): New.
16225         (call_value_compact, call_value_compact_rettramp): New.
16226         (call_media, call_value_media): Simplify.
16227         (sibcall_compact, sibcall_media): New.
16228         (call, call_value): Adjust for SHmedia and SHcompact.
16229         (sibcall, sibcall_value, untyped_call): Likewise.
16230         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
16231         (indirect_jump): Adjust for SHmedia.
16232         (casesi_jump_media): New.
16233         (nop): Re-enable for SHmedia.
16234         (call_site): Restrict to SH1.
16235         (casesi): Adjust for SHmedia.
16236         (casesi_shift_media, casesi_load_media): New.
16237         (return): Explicitly use PR register.  Call return trampoline
16238         on SHcompact.
16239         (return_i): Explicitly use PR register.
16240         (shcompact_return_tramp, shcompact_return_tramp_i): New.
16241         (return_media): Adjust.
16242         (shcompact_incoming_args): New.
16243         (epilogue): Adjust.
16244         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16245         (movstrsi): Disable on SH5.
16246         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
16247         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
16248         (subsf3, subsf3_media): Likewise.
16249         (mulsf3, mulsf3_media, mac_media): Likewise.
16250         (divsf3, divsf3_media): Likewise.
16251         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
16252         (floatsisf2, fux_truncsfsi2): Likewise.
16253         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
16254         constraints.
16255         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
16256         (cmpunsf_media, cmpsf): Likewise.
16257         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
16258         (abssf2, abssf2_media): Likewise.
16259         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
16260         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
16261         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
16262         (floatsidf2, fix_truncdfsi2): Likewise.
16263         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
16264         constraints.
16265         (cmpeqdf_media, cmpgtdf_media): Likewise.
16266         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
16267         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
16268         (absdf2, absdf2_media): Likewise.
16269         (extendsfdf2, extendsfdf2_media): Likewise.
16270         (truncsfdf2, truncsfdf2_media): Likewise.
16271         * config/sh/sh64.h: New file.
16272         * config/sh/t-sh64: New file.
16273         * config/sh/shmedia.h: New file.
16274         * config/sh/ushmedia.h: New file.
16275         * config/sh/sshmedia.h: New file.
16276         * configure.in: Added sh64-*-elf.
16277         * configure: Rebuilt.
16278         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
16279         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
16280         (reg_class_from_letter): Use `b' for TARGET_REGS.
16281         (print_operand): Support `%M', `%m', `AND' and
16282         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
16283         (andcosts): Adjust for SHmedia.
16284         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
16285         Likewise.
16286         (target_reg_operand): New function.
16287         * config/sh/sh-protos.h (target_reg_operand): Declare.
16288         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
16289         FP registers on SH5.
16290         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
16291         on SH4.
16292         (TARGET_REGISTER_P): New macro.
16293         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
16294         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
16295         (EXTRA_CONSTRAINT_S): New macro.
16296         (EXTRA_CONSTRAINT): Adjust.
16297         (FLOAT_TYPE_SIZE): Define to 32.
16298         (Pmode): DImode on SHmedia.
16299         (CONST_COSTS): Adjust for SHmedia literals.
16300         (PREDICATE_CODES): Added target_reg_operand.
16301         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
16302         * config/sh/sh.md: Remove all attrs from SHmedia insns.
16303         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
16304         (cmpdi): Accept SHmedia.
16305         (movdicc_false, movdicc_true): New insns.
16306         (movdicc): New expand.
16307         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
16308         no_new_pseudos.
16309         (addsi3_media): Match `S' constraint.
16310         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
16311         (negdi2): Expand for SHmedia.
16312         (one_cmpldi2): New expand.
16313         (zero_extendsidi2): Change from expand to insn.
16314         (extendsidi2): Add constraints.
16315         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
16316         LD/ST address.  Fix SI immediate loading split.
16317         (movhi_media, movqi_media, lduw, ldub): New insns.
16318         (movhi, movqi): Accept SHmedia.
16319         (shori_media, movdi_media): Relax input constraints.  Split
16320         symbolic constants.
16321         (movdf_media, movsf_media): New insn.  New split to movdi.
16322         (movdf, movsf): Match on SHmedia.
16323         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
16324         bgeu_media): New insns and splits.  New insns with `_i' suffix.
16325         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
16326         (bunordered): New expand.
16327         (jump_compact): Renamed from `jump'.
16328         (jump_media): New insn.
16329         (jump): New expand.
16330         (call_media, call_value_media): New insns.
16331         (call, call_value): Adjust.
16332         (indirect_jump_compact): Renamed from `indirect_jump'.
16333         (indirect_jump_media): New insn.
16334         (indirect_jump): New expand.
16335         (untyped_call, return): Accept SHmedia.
16336         (return_media): New insn.
16337         (prologue, epilogue, blockage): Accept SHmedia.
16338         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16339         (sunordered): New expand.
16340         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
16341         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
16342         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
16343         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
16344         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
16345         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
16346         abssf2_media): New insns.
16347         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
16348         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
16349         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
16350         floatdidf2, floatsidf2_media, fix_truncdfdi2,
16351         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
16352         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
16353         absdf2_media): New insns.
16354         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
16355         (extendsfdf2_media, truncdfsf2_media): New insns.
16356         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
16357         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
16358         * config/sh/sh.h (CONST_OK_FOR_J): Document.
16359         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
16360         * config/sh/sh.md (adddi3): New expand.
16361         (adddi3_media, adddi3z_media): New insns.
16362         (adddi3_compact): Renamed from adddi3.
16363         (addsi3_media): Use add.l r63 to add constant zero.
16364         (subdi3): New expand.
16365         (subdi3_media): New insn.
16366         (subdi3_compact): Renamed from subdi3.
16367         (mulsidi3): New expand.
16368         (mulsidi3_media): New insn.
16369         (mulsidi3_compact): Renamed from mulsidi3.
16370         (umulsidi3): New expand.
16371         (umulsidi3_media): New insn.
16372         (umulsidi3_compact): Renamed from umulsidi3.
16373         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
16374         (ashlsi3, ashrsi3, lshrsi3): Use them.
16375         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
16376         (ashldi3, ashrdi3, lshrdi3): Use them.
16377         (zero_extendsidi2): New expand.
16378         (extendsidi2): New insn.
16379         (movsi_media): New insn.  Split to movdi to load constants.
16380         (movsi): Enable for shmedia.
16381         (movdi_media): New insn.  Use shori_media to load wide constants.
16382         (short_media): New insn.
16383         (movdi): Enable for shmedia.
16384         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
16385         * config/sh/sh.h (CPP_SPEC): Added `m5'.
16386         (SUBTARGET_CPP_SPEC): Added `!m5'.
16387         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
16388         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
16389         to all other SH variants.
16390         (TARGET_DEFAULT): Set to SH1_BIT.
16391         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
16392         (BITS_PER_WORD): Raise to 64 on shmedia.
16393         (MAX_BITS_PER_WORD): Change to 64.
16394         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
16395         (INT_TYPE_SIZE): Keep as 32.
16396         (UNITS_PER_WORD): Raise to 8 on shmedia.
16397         (MIN_UNITS_PER_WORD): Keep as 4.
16398         (POINTER_SIZE): Raise to 64 on shmedia.
16399         (CONST_OK_FOR_J): New macro.
16400         (CONST_OK_FOR_LETTER_P): Use it.
16401         (processor_type): Add PROCESSOR_SH5.
16402         * config/sh/sh.md: Conditionalize all expands, insns and
16403         splits to TARGET_SH1.
16404         (cpu): Added sh5.
16405         (addsi3_compact): Renamed from...
16406         (addsi3): Now an expand.
16407         (addsi3_media, subsi3_media): New insns.
16408         (subsi3): Don't negate constants with SHmedia.
16409
16410         * hooks.c: New file.
16411         * hooks.h: New file.
16412         * Makefile.in (HOOKS_H): New.
16413         (TARGET_DEF_H): Added $(HOOKS_H).
16414         (OBJS): Added hooks.o.
16415         (cfgcleanup.o, bb-reorder.o): Added target.h.
16416         (hooks.o): Added dependencies.
16417         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
16418         (TARGET_INITIALIZER): this.
16419         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
16420         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
16421         * bb-reorder.c: Include target.h.
16422         (reorder_basic_blocks): Skip if cannot modify jumps.
16423         * cfgcleanup.c: Include target.h.
16424         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
16425
16426 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
16427
16428         * config/mips/mips.md (casesi_internal, casesi_internal_di):
16429         Protect jump delay slot instructions with .set noreorder and
16430         .set nomacro.
16431
16432 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
16433
16434         * config/mips/mips.md (casesi_internal_di): Calculate
16435         the index into the target offset table correctly.
16436
16437 2002-02-08  Richard Henderson  <rth@redhat.com>
16438
16439         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
16440         * final.c (output_addr_const): Accept and discard SUBREG.
16441         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
16442         mark them unknown instead.
16443         (simplify_subtraction): Handle RTX_UNKNOWN.
16444         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
16445
16446 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
16447
16448         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
16449
16450 2002-02-08  Richard Henderson  <rth@redhat.com>
16451
16452         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
16453
16454 2002-02-08  Andreas Jaeger  <aj@suse.de>
16455
16456         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
16457         * config/i386/t-linux64: New file.
16458
16459 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
16460
16461         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
16462         * c-parse.in (compstmt): Clear last_expr_type.
16463
16464 2002-02-07  Richard Henderson  <rth@redhat.com>
16465
16466         * loop.c (strength_reduce): Sink final_value when not
16467         eliminating a biv.
16468
16469 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
16470
16471         * config/sparc/freebsd.h: Fix mismatched spec {.
16472
16473 2002-02-07  Richard Henderson  <rth@redhat.com>
16474
16475         * cfgrtl.c: Include recog.h and insn-config.h.
16476         (keep_with_call_p): Fix general_operand invocation.
16477         * Makefile.in (cfgrtl.o): Update dependencies.
16478
16479 2002-02-07  Kazu Hirata  <kazu@hxi.com>
16480
16481         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
16482         comment.  Accept HImode only if TARGET_H8300.
16483
16484 2002-02-07  Eric Christopher  <echristo@redhat.com>
16485
16486         * config/mips/crtn.asm: Cleanup #ifdefs.
16487
16488 2002-02-07  Eric Christopher  <echristo@redhat.com>
16489
16490         * config/mips/crti.asm: Add changes for mips16. mips16 uses
16491         register 7 as RA instead of $31.
16492         * config/mips/crtn.asm: Ditto.
16493         * config/mips/mips.c (mips_move_2words): Add case for
16494         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
16495         (compute_frame_size): Fix typo.
16496         (save_restore_insns): Ditto.  Make documentation about using
16497         register $7 as return register more precise.
16498         (mips_expand_epilogue): Fix comment. Add code to work around not
16499         being able to add to the stack pointer directly.
16500         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
16501         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
16502         epilogue.
16503
16504 2002-02-07  Tom Rix  <trix@redhat.com>
16505
16506         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
16507         immediates in ldu and stdu DS opcode field.
16508         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
16509         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
16510         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
16511
16512 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
16513
16514         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
16515         offset for stack bias.
16516
16517 2002-02-07  H.J. Lu <hjl@gnu.org>
16518
16519         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
16520
16521 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
16522
16523         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
16524
16525 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
16526
16527         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
16528         * i386.c (x86_order_regs_for_local_alloc): New global function.
16529         * i386.h (REG_ALLOC_ORDER): CLeanup.
16530         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
16531
16532 2002-02-07  Richard Henderson  <rth@redhat.com>
16533
16534         PR optimization/2463
16535         * alias.c (find_base_value): Recall base values for fixed hard regs.
16536         * loop.c (loop_regs_update): Don't use single_set on non-insns.
16537
16538 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
16539
16540         * config/mips/mips.md (define_delay) [mips16]: Adjust required
16541         length.
16542
16543 2002-02-06  Richard Henderson  <rth@redhat.com>
16544
16545         PR c/5609
16546         * stmt.c (resolve_operand_name_1): Take more care with mixed
16547         named and unnamed operands.
16548
16549 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
16550             Jan Hubicka  <jh@suse.cz>
16551
16552         * loop.c (remove_constant_addition): Avoid clobbering a shared
16553         CONST expression.
16554
16555 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
16556
16557         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
16558         * config/s390/t-linux64: New file.
16559         * config/s390/libgcc-glibc.ver: New file.
16560
16561 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
16562
16563         * config/s390/linux64.h: Delete file.
16564         * config/s390/s390x.h: New file.
16565         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
16566         as target header file.
16567         * config/s390/linux.h (TARGET_VERSION): Define depending on
16568         DEFAULT_TARGET_64BIT.
16569         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
16570         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
16571         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
16572         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
16573         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
16574         (EXTRA_SPEC): New define.
16575         * config/s390/s390.h (TARGET_VERSION): Define depending on
16576         DEFAULT_TARGET_64BIT.
16577         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
16578
16579 2002-02-06  Jason Merrill  <jason@redhat.com>
16580
16581         * c-decl.c (finish_function): Warn about a non-void function with
16582         no return statement and no abnormal exit.
16583         (current_function_returns_abnormally): New variable.
16584         (start_function): Clear it.
16585         (struct c_language_function): Add returns_abnormally.
16586         (push_c_function_context): Save it.
16587         (pop_c_function_context): Restore it.
16588         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
16589         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
16590         an explicit return type.
16591         * c-tree.h: Declare current_function_returns_abnormally.
16592         (C_FUNCTION_IMPLICIT_INT): New macro.
16593         * c-typeck.c (build_function_call): Set it.
16594         (c_expand_return): Set current_function_returns_value even if the
16595         value is erroneous.
16596
16597 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
16598
16599         PR c/5420:
16600         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
16601         unsafe for reevaluation.
16602
16603 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
16604
16605         PR c/5482:
16606         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
16607         EXPR_STMT, but COMPOUND_STMT, recurse into it.
16608
16609 2002-02-06  Richard Henderson  <rth@redhat.com>
16610
16611         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
16612         be a general_operand.  Dest for function value must be a pseudo.
16613
16614 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
16615
16616         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
16617         as SYMBOL_REFs from the constant pool.
16618
16619 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
16620
16621         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
16622         passed by invisible reference.
16623
16624 2002-02-05  Richard Henderson  <rth@redhat.com>
16625
16626         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
16627
16628 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
16629
16630         Implement using "base addresses" in insn operands as default.
16631         * config/mmix/mmix.c (mmix_conditional_register_usage): if
16632         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
16633         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
16634         used to read the rtx value.
16635         (mmix_target_asm_function_epilogue): Fix spacing.
16636         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
16637         (mmix_legitimate_address): Ditto.
16638         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
16639         should be loaded with a GETA insn.  Don't allocate needless extra
16640         char for nul termination and fix misleading comment.
16641         (mmix_print_operand_address): Handle constants if
16642         TARGET_BASE_ADDRESSES.
16643         (mmix_output_register_setting): Use base addressing if
16644         TARGET_BASE_ADDRESSES and the number of insns is 3.
16645         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
16646         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
16647         to use R as constraint, add LDA to match s.
16648         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
16649         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
16650         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
16651         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
16652         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
16653         order with other fixed registers.
16654         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
16655         other parameter/call-clobbered registers.
16656         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
16657         -mbase-addresses, -mno-base-addresses.
16658         (MMIX Options): Ditto.
16659
16660 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16661
16662         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
16663
16664 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
16665
16666         * config/rs6000/altivec.h: Change elem to _S_elem.
16667
16668 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
16669
16670         * config/netbsd.h (WCHAR_TYPE): Define.
16671         (WCHAR_TYPE_SIZE): Ditto.
16672         (WINT_TYPE): Ditto.
16673         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
16674         (WCHAR_UNSIGNED): Ditto.
16675         (WCHAR_TYPE_SIZE): Ditto.
16676         (WINT_TYPE): Ditto.
16677         * config/arm/netbsd.h: Likewise.
16678         * config/i386/netbsd-elf.h: Likewise.
16679         * config/i386/netbsd.h: Likewise.
16680         * config/m68k/netbsd-elf.h: Likewise.
16681         * config/m68k/netbsd.h: Likewise.
16682         * config/ns32k/netbsd.h: Likewise.
16683         * config/sparc/netbsd.h: Likewise.
16684         * config/vax/netbsd.: Likewise.
16685
16686 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
16687
16688         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
16689         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
16690         (TARGET_INITIALIZER): this.
16691         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
16692         (BITFIELD_NBYTES_LIMITED): Markup fix.
16693         * tree.h (default_ms_bitfield_layout_p): Declare.
16694         (record_layout_info): Added prev_field.
16695         * tree.c (default_ms_bitfield_layout_p): New fn.
16696         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
16697         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
16698         * stor-layout.c: Include target.h.
16699         (start_record_layout): Initialize prev_field.
16700         (place_field): Handle MS bit-field layout, and disregard
16701         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
16702         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
16703         * Makefile.in (stor-layout.o): Adjust dependencies.
16704
16705 2002-02-05  Jason Merrill  <jason@redhat.com>
16706
16707         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
16708
16709 2002-02-05  Andreas Jaeger  <aj@suse.de>
16710
16711         * crtstuff.c: Fix comments.
16712
16713 2002-02-05  Richard Henderson  <rth@redhat.com>
16714
16715         PR fortran/3393
16716         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
16717         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
16718
16719         PR fortran/3392
16720         * config/mips/mips.c (function_arg): Handle TImode.
16721         (function_arg_advance): Likewise.
16722
16723 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16724
16725         * config/rs6000/altivec.h (vec_step_help): Rename to
16726         __vec_step_help.
16727
16728 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16729
16730         * config/rs6000/altivec.h: Fix typos.
16731
16732 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
16733
16734         * config/arm/netbsd.h: Correct a comment.
16735
16736 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16737
16738         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
16739         building void typed builtins.
16740
16741         * config/rs6000/altivec.h (vec_ld*): Fix typos.
16742         (vec_step): Implement for C++.
16743
16744 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16745
16746         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
16747
16748 2002-02-04  Richard Henderson  <rth@redhat.com>
16749
16750         * combine.c (nonzero_bits): Re-introduce special case for
16751         sp/fp/ap wrt REGNO_POINTER_ALIGN.
16752
16753 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16754
16755         * doc/extend.texi: Warn about unsupported usage of altivec
16756         builtins.
16757
16758         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
16759         (altivec_predicate_*): New.
16760
16761         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
16762         Add C++ version of vec_*() functions.
16763
16764         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
16765         (bdesc_2arg): Remove altivec predicates.
16766         (altivec_expand_builtin): Handle predicates.
16767         (altivec_init_builtins): Handle predicates.
16768         (altivec_expand_predicate_builtin): New.
16769
16770 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16771
16772         * pa.c (DO_FRAME_NOTES): Move forward.
16773         (store_reg): Revise handling of frame notes.
16774         (load_reg): Likewise.
16775         (set_reg_plus_d): Likewise.
16776         (hppa_expand_prologue): Likewise.
16777         (hppa_expand_epilogue): Likewise.
16778
16779 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16780
16781         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
16782
16783 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16784
16785         PR c/4475, c++/3780:
16786         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
16787         * c-common.h (SWITCH_TYPE): Define.
16788         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
16789         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
16790         Rename spareness variable to sparseness.
16791         (expand_end_case_type): Renamed from expand_end_case, use orig_type
16792         if non-NULL instead of TREE_TYPE (orig_index).
16793         * tree.h (expand_end_case_type): Renamed from expand_end_case.
16794         (expand_end_case): Define using expand_end_case_type.
16795         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
16796         to expand_end_case_type.
16797         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
16798
16799 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16800
16801         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
16802         (BIGGEST_ALIGNMENT): Change to 128.
16803
16804 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16805
16806         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
16807
16808 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16809
16810         * pa.md (call_internal_reg_64bit): Remove unused variable.
16811
16812 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
16813
16814         * config/arm/arm.h (machine_function): Add uses_anonymous_args
16815         field.
16816         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
16817         * config/arm/arm.c (current_function_anonymous_args): Delete,
16818         replace uses with cfun->machine->uses_anonymous_args.
16819         (arm_reorg): Do not reset uses_anonymous_args.
16820
16821         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
16822         any geenral register.
16823
16824 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
16825
16826         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
16827         the entry block.
16828
16829 2002-02-04  Richard Henderson  <rth@redhat.com>
16830
16831         * combine.c (force_to_mode): Remove STACK_BIAS code.
16832         (nonzero_bits): Likewise.  Replace sp/fp special case with
16833         REGNO_POINTER_ALIGN.
16834
16835         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
16836         (HARD_FRAME_POINTER_REGNUM): New.
16837         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
16838         (FIXED_REGS, CALL_USED_REGS): Update.
16839         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
16840         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
16841         (HARD_REGNO_NREGS): Update for SFP.
16842         (STACK_POINTER_OFFSET): Include bias here ...
16843         (FIRST_PARM_OFFSET): ... not here.
16844         (STACK_BIAS): Remove.
16845         (INIT_EXPANDERS): New.
16846         (STARTING_FRAME_OFFSET): Do not include bias.
16847         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
16848         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
16849         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
16850         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
16851         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
16852         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
16853         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
16854         (MUST_SAVE_REGISTER): Likewise.
16855         (sparc_flat_function_prologue): Likewise.
16856         (sparc_flat_function_epilogue): Likewise.
16857         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
16858         (sparc_init_modes): SFP is GENERAL_REGS.
16859         (sparc_builtin_saveregs): SFP does not have bias applied.
16860
16861 2002-02-04  Richard Henderson  <rth@redhat.com>
16862
16863         * config/alpha/alpha.c (current_function_is_thunk): Don't check
16864         current_function_is_thunk.
16865         (alpha_sa_mask): Distinguish between current_function_is_thunk
16866         called from ASM_OUTPUT_MI_THUNK and not.
16867         (alpha_does_function_need_gp): Thunks always need gp.
16868         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16869         (alpha_output_mi_thunk_osf): New.
16870         * config/alpha/alpha-protos.h: Update.
16871         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
16872
16873 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
16874
16875         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
16876         function types, not when they're taken away.
16877
16878 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
16879
16880         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
16881         CODE_LABEL and jump table when replacing a table jump with a
16882         simple jump.
16883
16884 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
16885
16886         * config/s390/s390-protos.h (legitimize_la_operand,
16887         s390_secondary_input_reload_class, s390_plus_operand,
16888         s390_expand_plus_operand): Add prototypes.
16889
16890         config/s390/s390.c (s390_secondary_input_reload_class,
16891         s390_plus_operand, s390_expand_plus_operand): New functions.
16892
16893         (struct s390_address): New member 'pointer'.
16894         (s390_decompose_address): Compute it.
16895         (legitimate_la_operand_p): Use it.
16896         (legitimize_la_operand): New function.
16897         (movti, movdi, movdf splitters): Call it.
16898
16899         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
16900         (PREDICATE_CODES): Add s390_plus_operand.
16901
16902         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
16903         (la_ccclobber): Allow GENERAL_REGS as output operand.
16904
16905         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
16906         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
16907         (*la_64, *la_31, reload_indi, reload_insi): ... these.
16908
16909 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
16910
16911         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
16912         register names for regular asm () construct.
16913
16914 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16915
16916         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
16917         registers.
16918
16919 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16920
16921         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
16922         pat for recog.
16923
16924 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
16925
16926         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
16927         constant pool to be identical by string address and index.
16928
16929 2002-02-04  Anthony Green  <green@redhat.com>
16930
16931         * output.h (SECTION_OVERRIDE): Define.
16932         * varasm.c (named_section): Obey SECTION_OVERRIDE.
16933
16934 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
16935
16936         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
16937         by existing arm*-*-netbsd* (a.out) target.
16938         (ns32k-*-netbsdelf*): Likewise.
16939         (sparc-*-netbsdelf*): Likewise.
16940         (vax-*-netbsdelf*): Likewise.
16941
16942 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
16943
16944         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
16945         headers and libobjc headers.
16946
16947 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
16948
16949         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
16950         (_mingw.h): Remove duplicate include.
16951
16952 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
16953
16954         * config.gcc: Set cpu_type to m68k for 68010, as well.
16955         (m68010-*-netbsdelf*): New...
16956         (m68k*-*-netbsdelf*): ...targets.
16957         * config/m68k/netbsd-elf.h: New file.
16958
16959 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16960
16961         * config/h8300/h8300.c (hand_list): Move inside function_arg.
16962
16963 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16964
16965         * config/h8300/h8300.c (h8_push_ops): Move inside
16966         h8300_init_once.
16967         (h8_pop_ops): Likewise.
16968         (h8_move_ops): Likewise.
16969
16970 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16971
16972         * config/h8300/h8300.c (os_task): Make it static.
16973         (monitor): Likewise.
16974         (pragma_saveall): Likewise.
16975
16976 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
16977
16978         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
16979         constant is a valid sign-extension for Pmode.
16980
16981 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16982
16983         * config/h8300/h8300.c: Fix formatting.
16984
16985 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16986
16987         * config/h8300/h8300.md: Fix formatting.
16988
16989 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16990
16991         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
16992         predicates of operands[1].  Split the patterns for each
16993         processor variant.
16994
16995 2002-02-02  Kazu Hirata  <kazu@hxi.com>
16996
16997         * config/h8300/h8300.md (xor patterns): Tighten the predicates
16998         of operands[1] to register_operand.
16999
17000 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
17001
17002         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
17003         * cpphash.c (_cpp_init_hashtable): Similarly.
17004         * cppinit.c (cpp_create_reader): Default the signed_char flag.
17005         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
17006         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
17007         (cpp_handle_option): Handle the new options.
17008         * cpplex.c (cpp_interpret_charconst): Use new flag.
17009         * cpplib.h (struct cpp_options): New member signed_char.
17010         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
17011         (cpp_options): Handle -fsigned-char and -funsigned-char.
17012         (static_specs): Remove signed_char_spec.
17013         (do_spec1): Don't handle %c.
17014         * system.h: Poison SIGNED_CHAR_SPEC.
17015         * tradcif.y (yylex): Use flag_signed_char.
17016         * tradcpp.h (flag_signed_char): New.
17017         * tradcpp.c (flag_signed_char): New.
17018         (main): Handle new command-line options.
17019         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
17020 config:
17021         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
17022         * avr/avr.h: Remove old comments.
17023         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
17024         (CC1_SPEC): Pass -fsigned-char if -mic*.
17025         (SIGNED_CHAR_SPEC): Remove.
17026 doc:
17027         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
17028
17029 2002-02-01  Eric Christopher  <echristo@redhat.com>
17030
17031         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
17032         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
17033         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
17034         (ASM_OUTPUT_REG_POP): Ditto.
17035
17036 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
17037
17038         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
17039         patch.
17040
17041 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
17042
17043         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
17044
17045 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
17046
17047         PR c/5304:
17048         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
17049         unconditionally.
17050
17051 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
17052
17053         * cfganal.c: Include tm_p.h.
17054         (keep_with_call_p): Fix the test that determines if a register holds
17055         the return value of a call.
17056
17057 2002-02-01  DJ Delorie  <dj@redhat.com>
17058
17059         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
17060         we are given conflicting registers, switch to the other one we
17061         had allocated for us.
17062         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
17063         as TImode so we know when the "other" register is available.
17064
17065 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
17066
17067         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
17068         sparc/sparc_bi.h.
17069
17070 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
17071
17072         * cfganal.c (keep_with_call_p): New function.
17073         (flow_call_edges_add): Prevent splitting a block between a call and
17074         a single-set instruction that should be kept in the same block.
17075
17076 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17077
17078         * doc/install.texi (avr): Update outdated URL.
17079
17080 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
17081
17082         * config/stormy16/stormy16.md (pushqi): New.
17083         (popqi): New.
17084         (pushhi): New.
17085         (pophi): New.
17086         (movhi): Remove stack operands.
17087         (movqi): Likewise.
17088         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
17089         nonimmediate_nonstack_operand.
17090         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
17091         New.
17092         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
17093         New.
17094
17095 2002-01-31  Jason Merrill  <jason@redhat.com>
17096
17097         * Makefile.in (c-parse.c): Handle .output file.
17098         * objc/Make-lang.in (objc-parse.c): Likewise.
17099
17100 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
17101
17102         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
17103         the -me[lb] option is given.  Don't output the default flag
17104         twice.
17105
17106 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
17107
17108         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
17109         the primary source file; this has not been done yet.
17110         * c-decl.c (c_expand_body): Reset input_filename from
17111         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
17112
17113 2002-01-31  Kazu Hirata  <kazu@hxi.com>
17114
17115         * rtlanal.c (subreg_regno_offset): Do not use
17116         SUBREG_REGNO_OFFSET.
17117         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
17118         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
17119
17120 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
17121
17122         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
17123         version rather than GNATS version in --version output.
17124
17125 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
17126
17127         * ifcvt.c (noce_process_if_block): Make a copy of the destination
17128         when copying back from a temporary.
17129
17130 2002-01-30  Richard Henderson  <rth@redhat.com>
17131
17132         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
17133         and new_dest are the same.
17134
17135 2002-01-30  Richard Henderson  <rth@redhat.com>
17136
17137         PR opt/5076
17138         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
17139         * rtl.c (note_insn_name): Update.
17140         * emit-rtl.c (remove_unnecessary_notes): Kill it.
17141         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
17142         to perform loop rotation.
17143         (expand_exit_loop_top_cond): New.
17144         * tree.h (expand_exit_loop_top_cond): Declare it.
17145         * c-semantics.c (genrtl_while_stmt): Use it.
17146         (genrtl_for_stmt): Likewise.
17147
17148 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
17149
17150         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
17151         arguments to 64-bit boundaries on 64-bit ABIs.
17152
17153 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
17154
17155         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
17156
17157 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
17158
17159         * c-decl.c (grokdeclarator): Handle type being a typedef for an
17160         invalid type.
17161
17162 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
17163
17164         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
17165         * config/sparc/sparc_bi.h: Remove file.
17166         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
17167
17168 2002-01-30  Richard Henderson  <rth@redhat.com>
17169
17170         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
17171
17172 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
17173
17174         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
17175
17176 2002-01-30  Jason Merrill  <jason@redhat.com>
17177
17178         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
17179         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
17180         (reg_save): Use DW_CFA_offset_extended_sf instead.
17181
17182         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
17183
17184 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
17185
17186         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
17187         in cselib_lookup.
17188
17189 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
17190
17191         * rs6000.md ("*call_value_local32"): Remove constraints.
17192         ("*call_value_local64"): Same.
17193         ("*call_value_indirect_nonlocal_aix32"): Same.
17194         ("*call_value_nonlocal_aix32"): Same.
17195         ("*call_value_indirect_nonlocal_aix64"): Same.
17196         ("*call_value_nonlocal_aix64"): Same.
17197         ("*call_value_nonlocal_sysv"): Same.
17198
17199 2002-01-29  Richard Henderson  <rth@redhat.com>
17200
17201         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
17202
17203 2002-01-29  Richard Henderson  <rth@redhat.com>
17204
17205         * expr.c (force_operand): Ignore flag_pic for detecting pic
17206         address loads.
17207         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
17208         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
17209         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
17210         instead of open-coded loop.
17211         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
17212         be fixed when in use.
17213
17214 2002-01-29  Richard Henderson  <rth@redhat.com>
17215
17216         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
17217         * sched-rgn.c (propagate_deps): Update them.
17218         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
17219         clobbers list when either gets too long.
17220
17221 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
17222
17223         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
17224         and INDEX_REGS the same as GENERAL_REGS.
17225         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
17226
17227 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17228
17229         * tree.c (build_nonstandard_integer_type): Correct prototype.
17230
17231 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
17232
17233         * config/s390/s390.md (movstrsico, movstrdix_64,
17234         movstrsix_31): Remove, replace by ...
17235         (movstrdi_short, movstrsi_short, movstrdi_long,
17236         movstrsi_long): ... these.  New.
17237         (movstrdi, movstrsi): Adapt.
17238
17239         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
17240         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
17241         Remove unnecessary CC clobber.
17242         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
17243         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
17244
17245         (divmoddi4): Don't partially initialize TImode register.
17246
17247 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
17248
17249         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
17250
17251 2002-01-29  Richard Henderson  <rth@redhat.com>
17252
17253         * flow.c (print_rtl_and_abort): Remove.
17254         (print_rtl_and_abort_fcn): Remove.
17255         (verify_local_live_at_start): Use dump_bb instead.
17256         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
17257         (verify_wide_reg_1): Return 2 on mode test failure.
17258
17259 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17260
17261         PR c/3325, c/3326, c/2511, c/3347
17262         * c-decl.c (enum_decl_context): Remove BITFIELD.
17263         (grokdeclarator): Take bitfield width as an input.
17264         Ensure bitfields are given the correct type.  Perform
17265         bitfield width validation with build_bitfield_integer_type
17266         rather than waiting for finish_struct.
17267         (grok_typename, grok_typename_in_parm_context, start_decl,
17268         push_parmdecl, grokfield, start_function): Update calls to
17269         grokdeclarator.
17270         (build_bitfield_integer_type): New function.
17271         (finish_struct): Move bitfield validation to grokdeclarator
17272         and build_bitfield_integer_type.
17273         * tree.c (build_nonstandard_integer_type): New function.
17274         * tree.h (build_nonstandard_integer_type): New prototype.
17275 objc:
17276         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
17277
17278 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
17279
17280         PR other/1502:
17281         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
17282         don't ignore unrecognized -W* options.
17283         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
17284         * cpplib.h (cpp_handle_option): Adjust prototype.
17285         * c-decl.c (c_decode_options): Pass 0 as last argument to
17286         cpp_handle_option.
17287
17288         PR c/2896:
17289         * gcc.c (cpp_unique_options): Split from cpp_options.
17290         (cpp_options): Source cpp_unique_options.
17291         (default_compilers): Use cpp_unique_options instead of cpp_options
17292         when used together with cc1_options.
17293         (static_specs): Add cpp_unique_options.
17294         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
17295         when used together with cc1_options.
17296
17297 2002-01-29  Kazu Hirata  <kazu@hxi.com>
17298
17299         * config/h8300/h8300-protos.h: Update the prototype of
17300         output_a_shift.
17301         * config/h8300/h8300.c (output_a_shift): Remove an unused
17302         argument 'insn'.  Remove redundant code.
17303         * config/h8300/h8300.md: Adust to the new prototype of
17304         output_a_shift.
17305
17306 2002-01-29  Kazu Hirata  <kazu@hxi.com>
17307
17308         * config/h8300/h8300-protos.h: Update the prototypes of
17309         emit_a_rotate and expand_a_rotate.
17310         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
17311         first argument to 'enum rtx_code'.
17312         (expand_a_rotate): Likewise.
17313
17314 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17315
17316         * config/h8300/h8300-protos.h: Update the prototype of
17317         output_simode_bld.
17318         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
17319         'log2'.
17320         * config/h8300/h8300.md: Adjust to the new prototype.
17321
17322 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17323
17324         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
17325         redundant code.
17326
17327 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17328
17329         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
17330         is a fixed register before returning pic_offset_table_rtx.
17331         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
17332         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
17333
17334 2002-01-28  Jason Merrill  <jason@redhat.com>
17335
17336         * dwarf2.h: Sync with src version.
17337
17338 2002-01-28  Paul Koning  <pkoning@equallogic.com>
17339
17340         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
17341         BT_FN_VOID_PTR_VAR.
17342         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
17343         * doc/extend.texi (__builtin_prefetch): Update documentation:
17344         first argument is now const void ptr.
17345
17346 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17347
17348         * config/h8300/h8300-protos.h: Remove an unused prototype.
17349
17350 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
17351
17352         * toplev.c (lang_independent_init): Round up identifier size.
17353
17354 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
17355
17356         * config.gcc: Revert previous change.
17357
17358 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
17359
17360         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
17361
17362 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
17363
17364         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
17365         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
17366         other non-elf netbsd config frags.
17367         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
17368         collect2 will does that.
17369         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
17370         shared-lib frobbing will work.
17371
17372 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17373
17374         * config/h8300/h8300.h: Fix formatting.
17375         * config/h8300/h8300.md: Likewise.
17376
17377 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
17378
17379         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
17380         the old, removed AAA_standards fix.
17381         * fixinc/fixincl.x: Rebuilt.
17382
17383 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
17384
17385         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
17386         atexit call in crtbegin, hooked in after call to frame_dummy;
17387         register EH before registering __fini__start.
17388
17389 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
17390
17391         * config/rs6000/altivec.h: Remove spurious semicolons.
17392
17393 2002-01-27  Kazu Hirata  <kazu@hxi.com>
17394
17395         * config/h8300/h8300.md: Replace dead bit extraction patterns
17396         with ones that work.
17397
17398 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17399
17400         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
17401         if not STRICT_ALIGNMENT.
17402         * rtl.h (MEM_ALIGN): Likewise.
17403
17404 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17405
17406         * doc/invoke.texi (-fdump-translation-unit): Revert this
17407         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17408
17409 2002-01-27  Kazu Hirata  <kazu@hxi.com>
17410
17411         * config/h8300/h8300.md (define_constants): New.
17412         (anonymous patterns) Use defined constants appropriately.
17413
17414 2002-01-27  Kazu Hirata  <kazu@hxi.com>
17415
17416         * config/h8300/h8300.c (function_arg): Remove redundant code.
17417
17418 2002-01-26  Richard Henderson  <rth@redhat.com>
17419
17420         * sched-deps.c (reg_pending_uses_head): New.
17421         (reg_pending_barrier): Rename from reg_pending_sets_all.
17422         (find_insn_list): Don't mark inline.
17423         (find_insn_mem_list): Remove.
17424         (add_dependence_list, add_dependence_list_and_free): New.
17425         (flush_pending_lists): Replace only_write param with separate
17426         for_read and for_write parameters.  Update all callers.  Use
17427         add_dependence_list_and_free.
17428         (sched_analyze_1): Do not add reg dependencies here; just set
17429         the pending bits.  Use add_dependence_list.
17430         (sched_analyze_2): Likewise.
17431         (sched_analyze_insn): Replace schedule_barrier_found with
17432         reg_pending_barrier.  Add all dependencies for pending reg
17433         uses, sets, and clobbers.
17434         (sched_analyze): Don't add reg dependencies for calls, just
17435         set pending bits.  Use regs_invalidated_by_call.  Treat
17436         sched_before_next_call as a normal list, not a fake insn.
17437         (init_deps): No funny init for sched_before_next_call.
17438         (free_deps): Free pending mems lists.  Don't zero reg_last.
17439         (init_deps_global): Init reg_pending_uses.
17440         (finish_deps_global): Free it.
17441         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
17442         (find_insn_mem_list): Remove.
17443         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
17444         (propagate_deps): Use them.  Zero temp mem lists.
17445
17446 2002-01-26  Richard Henderson  <rth@redhat.com>
17447
17448         * Makefile.in (CRTSTUFF_CFLAGS): New.
17449         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
17450         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
17451         crtstuff.c instead of alpha assembly version.
17452         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
17453         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
17454         not FORCE_{INIT,FINI}_SECTION_ALIGN.
17455         (__do_global_dtors_aux): Mark used.
17456         (frame_dummy, __do_global_ctors_aux): Mark used.
17457         (fini_dummy, init_dummy): Remove.
17458
17459         * config/alpha/crtbegin.asm: Remove file.
17460         * config/alpha/crtend.asm: Remove file.
17461         * config/alpha/t-crtbe: Remove file.
17462         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
17463         (LINK_EH_SPEC): New.
17464
17465         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
17466         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
17467         calling constructors.
17468         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
17469
17470         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
17471         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
17472         CRT_END_INIT_DUMMY hack.
17473         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
17474         FORCE_{INIT,FINI}_SECTION_ALIGN.
17475
17476         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
17477         FORCE_{INIT,FINI}_SECTION_ALIGN.
17478
17479         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
17480         invocation sequence.
17481         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
17482
17483         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
17484         (FORCE_CODE_SECTION_ALIGN): New.
17485
17486 2002-01-26  Richard Henderson  <rth@redhat.com>
17487
17488         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
17489
17490 2002-01-26  Richard Henderson  <rth@redhat.com>
17491
17492         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
17493         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
17494
17495 2002-01-26  Kazu Hirata  <kazu@hxi.com>
17496
17497         * config/h8300/h8300.md: Remove bit extraction patterns that
17498         cannot be triggered.
17499         Restrict each bit extraction pattern to a variant on which the
17500         pattern is tested.
17501
17502 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
17503
17504         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
17505
17506 2002-01-26  Kazu Hirata  <kazu@hxi.com>
17507
17508         * config/h8300/h8300.md: Remove bit test patterns that cannot
17509         be triggered.
17510         Restrict each bit test pattern to a variant on which the
17511         pattern is tested.
17512
17513 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17514
17515         * builtins.c (expand_builtin_strncat): Remove redundant check for
17516         INTEGER_CST.
17517
17518 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
17519
17520         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
17521         default setting.
17522         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
17523         existing setting.
17524
17525 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
17526
17527         * dbxout.c (dbxout_init): Use assemble_name rather than just
17528         stripping off the first character.
17529         (dbxout_source_file): Likewise.
17530
17531 2002-01-25  DJ Delorie  <dj@redhat.com>
17532
17533         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
17534         using rtx_equal_p, not by comparing pointers.
17535
17536 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
17537
17538         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
17539         for PIC_OFFSET_TABLE_REGNUM.
17540         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
17541
17542 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
17543
17544         * config.gcc (x86_64-*-freebsd*): New target.
17545         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
17546         value.
17547         (i[34567]86-*-freebsd*): Don't include svr4.h.
17548         * config/i386/freebsd64.h: New file.
17549
17550 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
17551
17552         * config/alpha/x-vms (version): Make static.
17553
17554         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
17555         in previous checkin.
17556
17557         * Makefile.in (install-headers-cp): New target.
17558         * config.gcc (alpha-dec-*vms*): Install headers with
17559         install-headers-cp
17560
17561 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
17562
17563         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
17564         avoid it's copies.
17565
17566 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17567
17568         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
17569         of compare_tree_int.
17570         (expand_builtin_strncat): Likewise.
17571         * c-decl.c (finish_struct): Use tree_low_cst.
17572         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
17573         * tree.c (compare_tree_int): Likewise.
17574
17575 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
17576
17577         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
17578         adjustments even if they are implemented by more than two insns.
17579
17580 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
17581
17582         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
17583         * df.h (struct ref): Kill B.
17584         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
17585
17586         * basic-block.h (PROP_EQUAL_NOTES): New flag.
17587         * flow.c (propagate_one_insn): Use it.
17588         (mark_used_regs): Handle NIL.
17589
17590 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
17591
17592         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
17593         to help folding.
17594
17595 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
17596
17597         * rs6000.md (prefetch): Make address V4SI mode so that the address
17598         is restricted to legitimate form for instruction.
17599
17600 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
17601
17602         * doc/install.texi (xtensa-*-elf): New target.
17603         (xtensa-*-linux*): New target.
17604         * doc/contrib.texi: Add myself.
17605
17606 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
17607
17608         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
17609         purpose register to hold an SImode (or smaller) value.
17610
17611 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
17612
17613         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
17614         registry only.
17615         * crtstuff.c: Likewise.
17616
17617 2002-01-25  Kazu Hirata  <kazu@hxi.com>
17618
17619         * config/h8300/h8300.md (negation patterns): Tighten
17620         predicates to register_operand.
17621
17622 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
17623
17624         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
17625         mode, not Pmode.
17626
17627         * builtins.c (expand_builtin_prefetch): Same.
17628
17629 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17630
17631         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
17632         modes.
17633
17634 2002-01-24  Kazu Hirata  <kazu@hxi.com>
17635
17636         * config/h8300/h8300.c (print_operand): Remove support for
17637         operand character 'A'.
17638         * config/h8300/h8300.md (three anonymous patterns): Replace
17639         operand character 'A' with either 'T' or 'S'.
17640
17641 2002-01-24  Kazu Hirata  <kazu@hxi.com>
17642
17643         * config/h8300/h8300.c (print_operand): Remove support for
17644         operand character 'U'.
17645
17646 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
17647
17648         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
17649
17650 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
17651
17652         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
17653         values to be assigned to the stack pointer.
17654
17655 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
17656
17657         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
17658         to const_double needs to be done right for big-endian systems.
17659
17660 2002-01-24  Jason Merrill  <jason@redhat.com>
17661
17662         PR c++/2432
17663         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
17664         to can_throw_internal.
17665
17666 2002-01-23  Richard Henderson  <rth@redhat.com>
17667
17668         * fold-const.c (fold): Change UINT_MAX test to check vs precision
17669         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
17670
17671 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17672
17673         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
17674         (symGOT2reg): Use them, then set as GOT value as unchanging.
17675         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
17676         as a temporary, if possible.
17677         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
17678         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
17679
17680 2002-01-23  Kazu Hirata  <kazu@hxi.com>
17681
17682         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
17683         accept to accept 0x80 as operands[2].
17684
17685 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17686
17687         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
17688
17689 2002-01-23  Richard Henderson  <rth@redhat.com>
17690
17691         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
17692
17693 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
17694
17695         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
17696         (parmlist_or_identifiers_1): Verify that only a parmlist follows
17697         an attribute.
17698
17699 2002-01-23  Richard Henderson  <rth@redhat.com>
17700
17701         * expr.c (move_by_pieces_1): Extend size before negation.
17702
17703         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
17704         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
17705         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
17706         * config/m68k/t-m68kelf: Likewise.
17707
17708 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
17709
17710         * config/xtensa/elf.h: New file.
17711         * config/xtensa/lib1funcs.asm: New file.
17712         * config/xtensa/lib2funcs.S: New file.
17713         * config/xtensa/linux.h: New file.
17714         * config/xtensa/t-xtensa: New file.
17715         * config/xtensa/xtensa-config.h: New file.
17716         * config/xtensa/xtensa-protos.h: New file.
17717         * config/xtensa/xtensa.c: New file.
17718         * config/xtensa/xtensa.h: New file.
17719         * config/xtensa/xtensa.md: New file.
17720         * config.gcc (xtensa-*-elf*): New target.
17721         (xtensa-*-linux*): New target.
17722         * cse.c (canon_hash): Compare rtx pointers instead of register
17723         numbers.  This is required for the Xtensa port.
17724         * integrate.c (copy_insn_list): Handle case where the static
17725         chain is in memory and the memory address has to be copied to
17726         a register.
17727         * doc/invoke.texi (Option Summary): Add Xtensa options.
17728         (Xtensa Options): New node.
17729         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
17730
17731 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
17732
17733         * diagnostic.c (internal_error): Do ICE suppression only
17734         when ENABLE_CHECKING is not defined.
17735
17736         * c-typeck.c (require_complete_type): Return error_mark_node
17737         if type is error_mark_node.
17738
17739 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
17740
17741         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
17742         -Os and issue a warning.
17743
17744 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
17745
17746         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
17747         current (lack of) need for host configuration by hand.
17748
17749         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
17750         references.  Documentation of some target macros moved from
17751         hostconfig.texi to tm.texi.
17752
17753 2002-01-23  Will Cohen  <wcohen@redhat.com>
17754
17755         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
17756         defined.
17757
17758 2002-01-23  Kazu Hirata  <kazu@hxi.com>
17759
17760         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
17761         operand[3].
17762
17763 2002-01-23  Jason Merrill  <jason@redhat.com>
17764
17765         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
17766
17767         * function.c (assign_parms): Don't put args of inline functions
17768         into registers when not optimizing.
17769
17770 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
17771
17772         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
17773         (prologue_use): New pattern.
17774         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
17775         preference to gen_rtx_USE.
17776         (thumb_expand_prologue): Use gen_prologue_use in preference to
17777         gen_rtx_USE.
17778         (thumb_expand_epilogue): Use gen_prologue_use in preference to
17779         gen_rtx_USE.
17780
17781 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
17782
17783         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
17784
17785 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17786
17787         PR c/3504
17788         * doc/extend.texi: Correct documentation of __alignof__.
17789
17790 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
17791
17792         * params.h: Rename arguments of DEFPARAM so that it will be
17793         recognized as a translation keyword.
17794
17795 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17796
17797         * extend.texi: Document altivec functions.
17798         Fix N-bit adjectives in X86 builtin documentation.
17799
17800 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
17801
17802         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
17803         auto_inc_dec values.
17804
17805 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
17806
17807         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
17808         after backslash.
17809         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
17810
17811 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
17812
17813         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
17814
17815 2002-01-22  Richard Henderson  <rth@redhat.com>
17816
17817         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
17818         copy_insn not copy_rtx.
17819
17820 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
17821
17822         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
17823         "nonzero" as that might add "1" bits.  Ensure "constop" is
17824         properly sign extened.
17825         (force_to_mode): Tweak for sign extended constop.
17826
17827 2002-01-22  Richard Henderson  <rth@redhat.com>
17828
17829         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
17830         for_each_rtx instead of assuming we're already looking at the MEM.
17831         (split_small_symbolic_mem_operand): Likewise.
17832         * config/alpha/alpha.h (PREDICATE_CODES): Update.
17833         * config/alpha/alpha.md (small symbolic memory splitters): Update.
17834
17835 2002-01-22  Richard Henderson  <rth@redhat.com>
17836
17837         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
17838         sequence number for the literal.
17839         (divmoddi_internal_er): Likewise.
17840
17841 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17842
17843         PR java/4972
17844         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
17845         in LIBICONV variable.
17846         * configure: Regenerated.
17847
17848 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
17849
17850         * dependence.c (build_def_use): Remove array_idx.
17851
17852         * dwarfout.c (last_filename): Remove.
17853         (output_compile_unit_die): Remove last_filename.
17854
17855 2002-01-22  Roger Sayle  <roger@eyesopen.com>
17856             Richard Henderson  <rth@redhat.com>
17857
17858         PR opt/3640
17859         * fold-const.c (fold): Optimize unsigned comparisons against
17860         UINT_MAX (and similar unsigned constants).
17861
17862 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
17863
17864         * Makefile.in (loop.o): Depend on OPTABS_H.
17865         * loop.c (emit_prefetch_instructions): Check the prefetch operand
17866         against the predicate.
17867
17868         PR target/5379
17869         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
17870         for the address operand.
17871
17872 2002-01-22  Richard Henderson  <rth@redhat.com>
17873
17874         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
17875
17876 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17877
17878         PR other/5450
17879         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
17880         preprocessor flags.
17881
17882 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
17883
17884         * config.gcc (x86_64-*-netbsd*): New target.
17885         * config/i386/netbsd64.h: New file.
17886
17887 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17888
17889         * regrename.c (kill_value): Fix typo.
17890
17891 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17892
17893         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
17894
17895         * config/rs6000/rs6000.h: Same.
17896
17897         * function.c (instantiate_virtual_regs): Remove
17898         STARTING_FRAME_PHASE.
17899         (assign_stack_local_1): Same.
17900         Calculate frame phase.
17901
17902 2002-01-22  Nick Clifton  <nickc@redhat.com>
17903
17904         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
17905         variable declaration to outer scope in order to simplify
17906         future extensions.
17907         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
17908         arm_hard_regno_mode_ok.
17909         * config/arm/arm-protos.h: Add a prototype for
17910         arm_hard_regno_mode_ok.
17911         * config/arm/arm.c (soft_df_operand): Remove now redundant
17912         check for DImode values using IP_REGNUM.
17913         (nonimmediate_soft_df_operand): Remove now redundant check for
17914         DImode values using IP_REGNUM.
17915         (arm_hard_regno_mode_ok): New function. New check: make sure
17916         that DImode values are not stored in IP_REGNUM.
17917
17918         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
17919         note with a USE.
17920         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
17921
17922 2002-01-22  Jason Merrill  <jason@redhat.com>
17923
17924         * c-semantics.c (genrtl_compound_stmt): Only check nesting
17925         consistency if this COMPOUND_STMT is scoped.
17926
17927 2002-01-22  Kazu Hirata  <kazu@hxi.com>
17928
17929         * predict.c: Fix formatting.
17930         * print-tree.c: Likewise.
17931         * protoize.c: Likewise.
17932         * real.h: Likewise.
17933         * rtl.h: Likewise.
17934         * sbitmap.h: Likewise.
17935         * scan.c: Likewise.
17936         * sched-deps.c: Likewise.
17937         * sched-vis.c: Likewise.
17938         * sdbout.c: Likewise.
17939         * sibcall.c: Likewise.
17940         * ssa.c: Likewise.
17941         * ssa-ccp.c: Likewise.
17942         * ssa-dce.c: Likewise.
17943         * stmt.c: Likewise.
17944         * stor-layout.c: Likewise.
17945         * system.h: Likewise.
17946
17947 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17948
17949         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
17950         if fits in bounds of base type.
17951
17952         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
17953         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
17954         (add_bound_info, default): If can't find a context, make a
17955         SAVE_EXPR.
17956         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
17957
17958 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
17959
17960         * c-typeck.c (parser_build_binary_op): If result from
17961         build_binary_op is ERROR_MARK just return error_mark_node without
17962         further processing.
17963
17964 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
17965
17966         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
17967         Split a.out-specific bits into...
17968         * config/netbsd-aout.h: ...this.
17969         * config/netbsd-elf.h: New file.
17970         * config/alpha/netbsd-elf.h: Remove.
17971         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
17972         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
17973         (STARTFILE_SPEC): Remove redundant definition.
17974         (ENDFILE_SPEC): Likewise.
17975         (LINK_SPEC): Likewise.
17976         (CPP_SPEC): Likewise.
17977         (ASM_SPEC): Likewise.
17978         (LIB_SPEC): Likewise.
17979         (SWITCH_TAKES_ARG): Likewise.
17980         (TARGET_MEM_FUNCTIONS): Likewise.
17981         (CPP_PREDEFINES): Redefine.
17982         (ASM_FINAL_SPEC): Remove redefinition.
17983         (ASM_COMMENT_START): Redefine.
17984         (FUNCTION_PROFILER): Define.
17985         (TARGET_VERSION): Redefine.
17986         Comment and formatting cleanup.
17987         * config/i386/netbsd.h: Include <netbsd-aout.h>.
17988         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
17989         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
17990         big- or little-endian.
17991         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
17992         * config.gcc (*-*-netbsd*): Add definitions common to all
17993         NetBSD configs.
17994         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
17995         gnu_ld definitions.  Add netbsd-elf.h to and remove
17996         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
17997         tmake_file, and don't lose previous tmake_file contents.
17998         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
17999         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
18000         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
18001         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
18002         (mipsel-*-netbsd*): Rename this to...
18003         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
18004         mips/little.h to tm_file for mips*el-*.
18005         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
18006         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
18007         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
18008
18009 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18010
18011         * pa-protos.h (reg_before_reload_operand): New function prototype.
18012         * pa.c (reg_before_reload_operand): New function implementation.
18013         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
18014         contraints to "*m".
18015
18016 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18017
18018         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
18019
18020 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18021
18022         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
18023         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
18024         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
18025         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
18026         (ENDFILE_SPEC): Undefine.
18027         (STARTFILE_SPEC): Redefine for PA.
18028
18029 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18030
18031         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
18032
18033 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
18034
18035         * config.gcc: Add entries to supported PowerPC --with-cpu
18036         types.
18037
18038 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
18039
18040         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
18041         true for 64-bit mode only SSE registers in 32-bit mode.
18042
18043 2002-01-21  Kazu Hirata  <kazu@hxi.com>
18044
18045         * unwind-dw2.c: Fix formatting.
18046         * unwind-dw2-fde.c: Likewise.
18047         * unwind-dw2-fde.h: Likewise.
18048         * unwind-pe.h: Likewise.
18049         * varasm.c: Likewise.
18050         * varray.h: Likewise.
18051
18052 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
18053
18054         Remove workaround for register stack overwrite bug in mmix.
18055         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
18056         support for TARGET_REG_STACK_FILL_BUG.
18057         * config/mmix/mmix.h: Remove member has_call_without_parameters.
18058         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
18059         Delete.
18060         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
18061         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
18062         -mno-reg-stack-fill-bug-workaround.
18063         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
18064         machine member has_call_without_parameters.
18065         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
18066         -mreg-stack-fill-bug-workaround and
18067         -mno-reg-stack-fill-bug-workaround.
18068         (MMIX Options): Ditto.
18069
18070 2002-01-21  Kazu Hirata  <kazu@hxi.com>
18071
18072         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
18073         as appropriate.
18074         Remove redundant code.
18075
18076 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
18077
18078         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
18079         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
18080         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
18081         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
18082         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
18083         out target macro definitions and non-target-specific comments
18084         mostly taken from old versions of the manual.
18085
18086 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18087
18088         * config/h8300/h8300.h: Fix comment formatting.
18089         * config/ia64/aix.h: Likewise.
18090         * config/ia64/ia64-protos.h: Likewise.
18091         * config/ia64/ia64.c: Likewise.
18092         * config/ia64/ia64.h: Likewise.
18093         * config/ia64/ia64intrin.h: Likewise.
18094         * config/ia64/linux.h: Likewise.
18095         * config/ia64/unwind-aix.c: Likewise.
18096         * config/ia64/unwind-ia64.c: Likewise.
18097
18098 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18099
18100         * config/h8300/h8300.c: Revise comments about shift code.
18101
18102 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18103
18104         * config/h8300/h8300.c (function_arg): Update a comment.
18105
18106 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18107
18108         * config/h8300/h8300.md: Update the comments at the beginning
18109         of the file.
18110
18111 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18112
18113         * config/i370/i370.c: Fix comment formatting.
18114         * config/i370/i370.h: Likewise.
18115         * config/i370/i370.md: Likewise.
18116         * config/i370/linux.h: Likewise.
18117
18118 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18119
18120         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
18121
18122         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
18123         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
18124         in incomplete case.
18125
18126 2002-01-20  Graham Stott  <grahams@redhat.com>
18127
18128         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
18129
18130 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18131
18132         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
18133
18134 2002-01-19  Tom Rix  <trix@redhat.com>
18135
18136         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
18137
18138 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
18139
18140         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
18141
18142         * function.c (assign_stack_local_1): Adjust x_frame_offset with
18143         STARTING_FRAME_PHASE.
18144         (STARTING_FRAME_PHASE): New.
18145         (instantiate_virtual_regs): Check saneness of
18146         STARTING_FRAME_PHASE.
18147
18148         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
18149
18150 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
18151
18152         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
18153
18154 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18155
18156         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
18157         be used for bootstrapping GCC 3.0.
18158
18159 2002-01-18  Kazu Hirata  <kazu@hxi.com>
18160
18161         * config/h8300/h8300.md: Fix an insn length.
18162
18163 2002-01-18  Kazu Hirata  <kazu@hxi.com>
18164
18165         * bitmap.h: Fix comment formatting.
18166         * combine.c: Likewise.
18167         * cppfiles.c: Likewise.
18168         * c-pragma.h: Likewise.
18169         * c-typeck.c: Likewise.
18170         * df.c: Likewise.
18171         * dwarf2out.c: Likewise.
18172         * function.c: Likewise.
18173         * gcc.c: Likewise.
18174         * genattrtab.c: Likewise.
18175         * gthr-win32.h: Likewise.
18176         * haifa-sched.c: Likewise.
18177         * predict.c: Likewise.
18178         * rtlanal.c: Likewise.
18179         * rtl.h: Likewise.
18180         * unwind-dw2-fde.h: Likewise.
18181         * unwind-pe.h: Likewise.
18182         * vmsdbgout.c: Likewise.
18183
18184 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18185
18186         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
18187         if type_required and passed decl.
18188
18189 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
18190
18191         * config.gcc (cpu_type): Include altivec.h in powerpc
18192         extra_headers.
18193         Same for darwin.
18194
18195         * config/rs6000/altivec.h: New.
18196
18197 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
18198
18199         * doc/install.texi (*-ibm-aix*): Update assembler and exception
18200         handling information.
18201         * doc/trouble.texi (Interoperation): Add libstdc++ information
18202         for AIX.
18203         (Misunderstandings): Add template instantiation and static template
18204         member information for AIX.
18205
18206 2002-01-17  Jason Merrill  <jason@redhat.com>
18207
18208         * dbxout.c (dbxout_type): Support const and volatile.
18209
18210         * except.c (add_partial_entry): Remove backwards compatibility code.
18211         (end_protect_partials): Likewise.
18212
18213 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
18214
18215         * config/ia64/ia64.md (prologue_use): New.
18216         * config/ia64/ia64.c (ia64_expand_prologue): Use
18217         gen_prologue_use instead of gen_rtx_USE.
18218         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
18219         as CODE_FOR_pred_rel_mutex.
18220         (ia64_sched_reorder2): Likewise.
18221
18222 2002-01-16  Eric Christopher  <echristo@redhat.com>
18223
18224         * config/mips/r3900.h: Reformat.
18225         (SUBTARGET_CPP_SIZE_SPEC): Remove.
18226         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
18227         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
18228         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
18229         * config/mips/t-elf: Remove mips3 multilib.
18230
18231 2002-01-16  H.J. Lu <hjl@gnu.org>
18232
18233         * config/mips/linux.h: Include "mips/abi64.h".
18234
18235 2002-01-16  H.J. Lu <hjl@gnu.org>
18236
18237         * config/mips/t-linux: New.
18238
18239         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
18240
18241         * config/mips/linux.h: Don't include "gofast.h".
18242         (INIT_SUBTARGET_OPTABS): Removed.
18243
18244 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18245
18246         * config/h8300/h8300-protos.h: Replace emit_a_shift with
18247         output_a_shift.
18248         * config/h8300/h8300.c: Likewise.
18249         * config/h8300/h8300.md: Likewise.
18250
18251 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18252
18253         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
18254         spaces after an opcode name.
18255         (pushqi1_h8300hs): Likewise.
18256         (pushhi1_h8300hs): Likewise.
18257
18258 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18259
18260         * doc/extend.texi: Replace "option" with "attribute"
18261         appropriately.
18262
18263 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
18264
18265         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
18266         (and:DI () (const_int -8)).
18267         (split_small_symbolic_mem_operand): Split
18268         (mem (and:DI () (const_int -8)).
18269
18270 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
18271
18272         PR target/5309:
18273         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
18274         same way as TYPE_IMUL.
18275         (ultrasparc_sched_reorder): Likewise.
18276         * config/sparc/sparc.md (type): Add comment to update
18277         ultrasparc_sched_reorder when making changes.
18278
18279 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18280
18281         * doc/invoke.texi: Change the dump file name of block
18282         reordering pass from 28.bbro to 29.bbro.
18283         Mention -dk option.
18284
18285 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
18286
18287         * i386.md (minsf splitter): Fix pasto.
18288
18289 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
18290
18291         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
18292         to frame pointer initialisation instruction.
18293         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
18294         initialisation instruction.
18295         (soft_df_operand): Do not accept the IP register.
18296         (nonimmediate_soft_df_operand): Do not accept the IP register.
18297
18298 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
18299
18300         PR target/5357:
18301         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
18302         MASK_V8 being both set.
18303
18304 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
18305
18306         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
18307         insn for GOT register; add REG_MAYBE_DEAD notes instead.
18308         config/s390/s390.md (call, call_value): Add GOT register to
18309         CALL_INSN_FUNCTION_USAGE where needed.
18310         (call_exp, call_value_exp): New.
18311
18312 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
18313
18314         * config/arm/arm.c: General formatting tidy up.
18315
18316 2002-01-16  Graham Stott  <grahams@redhat.com>
18317
18318         * calls.c (try_to_integrate): Use "(size_t)" intermediate
18319         cast and when casting an integer literal to "rtx" pointer.
18320         (expand_call): Likewise.
18321         * flow.c (try_pre_increment): Likewise.
18322         (find_use_as_address): Likewise.
18323         * integrate.c (expand_iline_function): Likewise.
18324         * regmove.c (try_auto_increment): Likewise.
18325
18326 2002-01-16  Graham Stott  <grahams@redhat.com>
18327
18328         * sched-rgn.c (passed): Use sbitmap_free.
18329         (header): Likewise.
18330         (inner): Likewise.
18331         (in_queue): Likewise.
18332         (in_stack): Likewise.
18333
18334 2002-01-15  Eric Christopher  <echristo@redhat.com>
18335
18336         * flow.c (propagate_one_insn): Change to use fatal_insn.
18337
18338 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18339
18340         * expmed.c (extract_fixed_bit_field): Remove unused code.
18341         * system.h: Poison SLOW_ZERO_EXTEND.
18342         * doc/tm.texi: Remove.
18343         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
18344         * config/arm/arm.h: Likewise.
18345         * config/avr/avr.h: Likewise.
18346         * config/clipper/clipper.h: Likewise.
18347         * config/convex/convex.h: Likewise.
18348         * config/d30v/d30v.h: Likewise.
18349         * config/dsp16xx/dsp16xx.h: Likewise.
18350         * config/elxsi/elxsi.h: Likewise.
18351         * config/fr30/fr30.h: Likewise.
18352         * config/h8300/h8300.h: Likewise.
18353         * config/i370/i370.h: Likewise.
18354         * config/i386/i386.h: Likewise.
18355         * config/m68k/m68k.h: Likewise.
18356         * config/mips/mips.h: Likewise.
18357         * config/ns32k/ns32k.h: Likewise.
18358         * config/pdp11/pdp11.h: Likewise.
18359         * config/pj/pj.h: Likewise.
18360         * config/s390/s390.h: Likewise.
18361         * config/sh/sh.h: Likewise.
18362         * config/stormy16/stormy16.h: Likewise.
18363         * config/v850/v850.h: Likewise.
18364         * config/vax/vax.h: Likewise.
18365         * config/we32k/we32k.h: Likewise.
18366
18367 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
18368
18369         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
18370         (altivec_lvsl): Change constraint to b.
18371         (altivec_lvsr): Same.
18372         (altivec_lvebx): Same.
18373         (altivec_lvehx): Same.
18374         (altivec_lvewx): Same.
18375         (altivec_lvxl): Same.
18376         (altivec_lvx): Same.
18377         (altivec_stvx): Add parallel.
18378         (altivec_stvxl): Same.
18379         (altivec_stvehx): Same.
18380         (altivec_stvebx): Same.
18381         (altivec_stvebx): Same.
18382
18383 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
18384
18385         * config.gcc: Change altivec.h to altivec-defs.h.
18386
18387         * config/rs6000/altivec.h: Delete.
18388
18389         * config/rs6000/altivec-defs.h: Add.
18390
18391 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18392
18393         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
18394         and UMOD modes.
18395
18396         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
18397         less than or equal to eight bytes.
18398
18399         * vax.md (andsi3): Remove constraints and change SET destination
18400         operand type to nonimmediate_operand.
18401         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
18402         when it is a CONST_INT.
18403
18404 2002-01-15  Jason Merrill  <jason@redhat.com>
18405
18406         * c-common.def (FILE_STMT): New code.
18407         * c-common.c (statement_code_p): It's a statement.
18408         * c-common.h (stmt_tree_s): Add x_last_filename.
18409         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
18410         (last_expr_filename): New macro.
18411         * c-semantics.c (begin_stmt_tree): Initialize it.
18412         (add_stmt): If the filename changed, also insert a
18413         FILE_STMT.
18414         (expand_stmt): Handle seeing one.
18415
18416 2002-01-15  Eric Christopher  <echristo@redhat.com>
18417
18418         * flow.c (propagate_one_insn): Add error message and print out
18419         insn for debugging.
18420
18421 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
18422
18423         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
18424         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
18425         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
18426         TRAMPOLINE_ALIGNMENT.
18427         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
18428         to be in bits.
18429         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
18430         PCC_BITFIELD_TYPE_MATTERS.
18431         * config/interix.h (STDC_VALUE): Remove.  Use
18432         STDC_0_IN_SYSTEM_HEADERS.
18433         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
18434         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
18435         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
18436
18437 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18438
18439         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
18440         not work on this platform currently.
18441
18442 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
18443
18444         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
18445         readonly_warning in _().
18446
18447 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
18448
18449         * gcc.c (delete_if_ordinary): Backout previous change.
18450
18451 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18452
18453         * config/h8300/h8300.c (print_operand): Remove support for
18454         unused operand characters.
18455
18456         * read-rtl.c: Fix formatting.
18457         * real.c: Likewise.
18458         * recog.c: Likewise.
18459         * regclass.c: Likewise.
18460         * regmove.c: Likewise.
18461         * reg-stack.c: Likewise.
18462         * reload1.c: Likewise.
18463         * rtlanal.c: Likewise.
18464
18465 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18466
18467         * config/i386/i386.c: Fix formatting.
18468
18469 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
18470
18471         * c-typeck.c (process_init_element): Don't save_expr
18472         COMPOUND_LITERAL_EXPR if just its initializer will be used.
18473
18474 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
18475
18476         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
18477         emit optional traceback table if optimize_size or TARGET_ELF.
18478         * config/rs6000/rs6000.md (prefetch): New.
18479
18480 2002-01-15  Andreas Jaeger  <aj@suse.de>
18481
18482         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
18483
18484 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18485
18486         * mips-tfile.c: Fix formatting.
18487
18488 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
18489
18490         * unroll.c (final_reg_note_copy): Fix previous commit.
18491
18492 2002-01-14  Kazu Hirata  <kazu@hxi.com>
18493
18494         * config/h8300/h8300-protos.h: Remove the prototype for
18495         eq_operator.
18496         * config/h8300/h8300.c (eq_operator): Remove.
18497
18498 2002-01-14  Richard Henderson  <rth@redhat.com>
18499
18500         * config/i386/i386.md (prefetch): Tidy.
18501         (prefetch_3dnow): Fix locality operand.
18502
18503 2002-01-14  Richard Henderson  <rth@redhat.com>
18504
18505         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
18506         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
18507
18508 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
18509
18510         * reload1.c (reload_combine): Pass reg_sum replacement through
18511         copy_rtx in loop performing multiple changes.
18512
18513 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
18514
18515         * except.c (remove_unreachable_regions): New.
18516         (free_eh_status): Clear exception_handler_labels.
18517         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
18518         (find_exception_handler_labels): Don't add the same label more than
18519         once.
18520         (remove_exception_handler_label): Don't die if
18521         find_exception_handler_labels hasn't been called for the current
18522         function yet.
18523
18524 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
18525
18526         * toplev.c (rest_of_compilation): Rebuild jump labels after
18527         gcse.
18528
18529 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
18530
18531         * doc/extend.texi: Move documentation of X86 built-in functions
18532         here.
18533         * doc/invoke.texi: From here.
18534         * doc/sourcebuild.texi: Document location of documentation for
18535         machine built-in functions.
18536
18537 2002-01-13  Christopher Faylor  <cgf@redhat.com>
18538
18539         * cppfiles.c (TEST_THRESHOLD): New macro.
18540         (SHOULD_MMAP): Ditto.
18541         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
18542         be used.
18543
18544 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
18545
18546         * unroll.c (final_reg_note_copy): Properly handle
18547         REG_LABEL
18548         (unroll_loops): Fix LOOP_CONDITION heuristics.
18549
18550 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
18551
18552         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
18553         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
18554
18555 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
18556
18557         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
18558         threaded loop.
18559
18560 2002-01-14  Tom Rix  <trix@redhat.com>
18561
18562         * config/rs6000/rs6000.md: Fix typo with sradi.
18563
18564 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
18565
18566         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
18567         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
18568         (clrstrdi, clrstrsi): Adapt callers.
18569
18570         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
18571
18572         (movti splitter): Never use register 0 as base register.
18573
18574 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
18575
18576         * combine.c (simplify_shift_const): Always generate new rtx
18577         for shift expression instead of reusing given expression.
18578
18579 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18580
18581         * config/alpha/alpha.c (alpha_expand_mov): Don't call
18582         alpha_legitimize_address unless mode is Pmode.
18583
18584 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
18585
18586         * doc/md.texi (Modifiers): Document the '*' constraint for the
18587         user.
18588
18589         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
18590         * doc/extend.texi (Function Attributes): 'interrupt' is valid
18591         for xstormy16 too.
18592
18593 2002-01-13  Richard Henderson  <rth@redhat.com>
18594
18595         * reload.c (find_reloads): Use a hard reg destination as reload reg
18596         for an input reload of the source.
18597
18598 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18599
18600         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
18601         more generic.
18602
18603 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
18604
18605         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18606         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18607
18608         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
18609
18610 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18611
18612         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
18613
18614 2002-01-12  Tom Rix  <trix@redhat.com>
18615
18616         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
18617         TARGET_POWERPC64.
18618
18619 2002-01-12  Richard Henderson  <rth@redhat.com>
18620
18621         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
18622
18623         * doc/invoke.texi: Update Alpha options.
18624
18625         * doc/invoke.texi: Update i386 built-in function lists.
18626
18627 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
18628
18629         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
18630         referencing outside.
18631
18632 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18633
18634         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
18635         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
18636         offsets, and change line folding.
18637         * optabs.c (expand_binop): Remove warnings.
18638         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
18639
18640 2002-01-12  Graham Stott <grahams@redhat.com>
18641
18642         * attribs.c (handle_deprecated_attribute): constify WHAT.
18643         * diagnostic.c (warn_deprecated_use): Add braces, fixes
18644         dangling else warning and constify WHAT.
18645         * except.h (struct function, struct inline_remap): Move
18646         struct tag forward defs before all prototypes.
18647         (duplicate_eh_regions): Whitespace.
18648
18649 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
18650
18651         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18652         MODE_BASE_REG_CLASS.
18653         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
18654
18655 2002-01-12  Richard Henderson  <rth@redhat.com>
18656
18657         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
18658         (ix86_expand_vector_move): New.
18659         (bdesc_2arg): Remove andps, andnps, orps, xorps.
18660         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
18661         Remove old prefetch builtins.  Special case the logicals removed above.
18662         (ix86_expand_builtin): Likewise.
18663         (safe_vector_operand): Use V4SFmode, not TImode.
18664         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
18665         (ix86_expand_timode_binop_builtin): New.
18666         * config/i386/i386-protos.h: Update.
18667         * config/i386/i386.h (enum ix86_builtins): Update.
18668         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
18669         Use ix86_expand_vector_move in vector move expanders.
18670         (movti_internal, movti_rex64): Add xorps alternative.
18671         (sse_clrv4sf): Rename and adjust from sse_clrti.
18672         (prefetch): Don't work so hard.
18673         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
18674         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
18675         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
18676
18677 2002-01-11  Richard Henderson  <rth@redhat.com>
18678
18679         * config/i386/mmintrin.h: New file.
18680         * config/i386/xmmintrin.h: New file.
18681         * config.gcc (i?86-*-*): Add extra_headers.
18682         * simplify-rtx.c (simplify_unary_operation): Handle saturating
18683         truncation codes.
18684         (simplify_binary_operation): Handle saturating arithmetic codes.
18685         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
18686         not the lowpart subreg.
18687         (ix86_expand_builtin): Return a TImode dummy register instead of 0
18688         on error.
18689         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
18690
18691 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18692
18693         * conflict.c (conflict_graph_compute): Free regsets when finished.
18694         * ssa.c (compute_coalesced_reg_partition): Likewise.
18695
18696 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18697
18698         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
18699         every where we allocate a register.
18700
18701 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18702
18703         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
18704         * lcm.c (compute_earliest, compute_farthest): Likewise.
18705
18706 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
18707
18708         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
18709
18710 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
18711
18712         * doc/rtl.texi (Insns): Fix 2 typos.
18713
18714 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
18715
18716         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
18717         options.  Use @table @gcctabopt for MMIX options.  Add index
18718         entries for MMIX options.  Start new paragraph with first
18719         heading of the machine-dependent options.
18720
18721 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18722
18723         PR other/5299
18724         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
18725         * combine.c (force_to_mode): Same.
18726         * reload1.c (clear_reload_reg_in_use): Same.
18727
18728 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
18729
18730         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
18731         and 'subtargets'.
18732
18733 2002-01-11  Andreas Jaeger  <aj@suse.de>,
18734             Brad Lucier <lucier@math.purdue.edu>
18735
18736         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
18737         mcpu.
18738
18739 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
18740
18741         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
18742         Protect with IN_LIBGCC.
18743         (LINK_EH_SPEC): Add required trailing space.
18744
18745 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
18746
18747         * c-tree.h: Move function declarations so that they are listed
18748         under the filename which contains them.
18749         (check_identifier, finish_decl_top_level,
18750         lookup_name_current_level_global, shadow_record_fields): Remove.
18751
18752 2002-01-11  Andreas Jaeger  <aj@suse.de>
18753
18754         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
18755         march.
18756
18757 2002-01-10  Richard Henderson  <rth@redhat.com>
18758
18759         * config/alpha/alpha.c (print_operand): Add 'J'.
18760         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
18761         new operand with the sequence number for the lituse.  When splitting
18762         the insns, use gen_movdi_er_high_g and generate a sequence number.
18763         (gen_movdi_er_high_g): Print the sequence number if non-zero.
18764
18765 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
18766
18767         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
18768         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
18769         stvxl.
18770         (altivec_expand_builtin): Same.
18771         (altivec_expand_stv_builtin): New.
18772
18773         * config/rs6000/rs6000.h (rs6000_builtins): Same.
18774
18775         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
18776         ("altivec_lvehx"): New.
18777         ("altivec_lvewx"): New.
18778         ("altivec_lvxl"): New.
18779         ("altivec_lvx"): New.
18780         ("altivec_stvx"): New.
18781         ("altivec_stvebx"): New.
18782         ("altivec_stvehx"): New.
18783         ("altivec_stvewx"): New.
18784         ("altivec_stvxl"): New.
18785
18786 2002-01-10  Richard Henderson  <rth@redhat.com>
18787
18788         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
18789         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
18790         care not to delete instructions twice.
18791
18792 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
18793
18794         * toplev.c: Don't declare environ (it's not used anywhere).
18795         * configure.in: Don't check for declaration of environ.
18796         * config/i386/xm-mingw32.h: Don't #define environ.
18797         * config.in, configure: Regenerate.
18798
18799 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
18800
18801         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
18802         * configure: Regenerate.
18803
18804         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
18805         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
18806         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
18807         alpha/xm-vms.h.
18808         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
18809         LIMITS_H_TEST here, not in m68k/x-next.
18810         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
18811         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
18812
18813         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
18814         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
18815         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
18816
18817         * config/i386/x-djgpp: Renamed i386/t-djgpp.
18818         * config/m88k/x-dolph: Renamed m88k/t-dolph.
18819         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
18820         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
18821         replacement of quadlib.asm with quadlib.c.
18822
18823         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
18824         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
18825         config/rs6000/xm-beos.h: Delete file.
18826
18827         * config.gcc: Update to match above changes.
18828
18829 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18830
18831         * config/h8300/h8300.h: Fix comment typos.
18832         * config/h8300/h8300.md: Likewise.
18833         * config/h8300/lib1funcs.asm: Likewise.
18834
18835 2002-01-10  Dale Johannesen  <dalej@apple.com>
18836
18837         PR optimization/5269
18838         * unroll.c (precondition_loop_p): Make *increment be the correct
18839         sign when n_iterations known, to avoid confusing caller.
18840
18841 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18842
18843         * doc/extend.texi (deprecated): Fix a typo.
18844
18845 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
18846
18847         * basic-block.h (update_br_prob_note): Declare.
18848         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
18849         (try_forward_edges): Care negative frequencies and update note.
18850         (outgoing_edges_match): Tweek conditional merging heuristics.
18851         (try_crossjump_to_edge): use update_br_prob_note.
18852         * cfglayout.c (fixup_reorder_chain): Likewise.
18853         * cfrtl.c (update_br_prob_note): New.
18854         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
18855
18856         * i386.c (ix86_decompose_address): Return -1 if address contains
18857         shift.
18858         (legitimate_address_p): Require ix86_decompose_address to return 1.
18859
18860         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
18861         (cprop_insn): Likewise.
18862
18863 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18864
18865         * toplev.c: Fix formatting.
18866         * tree.c: Likewise.
18867         * tree-dump.c: Likewise.
18868         * unroll.c: Likewise.
18869         * unwind-dw2.c: Likewise.
18870         * unwind-dw2-fde.c: Likewise.
18871         * unwind-dw2-fde-glibc.c: Likewise.
18872         * unwind-sjlj.c: Likewise.
18873
18874 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
18875
18876         * doc/invoke.texi: Document PDP-11 options.
18877
18878 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18879
18880         * config/h8300/h8300.h: Fix formatting.
18881
18882 2002-01-10  Ira Ruben   <ira@apple.com>
18883
18884         Add __attribute__ ((deprecated)).
18885         * extend.texi: Document __attribute__ ((deprecated)).
18886         * invoke.texi: Document -Wno-deprecated-declarations.
18887         * testsuite/g++.dg/other/deprecated.C: New C++ test.
18888         * testsuite/gcc.dg/deprecated.c: New C test.
18889         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
18890         (c_common_attribute_table): Add "deprecated" entry.
18891         (handle_deprecated_attribute): New function.
18892         * c-decl.c (deprecated_states): New enum.
18893         deprecated_state: State of "deprecated" handling.
18894         (start_decl): Set deprecated_state based on attributes.
18895         (grokdeclarator): Test for deprecated uses, propagate attribute.
18896         * c-typeck.c (build_component_ref): Test for deprecated fields.
18897         (build_external_ref): Test for deprecated primaries.
18898         * diagnostic.c (warn_deprecated_use) New function to issue
18899         warnings about __attribute__ ((depricated)) references.
18900         * flags.h (warn_deprecated_decl): Extern declared for
18901         -W[no-]deprecated-declarations option.
18902         * print-tree.c (print_node): Show deprecated flag status.
18903         * toplev.c (warn_deprecated_decl): Defined.
18904         (W_options): Added "deprecated-declaration".
18905         * toplev.h (warn_deprecated_use): Extern declared.
18906         * tree.h (struct tree_common): Define deprecated_flag.
18907         (TREE_DEPRECATED): New macro to access flag.
18908         * cp/call.c (build_call): Test for deprecated calls.
18909         * cp/class.c (add_implicitly_declared_members): Set global
18910         flag to tell grokdeclarator to not issue deprecated warnings.
18911         * cp/cp-tree.h: Add extern for adding_implicit_members.
18912         * cp/decl.c (deprecated_states): New enum.
18913         (start_decl): Set deprecated_state based on attributes.
18914         (grokdeclarator): Test for deprecated uses, propagate attribute.
18915         * cp/lex.c (do_identifier): Test for deprecated primaries.
18916         * cp/typeck.c (build_component_ref): Test for deprecated fields.
18917
18918 2002-01-10  Ira Ruben   <ira@apple.com>
18919
18920         Fix to assign attributes to inline member functions.
18921         * cp/decl.c (start_method): Handle attrlist.
18922
18923 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18924
18925         * combine.c (expand_field_assignment): Use subreg_lsb().
18926
18927 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
18928
18929         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
18930         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
18931         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
18932         Recurse for any operand of AND as long as constant is non-zero.
18933
18934 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18935
18936         * config/h8300/h8300.md: Remove constraints from expanders.
18937
18938 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18939
18940         * varasm.c: Fix formatting.
18941         * varray.c: Likewise.
18942         * vmsdbgout.c: Likewise.
18943         * xcoffout.c: Likewise.
18944
18945 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
18946
18947         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
18948         update edge probabilities to match.
18949
18950 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
18951
18952         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
18953         dependencies.
18954         * doc/languages.texi, doc/sourcebuild.texi: New files.
18955         * doc/configfiles.texi: Make a subsubsection.  Update.
18956         * doc/configterms.texi: Add @node.  Remove warning that this isn't
18957         instructions for building GCC.
18958         * doc/makefile.texi: Make a subsection.
18959         * doc/gccint.texi: Update.
18960
18961 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
18962
18963         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
18964
18965 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
18966
18967         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
18968
18969 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
18970
18971         * optabs.c (expand_fix): Look for wider integer modes first.
18972
18973         * i386.md (mov?f): Avoid the fake const double trick for medium
18974         memory model.
18975         (min?f*/max?f*): Prohibit memory operands for i387 variant.
18976         (fop_df_4): Disable for SSE compilation.
18977
18978 2002-01-10  Graham Stott  <grahams@redhat.com>
18979
18980         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
18981         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
18982
18983 2002-01-10  Richard Henderson  <rth@redhat.com>
18984
18985         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
18986
18987 2002-01-10  Richard Henderson  <rth@redhat.com>
18988
18989         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
18990         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
18991
18992 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18993
18994         * combine.c (can_combine_p): Fix a comment typo.
18995
18996 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
18997
18998         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
18999         empty list correctly.  Change loop index $t to $f for
19000         consistency with rest of Makefile.
19001
19002 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
19003
19004         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
19005         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19006
19007         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
19008         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
19009         (altivec_init_builtins): Same.
19010         (altivec_expand_unop_builtin): Return NULL_RTX on error.
19011         (altivec_expand_binop_builtin): Same.
19012         (altivec_expand_ternop_builtin): Same.
19013         (bdesc_dst): New.
19014
19015         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
19016         ("altivec_vctuxs"): Fix typo.
19017         ("altivec_vnmsubfp"): Same.
19018         ("altivec_dssall"): New.
19019         ("altivec_mfvscr"): New.
19020         ("altivec_dss"): New.
19021         ("altivec_lvsl"): New.
19022         ("altivec_lvsr"): New.
19023         ("altivec_dstt"): New.
19024         ("altivec_dstst"): New.
19025         ("altivec_dststt"): New.
19026         ("altivec_dst"): New.
19027
19028         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
19029         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19030
19031 2002-01-09  Richard Henderson  <rth@redhat.com>
19032
19033         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
19034
19035 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
19036
19037         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
19038         function.
19039         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
19040         prototype.
19041         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
19042
19043 2002-01-09  Kazu Hirata  <kazu@hxi.com>
19044
19045         * read-rtl.c: Fix formatting.
19046         * real.c: Likewise.
19047         * regclass.c: Likewise.
19048         * regrename.c: Likewise.
19049         * reg-stack.c: Likewise.
19050         * reload1.c: Likewise.
19051         * reload.c: Likewise.
19052         * rtl.c: Likewise.
19053
19054 2002-01-09  Kazu Hirata  <kazu@hxi.com>
19055
19056         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
19057         to extract items in the expr_list chain.
19058
19059 2002-01-09  Richard Henderson  <rth@redhat.com>
19060
19061         * config/vax/vax.c (vax_rtx_cost): Never abort.
19062
19063         * config/vax/vax.h (REAL_ARITHMETIC): Define.
19064
19065 2002-01-09  Jan Hubicka  <jh@suse.cz>
19066
19067         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
19068
19069 2002-01-09  Richard Henderson  <rth@redhat.com>
19070
19071         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
19072         Unify code from various alternatives.
19073
19074 2002-01-09  Richard Henderson  <rth@redhat.com>
19075
19076         * regrename.c (copy_value): Ignore the copy if the source register
19077         is present in the value chain with a narrower mode.
19078
19079 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
19080
19081         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
19082         for the c4x target. Also improve layout.
19083
19084 2002-01-09  Richard Henderson  <rth@redhat.com>
19085
19086         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
19087         * config/m32r/m32r.md (and ior xor splitters): Swap operands
19088         to match insn patterns.
19089
19090 2002-01-09  Richard Henderson  <rth@redhat.com>
19091
19092         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
19093         (copyprop_hardreg_forward_1): Likewise.
19094
19095 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19096
19097         * pa.md (decrement_and_branch_until_zero): Change predicate for
19098         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
19099
19100 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
19101
19102         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
19103         gets undefined. For Darwin.
19104
19105 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19106
19107         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
19108
19109 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19110
19111         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
19112
19113 2002-01-08  Richard Henderson  <rth@redhat.com>
19114
19115         * regrename.c (copy_value): Ignore overlapping copies.
19116
19117 2002-01-08  Richard Henderson  <rth@redhat.com>
19118
19119         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
19120         as needed to avoid shared structure.
19121
19122 2002-01-08  Kazu Hirata  <kazu@hxi.com>
19123
19124         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
19125         H8/300H and H8/S.
19126
19127 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
19128
19129         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
19130         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
19131         documentation of obsolete macros.
19132         * system.h: Poison these macros.
19133         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
19134         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
19135         config/c4x/c4x.h, config/clipper/clipper.h,
19136         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
19137         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
19138         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
19139         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
19140         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
19141         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
19142         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
19143         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
19144         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
19145         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
19146         config/sparc/sparc.h, config/stormy16/stormy16.h,
19147         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
19148         definitions and commented out definitions of obsolete macros.
19149         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
19150         of MAX_INT_TYPE_SIZE.
19151
19152 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
19153
19154         * config/s390/s390.c (s390_preferred_reload_class): Never
19155         return ADDR_REGS if it isn't a subset of the given class.
19156         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
19157         FP_REGS, but all superclasses as well.
19158
19159         * config/s390/s390.c (s390_function_profiler): Fix thinko.
19160
19161         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
19162         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
19163         must not be a const_int.
19164
19165 2002-01-08  Richard Henderson  <rth@redhat.com>
19166
19167         * Makefile.in (toplev.o): Depend on options.h.
19168         (gcc.o): Depend on specs.h.
19169
19170 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
19171
19172         * expr.c (store_expr): Convert VOIDmode constants back to target's
19173         mode.
19174
19175 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19176
19177         * doc/invoke.texi: Markup gcc as @command.  Refer to
19178         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
19179         of http://gcc.gnu.org/thanks.html.
19180
19181 2002-01-08  Dale Johannesen  <dalej@apple.com>
19182
19183         * config/rs6000/rs6000.md: Add missing int register
19184         target case to movdf_low.
19185
19186 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
19187
19188         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
19189         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
19190         (cppinit.o): Depend on except.h.
19191         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
19192         s-specs): New rules.
19193
19194         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
19195         Don't create specs.h/options.h/gencheck.h here.  Remove
19196         unnecessary variable settings from last argument of AC_OUTPUT.
19197         * config.in, configure: Regenerate.
19198         * intl.c: Hardcode package name as "gcc".
19199
19200         * cppinit.c: Include except.h.
19201         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
19202         appropriate.
19203         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
19204         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
19205         (!)USING_SJLJ_EXCEPTIONS.
19206         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
19207
19208 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
19209
19210         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
19211         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
19212         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
19213         documentation of obsolete macros.
19214         * system.h: Poison these macros.
19215         * config/d30v/d30v.h, config/ns32k/encore.h,
19216         config/stormy16/stormy16.h: Remove definitions and commented out
19217         definitions of obsolete macros.
19218
19219 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
19220
19221         * objc/objc-act.c (handle_class_ref): Mark the declaration of
19222         %sobjc_class_ref_%s as used - to prevent unwanted compiler
19223         warnings.
19224
19225 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
19226
19227         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
19228         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
19229         to insn adjusting stack/frame pointer.
19230         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
19231         accept operands that cause the insn to be non-splittable.
19232
19233 2002-01-08  Graham Stott  <grahams@redhat.com>
19234
19235         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
19236         (C_TYPE_FIELDS_VOLATILE): Likewise.
19237         (C_TYPE_BEING_DEFINED): Likewise.
19238         (C_IS_RESERVED_WORD): Likewise.
19239         (C_TYPE_VARIABLE_SIZE): Likewise.
19240         (C_DECL_VARIABLE_SIZE): Likewise.
19241         (C_MISSING_PROTOTYPE_WARNED): Likewise.
19242         (C_SET_EXP_ORIGINAL_CODE): Likewise.
19243         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
19244         parenthesis.
19245         (C_DECL_ANTICIPATED): Likewise.
19246         (c_build_type_variant): Add parenthesis.
19247
19248 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
19249
19250         * gcc.c (option_map): Remove --version.
19251         (process_command): Handle -fversion following the GNU Coding
19252         Standards.  Partially addresses PR other/704.
19253
19254 2002-01-08  Graham Stott  <grahams@redhat.com>
19255
19256         * combine.c (combine_instructions): Fix typo.
19257
19258 2002-01-08  Graham Stott  <grahams@redhat.com>
19259
19260         * debug.h: Use "tree" and "rtx" throughout.
19261
19262         * debug.c: Likewise.
19263
19264 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
19265
19266         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
19267         constant pool, use the pool's version of the symbol instead.
19268
19269 2002-01-07  Richard Henderson  <rth@redhat.com>
19270
19271         * regrename.c (find_oldest_value_reg): Ignore the value chain if
19272         the original register was copied in a mode with a fewer number of
19273         hard registers than the desired mode.
19274         (copyprop_hardreg_forward_1): Likewise.
19275         (debug_value_data): Fix loop test.
19276         * toplev.c (parse_options_and_default_flags): Reenable
19277         -fcprop-registers at -O1.
19278
19279 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
19280
19281         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
19282         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
19283
19284         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
19285         predicates.
19286
19287         * config/rs6000/rs6000.md: Add altivec predicate patterns.
19288
19289 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19290
19291         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
19292         (pa_output_function_prologue): Output local label at the beginning of
19293         the prologue when profiling.
19294         (hppa_profile_hook): Use the local label rather than the function label.
19295         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
19296
19297 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
19298
19299         * config/rs6000/rs6000.c (print_operand): Remove extra space.
19300         (altivec_expand_unop_builtin): Fix thinko.
19301         (altivec_expand_binop_builtin): Same.
19302         (altivec_expand_ternop_builtin): Same.
19303         (altivec_expand_builtin): Same.
19304
19305 2002-01-07  Richard Henderson  <rth@redhat.com>
19306
19307         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
19308
19309 2002-01-07  Jason Merrill  <jason@redhat.com>
19310
19311         * unwind-dw2.c (execute_cfa_program): Use < again.
19312
19313 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
19314
19315         * predict.c (combine_predictions_for_insn): Avoid division by zero.
19316
19317 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
19318
19319         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
19320         Don't allow -1 - x -> ~x simplifications in the first pass.
19321
19322 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
19323
19324         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
19325         arguments.
19326         (altivec_expand_binop_builtin): Same.
19327         (altivec_expand_unop_builtin): Same.
19328         (print_operand): Fix typo.
19329         (bdesc_1arg): Add vupk* variants.
19330
19331         * rs6000.h (rs6000_builtins): Add vupk* enums.
19332
19333         * rs6000.md: Add altivec_vupk* variants.
19334
19335 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
19336
19337         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
19338         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
19339         and last update dates.
19340
19341 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
19342
19343         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
19344
19345 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
19346
19347         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
19348         * config/avr/avr.h (CPP_SPEC): Likewise.
19349         (LINK_SPEC): Likewise.
19350         (CRT_BINUTILS_SPECS): Likewise.
19351         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
19352         * doc/invoke.texi (AVR Options): Document them.
19353
19354 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
19355
19356         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
19357         LABEL_NUSES.
19358
19359 2002-01-07  Graham Stott  <grahams@redhat.com>
19360
19361         * config/i386/i386.h: Update copyright date.
19362         (HALF_PIC_PTR): Add parenthesis.
19363         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
19364         (CONSTANT_ALIGNMENT): Add parenthesis.
19365         (DATA_ALIGNMENT): Likewise.
19366         (LOCAL_ALIGNMENT): Likewise.
19367         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
19368         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
19369         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
19370         (HARD_REGNO_NREGS): Add paranethesis.
19371         (VALID_SSE_REG_MODE): Whitespace.
19372         (VALID_MMX_REG_MODE): Whitespace.
19373         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
19374         (ix86_hard_regno_mode_ok): Add parenthesis.
19375         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
19376         (RETURN_IN_MEMORY): Whitespace.
19377         (N_REG_CLASSES): Add parenthesis.
19378         (INTEGER_CLASS_P): Add parenthesis and wrap.
19379         (FLOAT_CLASS_P): Likewise.
19380         (SSE_CLASS_P): Likewise.
19381         (MMX_CLASS_P): Likewise.
19382         (MAYBE_INTEGER_CLASS_P): Likewise.
19383         (MAYBE_FLOAT_CLASS_P): Likewise.
19384         (MAYBE_SSE_CLASS_P): Likewise.
19385         (MAYBE_MMX_CLASS_P): Likewise.
19386         (Q_CLASS_P): Likewise.
19387         (GENERAL_REGNO_P): Uppercase macro parameter.
19388         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
19389         (FP_REGNO_P): Likewise.
19390         (ANY_FP_REGNO_P): Uppercase macro parameter.
19391         (SSE_REGNO_P): Likewise.
19392         (SSE_REGNO): Likewise.
19393         (SSE_REG_P): Likewise.
19394         (SSE_FLOAT_MODE_P): Likewise.
19395         (MMX_REGNO_P): Likewise.
19396         (MMX_REG_P):Likewise.
19397         (STACK_REG_P): Likewise.
19398         (NON_STACK_REG_P): Likewise.
19399         (STACK_TOP_P): Likewise.
19400         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
19401         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
19402         (SECONDARY_MEMORY_NEEDED): Likewise.
19403         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
19404         (MD_ASM_CLOBBERS): Whitespace and wrap.
19405         (MUST_PASS_IN_STACK): Whitespace and wrap.
19406         (RETURN_POPS_ARGS): Add parenthesis.
19407         (INIT_CUMULATIVE_ARGS): Likewise.
19408         (FUNCTION_ARG): Likewise.
19409         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
19410         (SETUP_INCOMING_VARARGS): Likewise.
19411         (BUILD_VA_LIST_TYPE):  Add parenthesis.
19412         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
19413         parenthsis.
19414         (EXPAND_BUILTIN_VA_ARG): Likewise.
19415         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
19416         (INITIALIZE_TRAMPOLINE): Add parenthesis.
19417         (INITIAL_ELIMINATION_OFFSET): Likewise.
19418         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
19419         (REGNO_OK_FOR_BASE_P): Likewise.
19420         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
19421         (REGNO_OK_FOR_DIREG_P): Likewise.
19422         (REG_OK_FOR_INDEX_P): Whitespace.
19423         (REG_OK_FOR_BASE_P): Whitespace.
19424         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
19425         parenthesis.
19426         (FIND_BASE_TERM): Fix typo.
19427         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
19428         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
19429         (SYMBOLIC_CONST; Whitespace.
19430         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
19431         (ENCODE_SECTION_INFO): Whitespace.
19432         (FINALIZE_PIC): Remove do { ... } while (0).
19433         (PROMOTE_MODE): Wrap in do { ... } while (0).
19434         (CONST_COSTS): Whitespace.
19435         (RTX_COSTS): Add paramethesis, whitespace and wrap.
19436         (REGISTER_MOVE_COST): Add parenthesis.
19437         (MEMORY_MOVE_COST): Likewise.
19438         (EXTRA_CC_MODES): Whitespace.
19439         (SELECT_CC_MODE): Add parenthesis and whitespace.
19440         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
19441         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
19442         (ASM_OUTPUT_LABEL): Add paramethesis.
19443         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
19444         (ASM_OUTPUT_REG_POP): Likewise.
19445         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
19446         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19447
19448         * config/i386/i386.c: Update copyright.
19449         (CHECK_STACK_LIMIT): Add parenthesis.
19450         (AT_BP): Uppercase macro parameter.
19451         (x86_64_int_parameter_registers): Constify.
19452         (x86_64_int_return_registers): Likewise.
19453         (ix86_compare_op0): Use rtx.
19454         (construct_container): Constify INTREG parameter.
19455         (function_arg): Use rtx.
19456
19457         * diagnostic.h: Update copyright date.
19458         (output_buffer_state): Add parenthesis.
19459         (output_buffer_format_args): Likewise.
19460
19461         * combine.c (combine_instructions): Replace XEXP (links, 0)
19462         with link.
19463
19464 2002-01-06  H.J. Lu <hjl@gnu.org>
19465
19466         * cfgcleanup.c (thread_jump): Fix 2 typos.
19467
19468 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
19469
19470         * config.gcc: Add support for --enable-altivec.
19471
19472 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19473
19474         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
19475
19476 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
19477
19478         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
19479         __objc_class_name_*.
19480
19481 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19482
19483         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
19484
19485 2002-01-06  Richard Henderson  <rth@redhat.com>
19486
19487         * reorg.c (emit_delay_sequence): Remove death notes, not merely
19488         nop them out.  Increment label reference count for REG_LABEL.
19489         (fill_slots_from_thread): Frob label reference count around
19490         delete_related_insns.
19491
19492 2002-01-05  Richard Henderson  <rth@redhat.com>
19493
19494         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
19495         jump threading.
19496
19497 2002-01-05  Richard Henderson  <rth@redhat.com>
19498
19499         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
19500         * integrate.c (output_inline_function): Likewise.
19501         * toplev.c (rest_of_compilation): Do it here instead.  Move call
19502         to remove_unnecessary_notes after emitting abstract instance.
19503         Force an emitted nested function to have its parent emited as well.
19504         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
19505         for null.
19506         (rtl_for_decl_location): Do not look at reload data structures
19507         before reload has run.
19508
19509 2002-01-05  Kazu Hirata  <kazu@hxi.com>
19510
19511         * cse.c: Fix formatting.
19512         * dwarf2asm.c: Likewise.
19513         * dwarf2out.c: Likewise.
19514         * explow.c: Likewise.
19515         * expmed.c: Likewise.
19516         * function.c: Likewise.
19517         * gcov.c: Likewise.
19518         * gencheck.c: Likewise.
19519         * genrecog.c: Likewise.
19520         * ggc-common.c: Likewise.
19521         * ggc-page.c: Likewise.
19522         * global.c: Likewise.
19523
19524 2002-01-05  Kazu Hirata  <kazu@hxi.com>
19525
19526         * combine.c: Fix formatting.
19527
19528 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
19529
19530         PR middle-end/1557
19531         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
19532
19533 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
19534
19535         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
19536         as 1 for __powerpc64__ as well.
19537
19538         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
19539
19540         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
19541         return it.
19542
19543 2002-01-05  Daniel Berlin  <dan@dberlin.org>
19544
19545         * lcm.c: Revert change, due to performance regression it causes on
19546         SPEC because it's slightly more conservative (sigh, I hate
19547         edge-based LCM).
19548
19549 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
19550
19551         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
19552
19553 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
19554
19555         * doc/cppinternals.texi: Update.
19556
19557 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
19558
19559         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
19560         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
19561         negatives.
19562         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
19563         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
19564         kludge for pre-october-14th mmix versions to handle new-found bug
19565         with PUSHJ/PUSHGO and the register stack.
19566         * config/mmix/mmix.h (struct machine_function): Rename member
19567         has_call_value_without_parameters to has_call_without_parameters.
19568         All referers changed.
19569         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
19570         TARGET_MASK_BRANCH_PREDICT): New macros.
19571         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
19572         -mno-reg-stack-fill-bug-workaround.
19573         * config/mmix/mmix.md ("call"): Set struct machine member
19574         has_call_without_parameters.
19575
19576 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
19577
19578         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
19579
19580 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
19581
19582         * cfgcleanup.c: Include tm_p.h
19583         (mark_effect): Fix handling of hard register; fix handling of SET
19584
19585 2002-01-04  Kazu Hirata  <kazu@hxi.com>
19586
19587         * config/h8300/h8300.md (anonymous patterns): Check that
19588         operands are registers before using REGNO on them.
19589
19590 2002-01-03  Roland McGrath  <roland@frob.com>
19591
19592         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
19593
19594 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
19595
19596         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
19597         * c-common.h (genrtl_expr_stmt_value): Likewise.
19598         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
19599         (expand_expr_stmt_value): Add maybe_last argument.
19600         Don't warn about statement with no effect if it is the last statement
19601         in expression statement.
19602         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
19603         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
19604         expand_expr_stmt_value.
19605         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
19606         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
19607         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
19608         as maybe_last to expand_expr_stmt_value.
19609
19610 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
19611
19612         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
19613         be passed in, do not build it.
19614         (c_begin_if_stmt): New function.
19615         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19616         * c-common.h (c_expand_start_cond): Update prototype.
19617         (c_begin_if_stmt): Prototype new function.
19618         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19619         * c-parse.in (if_prefix): Use c_begin_if_stmt,
19620         c_begin_while_stmt and c_finish_while_stmt_cond.
19621
19622 2002-01-04  William Cohen  <wcohen@redhat.com>
19623
19624         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
19625         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19626         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19627         * config/pa/som.h (ASM_FILE_START): Likewise.
19628
19629 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
19630
19631         * lcm.c: Include df.h.
19632         Add available_transfer_function prototype.
19633         (compute_available): Rework to use iterative dataflow framework.
19634         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
19635         with bb_info in df.h
19636         (available_transfer_function): New function.
19637
19638         * Makefile.in (lcm.o): add df.h to dependencies.
19639
19640 2002-01-04  Richard Henderson  <rth@redhat.com>
19641
19642         * config/alpha/alpha.c (some_operand): Accept HIGH.
19643         (input_operand): Likewise; accept simple references to globals.
19644         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
19645         (alpha_const_double_ok_for_letter_p): Likewise.
19646         (alpha_extra_constraint): Likewise.
19647         (alpha_preferred_reload_class): Likewise.  Do not force
19648         symbolic constants to memory.
19649         (alpha_legitimate_address_p): Accept simple references
19650         to small_symbolic_operand.
19651         (alpha_legitimize_address): New arg scratch.  Be prepared to be
19652         called when no_new_pseudos.  Emit simple symbolic references.
19653         Split integers into low, high, and rest.
19654         (alpha_expand_mov): Use alpha_legitimize_address.
19655         (some_small_symbolic_mem_operand): New.
19656         (split_small_symbolic_mem_operand): New.
19657         * config/alpha/alpha-protos.h: Update.
19658         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
19659         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
19660         (EXTRA_CONSTRAINT): Likewise.
19661         (PREFERRED_RELOAD_CLASS): Likewise.
19662         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
19663         (PREDICATE_CODES): Update.
19664         * config/alpha/alpha.md: New post-reload splitters to convert
19665         simplfied symbolic operands to the form that references $29.
19666         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
19667         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
19668
19669 2002-01-03  Richard Henderson  <rth@redhat.com>
19670
19671         * local-alloc.c (function_invariant_p): Update commentary.
19672
19673 2002-01-04  H.J. Lu <hjl@gnu.org>
19674
19675         * toplev.c (rest_of_compilation): Fix a typo when calling
19676         cleanup_cfg.
19677
19678 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19679
19680         * c-common.c: Fix formatting.
19681         * diagnostic.c: Likewise.
19682         * doloop.c: Likewise.
19683         * dwarf2out.c: Likewise.
19684
19685 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19686
19687         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
19688         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
19689
19690 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
19691
19692         * cpperror.c: Update comments and copyright.
19693         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
19694         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
19695
19696 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19697
19698         * collect2.c (main): Use strcmp when testing for "-shared".
19699
19700 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
19701
19702         * cppmacro.c: Don't include intl.h.  Update comments.
19703         (new_number_token): Allocate enough buffer for 64-bit unsigned
19704         integers; update prototype.
19705         * cppmain.c: Update comments.
19706
19707 2002-01-03  William Cohen  <wcohen@redhat.com>
19708
19709         * function.h (struct function): Add profile.
19710         (current_function_profile): New.
19711         doc/extend.texi: Update documentation.
19712         * final.c (final_start_function): Use current_function_profile
19713         instead of profile_flag.
19714         (profile_after_prologue): Likewise.
19715         * function.c (expand_function_start): Likewise.
19716         (expand_function_start): Likewise.
19717         * config/alpha/alpha.c (direct_call_operand):
19718         (alpha_does_function_need_gp): Likewise.
19719         (alpha_expand_prologue): Likewise.
19720         * config/arm/arm.c (arm_expand_prologue): Likewise.
19721         thumb_expand_prologue: Likewise.
19722         * config/d30v/d30v.c (d30v_stack_info): Likewise.
19723         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
19724         (fr30_expand_prologue): Likewise.
19725         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
19726         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
19727         * config/i386/i386.h (FINALIZE_PIC): Likewise.
19728         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
19729         * config/i960/i960.c (i960_output_function_prologue): Likewise.
19730         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
19731         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
19732         (m32r_expand_prologue): Likewise.
19733         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
19734         (m88k_expand_prologue): Likewise.
19735         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
19736         * config/mips/mips.c (compute_frame_size): Likewise.
19737         (mips_expand_prologue): Likewise.
19738         (mips_can_use_return_insn): Likewise.
19739         * config/pa/elf.h (ASM_FILE_START): Likewise.
19740         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19741         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19742         * config/pa/som.h (ASM_FILE_START): Likewise.
19743         * config/romp/romp.c (romp_using_r14): Likewise.
19744         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
19745         (rs6000_stack_info): Likewise.
19746         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19747         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
19748         * config/v850/v850.c (compute_register_save_size): Likewise.
19749
19750 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
19751
19752         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
19753         gen_lowpart_common fails, use gen_lowpart_SUBREG.
19754
19755 2002-01-03  Turly O'Connor  <turly@apple.com>
19756
19757         * darwin.c (machopic_output_possible_stub_label): Don't generate
19758         stub routines for pseudo-stubs which we've just defined.
19759
19760 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19761
19762         * builtins.c: Fix formatting.
19763         * c-typeck.c: Likewise.
19764         * combine.c: Likewise.
19765         * expr.c: Likewise.
19766         * loop.c: Likewise.
19767
19768 2002-01-03  Andreas Schwab  <schwab@suse.de>
19769
19770         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
19771         and return true if _cpp_push_next_buffer pushed a new include
19772         file.
19773         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
19774         _cpp_pop_file_buffer did not push a new file.
19775         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
19776
19777 2002-01-02  Eric Christopher  <echristo@redhat.com>
19778
19779         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
19780         FIND_REG_INC_NOTE call. Update copyright.
19781         * loop.c (canonicalize_condition): Ditto.
19782         * reorg.c (delete_scheduled_jump): Ditto.
19783
19784 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19785
19786         * gcse.c: Fix formatting.
19787
19788 2002-01-03  Graham Stott  <grahams@redhat.com>
19789
19790         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
19791         forward defs for struct tags rtx_def, union_tree, rtvec_def
19792         also output corresponding typedefs for rtx, tree, and rtvec.
19793
19794         * system.h: Move forward defs for struct tags rtx_def, union_tree,
19795         rtvec_def along with corresponding typedefs for rtx, tree, and
19796         rtvec to config.h, hconfig.h, tconfig.h.
19797
19798 2002-01-03  Graham Stott  <grahams@redhat.com>
19799
19800         * tree.h: Update copyright date.
19801         (IS_EXPR_CODE_CLASS): Add parenthesis.
19802         (TREE_SET_CODE): Add whitespace.
19803         (TREE_CHECK): Add parenthesis.
19804         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
19805         (CST_OR_CONSTRUCTOR_CHECK):
19806         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
19807         (TREE_SYMBOL_REFERENCED): Whitespace.
19808         (INT_CST_LT): Likewise.
19809         (INT_CST_LT_UNSIGNED): Likewise.
19810         (tree_real_cst): Unwrap comment.
19811         (tree_string): Likewise.
19812         (tree_complex): Likewise.
19813         (IDENTIFIER_POINTER): correct cast.
19814         (SAVE_EXPR_CONTEXT): Whitespace.
19815         (EXPR_WFL_FILENAME_NODE): Likewise.
19816         (EXPR_WFL_FILENAME): Remove parenthesis.
19817         (DECL_ORIGIN): Add parenthesis.
19818         (DECL_FROM_INLINE): Use NULL_TREE.
19819         (build_int_2): Whitespace.
19820         (build_type_variant): Add parenthesis.
19821
19822         * gcc/jcf-parse.c: Update copyright date.
19823         (yyparse): Constify resource_filename.
19824
19825 2002-01-03  Graham Stott  <grahams@redhat.com>
19826
19827         * rtl.h: Update copyright date.
19828         (RTL_CHECK1): Wrap long line.
19829         (RTL_CHECK2): Likewise.
19830         (RTL_CHECKC1): Wrap long line and whitespace.
19831         (RTL_CHECKC2): Likewise.
19832         (XWINT): Whitespace.
19833         (XINT): Likewise.
19834         (XSTR): Likewise.
19835         (XEXP): Likewise.
19836         (XVEC): Likewise.
19837         (XMODE): Likewise.
19838         (XBITMAP): Likewise.
19839         (XTREE): Likewise.
19840         (XBBDEF): Likewise.
19841         (XTMPL): Likewise.
19842         (X0WINT): Likewise.
19843         (X0INT):Likewise.
19844         (X0UINT): Likewise.
19845         (X0STR): Likewise.
19846         (X0EXP): Likewise.
19847         (X0VEC): Likewise.
19848         (X0MODE): Likewise.
19849         (X0BITMAP): Likewise.
19850         (X0TREE): Likewise.
19851         (X0BBDEF): Likewise.
19852         (X0ADVFLAGS): Likewise.
19853         (X0CSELIB): Likewise.
19854         (X0MEMATTR): Likewise.
19855         (XCWINT): Likewise.
19856         (XCINT): Likewise.
19857         (XCUINT): Likewise.
19858         (XCSTR): Likewise.
19859         (XCEXP): Likewise.
19860         (XCVEC): Likewise.
19861         (XCMODE): Likewise.
19862         (XCBITMAP): Likewise.
19863         (XCTREE): Likewise.
19864         (XCBBDEF): Likewise.
19865         (XCADVFLAGS): Likewise.
19866         (XCCSELIB): Likewise.
19867         (XC2EXP): Likewise.
19868         (INSN_UID): Likewise.
19869         (PREV_INSN): Likewise.
19870         (PATTERN): Likewise.
19871         (INSN_CODE): Likewise.
19872         (PUT_REG_NOTE_KIND): Likewise.
19873         (CODE_LABEL_NUMBER): Likewise.
19874         (NOTE_SOURCE_FILE): Likewise.
19875         (NOTE_BLOCK): Likewise.
19876         (NOTE_EH_HANDLER): Likewise.
19877         (NOTE_RANGE_INFO): Likewise.
19878         (NOTE_LIVE_INFO): Likewise.
19879         (NOTE_BASIC_BLOCK): Likewise.
19880         (NOTE_EXPECTED_VALUE): Likewise.
19881         (NOTE_LINE_NUMBER): Likewise.
19882         (LABEL_NAME): Likewise.
19883         (LABEL_NUSES): Likewise.
19884         (LABEL_ALTERNATE_NAME): Likewise.
19885         (ADDRESSOF_DECL): Likewise.
19886         (JUMP_LABEL): Likewise.
19887         (LABEL_NEXTREF): Likewise.
19888         (REGNO): Likewise.
19889         (ORIGINAL_REGNO: Likewise.
19890         (HARD_REGISTER_NUM_P): Add parenthesis.
19891         (SUBREG_REG): Whitespace.
19892         (SUBREG_BYTE): Likewise.
19893         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
19894         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
19895         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
19896         (ASM_OPERANDS_INPUT_VEC): Likewise.
19897         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
19898         (ASM_OPERANDS_INPUT): Likewise.
19899         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
19900         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
19901         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
19902         (ASM_OPERANDS_INPUT_MODE): Likewise.
19903         (ASM_OPERANDS_SOURCE_FILE): Likewise.
19904         (ASM_OPERANDS_SOURCE_LINE): Likewise.
19905         (MEM_SET_IN_STRUCT_P): Minor reformat.
19906         (TRAP_CONDITION): Whitespace.
19907         (TRAP_CODE): Likewise.
19908         (COND_EXEC_TEST): Likewise.
19909         (COND_EXEC_CODE): Likewise.
19910         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
19911         (PHI_NODE_P): Add parenthesis.
19912         (plus_constant): Whitespace and add parenthesis.
19913
19914 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19915
19916         * config/avr/avr.c: Fix comment typos.
19917         * config/c4x/c4x.md: Likewise.
19918         * config/dsp16xx/dsp16xx.h: Likewise.
19919         * config/dsp16xx/dsp16xx.md: Likewise.
19920         * config/i386/i386.md: Likewise.
19921         * config/ia64/ia64.c: Likewise.
19922         * config/m32r/m32r.h: Likewise.
19923         * config/m68hc11/m68hc11.md: Likewise.
19924         * config/mmix/mmix.c: Likewise.
19925         * config/mn10200/mn10200.c: Likewise.
19926         * config/romp/romp.c: Likewise.
19927         * config/sh/sh.c: Likewise.
19928         * config/stormy16/stormy16.c: Likewise.
19929         * config/stormy16/stormy16.h: Likewise.
19930         * config/stormy16/stormy16.md: Likewise.
19931
19932 2002-01-03  Graham Stott  <grahams@redhat.com>
19933
19934         * loop.h: Update copyright date.
19935         (LOOP_MOVABLES): Fix typo.
19936         (LOOP_REGS): Likewise.
19937         (LOOP_IVS): Likewise.
19938
19939 2002-01-03  Graham Stott  <grahams@redhat.com>
19940
19941         * cppinit.c: Update copyright date.
19942         Don't include output.h
19943         * Makefile.in: Update copyright date.
19944         Update dependency.
19945
19946 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19947
19948         PR c/5226
19949         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
19950         (-pthread) Add to RS/6000 options.
19951
19952 2002-01-02  Kazu Hirata  <kazu@hxi.com>
19953
19954         * except.c: Fix comment typos.
19955         * loop.c: Likewise.
19956         * varasm.c: Likewise.
19957         * doc/tm.texi: Fix a typo.
19958
19959 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
19960
19961         * c-typeck.c (output_init_element): Allow initializing static storage
19962         duration objects with compound literals.
19963
19964 2002-01-02  Richard Henderson  <rth@redhat.com>
19965
19966         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
19967         after abusing it.
19968
19969 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19970
19971         * gcc.c (default_compilers): Const-ify.
19972         * mips-tdump.c (stab_names): Likewise.
19973         * mips-tfile.c (map_coff_types, map_coff_storage,
19974         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
19975         pseudo_ops_t, pseudo_ops): Likewise.
19976         * protoize.c (default_include): Likewise
19977
19978         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
19979         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
19980         Add array size in declaration.
19981         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
19982         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
19983         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
19984         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
19985         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
19986         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
19987         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
19988         emtens, make_nan): Const-ify.
19989         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
19990         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
19991
19992 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
19993
19994         * config.gcc (ia64-*-*): Set extra_headers.
19995         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
19996         * config/alpha/t-osf: Remove.
19997         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
19998
19999 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
20000
20001         * config/rs6000/t-aix43: Revert previous change.
20002
20003 2002-01-02  Jason Merrill  <jason@redhat.com>
20004
20005         * c-decl.c (c_expand_body): Call outlining_inline_function when
20006         emitting an inline function out of line.
20007
20008 2002-01-02  Richard Henderson  <rth@redhat.com>
20009
20010         * dwarf2out.c (limbo_die_node): Add created_for member.
20011         (new_die): New argument created_for.  Update all callers.
20012         (mark_limbo_die_list): New.
20013         (dwarf2out_init): Register limbo_die_list as a root.
20014         (dwarf2out_finish): Force insert limbo dies into their function
20015         context.
20016
20017 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
20018
20019         PR c++/5089
20020         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
20021
20022 2002-01-02  Kazu Hirata  <kazu@hxi.com>
20023
20024         * config/h8300/fixunssfsi.c: Update copyright.
20025         Fix comment typos.
20026         Fix formatting.
20027         * config/h8300/h8300.c: Update copyright.
20028         Eliminate warnings.
20029
20030 2002-01-02  Kazu Hirata  <kazu@hxi.com>
20031
20032         * config/romp/romp.c: Fix comment formatting.
20033         * config/romp/romp.h: Likewise.
20034         * config/romp/romp.md: Likewise.
20035         * config/s390/s390.c: Likewise.
20036         * config/stormy16/stormy16.c: Likewise.
20037         * config/stormy16/stormy16.h: Likewise.
20038
20039 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
20040
20041         * c-common.h (genrtl_expr_stmt_value): Declare.
20042         * c-semantics.c (genrtl_goto_stmt): Redirect to...
20043         (genrtl_goto_stmt_value): ... this new function.  Pass new
20044         argument down to expand_expr_stmt_value, taking
20045         TREE_ADDRESSABLE into account.
20046         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
20047         STMT_EXPR as addressable, i.e., one whose result we want.
20048         * expr.c (expand_expr): Don't save expression statement value
20049         of labeled_blocks or loop_exprs.
20050         * stmt.c (expand_expr_stmt): Redirect to...
20051         (expand_expr_stmt_value): ... this new function.  Use new
20052         argument to tell whether to save expression value.
20053         (expand_end_stmt_expr): Reset last_expr_type and
20054         last_expr_value if we don't have either.
20055         * tree-inline.c (declare_return_variable): Mark its use
20056         statement as addressable.
20057         * tree.h: Document new use of TREE_ADDRESSABLE.
20058         (expand_expr_stmt_value): Declare.
20059
20060 2002-01-01  Tom Rix  <trix@redhat.com>
20061
20062         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
20063         rs6000_emit_allocate_stack.
20064
20065 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
20066
20067         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
20068         ${srcdir}/ginclude/ to every entry in extra_headers.
20069         * configure: Regenerate.
20070         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
20071         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
20072         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
20073         * ginclude/proto.h: Rename to config/convex/proto.h.
20074
20075 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20076
20077         * attribs.c (handle_vector_size_attribute): Use host_integerp
20078         and tree_int_cst; remove warnings.
20079         * caller-save.c (insert_restore): Add cast to get rid of warning.
20080         (insert_save): Likewise.
20081         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
20082         * regmove.c (find_matches): Add temporary var to kill a warning.
20083
20084 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
20085
20086         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
20087         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
20088         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
20089         (vms-dwarf2eh.o): Add Makefile rule.
20090         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
20091         * config/alpha/vms-dwarf2eh.asm: New file.
20092
20093         * gcc.c (delete_if_ordinary): Delete all versions.
20094
20095 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
20096
20097         * config/mmix/mmix.md: Update FIXME to not mention
20098         define_constants.
20099         (MMIX_rJ_REGNUM): New define_constants constant.
20100         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
20101         "*movdicc_real"): Adjust contraints formatting.
20102         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
20103         for branch prediction.
20104         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
20105         output template.
20106         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
20107         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
20108         number.  Delete related FIXMEs.
20109         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
20110         from number to MMIX_rJ_REGNUM.
20111         (TARGET_MASK_BRANCH_PREDICT): New.
20112         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
20113         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
20114         value.  Add -mbranch-predict and -mno-branch-predict.
20115         (TARGET_VERSION): Drop date.
20116         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
20117         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
20118         for finding out global symbols.
20119         (mmix_asm_output_labelref): Revert condition for global symbol.
20120         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
20121         (mmix_print_operand_punct_valid_p): A '+' is valid.
20122
20123 See ChangeLog.6 for earlier changes.