OSDN Git Service

Individual processor configurations for sh-elf / sh-linux:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2
3         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
4         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
5         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
6         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
7         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
8         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
9         (SELECT_SH5_COMPACT_NOFPU): Likewise.
10         (TARGET_SWITCHES): Use them.
11         (TARGET_CPU_DEFAULT): Define if not already defined.
12         (TARGET_DEFAULT): Use it.
13         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
14         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
15         * config/sh/t-monolib: New file.
16
17 2002-06-13  Roger Sayle  <roger@eyesopen.com>
18
19         * toplev.c (rest_of_compilation): Simplify (and correct) the
20         logic of the first delete-null-pointer-checks pass.
21
22 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
23
24         * i386.c (ix86_expand_movstr):  Fix pasto.
25
26 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
27
28         * reload.c (find_valid_class):  Fix thinko in my previous patch.
29
30 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
31
32         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
33         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
34         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
35         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
36
37 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
38
39         * tree-inline.c (expand_call_inline): Don' mess with _DECL
40         fields. 
41
42 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
43
44         * diagnostic.c (output_format): Recognize "%H" as a format
45         specifier for a location_t.
46         (text_specifies_location): New function.
47         (diagnostic_set_info): Use it.
48
49 2002-06-13  Jeffrey Law  <law@redhat.com>
50
51         * emit-rtl.c (static_regno_reg_rtx): Define.
52         (init_emit_once): Initialize static_regno_reg_rtx.
53         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
54         of building new hard reg objects once per function.
55         (gen_rtx_REG): Try to share hard regs.
56         * regclass.c (init_fake_stack_mems): New function broken out from
57         init_regs.
58         * rtl.h (init_fake_stack_mems): Declare.
59         * toplev.c (lang_independent_init): Call init_regs before
60         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
61
62         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
63
64         * alias.c (argument_registers): Remove.
65         (init_alias_once): Initialize static_reg_base_value here.  Remove
66         initialization of argument_registers.
67         (init_alias_once_per_function): Remove.
68         (init_alias_analysis): Copy all the entries from static_reg_base_value
69         into new_reg_base_value all at once.
70         * rtl.h (init_alias_once_per_function): Remove declaration.
71         * function.c (prepare_function_start): Do not call
72         init_alias_once_per_function.
73
74         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
75         starting a sequence and emitting an INSN.
76
77 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
78
79         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
80
81 2002-06-13  David S. Miller  <davem@redhat.com>
82
83         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
84
85 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
86
87         * cpplib.c (end_directive): Handle line skipping.  Only remove
88         the rest of the line if the directive was valid.
89         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
90         expanding a traditional macro.
91         * cpptrad.c (recursive_macro): New.
92         (read_logical_line_trad): Handle skipping.
93         (scan_out_logical_line): Continue after a successful directive.
94         Don't expand macros whilst skipping, or if recursing.
95         (_cpp_create_trad_definition): scan_out_logical_line now sets
96         the output current position.
97
98 2002-06-12  Eric Christopher  <echristo@redhat.com>
99
100         From Chris Demetriou  <cgd@broadcom.com>
101         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
102         comment.
103         (ISA_HAS_MADD_MSUB): Ditto.
104         (ISA_HAS_NMADD_NMSUB): Ditto.
105
106 2002-06-12  Eric Christopher  <echristo@redhat.com>
107
108         * config.gcc: Consolidate little endian handling and
109         little/big endian targets.
110         * config/mips/elfl.h: Remove file.
111         * config/mips/elfl64.h: Ditto.
112         * config/mips/ecoffl.h: Ditto.
113         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
114
115 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
116
117         * gengtype.h (xvasprintf): New prototype.
118         (xasprintf): New prototype.
119         (struct outf): New.
120         (get_output_file): Return an outf_p.
121         (header_file): Is now an outf_p.
122         (base_files): Now are outf_p.
123         (oprintf): New.
124         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
125         rather than stdio operations.  Use xasprintf in a few places,
126         when appropriate.
127         (xvasprintf): New.
128         (xasprintf): New.
129         (struct filemap): Delete.
130         (files): Delete.
131         (output_files): New.
132         (oprintf): New.
133         (create_file): Create an outf_p.  Add parameter to indicate output
134         file name, change all callers.
135         (open_base_files): Create gtype-desc.c here.
136         (get_output_file_with_visibility): Rewrite.
137         (get_output_file_name): Just look at 'name' field in struct outf.
138         (close_output_files): Rewrite.
139
140 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
141
142         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
143         (MASK_G_FLOAT): Define.
144         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
145         (TARGET_SWITCHES): Likewise.
146         (TARGET_DEFAULT): Likewise.
147
148 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
149
150         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
151         * config/mips/mips.c (mips_output_filename): Don't print a
152         ".file" directive if we are using DWARF-2.
153         (mips_output_function_prologue): Do not emit source file
154         name for TARGET_GAS.
155
156 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
157
158         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
159         decide whether emit the short opcode.
160         * i386.h (x86_shift1): Declare.
161         (TARGET_SHIFT1): New macro.
162         * i386.c (x86_shift1): New global variable.
163
164         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
165         unconditionally; make loop to rebuild CFG; kill unnecesary
166         find_basic_block calls; kill compute_bb_for_insn call.
167         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
168         * haifa-sched.c (sched_init): Likewise.
169         * ssa-ccp.c (ssa_const_prop): Likewise.
170         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
171
172 2002-06-11  David S. Miller  <davem@redhat.com>
173
174         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
175         active_insn_p.
176
177 2002-06-11  Richard Henderson  <rth@redhat.com>
178
179         * c-common.c (builtin_define_type_max): New.
180         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
181         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
182
183         From Joseph S. Myers:
184         * glimits.h: Rewrite to expect the double underscore definitions
185         from the compiler.
186
187         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
188         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
189         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
190         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
191         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
192         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
193         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
194         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
195
196 2002-06-11  Richard Henderson  <rth@redhat.com>
197
198         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
199         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
200         (code_for_builtns): Update.
201         (alpha_init_builtins): Add __builtin_thread_pointer and
202         __builtin_set_thread_pointer.
203         (alpha_expand_builtin): Handle void builtins.
204         * doc/extend.texi (Alpha Built-in Functions): Update.
205
206 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
207
208         PR target/6997
209         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
210
211 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
212
213         * config.gcc: Make the name of the extra-modes file adjustable
214         by target stanzas.
215         (s390x, strongarm, xscale stanzas): Use this facility.
216         * configure.in: Update to match.
217         * configure: Regenerate.
218
219 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
220
221         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
222         max/mins as unsigned GE compares.
223
224 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
225
226         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
227         * config/vax/bsd.h: New file.
228         * config/vax/netbsd.h: Add missing notice.
229         (CPP_PREDEFINES): Remove.
230         (TARGET_OS_CPP_BUILTINS): Define.
231         (CPP_SPEC): Use NETBSD_CPP_SPEC.
232         * config/vax/openbsd.h: Update copyright years.
233         (CPP_PREDEFINES): Remove.
234         (TARGET_OS_CPP_BUILTINS): Define.
235         * config/vax/ultrix.h: Likewise.
236         * config/vax/vaxv.h: Likewise.
237         * config/vax/vms.h: Likewise.
238         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
239         (CPP_PREDEFINES, CPP_SPEC): Remove.
240
241 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
242
243         * i386.md (addqi_1_slp, subqi_1_slp
244         (andqi_ext0, testqi_ext0): Remove unnecesary check.
245         (addhi*, addqi*): Simplify "dec" condition.
246         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
247         (and, or, xor to QImode splitters): New.
248         (iorqi_ext*): New.
249         (xorqi_ext_0): New.
250         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
251         (andqi_ext_1_rex64): New.
252         (ashrqi*_slp): New.
253         (ashlqi*_slp): New.
254         (lshlqi*_slp): New.
255         (rotrqi3*_slp): New.
256         (rotlqi3*_slp): New.
257
258 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
259
260         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
261         softfloat.h.
262         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
263         (CPP_ENDIAN_LITTLE_SPEC): Delete.
264         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
265         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
266         __LONG_DOUBLE_128__ setting, _CALL_* setting.
267         (CPP_DEFAULT_SPEC): Delete.
268         (CPP_FLOAT_DEFAULT_SPEC): Delete.
269         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
270         (CPP_SYSV_DEFAULT_SPEC): Delete.
271         (CPP_ENDIAN_BIG_SPEC): Delete.
272         (CPP_ENDIAN_LITTLE_SPEC): Delete.
273         (CPP_ENDIAN_SPEC): Delete.
274         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
275         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
276         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
277         cpp_longdouble_default.
278         * config/rs6000/softfloat.h: Delete.
279         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
280         (EXTRA_SPECS): Delete cpp_cpu.
281         (TARGET_CPU_CPP_BUILTINS): New.
282         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
283         prototype.
284         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
285         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
286         (CPP_DEFAULT_SPEC): Delete.
287         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
288         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
289         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
290         (CPP_DEFAULT_SPEC): Delete.
291         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
292         (CPLUSPLUS_CPP_SPEC): Likewise.
293         (CPP_CPU_SPEC): Delete.
294         (CPP_DEFAULT_SPEC): Delete.
295         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
296         (CPLUSPLUS_CPP_SPEC): Likewise.
297         (CPP_CPU_SPEC): Delete.
298         (CPP_DEFAULT_SPEC): Delete.
299         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
300         (CPP_DEFAULT_SPEC): Delete.
301         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
302         (CPP_DEFAULT_SPEC): Delete.
303
304         * doc/gty.texi: Small updates.
305
306 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
307
308         * objc/objc-act.c (warn_with_ivar): Adjust calls to
309         diagnostic_count_error.
310         (warn_with_method): Likewise.
311
312         * diagnostic.h (warnings_are_errors_message): New field of
313         diagnostic_context.
314         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
315         match semantics.
316         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
317         (diagnostic_count_diagnostic): Make aware of other kinds of
318         diagnostics.
319         (diagnostic_initialize): Initialize warnings_are_errors_message field.
320
321 2002-06-11  Tom Tromey  <tromey@redhat.com>
322
323         For PR java/6520:
324         * fold-const.c (fold_convert): Don't modify existing tree's type.
325
326 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
327
328         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
329
330 2002-06-11  Richard Henderson  <rth@redhat.com>
331
332         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
333
334 2002-06-11  Richard Henderson  <rth@redhat.com>
335
336         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
337         DWARF2_UNWIND_INFO is false.
338
339 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
340
341         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
342
343         * config/s390/s390.c (emit_prologue): gen_store_multiple
344         returns an insn now, not a pattern.
345
346 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
347
348         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
349         $(TEXI2DVI) -o.
350
351 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
352
353         * i386.c (x86_promote_QImode): Set for Athlon
354         (x86_fast_prefix): New global variable.
355         (x86_arch_always_fancy_math_387): Fix formating.
356         * i386.h (x86_fast_prefix): Declare
357         (TARGET_FAST_PREFIX): define.
358         * i386.md (and to strict_low_part, HI to SI
359         promoting splitter): Use new macro.
360
361         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
362
363 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
364
365         * Makefile.in (distclean): Delete junk left in testsuite
366         directory, too.
367
368 2002-06-11  Jeffrey Law <law@redhat.com>
369
370         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
371         last insn created by the splitter.
372
373         * caller-save.c (init_caller_save): Move creation of SAVEINSN
374         and RESTINSN into into the scope of the sequence.
375
376         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
377         RETURN insns.
378
379         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
380
381         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
382         not the pattern.  So extract the pattern from the insn.
383
384         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
385
386 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
387
388         * config/s390/s390.md (movsi): Only use floating point
389         register alternatives when operands are already fprs.
390         (movdi_31, movdi_64): Likewise.
391
392 2002-06-11  David S. Miller  <davem@redhat.com>
393
394         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
395         Only run RTX equality checks on INSN_P rtl.
396
397 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
398
399         * config/s390/s390.md (reload_base, ltorg): Remove.
400         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
401         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
402         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
403         s390_asm_output_pool_prologue): Likewise.
404         * s390.h (s390_pool_start_insn): Likewise.
405
406         * s390.c (s390_output_symbolic_const): Remove support for
407         old-style pool chunks.
408         (s390_function_epilogue): Likewise.
409         (s390_output_constant_pool): Likewise.  Also, fix incorrect
410         alignment for 64-bit literal pools.
411         (print_operand_address): Remove 'y' and 'Y' format flags.
412         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
413         old-style pool chunks.
414         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
415         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
416         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
417
418         * s390.c (consttable_operand): New function.
419         * s390-protos.h (consttable_operand): Declare it.
420         * s390.h (PREDICATE_CODES): Add consttable_operand.
421         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
422         consttable_sf, consttable_df, pool_start_31, pool_end_31,
423         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
424         * s390.c (struct constant, struct constant_pool): New data types.
425         (constant_modes, gen_consttable): New variables.
426         (s390_start_pool, s390_end_pool, s390_add_pool,
427         s390_dump_pool, s390_free_pool): New functions.
428         (s390_chunkify_pool): Completely reimplement literal pool
429         overflow handling.
430
431         * s390.c (s390_pool_overflow): New variable.
432         * s390.h (s390_pool_overflow): Declare it.
433         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
434         jumps in literal pool overflow situations.
435
436         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
437         (s390_frame_info): Account for possible use of RETURN_REGNUM
438         by new literal pool overflow code.
439         (s390_emit_prologue): Likewise.
440
441 2002-06-05  David S. Miller  <davem@redhat.com>
442
443         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
444         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
445         emit_insns_before_scope, emit_insns_after,
446         emit_insns_after_scope): Delete declaration.
447         * ada/misc.c (insert_code_for): Use emit_insn* instead of
448         emit_insns_foo.
449         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
450         (alpha_set_memflags): Fix comment.
451         (set_frame_related_p): Use get_insns instead of gen_sequence.
452         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
453         emitting no insns.
454         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
455         gen_sequence.
456         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
457         * config/fr30/fr30.c (fr30_move_double): Likewise.
458         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
459         Likewise.
460         * config/ia64/ia64.c (spill_restore_mem): Likewise.
461         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
462         no insns.
463         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
464         instead of gen_sequence.
465         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
466         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
467         * config/sh/sh.c (sh_need_epilogue): Likewise.
468         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
469         attributes.
470         (setjmp pattern and split): Use them to avoid splitter which emits
471         no RTL.
472         * genattrtab.c (main): Emit include of function.h
473         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
474         get_insns instead of gen_sequence.
475         * config/cris/cris.c (cris_split_movdx): Likewise.
476         * emit-rtl.c (emit_insns*): Kill.
477         (try_split): Expect insn list instead of SEQUENCE.
478         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
479         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
480         Make them abort if a SEQUENCE is given and RTL checking is
481         enabled.
482         (emit_*_scope): Don't forget to set scope on final insn.
483         (gen_sequence): Move from here...
484         * ssa.c (gen_sequence): To here as private function.
485         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
486         comments.
487         (expand_builtin_return, expand_builtin_mathfn): Likewise.
488         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
489         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
490         (expand_builtin_expect_jump): Use get_insns and fix comments.
491         * calls.c (try_to_integrate): Use emit_insn_foo.
492         (expand_call, emit_library_call_value_1): Likewise.
493         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
494         (emit_move_insn_1): Use get_insns instead of gen_sequence.
495         (expand_expr): Use emit_insn_foo.
496         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
497         * except.c (build_post_landing_pads): Likewise.
498         * flow.c (attempt_auto_inc): Likewise.
499         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
500         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
501         * function.c (fixup_var_refs_insn): Use get_insns instead of
502         gen_sequence.
503         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
504         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
505         (fixup_stack_1, purge_addressof_1, expand_main_function,
506         get_arg_pointer_save_area): Likewise.
507         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
508         expand_function_end): Use emit_insn_foo.
509         (record_insns, keep_stack_depressed): Work with insn list instead
510         of SEQUENCE, fix comments.
511         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
512         noce_try_store_flag_constants, noce_try_store_flag_inc,
513         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
514         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
515         (noce_process_if_block): Use get_insns instead of gen_sequence.
516         * optabs.c (add_equal_note): Work with insn list, fix comments.
517         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
518         (expand_unop, expand_complex_abs, expand_unop_insn,
519         expand_no_conflict_block): Likewise.
520         (gen_move_insn): Use get_insns instead of gen_sequence.
521         (gen_cond_trap): Likewise.
522         * integrate.c (copy_rtx_and_substitute): Likewise.
523         (emit_initial_value_sets): Use emit_insn_foo.
524         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
525         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
526         now that RTL generators give insn lists.
527         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
528         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
529         instead of gen_sequence.
530         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
531         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
532         instead of gen_sequence.
533         * loop.c (move_movables, emit_prefetch_instructions,
534         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
535         Likewise.
536         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
537         (product_cheap_p): Likewise, and add commentary about RTL wastage
538         here.
539         * lcm.c (optimize_mode_switching): Use get_insns instead of
540         gen_sequence.
541         * profile.c (gen_edge_profiler): Likewise.
542         * regmove.c (copy_src_to_dest): Likewise.
543         * reg-stack.c (compensate_edge): Likewise and fix comment.
544         * gcse.c (process_insert_insn): Likewise.
545         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
546         * jump.c (delete_prior_computation): Update comment.
547         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
548         of gen_sequence, update comments to match.
549         * recog.c (peephole2_optimize): Work with insn lists instead of
550         SEQUENCE rtl.
551         * sched-vis.c (print_pattern): Abort on SEQUENCE.
552         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
553         Use get_insns instead of gen_sequence.
554         (copy_loop_body): Likewise and don't emit dummy NOTE.
555         * genrecog.c: Don't mention SEQUENCE rtl in comments.
556         * combine.c (try_combine): Expect insn lists from split generator.
557         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
558         hand.
559
560 2002-06-11  Roger Sayle  <roger@eyesopen.com>
561             Andreas Jaeger <aj@suse.de>
562
563         * cfgbuild.c: Update copyright years.
564
565 2002-06-11  Andreas Schwab  <schwab@suse.de>
566
567         * config/m68k/m68k.h (PREDICATE_CODES): Define.
568
569 2002-06-11  Eric Christopher  <echristo@redhat.com>
570
571         * doc/tm.texi (Run-time Target): Add comment about flag_iso
572         and strict ANSI.
573         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
574         * config/mips/ecoffl.h: Ditto.
575         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
576         (CPP_PREDEFINES): Ditto.
577         * config/mips/elfl64.h: Ditto.
578         * config/mips/elfl.h: Ditto.
579         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
580         out until irix header consolidation.
581         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
582         with SUBTARGET_OS_CPP_BUILTINS.
583         * config/mips/iris6.h: Ditto.
584         (CPLUSPLUS_CPP_SPEC): Remove.
585         * config/mips/linux.h: Ditto.
586         * config/mips/netbsd.h: Ditto.
587         * config/mips/openbsd.h: Ditto.
588         * config/mips/rtems.h: Ditto.
589         * config/mips/rtems64.h: Ditto.
590         * config/mips/sni-svr4.h: Ditto.
591         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
592         ISA_MIPS32, ISA_MIPS64): New defines.
593         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
594         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
595         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
596         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
597         (TARGET_CPU_CPP_BUILTINS): Define.
598         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
599         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
600         (movdicc): Remove check for ISA_MIPS32.
601          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
602         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
603         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
604         sunge_sf, sunle_df, sunle_sf): New patterns.
605
606 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
607
608         * Makefile.in: Update cppmain.o.
609         * cpphash.h (struct cpp_reader): Move some members to a
610         nested structure.
611         (trad_line): Rename saved_line.
612         (_cpp_read_logical_line_trad): Update.
613         (_cpp_remove_overlay): New.
614         * cppinit.c (cpp_create_reader): No need to set saved_line.
615         (cpp_destroy): Update.
616         (cpp_read_main_file): Only overlay if compiling.
617         * cpplex.c (continue_after_nul): Return false if in directive.
618         * cpplib.c (EXPAND): New.
619         (directive_table, SEEN_EOL): Update.
620         (end_directive): Remove overlay if traditional; don't skip
621         line in traditional #define.
622         (prepare_directive_trad): New.
623         (_cpp_handle_directive, run_directive): Update for traditional
624         directives.
625         (lex_macro_node): Simplify, don't use lex_identifier_trad.
626         * cpplib.h (struct options): Add preprocess_only.
627         * cppmain.c: Don't include intl.h.
628         (cpp_preprocess_file): Set options->preprocess_only.
629         (scan_translation_unit_trad): Fix, and print line numbers.
630         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
631         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
632         save_replacement_text, _cpp_create_trad_definition): Update for
633         variable renaming.
634         (_cpp_overlay_buffer): Save line number.
635         (_cpp_remove_overlay): Rename from restore_buff, restore line.
636         (_cpp_read_logical_line_trad): Don't handle overlays here.
637         (scan_out_logical_line): Process directives.
638
639 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
640
641         * gthr-win32.h: Wrap functions in extern "C".
642         (__gthread_key_t): Typedef as unsigned long,
643         not win32 DWORD.
644         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
645         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
646         (__gthr_win32_once, __gthr_win32_key_create,
647         __gthr_win32_key_delete, __gthr_win32_getspecific,
648         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
649         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
650         __gthr_win32_mutex_unlock): Declare.
651         (__gthread_once,__gthread_key_create,
652         __gthread_key_delete, __gthread_getspecific,
653         __gthread_setspecific, __gthread_mutex_init_function,
654         __gthread_mutex_lock,__gthread_mutex_trylock,
655         __gthread_mutex_unlock): Call corresponding
656         __gthr_win32_* extern implementations if #defined
657         __GTHREAD_HIDE_WIN32API.
658         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
659         $(srcdir)/config/i386/gthr-win32.c
660         * config/i386/gthr-win32.c: New implementation file.
661         (__gthr_win32_once, __gthr_win32_key_create,
662         __gthr_win32_key_delete, __gthr_win32_getspecific,
663         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
664         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
665         __gthr_win32_mutex_unlock): New functions, based on
666         static inlines in gthr-win32.h.
667
668 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
669
670         * config/xtensa/xtensa.c (override_options): Don't warn about
671         using -fpic or -fPIC when PIC is enabled by default.
672
673 2002-06-10  Roger Sayle  <roger@eyesopen.com>
674
675         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
676
677 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
678
679         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
680         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
681         exists, substitute its pathname as @extra_modes_file@, define
682         EXTRA_MODES_FILE to be an appropriate string to #include it
683         with, and define EXTRA_CC_MODES to 1.
684
685         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
686         it's defined.  Get rid of redundancy in calling sequence for
687         CC; don't use it to define CCmode, to avoid a warning.
688         * libgcc2.c: Include symcat.h for the sake of machmode.def.
689
690         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
691         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
692         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
693         New files.
694         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
695         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
696
697         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
698         defining extra CC modes.
699
700 2002-06-10  Roger Sayle  <roger@eyesopen.com>
701             Andreas Jaeger <aj@suse.de>
702
703         * cfgrtl.c (create_basic_block_structure):  Remove index argument
704         and use last_basic_block++ instead.  (create_basic_block): Update.
705         * cfgbuild.c (find_basic_blocks_1): Likewise.
706
707         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
708         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
709         * sched-ebb.c (schedule_ebbs): Likewise.
710         * sched-rgn.c (schedule_insns): Likewise.
711         * ssa-ccp.c (ssa_const_prop): Likewise.
712         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
713         * toplev.c (rest_of_compilation): Likewise.
714         * config/ia64/ia64.c (ia64_reorg): Likewise.
715
716 2002-06-10  Roger Sayle  <roger@eyesopen.com>
717
718         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
719         of matching registers.
720
721 2002-06-10  Roger Sayle  <roger@eyesopen.com>
722
723         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
724         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
725
726 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
727
728         * config/mmix/mmix.h: Improve comments.
729         (CPP_SPEC, CPP_PREDEFINES): Don't define.
730         (TARGET_CPU_CPP_BUILTINS): Define.
731         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
732         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
733         unused predicate.
734         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
735         compiler warning.
736         (mmix_constant_address_p): Remove another
737         redundant test before case.
738         (mmix_canonicalize_comparison): Remove unused function.
739         (mmix_print_operand_address): Don't test and adjust for operand in
740         non-canonical format.
741         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
742         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
743
744 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
745
746         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
747         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
748         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
749         (gen_compare): Use CCmode unconditionally.
750
751 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
752
753         PR optimization/6759
754         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
755         the REQ_EQUAL note.
756
757 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
758
759         PR c/6660
760         * c-decl.c (grokfield): Allow user defined types if they declare
761         structs or unions for unnamed fields.
762
763 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
764
765         PR c/6809
766         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
767
768 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
769
770         PR optimization/6842
771         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
772         operand subreg cannot be simplified.
773
774 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
775
776         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
777         (compare_constant): Likewise.
778         (output_addressed_constants): Likewise.
779
780 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
781
782         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
783         merge bb with itself.
784
785 2002-06-10  Richard Henderson  <rth@redhat.com>
786
787         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
788         (builtin_zapnot): Likewise.
789
790         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
791         reservation.
792
793 2002-06-10  Eric Christopher  <echristo@redhat.com>
794
795         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
796         prototype and function.
797         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
798         (call_insn_operand): Remove half pic references.
799         (legitimate_address_p): Ditto.
800         * config/i386/i386.h: Remove half pic defines.
801
802 2002-06-10  Eric Christopher  <echristo@redhat.com>
803
804         * doc/extend.texi (Return Address): Add note explaining the side-
805         effects of inlining on __builtin_return_address.
806
807 2002-06-10  Tom Tromey  <tromey@redhat.com>
808
809         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
810         (c-common.o): Depend on langhooks.h.
811
812 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
813
814         * cpphash.h (_cpp_read_logical_line_trad,
815         _cpp_expansions_different_trad): Update prototypes.
816         * cpplex.c (continue_after_nul): New.
817         * cppmain.c: Include cpphash.h.
818         (scan_translation_unit_trad): New.
819         (cpp_preprocess_file): Call it.
820         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
821         overlay.
822         (_cpp_expansions_different_trad): Update prototype.
823
824 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
825
826         Fix cfi generation for SH[1-4]:
827
828         * sh.c (frame_insn): New function.
829         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
830         (push): Now returns rtx.  Use frame_insn.
831         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
832         of a DF register.
833         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
834
835 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
836
837         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
838         and gtype-desc.c.
839         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
840         (distclean): ... not here.  But do delete all testsuite/*.log,
841         testsuite/*.sum files here.  Delete mkheaders.  Delete
842         po/*.gmo and the testsuite directory in a split tree build.
843
844 2002-06-10  Jeffrey Law  <law@redhat.com>
845
846         * alias.c (static_reg_base_value): New to hold RTL for
847         items allocated once per function for the aliasing code.
848         (init_alias_once_per_function): Initialize static_reg_base_value.
849         (init_alias_analysis): Avoid throw-away allocations of RTL by
850         using pre-computed values in static_reg_base_value.
851         * function.c (prepare_function_start): Call
852         init_alias_once_per_function appropriately.
853         * rtl.h (init_alias_once_per_function): Declare.
854         * caller-save (init_caller_save): Restructure slightly to
855         avoid lots of silly RTL generation.
856         * expr.c (init_expr_once): Likewise.
857         * reload1.c (reload_cse_regs_1): Allocate throw-away register
858         RTL object here.  Pass it into children.
859         (reload_cse_simplify_operands): Use passed-in register RTL
860         object.
861         (reload_cse_simplify): Pass through throw-away register
862         RTL object.
863
864 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
865
866         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
867
868 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
869
870         * gcc.c (process_command): Avoid assignment to read-only location.
871         Fix sizeof calculation.
872
873 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
874
875         * cpphash.h (struct cpp_macro): Put comments on their own lines.
876         (_cpp_expansions_different_trad): New.
877         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
878         * cpptrad.c (canonicalize_text): New.
879         (scan_out_logical_line): Handle no arguments correctly.
880         (save_replacement_text): Commit memory when finished.
881         (_cpp_expansions_different_trad): New.
882
883 2002-06-10  Tim Josling  <tej@melbpc.org.au>
884
885         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
886         TREELANG and COBOL.
887         (lang_names): Add treelang and cobol.
888         (get_file_basename): Add code to support treelang and cobol as
889         4th and 5th users of c-common.c.
890
891 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
892
893         * Makefile.in (install-driver): Install driver as
894         $(target_alias)-gcc-$(version).
895         * gcc.c (spec_version): Make const.
896         (process_command): Handle -V and -b by using exec.
897         * doc/invoke.texi (Target Options): Restore -V option,
898         update docs for -b option.
899
900 2002-06-10  Tim Josling  <tej@melbpc.org.au>
901
902         * configure.in (remaining_languages_check):
903         Added check that all languages specified were found.
904         Exit if not found. Previous behaviour was silent failure.
905         * configure: Regenerated.
906
907 2002-06-10  Tim Josling  <tej@melbpc.org.au>
908
909          First steps to making treelang documentation compliant, based on
910          instructions in sourcebuild.texi. Also add to gcc.c list of
911          default languages.
912
913         * doc/contrib.texi: Add self as contributor of treelang.
914
915         * doc/frontends.texi: Add mention of treelang.
916
917         * doc/invoke.texi (Overall Options): Add mention of treelang.
918
919         * doc/standards.texi:  Add mention of treelang.
920
921 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
922
923         * config/cris/cris.c: Include ggc.h
924
925 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
926
927         * cpphash.h (_cpp_push_text_context): Update.
928         (_cpp_arguments_ok): New.
929         * cppmacro.c (_cpp_arguments_ok): New, split out from...
930         (collect_args): ...here.
931         (_cpp_push_text_context): Change inputs.
932         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
933         replace_args_and_push): New.
934         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
935         Don't use IS macros directly.
936         (scan_out_logical_line): Handle function-like macro argument
937         collection.
938         (push_replacement_text): Update.
939         (replacement_length): Remove.
940         (_cpp_create_trad_definition): Don't skip whitespace before
941         checking for '('.
942
943 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
944
945         * config/avr/avr.c (avr_mcu_types): Update for new devices.
946         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
947         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
948         * config/avr/avr.md ("type" and "length" attributes): New type
949         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
950         output a single "call" or "rcall" insn depending on device size.
951         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
952
953 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
954
955         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
956         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
957         assembler option.
958         (CPP_CPU_SPEC): Add power3 and power4.
959         (PROCESSOR_DEFAULT): Change to 604e.
960         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
961         (CPP_CPU_SPEC): Similar additions.
962         (enum process_type): Add POWER4.
963         (RTX_COSTS): Add POWER4.
964         (CPP_CPU_SPEC): Similar additions.
965         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
966         (PROCESSOR_DEFAULT64): Define.
967         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
968         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
969         branch adjustment.
970         (rs6000_issue_rate): Add Power4.
971         * config/rs6000/rs6000.md (cpu attr): Add power4.
972         (iu compare): Remove 604, 604e, 620, 630.
973         Add basic Power4 scheduling information.
974         (mfcr/mtcrf): Change type attribute to cr_logical.
975
976 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
977
978         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
979         ATTRIBUTE_PRINTF_2.
980         * gengtype-lex.l: Fix format specifier warning.
981
982         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
983         not isspace.
984         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
985         lieu of isspace/IDchar.
986         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
987         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
988         ISSPACE.
989
990 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
991
992         * Makefile.in (LIBCPP_OBJS): Take out version.o.
993         * cpphash.h (cpp_reader): Take out print_version member.
994         * cppinit.c: (cpp_handle_option): Don't do anything with
995         -version.  Just set help_only for --version, --target-help.
996         Just set verbose option for -v.
997         (cpp_post_options): Don't print a version string.
998
999 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1000
1001         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
1002         (avr_section_type_flags): New, handle .noinit* sections.
1003
1004 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1005
1006         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
1007         and include netbsd_entry_point.
1008         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1009         (NETBSD_ENTRY_POINT): Define.
1010
1011 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1012
1013         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
1014         if not already defined.
1015         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
1016
1017 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1018
1019         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
1020         in a noreturn function.
1021         (avr_output_function_prologue, avr_output_function_epilogue):
1022         Correct function size calculation.  Do not crash on empty function.
1023         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
1024
1025 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1026
1027         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1028         netbsd_link_spec and netbsd_entry_point.
1029         (LINK_SPEC): Use %(netbsd_link_spec).
1030         (NETBSD_ENTRY_POINT): Define.
1031
1032 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1033
1034         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
1035         linker emulation.
1036         (LINK_ARCH64_SPEC): Likewise.
1037         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
1038         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
1039
1040 2002-06-08  Marc Espie  <espie@openbsd.org>
1041
1042         * lists.c (free_list):  Fix typo in comment.
1043
1044 2002-06-08  Andreas Jaeger  <aj@suse.de>
1045
1046         * lcm.c (optimize_mode_switching): Add unused attribute for
1047         variable.
1048
1049         * sched-deps.c (sched_analyze): Remove unused variable.
1050
1051 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
1052
1053         * diagnostic.def: Don't capitalize diagnostict descriptors.
1054
1055 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1056
1057         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
1058         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1059         (NETBSD_ENTRY_POINT): Define.
1060
1061 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1062
1063         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
1064         NETBSD_LINK_SPEC_ELF.
1065         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
1066         (NETBSD_ENTRY_POINT): Define.
1067         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
1068         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
1069         netbsd_entry_point.
1070         (NETBSD_ENTRY_POINT): Define.
1071
1072 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1073
1074         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1075         netbsd_link_spec and netbsd_entry_point.
1076         (LINK_SPEC): Use %(netbsd_link_spec).
1077         (NETBSD_ENTRY_POINT): Define.
1078
1079 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
1080
1081         * config/netbsd-elf.h (LINK_SPEC): Rename to...
1082         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
1083         to specify program entry point.
1084
1085 2002-06-07  Jeff Law <law@redhat.com
1086
1087         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
1088         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
1089         than creating a new register.
1090         (distribute_notes): Likewise.
1091         * df.c (df_reg_use_gen): Likewise.
1092         (df_reg_clobber_gen): Likewise.
1093         (df_ref_record): Likewise.
1094         * expr.c (use_regs): Likewise.
1095         * flow.c (propagate_one_insn): Likewise.
1096         (mark_set_1): Likewise.
1097         (mark_used_reg): Likewise.
1098         * reload.c (emit_reload_insns): Likewise.
1099
1100 2002-06-07  Roger Sayle  <roger@eyesopen.com>
1101
1102         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
1103         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
1104         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
1105         comparison code comp can be reversed.
1106
1107 2002-06-07  Roger Sayle  <roger@eyesopen.com>
1108
1109         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
1110         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
1111         equivalent x > -1.0 when -ffast-math.
1112
1113 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1114
1115         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
1116         * config/mips/t-netbsd: New file.
1117
1118 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
1119
1120         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
1121         options their own entries.
1122         (parse_option): Clarify comment.
1123         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
1124         special case.  Replace if/strcmp chain for -W options with
1125         use of new OPT_* entries for them.
1126         (cpp_handle_options): Update to match.
1127         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
1128         * c-decl.c: Update call to cpp_handle_option.
1129
1130 2002-06-07  Akim Demaille  <akim@epita.fr>
1131
1132         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
1133         Whitespace changes.
1134
1135 2002-06-07  Jeffrey Law  <law@redhat.com>
1136
1137         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
1138         on empty lists.
1139
1140 2002-06-07  H.J. Lu  (hjl@gnu.org)
1141
1142         * configure.in: Add --enable-__cxa_atexit.
1143         * configure: Regenerated.
1144         * config.in: Likewise.
1145
1146         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
1147         not defined.
1148
1149 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
1150
1151         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
1152
1153 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1154
1155         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
1156
1157 2002-06-07  Jason Merrill  <jason@redhat.com>
1158
1159         * cppexp.c (num_equality_op): Use a temporary variable to work
1160         around gcc 3.0.4 bug.
1161
1162 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
1163
1164         * diagnostic.c (diagnostic_build_prefix): Tidy.
1165
1166 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1167
1168         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
1169         scan_parameters, save_replacement_text, replacement_length): New.
1170         (scan_out_logical_line): Take a macro and save parameters if
1171         non-NULL.
1172         (_cpp_logical_line_trad): Update.
1173         (_cpp_create_trad_definition): Update to handle function-like
1174         macros.
1175         * cpplex.c (new_buff): Update.
1176         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
1177         * cpphash.h: ...here.
1178         (CPP_ALIGN2, _cpp_save_parameter): New.
1179         * cppmacro.c (save_parameter): Rename, export.
1180         (parse_params): Update.
1181
1182 2002-06-07  Andreas Jaeger  <aj@suse.de>
1183
1184         * config/mmix/mmix.c: Remove extra broken prototype for
1185         mmix_init_machine_status.
1186
1187 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
1188
1189         * gengtype.c: Add comments before all the routines.
1190
1191 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1192
1193         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
1194         from and add t-sh64 to ${tmake_file}.
1195         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
1196         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
1197         * config/sh/t-netbsd-sh5-32: Remove.
1198         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
1199         MULTILIB_ENDIAN.
1200         (MULTILIB_DIRNAMES): Define.
1201
1202 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
1203
1204         * i386.md (and promoting splitters): Disable QI to SImode promoting
1205         when doing so changes immediate to be 32bit.
1206
1207         * rtl.h (emit_*_scope): Declare.
1208         * emit-rtl.c (emit_*_scope): New global functions.
1209         (try_split): Copy scope.
1210         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1211         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1212         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
1213         noce_process_if_block, find_cond_trap): Copy scopes.
1214         * recog.c (peephole2_optimize): likewise.
1215
1216 2002-06-06  Jeffrey Law  <law@redhat.com>
1217
1218         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
1219
1220 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
1221
1222         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
1223
1224 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1225
1226         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
1227         ($(docdir)/gccinstall.info): New target.
1228         (info): Depend on it.
1229         (gccinstall.dvi): New target.
1230         (dvi): Depend on it.
1231         * doc/.cvsignore: Ignore new info files.
1232         * doc/install.texi (@setfilename): Reflect new info filename.
1233
1234 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
1235
1236         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
1237         on an UNSPEC.
1238
1239 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1240
1241         PR objc/6834
1242         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
1243         c_common_get_alias_set.
1244         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
1245
1246 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1247
1248         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
1249         functions.
1250         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
1251         * avr/avr.c (avr_output_function_epilogue): Use above to determine
1252         function size.
1253         * pa/pa.c (pa_output_function_prologue): Likewise.
1254
1255 2002-06-05  David S. Miller  <davem@redhat.com>
1256
1257         * integrate.c (subst_constants): Handle 'B' RTL format.
1258
1259 2002-06-05  Eric Christopher  <echristo@redhat.com>
1260
1261         * varasm.c (make_decl_rtl): Fix comment for removed
1262         halfpic.c.
1263
1264 2002-06-05  Eric Christopher  <echristo@redhat.com>
1265
1266         * Makefile.in: Remove missed halfpic bits.
1267
1268 2002-06-05  Eric Christopher  <echristo@redhat.com>
1269
1270         * toplev.c: Remove half-pic.
1271         * config/mips/mips.c: Ditto.
1272         * config/mips/mips.h: Ditto. Remove unused defines.
1273         * config/mips/openbsd.h: Update comment to reflect above.
1274         * config/mips/mips.md: Remove half-pic constraints.
1275         * halfpic.h: Delete.
1276         * halfpic.c: Ditto.
1277
1278 2002-06-05  Jeffrey Law  <law@redhat.com>
1279
1280         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
1281         rejects (mem (lo_sum (reg) (unspec))), but will allow
1282         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
1283
1284 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1285
1286         * cpphash.h (_cpp_create_definition): Update prototype.
1287         (_cpp_push_text_context, _cpp_create_trad_definition): New.
1288         ( cpp_lex_identifier_trad): New.
1289         (_cpp_set_trad_context): New.
1290         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
1291         * cpplib.c (SEEN_EOL): Update.
1292         (lex_macro_node): Update for -traditional.
1293         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
1294         * cppmacro.c (_cpp_create_definition): Split into
1295         create_iso_definition() and _cpp_create_trad_definition().
1296         (warn_of_redefinition): Update prototype; handle traditional
1297         macros.
1298         (_cpp_push_text_context): New.
1299         * cpptrad.c (skip_whitespace, push_replacement_text): New.
1300         (lex_identifier): Call ht_lookup with correct start.
1301         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
1302         _cpp_set_trad_context): New.
1303         (scan_out_logical_line): Update to handle changing contexts.
1304
1305 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
1306
1307         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
1308         (shl*-*-elf*): Add.
1309         * config/sh/t-be (MULTILIB_ENDIAN): Set.
1310         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
1311         * t-sh (MULTILIB_ENDIAN): Set.
1312         (MULTILIB_OPTIONS): Use it.
1313         * t-sh64 (MULTILIB_OPTIONS): Likewise.
1314         (MULTILIB_DIRNAMES): Likewise.
1315
1316 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
1317
1318         * toplev.h (report_error_function): Remove.
1319
1320         * diagnostic.h (location_t): New datatype.
1321         (text_info): Likewise.
1322         (diagnostic_info): Likewise.
1323         (output_prefix): New macro.
1324         (diagnostic_last_function_changed): Likewise.
1325         (diagnostic_set_last_function): Likewise.
1326         (diagnostic_last_module_changed): Likewise.
1327         (diagnostic_set_last_module): Likewise.
1328         (report_diagnostic): Now macro.
1329         (diagnostic_set_info): Declare.
1330
1331         * diagnostic.c (report_problematic_module): Rename to
1332         diagnostic_repor_current_module.
1333         (set_diagnostic_context): Remove.
1334         (count_error): Rename to diagnostic_error_count.
1335         (error_function_changed): Remove.
1336         (record_last_error_function): Likewise.
1337         (error_module_changed): Likewise.
1338         (record_last_error_module): Likewise.
1339         (context_as_prefix): Rename to diagnostic_build_prefix.
1340         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
1341         (diagnostic_set_info): New function.
1342
1343         * objc/objc-act.c: #include diagnostic.h
1344         (error_with_ivar): Adjust call to count_error.
1345         (warn_with_method): Likewise.
1346         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
1347
1348 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
1349
1350         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
1351         lang_hooks.types.make_type instead of make_node; set up
1352         __va_list_tag type decl.
1353         (xtensa_builtin_saveregs): Remove broken use of
1354         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
1355         for saved registers; add varargs alias set.
1356
1357 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1358
1359 config:
1360         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
1361         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1362         CPP_PREDEFINES and part of CPP_SPEC.
1363         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
1364         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
1365
1366 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
1367
1368         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
1369
1370 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
1371
1372         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
1373
1374 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
1375
1376         * gengtype-yacc.y: Make sure all rules end with a semicolon.
1377
1378 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
1379
1380         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
1381         typo in function prototype and include "ggc.h" header.
1382
1383 2002-06-04  Richard Henderson  <rth@redhat.com>
1384
1385         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
1386         (print_operand) ['U']: Likewise.
1387         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
1388         (alpha_expand_unaligned_store_words): Likewise.
1389         (alpha_expand_builtin_vector_binop): Fix typo.
1390         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
1391         umulh, and cix insns.
1392         (one_arg_builtins): Add cix builtins.
1393         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
1394         (alpha_expand_builtin): Fix typo in arity.
1395         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
1396         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
1397         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
1398         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
1399         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
1400         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
1401         builtin_ctlz, builtin_ctpop): New.
1402         * doc/extend.texi (Alpha Built-in Functions): Update.
1403
1404 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
1405
1406         * gengtype.c (write_gc_root): Don't unnecessarily prevent
1407         global variable-length arrays being roots.
1408
1409         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
1410         * configure.in (config_gtfiles): New variable.
1411         (all_gtfiles): Initialise from config_gtfiles.
1412         * configure: Regenerate.
1413
1414 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1415
1416 config/i386:
1417         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
1418         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
1419         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
1420         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
1421         win32.h (CPP_SPEC): Remove cpp_cpu.
1422         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
1423         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
1424
1425 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
1426
1427         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
1428
1429 2002-06-04  Jeff Law <law@redhat.com.
1430             David Edelsohn <edelsohn@gnu.org>
1431             Michael Matz <matz@kde.org>
1432
1433         * sched-int.h (struct deps): New field libcall_block_tail_insn.
1434         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
1435         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
1436         is set, then mark the current insn as being part of a libcall
1437         scheduling group.
1438         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
1439
1440         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
1441         insns against the issue rate.
1442
1443 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
1444
1445         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
1446         * final.c (final_scan_insn): Likewise.
1447         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
1448         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
1449         * haifa-sched.c (unlink_other_notes): Likeewise.
1450         (reemit_notes): Likewise.
1451         * print-rtl.c (print_rtx): Likewise.
1452         * sched-deps (sched-analyze): Likewise.
1453         * rtl.c (note_insn_name): Likewise.
1454         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
1455         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
1456         (RANGE_*): Kill.
1457
1458 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
1459
1460         * varasm.c (mark_constants): Handle RTX format 'B'.
1461
1462 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1463
1464         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
1465         (struct cpp_context): Add traditional fields.
1466         * cppmacro.c (paste_all_tokens, push_ptoken_context,
1467         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
1468         * cpptrad.c (skip_comment, lex_identifier,
1469         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
1470
1471 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
1472
1473         * gbl-ctors.h: Fix formatting.
1474         * gcc.c: Likewise.
1475         * gccspec.c: Likewise.
1476         * gcov.c: Likewise.
1477         * gcov-io.h: Likewise.
1478         * gcse.c: Likewise.
1479         * ggc-common.c: Likewise.
1480         * ggc.h: Likewise.
1481         * ggc-page.c: Likewise.
1482         * ggc-simple.c: Likewise.
1483         * global.c: Likewise.
1484         * graph.h: Likewise.
1485         * gthr-dce.h: Likewise.
1486         * gthr.h: Likewise.
1487         * gthr-posix.h: Likewise.
1488         * gthr-rtems.h: Likewise.
1489         * gthr-solaris.h: Likewise.
1490         * gthr-win32.h: Likewise.
1491
1492 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
1493
1494         Merge from pch-branch:
1495
1496         * gengtype.h (UNION_OR_STRUCT_P): New macro.
1497         * gengtype.c (write_gc_structure_fields): Use it.
1498         (write_gc_root): Use it here too.
1499
1500         * gengtype.c (write_gc_structure_fields): Assume that lengths
1501         of typenames fit into an 'int'; don't pass a size_t to "%d" in
1502         printf.
1503         (write_gc_marker_routine_for_structure): Likewise.
1504         (write_gc_types): Likewise.
1505         (write_gc_root): Likewise.
1506
1507         * varray.h (VARRAY_CLEAR): New.
1508         (varray_clear): Prototype.
1509         * varray.c (varray_clear): New.
1510         * cselib.c (reg_values_old): New.
1511         (used_regs_old): New.
1512         (cselib_init): Use cached varrays if available to avoid
1513         generating large amounts of garbage.
1514         (cselib_finish): Don't throw away old varrays.
1515
1516         * final.c (insn_addresses_): Move out of ifdef.
1517
1518         * varray.c (uses_ggc): Make more varray kinds GCable.
1519         * varray.h (union varray_data_tag): Let gengtype see
1520         fields 'generic' and 'te'.
1521         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
1522         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
1523         (reg_to_stack): Don't call VARRAY_FREE.
1524         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
1525         (insn_addresses_): Use gengtype to mark.
1526         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
1527         pointers; handle generic pointers in unused union fields.
1528         (get_output_file_with_visibility): Include cselib.h,
1529         insn-addr.h in gtype-desc.c.
1530         * function.c (prologue): Use gengtype to mark.
1531         (epilogue): Likewise.
1532         (sibcall_epilogue): Likewise.
1533         * dependence.c: Include gt-dependence.h, ggc.h.
1534         (struct def_use): Use gengtype to mark.
1535         (struct loop): Likewise.
1536         (struct induction): Likewise.
1537         (struct dependence): Likewise.
1538         (def_use_chain): Likewise.
1539         (dep_chain): Likewise.
1540         (loop_chain): Likewise.
1541         (induction_chain): Likewise.
1542         (init_dependence_analysis): Don't free anything, just clear pointers.
1543         (build_def_use): Use GGC to allocate def_use.
1544         (add_loop): Use GGC to allocate loop.
1545         (find_induction_variable): Use GGC to allocate induction.
1546         (check_node_dependence): Use GGC to allocate induction, dependence.
1547         (dump_node_dependence): Don't free varrays.
1548         (end_dependence_analysis): Likewise.
1549         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
1550         (struct elt_loc_list): Likewise.
1551         (struct elt_list): Likewise.
1552         * cselib.c: Don't include obstack.h.
1553         (hash_table): Use gengtype to mark.
1554         (reg_values): Use gengtype to mark.
1555         (used_regs): Use gengtype to mark.
1556         (cselib_obstack): Delete.
1557         (cselib_startobj): Delete.
1558         (empty_vals): Mark as deletable.
1559         (empty_elt_lists): Mark as deletable.
1560         (empty_elt_loc_lists): Mark as deletable.
1561         (new_elt_list): Use GGC to allocate struct elt_list.
1562         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
1563         (clear_table): Don't delete obstack; don't unnecessarily clear
1564         deletable variables.
1565         (new_cselib_val): Use GGC to allocate struct cselib_val.
1566         (cselib_init): Don't set up obstacks.  Use GGC to allocate
1567         hash table.
1568         (cselib_finish): Just clear variables, don't free anything.
1569         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
1570         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
1571         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
1572         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
1573         (gt-reg-stack.h): New rule.
1574         (gt-dependence.h): New rule.
1575         (gtype-desc.o): Add cselib.h, insn-addr.h.
1576
1577         * varray.c: Use only necessary headers.
1578         (element_size): New.
1579         (uses_ggc): New.
1580         (varray_init): Take type, not size.  Use GGC if appropriate.
1581         (varray_grow): Update for change to struct varray_head_tag.
1582         Use GGC if appropriate.
1583         * varray.h (struct const_equiv_data): Use gengtype.
1584         (enum varray_data_enum): New.
1585         (union varray_data_tag): Use gengtype.
1586         (struct varray_head_tag): Use gengtype.  Replace size field with
1587         enum varray_data_enum.
1588         (varray_init): Update prototype.
1589         (VARRAY_SCHED_INIT): Delete.
1590         (VARRAY_*_INIT): Update for change to varray_init.
1591         (VARRAY_SCHED): Delete.
1592         (VARRAY_PUSH_SCHED): Delete.
1593         (VARRAY_TOP_SCHED): Delete.
1594         * tree.h: Update for change to length specifier.
1595         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
1596         (clone_body): Likewise.
1597         * ssa.h (ssa_definition): Use gengtype to mark.
1598         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
1599         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
1600         * rtl.h (struct rtvec_def): Update for change to length specifier.
1601         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
1602         (struct initial_value_struct): Update for change to length specifier.
1603         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
1604         (ggc_add_tree_varray_root): Delete prototype.
1605         (ggc_mark_rtx_varray): Delete prototype.
1606         (ggc_mark_tree_varray): Delete prototype.
1607         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
1608         (ggc_add_tree_varray_root): Delete.
1609         (ggc_mark_rtx_varray): Delete.
1610         (ggc_mark_tree_varray): Delete.
1611         (ggc_mark_rtx_varray_ptr): Delete.
1612         (ggc_mark_tree_varray_ptr): Delete.
1613         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
1614         (create_varray): Delete prototype.
1615         * gengtype.c (varrays): Delete.
1616         (create_varray): Delete.
1617         (adjust_field_type): Detect array of string pointers.
1618         (process_gc_options): Remove code to handle varray_type option.
1619         (set_gc_used_type): Remove TYPE_VARRAY case.
1620         (output_escaped_param): New.
1621         (write_gc_structure_fields): Use output_escaped_param on all
1622         parameters.  Handle 'skip' with 'use_param' option.  Handle
1623         arrays of strings.  Remove TYPE_VARRAY handling.
1624         (write_gc_roots): Use boolean to detect 'length' option.
1625         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
1626         (struct_fields): Call adjust_field_type on array fields.
1627         (type): Remove VARRAY_TYPE case.
1628         (type_option): Likewise.
1629         * gengtype-lex.l: Don't consider varray_type a keyword.
1630         * function.h: Update for change to length specifier.
1631         (free_eh_status): Delete prototype.
1632         * function.c (free_after_compilation): Don't call free_eh_status.
1633         (reorder_blocks): Don't use VARRAY_FREE.
1634         * except.c (struct eh_status): Update for change to length specifier.
1635         remove varray_type specifier.
1636         (free_eh_status): Delete.
1637         * dwarf2out.c: Include gt-dwarf2out.h.
1638         (used_rtx_varray): Use gengtype to mark, move
1639         outside ifdefs.
1640         (incomplete_types): Likewise.
1641         (decl_scope_table): Likewise.
1642         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
1643         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
1644         * c-tree.h (struct lang_type): Update for change to length specifier.
1645         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
1646         * c-objc-common.c: Include gt-c-objc-common.h.
1647         (deferred_fns): Mark for gengtype.
1648         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
1649         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
1650         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
1651         (gtype-desc.o): Update dependencies.
1652         (dwarf2out.o): Add gt-dwarf2out.h.
1653         (varray.o): Update dependencies.
1654         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
1655         (gt-c-objc-common.h): New rule.
1656         (gt-dwarf2out.h): New rule.
1657         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
1658
1659         * doc/gty.texi (GTY Options): Correct spelling.
1660         (GGC Roots): Likewise.
1661         * Makefile.in (TEXI_CPP_FILES): New.
1662         (TEXI_GCC_FILES): New.
1663         (TEXI_GCCINT_FILES): New.
1664         (TEXI_CPPINT_FILES): New.
1665         ($(docdir)/cpp.info): Use new macros.
1666         ($(docdir)/gcc.info): Likewise.
1667         ($(docdir)/gccint.info): Likewise.
1668         ($(docdir)/cppinternals.info): Likewise.
1669         (cpp.dvi): Likewise.
1670         (gcc.dvi): Likewise.
1671         (gccint.dvi): Likewise.
1672         (cppinternals.dvi): Likewise.
1673
1674         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
1675         * doc/gccint.texi (Top): Include gty.texi.
1676         * doc/gty.texi: New file.
1677
1678         * bitmap.c: Include ggc.h, gt-bitmap.h.
1679         (bitmap_ggc_free): New.
1680         (bitmap_elem_to_freelist): New.
1681         (bitmap_element_free): Use bitmap_elem_to_freelist.
1682         (bitmap_element_allocate): Allow use of GGC.
1683         (bitmap_clear): Use bitmap_elem_to_freelist.
1684         (bitmap_copy): Update for change to bitmap_element_allocate.
1685         (bitmap_set_bit): Likewise.
1686         (bitmap_operation): Update for changes elsewhere.
1687         (bitmap_initialize): Allow to create bitmaps that will use GGC.
1688         * bitmap.h (struct bitmap_element_def): Use gengtype.
1689         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
1690         (bitmap_initialize): Add extra parameter.
1691         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
1692         (BITMAP_ALLOCA): Delete.
1693         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
1694         (BITMAP_GGC_ALLOC): New.
1695         * Makefile.in (gtype-desc.o): Add bitmap.h.
1696         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
1697         (GTFILES): Add bitmap.c.
1698         (gt-bitmap.h): New rule.
1699         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
1700         * basic-block.h: Update for changes to bitmap_initialize.
1701         * except.c (exception_handler_label_map): Move into...
1702         (struct eh_status): Here.
1703         (struct eh_region): Make 'aka' GCable.
1704         (free_eh_status): Don't need to specially handle
1705         exception_handler_label_map.
1706         (add_ehl_entry): Update for changes to exception_handler_label_map.
1707         (find_exception_handler_labels): Likewise.
1708         (remove_exception_handler_label): Likewise.
1709         (maybe_remove_eh_handler): Likewise.
1710         (for_each_eh_label): Likewise.
1711         (remove_eh_handler): Allocate 'aka' using GGC.
1712         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
1713         to list of includes.
1714
1715         * gengtype.c (write_gc_marker_routine_for_structure): Name
1716         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
1717         (write_gc_types): Arrange for the tests with NULL to be inlined.
1718         (write_gc_roots): Update uses of procedure pointers.
1719         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
1720
1721         * Makefile.in (explow.o): Add dependency on gt-explow.h.
1722         (sdbout.o): Add dependency on gt-sdbout.h.
1723
1724         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
1725         (mem_attrs_htab): Likewise.
1726         (init_emit_once): Don't call ggc_add_deletable_htab.
1727         * fold-const.c (size_htab): Use gengtype to clear unused entries.
1728         (size_int_type_wide): Don't call ggc_add_deletable_htab.
1729         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
1730         parameters, use them, change callers.
1731         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
1732         (write_gc_roots): Handle 'if_marked' option.
1733         (main): Don't need to call set_gc_used_type any more.
1734         * ggc.h (ggc_htab_marked_p): Delete.
1735         (ggc_htab_mark): Delete.
1736         (struct ggc_cache_tab): New.
1737         (gt_ggc_cache_rtab): New declaration.
1738         * ggc-common.c (struct d_htab_root): Delete.
1739         (d_htab_roots): Delete.
1740         (ggc_add_deletable_htab): Delete.
1741         (ggc_htab_delete): Handle new htab-deleting mechanism.
1742         (ggc_mark_roots): Use new htab-deleting mechanism.
1743         * tree.c (type_hash_table): Use gengtype to clear unused entries.
1744         Make static.
1745         (init_obstacks): Don't call ggc_add_deletable_htab.
1746
1747         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
1748         (struct hashed_entry): Likewise.
1749         (nst_method_hash_list): Likewise.
1750         (cls_method_hash_list): Likewise.
1751         (HASH_ALLOC_LIST_SIZE): Delete.
1752         (ATTR_ALLOC_LIST_SIZE): Delete.
1753         * objc/objc-act.c (hash_init): Use ggc to allocate
1754         nst_method_hash_list, cls_method_hash_list.
1755         (hash_enter): Use ggc to allocate; allocate one entry at a time.
1756         (hash_add_attr): Likewise.
1757         (ggc_mark_hash_table): Delete.
1758         (objc_act_parse_init): Delete.
1759         (objc_init): Delete reference to objc_act_parse_init.
1760         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
1761         obstack.h.  Replace references to 'struct hash_table' with htab_t.
1762         (struct symbol_hash_entry): Replace hash header with key field.
1763         (struct file_hash_entry): Replace hash header with key field.
1764         (struct demangled_hash_entry): Replace hash header with key field.
1765         (hash_string_eq): New.
1766         (hash_string_hash): New.
1767         (symbol_hash_newfunc): Delete.
1768         (symbol_hash_lookup): Modify to use htab_t.
1769         (file_hash_newfunc): Delete.
1770         (file_hash_lookup): Modify to use htab_t.
1771         (demangled_hash_newfunc): Delete.
1772         (demangled_hash_lookup): Modify to use htab_t.
1773         (tlink_init): Modify to use htab_t.
1774         * hash.h: Delete.
1775         * hash.c: Delete.
1776         * ggc.h: Delete forward structure declarations.
1777         Delete prototypes for deleted functions.
1778         * ggc-common.c: Don't include hash.h.
1779         (ggc_add_tree_hash_table_root): Delete.
1780         (ggc_mark_tree_hash_table_entry): Delete.
1781         (ggc_mark_tree_hash_table): Delete.
1782         (ggc_mark_tree_hash_table_ptr): Delete.
1783         * gengtype.c (write_gc_structure_fields): Allow param_is option.
1784         (write_gc_marker_routine_for_structure): Use visibility of
1785         the parameter if there is one.
1786         * function.c: Replace hash.h with hashtab.h.  Replace references
1787         to 'struct hash_table *' with htab_t.
1788         (struct insns_for_mem_entry): Include a plain key.
1789         (fixup_var_refs_insns_with_hash): Update to use htab_t.
1790         (insns_for_mem_newfunc): Delete.
1791         (insns_for_mem_hash): Update to use htab_t.
1792         (insns_for_mem_comp): Likewise.
1793         (insns_for_mem_walk): Likewise.
1794         * c-lang.c: Include ggc.h.
1795         * Makefile.in (OBJS): Remove hash.o.
1796         (c-lang.o): Add GGC_H.
1797         (COLLECT2_OBJS): Remove hash.o.
1798         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
1799         (ggc-common.o): Remove hash.h.
1800         (function.o): Remove hash.h, add HASHTAB_H.
1801         (genautomata.o): Remove hash.h, add HASHTAB_H.
1802
1803         * varasm.c (mark_const_str_htab_1): Delete.
1804         (mark_const_str_htab): Delete.
1805         (const_str_htab_del): Delete.
1806         (const_str_htab): Use gengtype to mark.
1807         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
1808         allocate them.
1809         * tree.c (mark_tree_hashtable_entry): Delete.
1810         (mark_tree_hashtable): Delete.
1811         * tree.h (mark_tree_hashtable): Delete prototype.
1812         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
1813         (ggc_mark): Likewise.
1814         (ggc_calloc): New.
1815         (htab_create_ggc): New.
1816         * ggc-common.c (ggc_calloc): New.
1817         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
1818         (struct type): Add param_struct structure.
1819         * gengtype.c (param_structs): New.
1820         (adjust_field_type): Handle param_is option.
1821         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
1822         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
1823         (write_gc_structure_fields): Add new PARAM parameter.  Update
1824         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
1825         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
1826         Use it to generate function name.  Update callers.
1827         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
1828         Process them.
1829         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
1830         option.
1831         (main): Define PTR as pointer-to-scalar.  Don't specially
1832         mark deferred_string or ehl_map_entry.
1833         * gengtype-yacc.y (PARAM_IS): Add new token.
1834         (externstatic): Use adjust_field_type.
1835         (type_option): Add PARAM_IS.
1836         * gengtype-lex.l: Add rule for typedef of function pointers.
1837         Add rule for PARAM_IS.
1838         (IWORD): Add size_t.
1839         * except.c (exception_handler_label_map): Use gengtype to mark.
1840         (type_to_runtime_map): Likewise.
1841         (mark_ehl_map_entry): Delete.
1842         (mark_ehl_map): Delete.
1843         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
1844         (t2r_mark_1): Delete.
1845         (t2r_mark): Delete.
1846         * Makefile.in (gtype-desc.o): Correct dependencies.
1847         (GTFILES): Add hashtab.h.
1848         (genautomata.o): Actually uses hashtab.h.
1849
1850         * Makefile.in (stringpool.o): Add $(GGC_H).
1851         (dwarf2asm.o): Likewise.
1852         (GTFILES): Add hashtable.h.
1853         * c-common.h (struct c_common_identifier): Use gengtype.
1854         * c-decl.h (c_mark_tree): Delete.
1855         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1856         * c-tree.h (struct lang_identifier): Use gengtype.
1857         (union lang_tree_node): New.
1858         (c_mark_tree): Delete prototype.
1859         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
1860         dwarf2_debug_hooks.
1861         * gengtype-lex.l (IWORD): Allow 'bool'.
1862         (ptr_alias): Match.
1863         * gengtype-yacc.y (ALIAS): New token.
1864         (type_option): New rule.
1865         (option): Use type_option.
1866         * gengtype.c (process_gc_options): New.
1867         (set_gc_used_type): Use it.
1868         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
1869         Add new variable 't' to hold the type of the field being processed.
1870         Add more error checking.  Use UNION_P when looking at 'desc' option.
1871         Handle language-specific structures containing other
1872         language-specific structures.
1873         (write_gc_types): Handle 'ptr_alias' option.
1874         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
1875         * ggc-common.c (ggc_pending_trees): Delete.
1876         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
1877         (ggc_mark_trees): Delete.
1878         (gt_ggc_m_tree_node): Delete.
1879         * ggc.h (ggc_pending_trees): Delete.
1880         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
1881         * hashtable.h (ht_identifier): Use gengtype.
1882         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
1883         * langhooks.h (struct lang_hooks): Delete mark_tree.
1884         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
1885         anyway.
1886         * system.h: Poison LANG_HOOKS_MARK_TREE.
1887         * tree.c (tree_node_structure): New.
1888         * tree.h (struct tree_common): Use gengtype.
1889         (struct tree_int_cst): Likewise.
1890         (struct tree_real_cst): Likewise.
1891         (struct tree_string): Likewise.
1892         (struct tree_complex): Likewise.
1893         (struct tree_vector): Likewise.
1894         (struct tree_identifier): Likewise.
1895         (struct tree_list): Likewise.
1896         (struct tree_vec): Likewise.
1897         (struct tree_exp): Likewise.
1898         (struct tree_block): Likewise.
1899         (struct tree_type): Likewise.
1900         (struct tree_decl): Likewise.
1901         (enum tree_structure_enum): New.
1902         (union tree_node): Use gengtype, with an alias.
1903         (tree_node_structure): Prototype.
1904         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1905
1906         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
1907         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
1908         to LANG_HOOKS_FUNCTION_FINAL.
1909         * Makefile.in (GTFILES): Add bitmap.h.
1910         * except.c (struct eh_region): Mark field 'aka' to be skipped.
1911
1912         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
1913         (alpha_init_machine_status): Give proper type.
1914         * Makefile.in (c-lang.o): Depend on gtype-c.h.
1915         (optabs.o): Depend on gt-optabs.h.
1916         (GTFILES): Add optabs.o.
1917         (gt-optabs.h): Add rule.
1918         * optabs.c: Include gt-optabs.h.
1919
1920         * gengtype.c (set_gc_used_type): Correct some errors in last change.
1921         (write_gc_structure_fields): If a field which should be NULL is
1922         not, abort.
1923         * c-pragma.c: Move struct align_stack and variable alignment_stack
1924         out from the ifdef.
1925
1926         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
1927         * config/xtensa/xtensa.c: Include gt-cris.h.
1928         (struct machine_function): Use gengtype to mark.
1929         * config/mmix/mmix.h (struct machine_function): Use gengtype
1930         to mark.
1931         * config/cris/t-cris: Add dependencies for gt-cris.h.
1932         * config/cris/cris.c: Include gt-cris.h.
1933         (struct machine_function): Use gengtype to mark.
1934         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
1935         to mark.
1936         * doc/tm.texi (Per-Function Data): Delete references to
1937         mark_machine_status.
1938         * config/ia64/ia64.c (ia64_override_options): Don't set
1939         mark_machine_status.
1940         * config/i386/i386.c (override_options): Likewise.
1941         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
1942         * config/arm/arm.c (arm_init_expanders): Likewise.
1943         * config/alpha/alpha.c (override_options): Likewise.
1944         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
1945         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
1946         (write_gc_structure_fields): Don't handle 'really' option.
1947         Handle 'maybe_null' option.
1948         (write_gc_types): Handle 'maybe_null' option.
1949         * function.h (struct function): Don't use "really".
1950         (mark_machine_status): Delete declaration.
1951         (mark_lang_status): Delete declaration.
1952         (gt_ggc_mr_machine_function): Delete prototype.
1953         (gt_ggc_mr_language_function): Delete prototype.
1954         * function.c (mark_machine_status): Delete.
1955         (mark_lang_status): Delete.
1956         (gt_ggc_mr_machine_function): Delete.
1957         (gt_ggc_mr_language_function): Delete.
1958         * c-tree.h (mark_c_function_context): Delete prototype.
1959         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
1960         * c-decl.c (struct language_function): Rename from struct
1961         c_language_function.  Update uses.  Use gengtype to mark.
1962         (mark_c_function_context): Delete.
1963         * c-common.h (struct c_language_function): Rename from struct
1964         language_function.
1965         (mark_stmt_tree): Delete prototype.
1966         (c_mark_lang_decl): Delete prototype.
1967         (mark_c_language_function): Delete prototype.
1968         * c-common.c (mark_stmt_tree): Delete.
1969         (c_mark_lang_decl): Delete.
1970         (mark_c_language_function): Delete.
1971
1972         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
1973         (lang_bitmap): New typedef.  Use where appropriate.
1974         (struct type): Add gc_used field, lang_struct field.
1975         (UNION_P): New macro.
1976         (new_structure): New prototype.
1977         (find_structure): Remove 'pos' parameter.  Change all callers.
1978         * gengtype-lex.l: Update for changes to find_structure.
1979         * gengtype-yacc.y (typedef_struct): Use new_structure.
1980         (yacc_ids): Suppress warning.
1981         (type): Use new_structure.
1982         * gengtype.c (string_type): Update for changes to struct type.
1983         (find_structure): Just find a structure, don't worry about
1984         creating one.
1985         (new_structure): New.
1986         (note_yacc_type): Use new_structure.
1987         (set_gc_used_type): New.
1988         (set_gc_used): New.
1989         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
1990         (write_gc_types): Handle TYPE_LANG_STRUCT.
1991         (write_gc_marker_routine_for_structure): New.
1992         (main): Call set_gc_used.  Add some calls to set_gc_used_type
1993         for places where GCC doesn't use gengtype properly yet.
1994         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
1995         (gt_ggc_m_tree_node): Likewise.
1996
1997         * varasm.c (copy_constant): Call expand_constant if we hit
1998         something we can't recognise.
1999
2000         * ggc-common.c (ggc_mark_rtvec_children): Delete.
2001         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
2002         (lang_mark_false_label_stack): Delete.
2003         * rtl.h (struct rtvec_def): Use gengtype to mark.
2004         * ggc.h (ggc_mark_rtvec): Delete.
2005         (gt_ggc_m_rtvec_def): Delete.
2006         (ggc_mark_nonnull_tree): Delete.
2007         (ggc_mark_rtvec_children): Delete prototype.
2008         (lang_mark_false_label_stack): Delete declaration.
2009
2010         * gengtype.h (note_yacc_type): Add prototype.
2011         * gengtype.c (note_yacc_type): New function.
2012         * gengtype-lex.l: Add lexer support for yacc files.
2013         * gengtype-yacc.y (start): Extract union from yacc files.
2014         (yacc_union): New rule.
2015         (yacc_typematch): New rule.
2016         (yacc_ids): New rule.
2017         (enum_items): Tweak for efficiency.
2018         (optionseq): Likewise.
2019
2020         * c-common.h (struct language_function): Use gengtype.
2021         (struct c_lang_decl): Likewise.
2022         * c-tree.h (struct lang_decl): Likewise.
2023         (struct lang_type): Likewise.
2024         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
2025         tree language substructures.
2026
2027         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
2028         ggc_mark_tree.
2029         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
2030
2031         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
2032
2033         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
2034         mark. Remove 'data.block.cleanup_ptr' field.
2035         (struct stmt_status): Use usual technique to mark struct nesting.
2036         (gt_ggc_mr_nesting_cond): Delete.
2037         (gt_ggc_mr_nesting_loop): Delete.
2038         (gt_ggc_mr_nesting_block): Delete.
2039         (gt_ggc_mr_nesting_case_stmt): Delete.
2040         (expand_start_cond): Set discriminator.
2041         (expand_start_loop): Likewise.
2042         (expand_start_null_loop): Likewise.
2043         (expand_start_bindings_and_block): Set discriminator.  Don't set
2044         deleted fields.
2045         (expand_decl_cleanup): Replace 'cleanup_ptr' with
2046         &thisblock->data.block.cleanups.
2047         (expand_start_case): Set discriminator.
2048         (expand_start_case_dummy): Set discriminator.
2049
2050         * ggc-callbacks.c: Remove.
2051
2052         * gengtype.h (struct type): Add 'u.s.bitmap' field.
2053         (find_structure): Add 'pos' parameter.
2054         * gengtype-lex.l: Update callers to find_structure.
2055         * gengtype-yacc.y: Likewise.
2056         * gengtype.c (find_structure): Allow for structures to be defined
2057         in multiple language backends.
2058         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
2059         (counter): Rename to gc_counter.
2060         (write_gc_structure_fields): Fail when writing out fields for
2061         an incomplete structure.  Ignore arrays of scalars.  Handle
2062         'tree_vec' special.
2063         (write_gc_types): Reset counter for each procedure written.
2064
2065         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
2066         (free_case_nodes): Delete.
2067         (expand_end_case_type): Delete call to free_case_nodes.
2068
2069         * Makefile.in (cselib.o): Include gt-<filename>.h.
2070         (gcse.o): Likewise.
2071         (profile.o): Likewise.
2072         (alias.o): Likewise.
2073         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
2074         alphabetize backend files.
2075         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
2076         * alias.c: Use gengtype for roots.
2077         * c-common.h (struct stmt_tree_s): Use gengtype.
2078         * c-decl.c: Use gengtype for roots.
2079         * cselib.c: Use gengtype for roots.
2080         * expr.c: Use gengtype for roots.
2081         * fold-const.c: Use gengtype for roots.
2082         * gcse.c: Use gengtype for roots.
2083         * gengtype-lex.l: Handle typedefs of function types.
2084         Allow for empty array bounds.
2085         Allow processing to stop on initialisers.
2086         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
2087         (semiequal): New rule.
2088         * gengtype.c (create_file): Tidy output files.
2089         (get_output_file_with_visibility): Fix paren warning.  Fix bug
2090         involving multiple input files mapping to one output file.
2091         (write_gc_structure_fields): Skip arrays of scalars.
2092         (write_gc_types): Tidy output files.
2093         (write_gc_root): New function.
2094         (write_gc_roots): Fix bugs, add support for roots that are
2095         structures.
2096         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
2097         (ggc_mark_tree_ptr): Delete.
2098         (ggc_add_rtx_root): Delete.
2099         (ggc_add_tree_root): Delete.
2100         (ggc_del_root): Delete.
2101         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
2102         allocate struct initial_value_struct.
2103         * profile.c: Use gengtype for roots.
2104         * sdbout.c: Use gengtype for roots.
2105         * varasm.c (mark_weak_decls): Delete unused prototype.
2106         (mark_const_hash_entry): Delete unused function.
2107         * config/darwin-protos.h: Use gengtype for roots.
2108         (machopic_add_gc_roots): Delete.
2109         * config/arm/arm.c: Use gengtype for roots.
2110         * config/arm/arm.h: Use gengtype for roots.
2111         * config/c4x/c4x-protos.h: Use gengtype for roots.
2112         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
2113         * config/d30v/d30v-protos.h: Use gengtype for roots.
2114         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
2115         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
2116         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
2117         * config/ia64/ia64-protos.h: Use gengtype for roots.
2118         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
2119         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
2120         * config/m68hc11/m68hc11.c (z_reg): Make global.
2121         (z_reg_qi): Make global.
2122         (m68hc11_add_gc_roots): Delete.
2123         * config/mcore/mcore-protos.h: Use gengtype for roots.
2124         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
2125         * config/mips/mips.c (mips_add_gc_roots): Delete.
2126         * config/mips/mips.h: Use gengtype for roots.
2127         * config/mmix/mmix.c (override_options): Use gengtype for roots.
2128         * config/mmix/mmix.h: Use gengtype for roots.
2129         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
2130         * config/mn10200/mn10200.h: Use gengtype for roots.
2131         * config/pa/pa.c: Use gengtype for roots, marking.
2132         (struct deferred_plabel): Use GGC, gengtype.
2133         (pa_add_gc_roots): Delete.
2134         (mark_deferred_plabels): Delete.
2135         * config/pj/pj-protos.h: Use gengtype for roots.
2136         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
2137         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
2138         machopic_add_gc_roots.
2139         * config/rs6000/rs6000.h: Use gengtype for roots.
2140         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
2141         (gt-darwin.h): Add rule.
2142         * config/sh/sh.c: Use gengtype for roots.
2143         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
2144         (gt-sh.h): Add rule.
2145         * config/sparc/sparc.c: Use gengtype for roots.
2146         (sparc_add_gc_roots): Delete.
2147         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
2148         (mark_ultrasparc_pipeline_state): Delete.
2149         * config/sparc/sparc.h: Use gengtype for roots.
2150
2151         * Makefile.in (c-parse.o): Update dependencies.
2152         (c-common.o): Likewise.
2153         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
2154         Add dependencies for the files they generate.
2155         * c-common.c: Replace ggc_add_* uses with GTY annotations.
2156         * c-common.h: Likewise.
2157         * c-decl.c: Likewise.
2158         (gt_ggc_mp_binding_level): Delete.
2159         * c-lang.c: Include gtype-c.h.
2160         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
2161         gt-c-parse.h.
2162         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
2163         (gt_ggc_mp_align_stack): Delete.
2164         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
2165         * function.c: Replace ggc_add_* uses with GTY annotations.
2166         (gt_ggc_mp_function): Delete.
2167         * function.h: Replace ggc_add_* uses with GTY annotations.
2168         * gengtype.c (lang_names): New.
2169         (NUM_BASE_FILES): New.
2170         (open_base_files): Create language base files.
2171         (startswith): New.
2172         (get_file_basename): New.
2173         (get_base_file_bitmap): New.
2174         (get_output_file_with_visibility): Rename from get_output_file.
2175         Add more mappings for various C/Objc filenames.
2176         (finish_root_table): New.
2177         (write_gc_roots): Handle dependencies and scoping properly.
2178         * gengtype.h: Add prototypes for new functions.
2179         * ggc-common.c (struct deletable_root): Delete.
2180         (deletables): Delete.
2181         (ggc_add_deletable_root): Delete.
2182         (ggc_mark_roots): No need to deal with deleted functionality.
2183         * ggc.h (ggc_add_deletable_root): Delete prototype.
2184         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
2185         (gtype-objc.h): Add rule to create.
2186         * objc/config-lang.in (gtfiles): New.
2187         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
2188         ggc_add_* with GTY markers.  Include gtype-objc.h.
2189         (ggc_mark_imp_list): Delete.
2190         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
2191         * objc/objc-lang.c: Random Whitespace Change.
2192
2193         * except.h (exception_handler_labels): Delete.
2194         (get_exception_handler_labels): New.
2195         * except.c (exception_handler_labels): Delete.
2196         (struct eh_status): Add exception_handler_labels field.
2197         (doing_eh): Don't add exception_handler_labels as root.
2198         (free_eh_status): Don't need to free exception_handler_labels.
2199         (get_exception_handler_labels): New.
2200         (find_exception_handler_labels): Update for move of
2201         exception_handler_labels.
2202         (remove_exception_handler_label): Likewise.
2203         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
2204         * jump.c (rebuild_jump_labels): Likewise.
2205         * loop.c (find_and_verify_loops): Likewise.
2206         * sched-rgn.c (is_cfg_nonregular): Likewise.
2207
2208         * gengtype.c (write_gc_structure_fields): Handle variable-length
2209         TYPE_ARRAYs.
2210
2211         * varasm.c (struct weak_syms): Use GGC, gengtype.
2212         (mark_weak_decls): Delete.
2213         (weak_decls): Likewise.
2214         (add_weak): Likewise.
2215         (remove_from_pending_weak_list): Likewise.
2216         (init_varasm_once): Likewise.
2217
2218         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
2219         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
2220         stor-layout.c, regclass.c, and lists.c.
2221         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
2222         gt-regclass.h and gt-lists.h on s-gtype.
2223         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
2224         * except.c: Use gengtype for roots.
2225         * explow.c: Use gengtype for roots.  Include gt-explow.h.
2226         * expr.h (init_stor_layout_once): Delete prototype.
2227         * function.c: Use gengtype for roots.
2228         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
2229         * gengtype-yacc.y (start): Can also be an externstatic.
2230         (externstatic): New production.
2231         (struct_fields): Correct array bounds inversion for 2-d arrays.
2232         * gengtype.c (variables): New variable.
2233         (note_variable): New function.
2234         (get_output_file): Include libfuncs.h into gtype-desc.c.
2235         (get_output_file_name): New function.
2236         (write_gc_structure_fields): Suppress warnings.
2237         (write_gc_types): Make static.
2238         (put_mangled_filename): New function.
2239         (write_gc_roots): New function.
2240         (main): Call write_gc_roots.
2241         * gengtype.h (note_variable): Prototype.
2242         (get_output_file_name): Prototype.
2243         (write_gc_types): Delete prototype.
2244         * ggc.h: Clean up unnecessary structure predefinitions.
2245         (struct ggc_root_tab): Define.
2246         (gt_ggc_m_rtx_def): Make function, not macro.
2247         (gt_ggc_m_tree_node): Likewise.
2248         * libfuncs.h: Use gengtype for roots.
2249         * lists.c: Use gengtype for roots.  Include gt-lists.h.
2250         (init_EXPR_INSN_LIST_cache): Delete.
2251         * optabs.c: Use gengtype for roots.
2252         (gt_ggc_mp_optab): Delete.
2253         * optabs.h: Use gengtype for roots.
2254         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
2255         * rtl.h: Use gengtype for roots.
2256         (init_EXPR_INSN_LIST_cache): Delete prototype.
2257         * stor-layout.c: Use gengtype for roots.
2258         Include gt-stor-layout.h.
2259         (init_stor_layout_once): Delete.
2260         * toplev.c: Use gengtype for roots.  Delete calls to deleted
2261         routines.
2262         * tree.c: Use gengtype for roots.
2263         * tree.h: Use gengtype for roots.
2264         * varasm.c: Use gengtype for roots.
2265
2266         * Makefile.in (GTFILES): Add @all_gtfiles@.
2267         * configure: Regenerate.
2268         * configure.in: Construct all_gtfiles from the gtfiles definitions
2269         in config-lang.in.
2270         * gengtype-yacc.y (type): Warn about duplicate structure names.
2271         * gengtype.c (get_output_file): Handle .c files in language
2272         subdirectories.
2273
2274         * Makefile.in (GTFILES): Run gengtype on all the config files
2275         and on the target .c file.
2276         * except.c (mark_eh_region): Delete.
2277         (init_eh_for_function): Use GGC on struct eh_status.
2278         (mark_eh_status): Delete.
2279         (free_eh_status): Use GGC.
2280         (expand_eh_region_start): Use GGC to
2281         (collect_eh_region_array): Allocate last_region_number using GGC.
2282         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
2283         (remove_eh_handler): Let GGC free struct eh_region.
2284         (add_call_site): Use GGC to reallocate call_site_record array.
2285         * function.c (init_machine_status): Update calling sequence.
2286         (mark_machine_status): Likewise.
2287         (mark_lang_status): Likewise.
2288         (prepare_function_start): Update init_machine_status call.
2289         (mark_function_status): Delete.
2290         (maybe_mark_struct_function): Delete.
2291         (ggc_mark_struct_function): Delete.
2292         (gt_ggc_mp_function): New.
2293         (gt_ggc_mr_machine_function): New.
2294         (gt_ggc_mr_language_function): New.
2295         (init_function_once): Use canonical names.
2296         * function.h (struct function): Use gengtype.
2297         (init_machine_status): Return the structure.
2298         (mark_machine_status): Take a 'void *'.
2299         (mark_lang_status): Likewise.
2300         * ggc-common.c (ggc_mark_trees): Use canonical name for
2301         ggc_mark_struct_function.
2302         * tree.h (ggc_mark_struct_function): Delete prototype.
2303         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
2304         (alpha_init_machine_status): Likewise.
2305         (override_options): Use canonical name for alpha_mark_machine_status.
2306         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
2307         * config/arm/arm.h (struct machine_function): Use gengtype.
2308         * config/arm/arm.c (arm_mark_machine_status): Delete.
2309         (arm_init_machine_status): Update calling sequence.
2310         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
2311         * config/cris/cris.c (cris_init_machine_status): Update
2312         calling sequence.
2313         * config/d30v/d30v.h (struct machine_function): Use gengtype.
2314         * config/d30v/d30v.c (d30v_init_machine_status): Update
2315         calling sequence.
2316         (d30v_mark_machine_status): Delete.
2317         * config/i386/i386.c: Include gt-i386.h.
2318         (struct machine_function): Use gengtype.
2319         (ix86_init_machine_status): Update calling sequence.
2320         (ix86_mark_machine_status): Delete.
2321         (override_options): Use canonical namke for ix86_mark_machine_status.
2322         * config/ia64/ia64.h (struct machine_function): Use gengtype.
2323         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
2324         sequence.
2325         (ia64_mark_machine_status): Delete.
2326         (ia64_override_options): Use canonical name for
2327         ia64_mark_machine_status.
2328         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
2329         sequence.
2330         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
2331         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2332         * gengtype.c (get_output_file): Fix warning.
2333         (main): Add prototype to suppress warning.
2334         * tree.c: Remove tree_hash_mark prototype.
2335
2336         * tree.h (init_stmt): Delete prototype.
2337         * toplev.c (lang_independent_init): Don't call init_stmt.
2338         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
2339         (stmt_obstack): Delete.
2340         (POPSTACK): No need to free 'struct nesting'.
2341         (gt_ggc_mr_nesting_cond): Use canonical names.
2342         (gt_ggc_mr_nesting_loop): Use canonical names.
2343         (gt_ggc_mr_nesting_block): Use canonical names.
2344         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
2345         (mark_stmt_status): Delete.
2346         (init_stmt): Delete.
2347         (clear_last_expr): Clear both last_expr_type and last_expr_value.
2348         Use it everywhere that last_expr_type was cleared.
2349         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
2350         (zap_lists): Delete.
2351         * ggc.h (ggc_add_deletable_root): Prototype.
2352         (mark_stmt_status): Remove prototype.
2353         * ggc-common.c (ggc_add_deletable_root): New.
2354         (ggc_mark_roots): Handle deletable roots.
2355         * function.c (ggc_mark_struct_function): Use canonical name
2356         for mark_stmt_status.
2357         * emit-rtl.c (free_sequence_stack): New.
2358         (start_sequence): Use a freelist for sequences.
2359         (end_sequence): Likewise.
2360         (init_emit_once): Add free_sequence_stack as a deleteable root.
2361         * c-pragma.c Include gt-c-pragma.h.
2362         (struct align_stack): Use gengtype.
2363         (push_alignment): Use GGC for struct align_stack.
2364         (mark_align_stack): Delete.
2365         (gt_ggc_mp_align_stack): New.
2366         (init_pragma): Use canonical name for mark_align_stack.
2367         * c-decl.c: Include gt-c-decl.h.
2368         (struct binding_level): Use gengtype.
2369         (make_binding_level): Use GGC; handle the freelist here.
2370         (pop_binding_level): New.
2371         (pushlevel): Move code into make_binding_level.
2372         (push_label_level): Likewise.
2373         (poplevel): Move code into pop_binding_level.
2374         (pop_label_level): Likewise.
2375         (mark_binding_level): Delete.
2376         (gt_ggc_mp_binding_level): New.
2377         (c_init_decl_processing): Use canonical name for mark_binding_level.
2378         Add free_binding_level as deletable root.
2379         (mark_c_function_context): Use canonical name for mark_binding_level.
2380         * Makefile.in (c-decl.o): Add gt-c-decl.h.
2381         (c-pragma.o): Add gt-c-pragma.h.
2382         (GTFILES): Add c-decl.c and c-pragma.c.
2383         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
2384
2385         * tree.c (struct type_hash): Use gengtype.
2386         (init_obstacks): Use canonical name for type_hash_mark.
2387         (type_hash_mark): Delete.
2388         Include gt-tree.h.
2389         * rtl.h (struct mem_attrs): Use gengtype.
2390         * optabs.h (struct optab): Use gengtype.
2391         * optabs.c (expand_binop): Squish signed/unsigned warning.
2392         (mark_optab): Make local, use canonical name, use autogenerated
2393         marker procedure.
2394         (init_optabs): Use canonical name for mark_optab.
2395         (new_optab): Use GGC to allocate optabs.
2396         * ggc.h: Delete mark_optab prototype.
2397         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
2398         mem_attrs marker procedure.
2399         * gengtype.c (get_output_file): Include headers in gtype-desc.c
2400         explicitly rather than deducing them from file names.
2401         (write_gc_structure_fields): Handle arrays of structures.
2402         (main): Return non-zero exit code if errors occur during output.
2403         * emit-rtl.c (mem_attrs_mark): Delete.
2404         (init_emit_once): Use canonical name for mem_attrs marker procedure.
2405         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
2406         (tree.o): Depend on gt-tree.h.
2407         (GTFILES): Add rtl.h, optabs.h, tree.c.
2408         (gt-tree.h): Add it to s-gtype rule.
2409
2410         * .cvsignore: Ignore gengtype flex/bison generated files.
2411         * Makefile.in (GGC_H): Add gtype-desc.h.
2412         (OBJS): Add gtype-desc.o.
2413         (GEN): Add gengtype.
2414         (STAGESTUFF): Add gengtype.
2415         (varasm.o): Add gt-varasm.h.
2416         (stmt.o): Add gt-stmt.h.
2417         (except.o): Add gt-except.h.
2418         (integrate.o): Add gt-integrate.h.
2419         (GTFILES): New.
2420         Add new rules for new files.
2421         * configure: Regenerate.
2422         * configure.in: Correct defaults.h paths.
2423         * emit-rtl.c (mark_sequence_stack): Delete.
2424         (mark_emit_status): Delete.
2425         (start_sequence): Allocate sequence structures using GGC.
2426         (end_sequence): Allocate sequence structures using GGC.
2427         * except.c: Use gengtype for various structures.  Include
2428         gt-except.h.
2429         * expr.c (mark_expr_status): Delete.
2430         * function.c: Use gengtype for various structures.  Include
2431         gt-function.h.
2432         (mark_function_status): Use standard gt_ggc names for marker functions.
2433         (ggc_mark_struct_function): Likewise.
2434         * function.h: Use gengtype for various structures.
2435         * gengtype-lex.l: New file.
2436         * gengtype-yacc.y: New file.
2437         * gengtype.c: New file.
2438         * gengtype.h: New file.
2439         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
2440         the standard names.  Remove some now-unnecessary prototypes.
2441         * integrate.c: Use gengtype for various structures.  Include
2442         gt-integrate.h.
2443         (mark_hard_reg_initial_vals): Delete.
2444         * integrate.h (mark_hard_reg_initial_vals): Delete.
2445         * stmt.c: Use gengtype for various structures.  Include
2446         gt-stmt.h.
2447         (mark_case_node): Delete.
2448         (mark_goto_fixup): Delete.
2449         (mark_stmt_status): Use standard gt_ggc names for marker functions.
2450         * system.h: Define GTY to empty.   In flex/bison files,
2451         don't poison malloc or realloc, instead just define them to
2452         xmalloc and xrealloc.
2453         * varasm.c: Use gengtype for various structures.  Include
2454         gt-varasm.h.  Use standard gt_ggc names for marker functions.
2455         (mark_pool_constant): Delete.
2456         (mark_varasm_status): Delete.
2457         (decode_rtx_const): #if 0 out non-typesafe hack.
2458
2459         * function.h (free_lang_status): Mark as obsolete.
2460         * function.c (free_lang_status): Mark as obsolete.
2461         * c-decl.c (push_c_function_context): Use GC to allocate and free
2462         struct language_function.
2463         (pop_c_function_context): Likewise.
2464         * c-common.c (mark_c_language_function): Mark struct
2465         language_function.
2466
2467         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
2468         Document that the machine_function structures must be allocated
2469         using GC.  Update mark_machine_status documentation.
2470         * function.h: Don't declare free_machine_status.
2471         * function.c (free_machine_status): Don't define.
2472         (free_after_compilation): Don't call free_machine_status.
2473         (ggc_mark_struct_function): Mark f->machine.  Call
2474         mark_machine_status only on non-NULL pointers.
2475         * system.h: Poison free_machine_status.
2476         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
2477         struct machine_function.
2478         (xtensa_free_machine_status): Delete.
2479         (override_options): Don't set free_machine_status.
2480         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
2481         free_machine_status.
2482         (rs6000_init_machine_status): Use GC on struct machine_function.
2483         (rs6000_free_machine_status): Delete.
2484         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
2485         machine_function.
2486         (ia64_mark_machine_status): Likewise.
2487         (ia64_free_machine_status): Delete.
2488         (ia64_override_options): Don't set free_machine_status.
2489         * config/i386/i386.c (override_options): Don't set
2490         free_machine_status.
2491         (ix86_init_machine_status): Use GC on struct machine_function.
2492         (ix86_mark_machine_status): Likewise.
2493         (ix86_free_machine_status): Delete.
2494         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
2495         machine_function.
2496         (d30v_mark_machine_status): Likewise.
2497         (d30v_free_machine_status): Delete.
2498         (d30v_init_expanders): Don't set free_machine_status.
2499         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
2500         machine_function.
2501         (arm_init_machine_status): Likewise.
2502         (arm_free_machine_status): Delete.
2503         (arm_init_expanders): Don't set free_machine_status.
2504         * config/alpha/alpha.c (override_options): Don't set
2505         free_machine_status.
2506         (alpha_init_machine_status): Use GC on struct machine_function.
2507         (alpha_mark_machine_status): Likewise.
2508         (alpha_free_machine_status): Delete.
2509
2510         * varasm.c (compare_constant): Fix typo.
2511
2512         * varasm.c: Don't include obstack.h.
2513         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
2514         (struct rtx_const): Give substructures names, improve formatting.
2515         (struct constant_descriptor): Delete.
2516         (struct constant_descriptor_tree): New, based on constant_descriptor.
2517         (const_hash_table): Is a hash table of trees.
2518         (mark_const_hash_entry): Is used for hashes of trees.  Mark
2519         constant_descriptor_tree structure.
2520         (mark_const_str_htab_1): Mark deferred_string structure.
2521         (compare_constant): Rewrite to compare trees.
2522         (compare_constant_1): Delete.
2523         (record_constant): Delete.
2524         (record_constant_1): Delete.
2525         (output_constant_def): Use struct constant_descriptor_tree.
2526         Don't duplicate trees twice.
2527         (struct constant_descriptor_rtx): New.
2528         (struct pool_constant): Used for rtx constants.
2529         (init_varasm_status): Update for change to struct varasm_status.
2530         (mark_varasm_status): Likewise.
2531         (free_varasm_status): Delete.
2532         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
2533         (record_constant_rtx): Likewise.
2534         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
2535         (force_const_mem): Likewise.
2536         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
2537         * function.c (free_after_compilation): Don't use free_varasm_status.
2538         * function.h: Don't prototype free_varasm_status.
2539
2540         * ggc-common.c (ggc_realloc): Handle X being NULL.
2541
2542         * ggc-common.c (ggc_realloc): New function.
2543         * ggc.h: Prototype it.
2544         * emit-rtl.c (free_emit_status): Delete.
2545         (init_emit): Allocate emit subarrays using GC.
2546         (gen_reg_rtx): Reallocate subarrays using GC.
2547         (init_emit): Use GC to allocate 'struct emit_status' and its
2548         subarrays.
2549         (mark_emit_status): Mark structure and its subarrays.
2550         * stmt.c (free_stmt_status): Delete.
2551         * expr.c (free_expr_status): Delete.
2552         * function.h: Remove prototypes for deleted functions.
2553         * function.c (free_after_compilation): Don't use deleted functions.
2554         Don't call free() on x_parm_reg_stack_loc.
2555         (free_after_parsing): Don't use free_stmt_status.
2556         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
2557         (mark_function_status): Mark x_parm_reg_stack_loc.
2558
2559         * varasm.c (init_varasm_status): Use GC to allocate
2560         'struct varasm_status' and its fields x_const_rtx_hash_table
2561         and x_const_rtx_sym_hash_table.
2562         (mark_varasm_status): Mark them.
2563         (free_varasm_status): Use GC to free them.
2564         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
2565         (mark_expr_status): Mark the structure itself.
2566         (free_expr_status): Use GC to free the structure.
2567         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
2568         (mark_stmt_status): Mark the 'struct stmt_status' itself.
2569         (init_stmt_for_function): Allocate the structure for GC.
2570
2571         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
2572         (equate_type_number_to_die): Likewise.
2573         * tree.h (TYPE_SYMTAB_DIE): New macro.
2574         (struct die_struct): Predeclare.
2575         (struct tree_type): Add field symtab.die.   Add a tag
2576         to the union type of field symtab.
2577
2578         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
2579         'struct rtvec_def *', not 'struct rtvec_def'.
2580
2581         * function.h (original_arg_vector): Make a real rtvec.
2582         * function.c (ggc_mark_struct_function): Adjust.
2583         * integrate.c (expand_inline_function): Adjust.
2584
2585 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2586
2587         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
2588         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
2589         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
2590         (TARGET_VERSION_CPU): Define according to the
2591         default target.
2592         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
2593         TARGET_VERSION_CPU.
2594         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
2595         if TARGET_SHMEDIA64.
2596         (LINK_DEFAULT_CPU_EMUL): Define according to the
2597         default target.
2598         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
2599         (SUBTARGET_LINK_SPEC): Define.
2600         (LINK_SPEC): Use SH_LINK_SPEC.
2601         (ASM_SPEC): Remove.
2602         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2603         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
2604         and TARGET_SHMEDIA64 which abort, for now.
2605         * config/sh/t-netbsd-sh5: New file.
2606         * config/sh/t-netbsd-sh5-32: New file.
2607         * config/sh/t-netbsd-sh5-64: New file.
2608
2609 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2610             Richard Henderson  <rth@redhat.com>
2611
2612         * config/alpha/alpha.c (reg_or_const_int_operand): New.
2613         (some_operand, input_operand): Accept CONST_VECTOR.
2614         (alpha_extra_constraint): Add 'W'.
2615         (alpha_expand_zap_mask): New.
2616         (alpha_expand_builtin_vector_binop): New.
2617         (enum alpha_builtin): New.
2618         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
2619         (alpha_init_builtins, alpha_expand_builtin): New.
2620         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
2621         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
2622         (PREDICATE_CODES): Update.
2623         * config/alpha/alpha-protos.h: Update.
2624         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
2625         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
2626         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
2627         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
2628         (movv2si, movv2si_fix, movv2si_nofix): New.
2629         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
2630         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
2631         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
2632         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
2633         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
2634         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
2635         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
2636         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
2637         builtin_unpkbw, unpkbw): New.
2638         * doc/extend.texi (Alpha Built-in Functions): New.
2639
2640 2002-06-03  Richard Henderson  <rth@redhat.com>
2641
2642         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
2643         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
2644
2645 2002-06-03  Richard Henderson  <rth@redhat.com>
2646
2647         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
2648
2649         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
2650         (const0_operand): New.
2651         (reg_or_fp0_operand, fp0_operand): Remove.
2652         * config/alpha/alpha.h (PREDICATE_CODES): Update.
2653         * config/alpha/alpha-protos.h: Update.
2654         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
2655         and fp0_operand with reg_or_0_operand and const0_operand.
2656
2657 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
2658
2659         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
2660
2661 2002-06-03  Roger Sayle  <roger@eyesopen.com>
2662
2663         * gcse.c (cprop_jump): Use single_set to get the pattern
2664         from the setcc argument.
2665
2666 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
2667
2668         * diagnostic.h (diagnostic_count): Move from output_buffer to
2669         diagnostic_context.
2670         (diagnostic_kind_count): Adjust definition.
2671
2672 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
2673
2674         * except.c (except.c): Do not rebuild CFG.
2675         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
2676         optimization.
2677
2678 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
2679
2680         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
2681         * toplev.c: Include cfglahout.h
2682         * Makefile.in (toplev.c): Add dependnecy.
2683
2684 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2685
2686         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
2687         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
2688         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
2689
2690 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
2691
2692         * config/ns32k/netbsd.h: Update copyright years.
2693         (TARGET_OS_CPP_BUILTINS): Define.
2694         (CPP_PREDEFINES): Remove.
2695         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
2696         (TARGET_CPU_CPP_BUILTINS): Define.
2697
2698 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
2699
2700         * emit-rtl.c: Fix formatting.
2701         * errors.h: Likewise.
2702         * except.c: Likewise.
2703         * explow.c: Likewise.
2704         * expmed.c: Likewise.
2705         * expr.c: Likewise.
2706         * expr.h: Likewise.
2707
2708 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
2709
2710         * config/h8300/elf.h: Fix formatting.
2711         * config/h8300/rtems.h: Likewise.
2712
2713 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
2714
2715         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
2716
2717 2002-06-02  Tom Tromey  <tromey@redhat.com>
2718
2719         * fixinc/fixincl.x: Rebuilt.
2720         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
2721
2722 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2723
2724 config/i370:
2725         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
2726         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
2727         * mvs.h: Similarly.
2728         * oe.h: Similarly.
2729
2730 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
2731
2732         * final.c (final):  Allow notes to not have computed addresses;
2733         kill no longer needed STACK_REGS ifdef.
2734
2735 2002-06-02  Richard Henderson  <rth@redhat.com>
2736
2737         * gcse.c (bypass_conditional_jumps): Fix typo last change.
2738
2739 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
2740
2741         * loop.c (emit_prefetch_instructions): Properly place the address
2742         computation.
2743
2744 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
2745
2746         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
2747         (set_block_for_insn): Turn into macro.
2748         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
2749         * cfglayout.c (insn_scopes): Kill.
2750         (scope_to_insns_initialize): Do not use insn_scopes.
2751         (scope_to_insns_finalize): Likewise.
2752         (duplicate_insn_chain): Likewise.
2753         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
2754         * cfgrtl.c (basic_block_for_insn): Kill.
2755         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
2756         (create_basic_block_structure): Use reorder_insns.
2757         (compute_bb_for_insn): Do not use basic_block_for_insn.
2758         (merge_blocks_nomove): Likewise.
2759         (update_bb_for_insn): Likewise.
2760         (verify_flow_info): Likewise.
2761         (set_block_for_insn): Kill.
2762         * combine.c (try_combine): Update gen_rtx_INSN call.
2763         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
2764         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
2765         scopes and BBs.
2766         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
2767         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
2768         Clear BB.
2769         (emit_insns_after): Simplify.
2770         (emit_copy_of_insn_after): Copy scope.
2771         * final.c (final_start_function): Lower scopes.
2772         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
2773         * integrate.c (copy_insn_list): Cope scopes.
2774         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
2775         * loop.c (loop_optimize): Do not care block notes.
2776         * print-rtl.c (print_rtx): Print BB.
2777         * recog.c (apply_change_group): Simplify.
2778         * rtl.c (copy_rtx): Handle 'B'.
2779         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
2780         * rtl.h (Field accessors): Update indexes.
2781         * sched-ebb.c (schedule_ebbs): Do not lower notes.
2782         * sched-rgn.c (schedule_insns): Likewise.
2783         * toplev.c (rest_of_compilation): Lower notes.
2784         * unroll.c (unroll_loop): Do not care scoping notes.
2785         (copy_loop_body): Copy scopes.
2786
2787 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2788
2789 config/h8300:
2790         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2791         SUBTARGET_SPEC.
2792         * rtems.h: Similarly.
2793         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
2794         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
2795         (TARGET_CPU_CPP_BUILTINS): Use.
2796
2797 2002-06-02  Richard Henderson  <rth@redhat.com>
2798
2799         * alias.c: Include target.h.
2800         (mark_constant_function): Use targetm.binds_local_p instead
2801         of checking TREE_PUBLIC ourselves.
2802         * Makefile.in (alias.o): Add TARGET_H.
2803
2804 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2805
2806         * c-lex.c: Update copyright and file description.
2807
2808 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2809
2810         * config/fr30/fr30.h: Update to new CPP macros.
2811
2812 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2813
2814         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
2815
2816 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2817             Zack Weinberg <zack@codesourcery.com>
2818
2819         * c-common.c (c_common_init): Override cpplib's default
2820         warn_long_long setting.
2821         * c-lex.c (lex_number): Replace with interpret_integer,
2822         interpret_float, narrowest_unsigned_type and
2823         narrowest_signed_type, taking advantage of the new
2824         cpplib functionality.
2825         * cpperror.c (_cpp_begin_message): If a warning is turned
2826         into an error, avoid printing "warning:".
2827         * cppexp.c (cpp_num_sign_extend): New.
2828         * cppinit.c: Update comment.
2829         * cpplib.h (cpp_num_sign_extend): New.
2830         * tree.h: Update comment.
2831
2832 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
2833
2834         * diagnostic.h (struct diagnostic_context):  Add new member
2835         internal_error.
2836         (internal_error_function): Remove declaration.
2837         * diagnostic.c (internal_error_function): Remove definition..
2838         (internal_error): Adjust use.
2839
2840 2002-06-02  Richard Henderson  <rth@redhat.com>
2841
2842         * rtl.h (CC0_P): New.
2843         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
2844         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
2845         (bypass_block): Save old dest block for dump text.
2846         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
2847         Allow only true SET insns, not single_set.
2848
2849 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
2850
2851         * diagnostic.c (diagnostic_finish): Rename to output_flush.
2852         (clear_disgnostic_info): Rename to output_clear_data.  Use false
2853         instead of 0 for boolean value.
2854         Adjust function call throughout.
2855
2856 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
2857
2858         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
2859         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
2860
2861 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2862
2863         * d30v.h (CPP_PREDEFINES): Replace with
2864         (TARGET_CPU_CPP_BUILTINS): New.
2865
2866 2002-06-02  Roger Sayle  <roger@eyesopen.com>
2867
2868         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
2869
2870 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
2871
2872         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
2873
2874 2002-06-02  Richard Henderson  <rth@redhat.com>
2875
2876         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
2877
2878 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2879
2880         Support for C++ constructors/destructors.
2881         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
2882         instead of looping if main() returns.
2883         (asm_file_start): Output global symbols that cause .data and .bss
2884         initialization code to be linked in, unconditionally for now.
2885         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
2886         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
2887         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2888         (LIBSTDCXX): New.
2889         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
2890         (__tablejump__): New.
2891         (__do_copy_data, __do_clear_bss): New.
2892         (__do_global_ctors, __do_global_dtors): New.
2893         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
2894         _ctors, _dtors.
2895
2896 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2897
2898         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
2899         (CPP_SPEC, CPP_PREDEFINES): Kill.
2900         * c4x/rtems.h (CPP_PREDEFINES): Kill.
2901         (TARGET_OS_CPP_BUILTINS): New.
2902
2903 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
2904
2905         * Makefile.in (tracer.o): New.
2906         * params.def (TRACER_*): New options.
2907         * rtl.h (tracer): Declare.
2908         * timevar.def (TV_TRACER): New.
2909         * toplev.c (dump_file_index): Add DFI_tracer.
2910         (dump_file_info): Add tracer.
2911         (flag_tracer): New.
2912         (lang_indepdenent_options): Add tracer.
2913         (rest_of_compilation): Call tracer.
2914         * tracer.c: New file.
2915         * invoke.texi (-ftracer): Document.
2916         (--param tracer-*): Document.
2917
2918 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
2919
2920         * tree-inline.c (expand_call_inline): Make the statement
2921         expression we generate have a COMPOUND_STMT.
2922
2923 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2924
2925         * gcse.c (cprop_cc0_jump): Function deleted.
2926         (cprop_jump): Take an additional argument which is the possibly
2927         NULL cc setting insn immediately before the conditional jump.
2928         When a MODE_CC set is present, substitute it into the JUMP_INSN
2929         before attempting the constant propagation.
2930         (cprop_insn):  Recognize cc setters followed by conditional jumps
2931         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
2932         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
2933         (find_bypass_set): New function based upon find_avail_set used by
2934         cprop, but finds constant expressions available at the end of
2935         basic blocks.
2936         (bypass_block): New function.  Given a basic block that begins
2937         with a conditional jump and multiple incoming edges, perform
2938         the jump bypass optimization.
2939         (bypass_conditional_jumps): New function.  Call bypass_block with
2940         each suitable basic block in the CFG using a simple single pass.
2941
2942 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2943
2944         * tree.c (real_minus_onep): New function to test for -1.0.
2945         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
2946
2947 2002-06-01  Roger Sayle  <roger@eyesopen.com>
2948
2949         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
2950         and "!p && !q" into "(p|q) == 0" under suitable conditions.
2951
2952 2002-06-01  Andreas Jaeger  <aj@suse.de>
2953
2954         * cppexp.c (cpp_classify_number): Cast precission to int for
2955         correct printf format.
2956
2957 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2958
2959         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
2960         expected, but don't really exist: atmega83, atmega85, attiny10.
2961         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
2962         emulations for all devices.
2963         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
2964         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
2965
2966 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
2967
2968         * config/h8300/h8300-protos.h: Add a prototype for
2969         h8300_shift_needs_scratch_p.
2970         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
2971         * config/h8300/h8300.h (OK_FOR_R): New.
2972         (OK_FOR_S): Likewise.
2973         (OK_FOR_T): Likewise.
2974         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
2975         * config/h8300/h8300.md (anonymous shift patterns): Use
2976         constraints R, S, and T.
2977
2978 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2979
2980         * basic-block.h (struct basic_block_def): New field loop_father.
2981         (BB_VISITED): New flag.
2982         (struct loop): New field pred, removed field shared.
2983         (struct loops): New field parray.
2984         (LOOP_EXITS_DOMS): Removed.
2985         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
2986         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
2987         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
2988         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
2989         verify_loop_structure): Declare.
2990         * cfg.c (entry_exit_blocks): Initialize loop_father field.
2991         * cfganal.c (dfs_enumerate_from): New function.
2992         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
2993         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2994         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
2995         flow_loop_dump, flow_loops_dump, flow_loops_free,
2996         flow_loop_tree_node_add, flow_loop_level_compute,
2997         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
2998         flow_loop_outside_edge_p): Modified for new infrastructure.
2999         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
3000         redirect_edge_with_latch_update, flow_loop_free): New static functions.
3001         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
3002         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
3003         find_common_loop, verify_loop_structure, loop_latch_edge,
3004         loop_preheader_edge): New functions.
3005         (flow_loops_cfg_dump): Do not show dominators, as this information
3006         does not remain up to date long.
3007         (flow_loops_find): Store results in new format.
3008         * predict.c (propagate_freq, estimate_probability,
3009         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
3010         infrastructure.
3011
3012 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
3013
3014         * except.c (nothrow_function_p): Walk epilogue delay list
3015         checking the insn, not the chain for potential throws.
3016
3017 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
3018
3019         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
3020         (install): Refer to install-cpp directly.
3021         (uninstall-cpp): Folded into uninstall rule.
3022         * configure.in: Delete all code relating to --disable-cpp.
3023         * configure: Regenerate.
3024         * config/t-install-cpp: Delete.
3025
3026 2002-05-31  Richard Henderson  <rth@redhat.com>
3027
3028         * configure.in (HAVE_AS_TLS): Add alpha tests.
3029         * configure: Rebuild.
3030         * config/alpha/alpha.c (TARGET_AS_TLS): New.
3031         (alpha_tls_size, alpha_tls_size_string): New.
3032         (overide_options): Set it.  Always install machine_status hooks.
3033         (input_operand): Accept got tls predicates.
3034         (local_symbol_p): Merge into ...
3035         (local_symbolic_operand): ... here.  Reject tls symbols.
3036         (global_symbolic_operand): Likewise.
3037         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
3038         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
3039         (tp16_symbolic_operand, tp32_symbolic_operand): New.
3040         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
3041         (alpha_encode_section_info): Handle TLS symbols.
3042         (alpha_strip_name_encoding): Likewise.
3043         (alpha_legitimate_address_p): Likewise.
3044         (alpha_legitimize_address): Likewise.
3045         (alpha_expand_mov): Early exit to avoid nop moves.
3046         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
3047         (alpha_init_machine_status, alpha_mark_machine_status,
3048         alpha_free_machine_status): Always define.
3049         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
3050         (print_operand, print_operand_address): Add TLS relocs.
3051         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
3052         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
3053         (TARGET_SWITCHES): Add -mtls-kernel.
3054         (alpha_tls_size, alpha_tls_size_string): New.
3055         (TARGET_OPTIONS): Add -mtls-size=.
3056         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
3057         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
3058         (ASM_OUTPUT_LABELREF): Skip %.
3059         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
3060         (PREDICATE_CODES): Update.
3061         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
3062         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
3063         UNSPEC_TP, UNSPECV_SET_TP): New.
3064         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
3065         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
3066         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
3067         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
3068         (call_value_osf_2_er): Accept anything as op4.
3069         * config/alpha/alpha-protos.h: Update.
3070         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
3071
3072 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
3073
3074         * cppinit.c (append_include_chain): Always pay attention to
3075         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
3076         marker on argument.
3077
3078 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
3079
3080         * target.h: Fix formatting.
3081         * timevar.h: Likewise.
3082         * tlink.c: Likewise.
3083         * toplev.c: Likewise.
3084         * toplev.h: Likewise.
3085         * tree.c: Likewise.
3086         * tree-dump.h: Likewise.
3087         * tree.h: Likewise.
3088         * tree-inline.h: Likewise.
3089         * unroll.c: Likewise.
3090         * unwind-dw2.c: Likewise.
3091         * unwind-dw2-fde.c: Likewise.
3092         * unwind-dw2-fde-glibc.c: Likewise.
3093         * unwind-dw2-fde.h: Likewise.
3094         * unwind.h: Likewise.
3095         * unwind-sjlj.c: Likewise.
3096         * varasm.c: Likewise.
3097         * varray.h: Likewise.
3098         * vmsdbg.h: Likewise.
3099         * vmsdbgout.c: Likewise.
3100         * xcoffout.h: Likewise.
3101
3102 2002-05-31  Igor Shevlyakov <igor@microunity.com>
3103
3104         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
3105         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
3106
3107 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
3108
3109         * gcc.c (cpp_unique_options): Remove "-d" options.
3110         (cpp_debug_options): New spec string.
3111         (default_compilers): Use it.
3112         * objc/lang-specs.h: Likewise.
3113
3114 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
3115
3116         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
3117         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
3118         * gcc/mklibgcc.in: Likewise.
3119         * gcc/config/arc/t-arc: Likewise.
3120         * gcc/configure.in: Likewise.
3121         * gcc/configure: Regenerate.
3122
3123 2002-05-31  Stan Shebs  <shebs@apple.com>
3124             Turly O'Connor  <turly@apple.com>
3125
3126         * c-decl.c (struct binding_level): Change int field n_incomplete
3127         to tree list incomplete_list.
3128         (clear_binding_level): Init field with NULL.
3129         (pushdecl): Add incomplete type to list.
3130         (mark_binding_level): Mark the incomplete list.
3131         (finish_struct): Scan the incomplete list for types instead
3132         of all decls in the current binding level.
3133
3134 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3135
3136         * pa.c (output_millicode_call): Add missing '%' characters.
3137         (output_call): Likewise.
3138
3139 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
3140
3141         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
3142         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
3143
3144 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
3145
3146         * varasm.c (mark_constant_pool): Walk epilogue delay list
3147         checking the insn, not the chain for potential constants.
3148
3149 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
3150
3151         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
3152
3153 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
3154
3155         * i386.c (classify_argument): Properly handle base types.
3156
3157         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
3158         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
3159         registers.
3160
3161 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
3162
3163         * gcse.c (gcse_emit_move_after): New.
3164         (pre_delete, hoist_store): Use it.
3165
3166         * reload1.c (emit_input_reload_insns): Use constrain_operands
3167         instead of constraint_accepts_reg_p to verify optimization.
3168         (constraint_accepts_reg_p): Kill
3169
3170         * reload1.c (reload_cse_delete_noop_set): Kill.
3171         (reload_cse_simplify): use delte_insn_and_edges.
3172
3173 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3174
3175         * cfgloop.c (flow_loops_find): Initialize first and last fields
3176         correctly.
3177
3178 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3179
3180         * c-common.c (builtin_define_std): Correct logic.
3181
3182 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3183
3184         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
3185         (output_call): Likewise.
3186
3187 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3188
3189         * pa.c: Move output.h include after tree.h include.
3190         (pa_asm_output_mi_thunk): Constify identifier lab.
3191
3192 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
3193
3194         * config/ns32k/ns32k.h: Define named constants for the
3195         bits in target_flags and use them.
3196         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
3197
3198 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3199
3200         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
3201         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
3202         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
3203         default scheduling model.
3204         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
3205         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
3206         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
3207         * doc/install.texi (hppa*-*-*): Document default scheduling.
3208
3209 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3210
3211         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
3212
3213 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
3214
3215         * config.gcc (ns32k-*-netbsd*): Set tm_file to
3216         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
3217         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
3218         netbsd.h, or netbsd-aout.h.
3219
3220 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
3221
3222         * longlong.h (count_trailing_zeros): Add missing \, and clean up
3223         whitespace in __ns32000__ case.
3224
3225 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
3226
3227         * expr.c (expand_expr): Output partially zeroed out vectors with
3228         output_constant_def.
3229
3230 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
3231
3232         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
3233         (sh-*-netbsdelf*)
3234         (shl*-*-netbsdelf*): New targets.
3235         * config/sh/netbsd-elf.h: New file.
3236         * config/sh/t-netbsd: New file.
3237
3238 2002-05-30  Richard Henderson  <rth@redhat.com>
3239             Eric Botcazou  <ebotcazou@multimania.com>
3240
3241         PR optimization/6822
3242         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
3243         to unsigned int for op1 comparisons.  Use gen_int_mode.
3244
3245 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
3246
3247         * expmed.c (const_mult_add_overflow_p): New.
3248         * expr.h: Declare it.
3249         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
3250         Don't eliminate the biv if the giv has a constant multiplier and
3251         the rhs argument of the comparison does satisfy the predicate.
3252         Use expand_mult_add to compute the replacement constant.
3253
3254 2002-05-30  Osku Salerma  <osku@iki.fi>
3255
3256         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
3257         (c_common_get_alias_set): Handle it.
3258         * doc/extend.texi: Document it.
3259
3260 2002-05-30  Richard Henderson  <rth@redhat.com>
3261
3262         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3263         * toplev.c (process_options): Don't check it.
3264         * doc/tm.texi: Don't document it.
3265         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
3266         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3267         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
3268         frame pointer optimization if current_function_profile.
3269
3270 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
3271
3272         * langhooks.c: Fix formatting.
3273         * langhooks.h: Likewise.
3274         * lcm.c: Likewise.
3275         * libgcc2.c: Likewise.
3276         * lists.c: Likewise.
3277         * local-alloc.c: Likewise.
3278         * loop.c: Likewise.
3279         * loop.h: Likewise.
3280
3281 2002-05-30  Marc Espie <espie@openbsd.org>
3282
3283         * config.gcc (sparc64-*-openbsd*): New.
3284         * config/sparc/openbsd1-64.h: New.
3285         * config/sparc/openbsd64.h: New.
3286
3287 2002-05-30  Jeff Law <law@redhat.com>
3288
3289         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
3290         a dead insn with a REG_RETVAL note when the entire libcall is not
3291         dead and remove the associated REG_LIBCALL note at the same time.
3292
3293 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
3294
3295         * lcm.c (output.h): #include.
3296         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
3297         as an ordinary block.
3298         (optimize_mode_switching): Don't pretend that the exit block is
3299         an ordinary block, or handle sucessors of entry block specially.
3300         Instead, split edges from entry block and to exit block, and
3301         put a computing definition on the thus gained post-entry-block,
3302         and a need on the pre-exit-block.
3303
3304 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
3305
3306         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
3307         * rtl.texi: Document 'B'
3308
3309 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
3310
3311         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
3312         at run-time.
3313         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
3314
3315 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
3316
3317         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3318         const0_rtx instead of NULL_RTX when in error.
3319         (altivec_expand_abs_builtin): Same.
3320         (rs6000_expand_binop_builtin): Same.
3321         (altivec_expand_predicate_builtin): Same.
3322         (altivec_expand_stv_builtin): Same.
3323         (rs6000_expand_ternop_builtin): Same.
3324         (altivec_expand_builtin): Same.
3325
3326 2002-05-29  David S. Miller  <davem@redhat.com>
3327
3328         * rtl.h (clear_emit_caches): Delete.
3329         * integrate.c (output_inline_function): Don't call it.
3330         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
3331         (clear_emit_caches): Delete definition.
3332         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
3333
3334 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
3335
3336         * config/mmix/mmix.c: Include real.h.
3337         (mmix_constant_address_p): Remove redundant test before switch.
3338
3339 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3340
3341         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
3342         only if not already defined.
3343
3344 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
3345
3346         * config/h8300/h8300-protos.h: Remove prototypes for
3347         ok_for_bclr and small_power_of_two.
3348         * config/h8300/h8300.c (small_power_of_two): Remove.
3349         (ok_for_blcr): Likewise.
3350         (fix_bit_operand): Make WHAT deal with an integer instead of a
3351         constraint character.
3352         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
3353         (CONST_OK_FOR_P): Likewise.
3354         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
3355         CONST_OK_FOR_P any more.
3356         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
3357         of fix_bit_operand.
3358         (iorqi3): Likewise.
3359         (xorqi3): Likewise.
3360
3361 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3362
3363         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3364         (CPP_PREDEFINES): Make sure this is undefined.
3365         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
3366         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
3367         or -U__MIPSEB__ before defining one or the other.  Instead,
3368         use %(subtarget_endian_default) if neither -EB nor -EL are
3369         specified.
3370         (SUBTARGET_EXTRA_SPECS): Define.
3371         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
3372         %(netbsd_cpp_spec).
3373
3374 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
3375
3376         * doc/md.texi (Patterns): Note pattern condition pitfall
3377         for unnamed insn.
3378
3379 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
3380
3381         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
3382         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
3383         ternary operations from here...
3384         (rs6000_expand_builtin): ...to here.
3385         New argument expandedp.
3386         Change all instances of altivec_expand_binop_builtin to
3387         rs6000_expand_binop_builtin.
3388         (altivec_expand_unop_builtin): Rename to
3389         rs6000_expand_unop_builtin.
3390         (altivec_expand_binop_builtin): Rename to
3391         rs6000_expand_binop_builtin.
3392         (altivec_expand_ternop_builtin): Rename to
3393         rs6000_expand_ternop_builtin.
3394
3395 2002-05-29  Richard Henderson  <rth@redhat.com>
3396
3397         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
3398         (TARGET_BI_ARCH): Likewise.
3399         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
3400         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
3401         (TARGET_64BIT_DEFAULT): Default to 0.
3402         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
3403
3404 2002-05-29  Richard Henderson  <rth@redhat.com>
3405
3406         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
3407         (get_pc_thunk_name): New.
3408         (output_set_got): Use it.
3409         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
3410         into linkonce sections.
3411
3412 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3413
3414         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3415         (CPP_PREDEFINES): Make sure this is undefined.
3416         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
3417         (CPP_SUBTARGET_SPEC): Don't provide different versions for
3418         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
3419         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
3420         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
3421         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3422         (CPP_PREDEFINES): Make sure this is undefined.
3423         (SUBTARGET_EXTRA_SPECS): Define.
3424         (CPP_SPEC): Use %(netbsd_cpp_spec).
3425
3426 2002-05-29  Jeff Law <law@redhat.com>
3427
3428         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
3429
3430         * flow.c (propagate_one_insn): Do not remove a dead insn if it
3431         contains a REG_RETVAL note.
3432
3433         * haifa-sched (sched_analyze): Remove another useless clearing
3434         of SCHED_GROUP_P I missed yesterday.
3435
3436         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
3437         * pa.c (pa_asm_output_mi_thunk): New function.
3438         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
3439
3440 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3441             Marek Michalkiewicz  <marekm@amelek.gda.pl>
3442
3443         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
3444         (avr_asm_only_p): Make non-static.
3445         (enum avr_arch): Remove.
3446         (avr_arch_types): New.
3447         (avr_mcu_types): Update.
3448         (avr_override_options): Use avr_arch_types table instead of switch.
3449         * avr.h (CPP_PREDEFINES): Die.
3450         (avr_base_arch_macro, avr_extra_arch_macro): New.
3451         (TARGET_CPU_CPP_BUILTINS): New.
3452         (CPP_SPEC, EXTRA_SPECS): Simplify.
3453         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
3454         CPP_AVR5_SPEC): Die.
3455
3456 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3457
3458         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3459         NETBSD_OS_CPP_BUILTINS_AOUT.
3460         (SUBTARGET_EXTRA_SPECS): Define.
3461         (CPP_SPEC): Use %(netbsd_cpp_spec).
3462
3463 2002-05-29  Richard Henderson  <rth@redhat.com>
3464
3465         * config/i386/i386.c (ix86_output_function_epilogue): New.
3466         (TARGET_ASM_FUNCTION_EPILOGUE): New.
3467         (pic_label_name): Remove.
3468         (pic_labels_used): New.
3469         (ix86_asm_file_end): Emit one pc load stub for each register used.
3470         (output_set_got): Generate deep pc load to any register.
3471         (ix86_select_alt_pic_regnum): New.
3472         (ix86_save_reg): Don't save pic register if we can find a valid
3473         call-clobbered replacement.
3474         (ix86_expand_prologue): If we found a valid replacement, renumber
3475         pic_offset_table_rtx.
3476         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
3477         pic_offset_table_rtx after reload.
3478         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
3479         * config/i386/i386.md (set_got): Make insn, not expander.
3480         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
3481
3482 2002-05-29  Richard Henderson  <rth@redhat.com>
3483
3484         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
3485         alignment for alloca.
3486
3487 2002-05-29  Richard Henderson  <rth@redhat.com>
3488
3489         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
3490         (print_operand_address): Only add rip for symbolic addresses
3491         for which we do not have another relocation type.
3492
3493 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3494
3495         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3496         (EXTRA_SPECS): Add netbsd_cpp_spec.
3497         (CPP_SPEC): Use %(netbsd_cpp_spec).
3498         (CPP_PREDEFINES): Remove.
3499         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3500         (EXTRA_SPECS): Define.
3501         (CPP_SPEC): Use %(netbsd_cpp_spec).
3502         (CPP_PREDEFINES): Remove.
3503
3504 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3505
3506         PR preprocessor/6844
3507         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
3508         NUL.
3509
3510 2002-05-29  Eric Christopher  <echristo@redhat.com>
3511
3512         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
3513         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
3514
3515 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
3516
3517         * config/fr30/fr30.md: Remove previous restriction on splits.
3518         Enforce conformance through gen_lowpart and cont_int_operand.
3519         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
3520         as the assembler does not support ".bss".
3521
3522 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3523
3524         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3525         (CPP_PREDEFINES): Remove.
3526         (SUBTARGET_EXTRA_SPECS): Define.
3527         (CPP_SPEC): Use %(netbsd_cpp_spec).
3528         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3529         (CPP_PREDEFINES): Remove.
3530         (SUBTARGET_EXTRA_SPECS): Define.
3531         (CPP_SPEC): Use %(netbsd_cpp_spec).
3532         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
3533         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
3534         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
3535         Add netbsd_cpp_spec.
3536         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
3537
3538 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3539             Zack Weinberg <zack@codesourcery.com>
3540
3541         * cppexp.c (cpp_num): Move to cpplib.h.
3542         (CPP_ERROR): Remove.
3543         (interpret_float_suffix, interpret_int_suffix): New.
3544         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
3545         (cpp_classify_number, cpp_interpret_integer): New.
3546         (interpret_number): Remove.
3547         (eval_token): Update to use new routines.
3548         * cpphash.h (cpp_num_part): Move to cpplib.h.
3549         * cppinit.c (cpp_post_options): Set warn_long_long.
3550         * cpplib.h (struct cpp_options): Add warn_long_long.
3551         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
3552         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
3553         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
3554         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
3555         cpp_interpret_integer): New.
3556
3557 2002-05-29  Joel Sherrill <joel@OARcorp.com>
3558
3559         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
3560
3561 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
3562
3563         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3564         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
3565         (CPP_SUBTARGET_SPEC): Define.
3566         (SUBTARGET_EXTRA_SPECS): Define.
3567         (CPP_SPEC): Remove.
3568
3569 2002-05-29  Chris Lattner  <sabre@nondot.org>
3570
3571         * ssa.c (rename_insn_1): Rename uses of undefined registers to
3572         prevent confusion if/when the register is defined.
3573
3574 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
3575
3576         PR target/6838
3577         * config/cris/cris.md: Fix typos and thinkos in comments.
3578         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
3579         second alternative.
3580         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
3581         ("*mov_sideqi_mem"): Similar, but for operand 3.
3582         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
3583         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
3584         Remove spurious mode specifier on operand 2.
3585
3586 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
3587
3588         * config/h8300/h8300-protos.h: Remove the prototype for
3589         o_operand.
3590         Add prototypes for single_one_operand and single_zero_operand.
3591         * config/h8300/h8300.c (o_operand): Remove.
3592         (single_one_operand): New.
3593         (single_zero_operand): Likewise.
3594         (print_operand): For 'V' operand, and the operand with 0xff.
3595         For 'V' and 'W' operands, do not and the bit position with 7.
3596         * config/h8300/h8300.md (various anonymous patterns): Replace
3597         use of exact_log2 with single_one_operand/single_zero_operand.
3598
3599 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
3600
3601         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
3602
3603 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
3604
3605         * config/s390/s390.c (legitimate_pic_operand_p): Do not
3606         accept symbolic LARL operands.
3607         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
3608         epilogue insns.
3609
3610 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
3611
3612         * config/s390/s390.md (cmpstr_64/31): Mark whole
3613         input registers as used.
3614
3615 2002-05-28  Richard Henderson  <rth@redhat.com>
3616
3617         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
3618         not current_function_uses_pic_offset_table and
3619         current_function_uses_const_pool; examine current_function_profile.
3620         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
3621         input to blockage if needed.
3622         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
3623         (legitimize_pic_address): Likewise.  Set regs_ever_live for
3624         pic_offset_table_rtx when invoked during reload.
3625         * config/i386/i386.h (FINALIZE_PIC): Remove.
3626         * config/i386/i386.md (tablejump): Reformat.  Do not set
3627         current_function_uses_pic_offset_table.
3628         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
3629         (blockage): Accept anything as operand 0.
3630
3631 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
3632
3633         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
3634         common CPP built-ins for all NetBSD a.out targets.
3635         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
3636         common CPP built-ins for all NetBSD ELF targets.
3637         * config/netbsd.h: Add missing notice.
3638         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
3639         for all NetBSD targets.
3640         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
3641         for all NetBSD targets using an LP64 code model.
3642         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
3643         NetBSD targets.
3644
3645 2002-05-28  Richard Henderson  <rth@redhat.com>
3646
3647         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
3648         update if UPDATE_LIFE_LOCAL.
3649
3650 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3651
3652         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
3653
3654 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
3655                           Jason R. Thorpe <thorpej@wasabisystems.com>
3656
3657         config/sh reorganization to factor out endianness and coff:
3658
3659         * config/sh/little.h: New file.
3660         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
3661         defined, define to 0 to select big-endian.
3662         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
3663         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3664         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3665         * config/sh/t-be: New file.
3666         * config/sh/t-le: New file.
3667
3668         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
3669         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
3670         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
3671         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
3672         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3673         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3674         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
3675         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
3676         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
3677         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
3678         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
3679         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
3680         (LINK_SPEC): Define to SH_LINK_SPEC.
3681         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
3682         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
3683         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3684         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
3685         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
3686         * config/sh/coff.h: New file.
3687         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
3688         (TARGET_OBJFMT_CPP_BUILTINS): Define.
3689         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
3690         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
3691         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
3692         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
3693         (PTRDIFF_TYPE): Likewise.
3694         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
3695         (CPP_PREDEFINES): Don't define.
3696         (TARGET_OBJFMT_CPP_BUILTINS): Define.
3697         (LINK_SPEC): Define to SH_LINK_SPEC.
3698         (LINK_EMUL_PREFIX): Redefine.
3699         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
3700         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
3701         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
3702         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
3703         (TARGET_OS_CPP_BUILTINS): Define.
3704         (TARGET_DEFAULT): Redefine.
3705         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3706         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
3707         (LINK_SPEC): Don't redefine.
3708         (LINK_DEFAULT_CPU_EMUL): Redefine.
3709         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3710         * sh.c (sh_asm_named_section): Don't declare / define.
3711         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
3712         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
3713         (sh64-*-elf* tm_file): Likewise.
3714         (sh-*-rtemself* tm_file): Likewise.
3715         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
3716         (sh-*-linux* tmake_file): Add sh/t-le.
3717         (sh-*-rtems* tm_file): Add sh/coff.h
3718         (sh-*-* tm_file): Likewise.
3719
3720 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
3721
3722         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
3723         CONSTANT_POOL_ADDRESS_P.
3724
3725         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
3726
3727 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
3728             Jeff Law <law@redhat.com>
3729
3730         * optabs.c (expand_binop): Fix nwords sign warnings.
3731         generate pseudo for add_optab.
3732
3733         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
3734         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
3735
3736 2002-05-28      Marc Espie <espie@openbsd.org>
3737
3738         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
3739         inherited from gas.h.
3740         (ASM_QUAD):  Undef.  OpenBSD does not support it.
3741
3742 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
3743
3744         * doc/install.texi (binaries): Change mingw binaries
3745         link to www.mingw.org.
3746
3747 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3748
3749         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
3750
3751 2002-05-28  Richard Henderson  <rth@redhat.com>
3752
3753         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
3754         bottom alignment for leaf functions.
3755
3756 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
3757
3758         * config/pa/milli32.S, config/pa/lib1funcs.asm,
3759         config/sparc/sol2-g1.asm: Delete unused files.
3760
3761 2002-05-28  Richard Henderson  <rth@redhat.com>
3762
3763         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
3764
3765         * flow.c (calculate_global_regs_live): Rename call_used to
3766         invalidated_by_call.  Initialize from regs_invalidated_by_call
3767         instead of call_used_regs.
3768
3769         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
3770         DECL_EXTERNAL.
3771
3772 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
3773
3774         * tree.h: Don't include real.h.
3775         Forward-declare struct realvaluetype.
3776         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
3777         contain it.
3778         (TREE_REAL_CST_PTR): New accessor.
3779         (TREE_REAL_CST): Update.
3780         * real.h: Include machmode.h.
3781         (realvaluetype): Make it struct realvaluetype, not a typedef.
3782         (build_real): Prototype here.
3783
3784         * tree.c: Include real.h.
3785         (build_real): Allocate the REAL_VALUE_TYPE as a separate
3786         object in GC memory, set TREE_REAL_CST_PTR to point to it.
3787         (build_real_from_int_cst): Use build_real.
3788         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
3789         REAL_CST.
3790
3791         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
3792         fold-const.c, print-tree.c, real.c: Include real.h.
3793         * Makefile.in: Update dependency lists.
3794
3795 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3796
3797         * basic-block.h (last_basic_block): Declare.
3798         (expunge_block_nocompact): Declaration removed.
3799         (compact_blocks): Declare.
3800         * cfg.c (last_basic_block): New variable.
3801         (expunge_block_nocompact): Removed.
3802         (expunge_block): Do not compact basic blocks.
3803         (compact_blocks): New.
3804         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
3805         longer change.
3806         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
3807         last_basic_block.
3808         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
3809         real positions of blocks.
3810         (delete_unreachable_blocks): Simplified -- quadratic behavior now
3811         cannot occur.
3812         (cleanup_cfg): Compact blocks.
3813         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
3814         basic_block_info varray.
3815         (flow_delete_block): Comment update.
3816         (back_edge_of_syntactic_loop_p): Modify position check code.
3817         (verify_flow_info): Update checking.
3818         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
3819         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3820         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
3821         indices no longer change.
3822         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
3823         last_basic_block.
3824         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
3825         * profile.c (branch_prob): Compact blocks.
3826         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
3827         last_basic_block.
3828
3829 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
3830
3831         * config/h8300/h8300.md (two anonymous patterns): New.
3832
3833 2002-05-28  David S. Miller  <davem@redhat.com>
3834
3835         * config/sparc/sparc.md (cpu): Tidy.
3836         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
3837         'trap'.
3838         (in_call_delay): Delete reference to 'return' type.
3839         (eligible_for_return_delay, in_return_delay, define_delay
3840         referencing those): Delete.
3841         (rest of file): Use new type attributes as appropriate.
3842         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
3843         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
3844         * config/sparc/ultra1_2.md (us1_single): New reservation.
3845         (us1_ialuX): Likewise.
3846         * config/sparc/ultra3.md (us3_single): Likewise.
3847         (us3_ialuX): Likewise.
3848         (us3_imul, us3_idiv): Tweak.
3849
3850 2002-05-28  Richard Henderson  <rth@redhat.com>
3851
3852         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
3853         STRING_CST.
3854
3855 2002-05-28  Richard Henderson  <rth@redhat.com>
3856
3857         * config.gcc: Obsolete mn10200.
3858
3859 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3860
3861         * cppexp.c (interpret_number): Optimize for single-digit
3862         and less-than-half-precision cases.
3863         (num_trim, num_positive, num_div_op): Cast constants.
3864
3865 2002-05-27  Bo Thorsen  <bo@suse.de>
3866
3867         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
3868         3.1 branch. The file was made by Jakub Jelinek.
3869         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
3870         support so multilib doesn't break. And don't define this at all
3871         when -Dinhibit_libc is used.
3872         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
3873         * config/i386/t-linux64: Implement full multilib support. Patch
3874         originally done by Andreas Jaeger and Jakub Jelinek.
3875
3876 2002-05-27  Roger Sayle  <roger@eyesopen.com>
3877
3878         * c-common.c: Add support for __attribute__((nothrow)) to specify
3879         that a function cannot throw an exception (using TREE_NOTHROW).
3880         (handle_nothrow_attribute): New function to process this attribute.
3881
3882         * doc/extend.texi: Document the new nothrow function attribute.
3883
3884 2002-05-27  H.J. Lu  (hjl@gnu.org)
3885
3886         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
3887         (num_positive): Likewise.
3888         (num_div_op): Likewise.
3889
3890 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3891
3892         * c-common.c (c_common_init): Always use intmax_t.
3893
3894 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3895
3896         * c-common.c (c_common_init): Use intmax_t for now.
3897
3898 2002-05-24  Andrew Haley  <aph@redhat.com>
3899
3900         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
3901         if T is a boolean type.
3902
3903 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3904
3905         * basic-block.h (last_basic_block): Defined as synonym for
3906         n_basic_blocks.
3907         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
3908         flow_depth_first_order_compute, flow_preorder_transversal_compute,
3909         flow_dfs_compute_reverse_init): Replaced relevant occurences of
3910         n_basic_blocks with last_basic_block.
3911         * cfgbuild.c (make_edges): Likewise.
3912         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
3913         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
3914         * combine.c (combine_instructions): Likewise.
3915         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
3916         iterative_dataflow_bitmap): Likewise.
3917         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3918         calc_idoms, idoms_to_doms): Likewise.
3919         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
3920         Likewise.
3921         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
3922         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
3923         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
3924         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
3925         delete_null_pointer_checks, compute_code_hoist_vbeinout,
3926         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3927         compute_store_table, build_store_vectors): Likewise.
3928         * haifa-sched.c (sched_init): Likewise.
3929         * ifcvt.c (if_convert): Likewise.
3930         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3931         pre_edge_lcm, compute_available, compute_nearerout,
3932         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
3933         Likewise.
3934         * predict.c (estimate_probability, process_note_prediction,
3935         note_prediction_to_br_prob): Likewise.
3936         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
3937         * recog.c (split_all_insns, peephole2_optimize): Likewise.
3938         * regrename.c (copyprop_hardreg_forward): Likewise.
3939         * resource.c (init_resource_info): Likewise.
3940         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
3941         init_regions, schedule_insns): Likewise.
3942         * ssa-ccp.c (ssa_const_prop): Likewise.
3943         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3944         * ssa.c (compute_dominance_frontiers,
3945         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
3946
3947         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
3948         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
3949         sizes consistently.
3950
3951 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
3952
3953         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
3954         new.
3955         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
3956         hoist_insn_after, hoist_insn_to_edge): New.
3957
3958 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
3959
3960         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
3961         (PROP_FINAL): Include.
3962         * flow.c (life_analysis, update_life_info,
3963         init_propagate_block_info, mark_set_1, mark_used_rgs):
3964         Support SCAN_DEAD_STORE.
3965
3966 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3967
3968         * c-common.c (c_common_init): Set CPP arithmetic precision.
3969         * cppexp.c (cpp_num_part): Move typedef ...
3970         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
3971         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
3972         (sanity_checks): Update.
3973
3974 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
3975
3976         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
3977         (mkheaders): New rule.
3978         (install-mkheaders): New rule.
3979         * configure.in (all_outputs): Add mkheaders.
3980         * configure: Regenerate.
3981         * mkheaders.in: New file.
3982
3983 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
3984
3985         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
3986
3987 2002-05-26  Andreas Jaeger  <aj@suse.de>
3988
3989         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
3990
3991 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3992
3993         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
3994         right_shift): Remove.
3995         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
3996         HIGH_PART): New.
3997         (struct op): Use cpp_num.
3998         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
3999         num_part_mul, num_unary_op, num_binary_op, num_negate,
4000         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
4001         num_div_op, num_lshift, num_rshift, append_digit): New.
4002         (interpret_number, parse_defined, eval_token, reduce): Update
4003         for two-integer arithmetic.
4004         (binary_handler): New typedef.
4005         (optab): Update.
4006         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
4007         (_cpp_parse_expr, reduce): Update to handle two-integers.
4008         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
4009
4010 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4011
4012         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
4013         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
4014         branch insn into account, do not assume 1.
4015         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
4016         over single word insn.  Handle upper half of I/O space too.
4017         * config/avr/avr.md (*sbrx_branch): Use it.
4018         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
4019         (*sbix_branch, *sbix_branch_bit7): Likewise.
4020         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
4021         Use RTL peepholes to optimize register operand sign tests.
4022
4023 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4024
4025         * config/avr/avr.c (avr_asm_only_p): New variable.
4026         (avr_override_options): Set it here if AVR1.
4027         (asm_file_start): Test it here, report an error if set.
4028
4029 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
4030
4031         * alias.c: Fix formatting.
4032         * attribs.c: Likewise.
4033         * bb-reorder.c: Likewise.
4034         * bitmap.c: Likewise.
4035         * bitmap.h: Likewise.
4036         * builtins.c: Likewise.
4037
4038 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
4039
4040         * reload.c (find_valid_class): Accept new argument DEST,
4041         choose class accordingly.
4042         (push_reload): Update callers.
4043
4044 2002-05-26  Andreas Jaeger  <aj@suse.de>
4045
4046         * combine.c (combine_instructions): Do not indent #if for
4047         traditional C.
4048
4049 2002-05-25  Richard Henderson  <rth@redhat.com>
4050
4051         * c-pragma.c (apply_pragma_weak): Convert value identifier to
4052         string for decl_attributes.
4053         (handle_pragma_weak): Call assemble_alias if we're modifying
4054         an existing decl.
4055
4056 2002-05-25  Richard Henderson  <rth@redhat.com>
4057
4058         PR target/6788
4059         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
4060         using rtl instead of fprintf.
4061         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
4062         * config/sparc/sparc-protos.h: Update.
4063
4064 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
4065
4066         * Makefile.in (C_COMMON_H): Fix.
4067         Update other targets.
4068         * c-common.c: Don't include c-lex.h.
4069         (builtin_define_with_value): Make static and prototype.
4070         (builtin_define_std): Move from c-lex.h.
4071         * c-common.h (init_c_lex): Move from c-lex.h.
4072         * c-decl.c: Don't include c-lex.h.
4073         (make_pointer_declarator): Move from c-parse.in.
4074         * c-lex.c: Don't include c-lex.h.
4075         * c-lex.h: Remove.
4076         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
4077         (make_pointer_declarator): Move to c-decl.c.
4078         * c-pragma.c: Don't include c-lex.h.
4079         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
4080         * c-tree.h (make_pointer_declarator): New.
4081 doc:
4082         * passes.texi, tm.texi: Update.
4083 objc:
4084         * Make-lang.in: Update and correct.
4085         * objc-act.c: Don't include c-lex.h or cpplib.h.
4086 treelang:
4087         * treetree.c: Don't include c-lex.h.
4088 config:
4089         * darwin-c.c: Don't include c-lex.h.
4090         * c4x/c4x-c.c: Don't include c-lex.h.
4091         * c4x/t-c4x: Update.
4092         * i370/i370-c.c: Don't include c-lex.h.
4093         * i370/t-i370: Update.
4094         * i960/i960-c.c: Don't include c-lex.h.
4095         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
4096         * i960/t-960bare: Update.
4097         * i960/t-vxworks: Update.
4098         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
4099         * rs6000/t-darwin: Update.
4100         * rs6000/t-rs6000-c-rule: Update.
4101         * v850/v850-c.c: Don't include c-lex.h.
4102         * v850/v850.c: Don't include c-lex.h or cpplib.h.
4103
4104
4105 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
4106
4107         * tree.def: Fix typos.
4108         * doc/install.texi: Likewise.
4109
4110 2002-05-25  Richard Henderson  <rth@redhat.com>
4111
4112         * configure.in (HAVE_AS_TLS): Add ia64 test.
4113         * configure: Rebuild.
4114         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
4115         (override_options): Set it.
4116         (TARGET_HAVE_TLS): New.
4117         (sdata_symbolic_operand): Look for 's'.
4118         (tls_symbolic_operand): New.
4119         (ia64_expand_load_address): Abort for tls symbols.
4120         (gen_tls_get_addr): New.
4121         (gen_thread_pointer): New.
4122         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
4123         (rtx_needs_barrier): Add new unspecs.
4124         (ia64_encode_section_info): Handle tls symbols.
4125         (ia64_strip_name_encoding): Strip two encoding chars.
4126         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
4127         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
4128         (TARGET_OPTIONS): Add tls-size.
4129         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
4130         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
4131         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
4132         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
4133         (movsf, movdf): Likewise.
4134         (movdi_symbolic): Use match_scratch.  Don't split if we won't
4135         have a scratch availiable.
4136         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
4137         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
4138         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
4139         * config/ia64/ia64-protos.h: Update.
4140         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
4141         sdata_symbolic_operand.
4142         (ASM_OUTPUT_LABELREF): Strip two characters.
4143
4144 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
4145
4146         * combine.c (simplify_set): Remove an unnecessary subreg.
4147
4148 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4149
4150         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
4151
4152         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
4153
4154 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
4155
4156         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
4157
4158 2002-05-25  Roger Sayle  <roger@eyesopen.com>
4159
4160         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
4161         (cond (compare x y) 0) into the equivalent (cond x y).
4162
4163 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
4164
4165         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
4166
4167 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
4168
4169         * config.gcc: Remove all stanzas for previously obsoleted
4170         systems.  Where necessary, add explicit error stanzas to
4171         prevent removed systems from being misidentified as something
4172         else.  Begin a fresh obsoletions list, with the systems that
4173         were reprieved last round.
4174         * doc/install.texi: Remove all mention of dead targets.
4175         * fixinc/mkfixinc.sh: Likewise.
4176
4177         * config/arm/arm.h: Bit 31 of target_flags is no longer
4178         reserved.
4179
4180         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
4181         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
4182         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
4183         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
4184         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
4185         config/alpha/osf12.h, config/alpha/osf2or3.h,
4186         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
4187         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
4188         config/clipper/clipper-protos.h, config/clipper/clipper.c,
4189         config/clipper/clipper.h, config/clipper/clipper.md,
4190         config/clipper/clix.h, config/convex/convex-protos.h,
4191         config/convex/convex.c, config/convex/convex.h,
4192         config/convex/convex.md, config/convex/fixinc.convex,
4193         config/convex/proto.h, config/elxsi/elxsi-protos.h,
4194         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
4195         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
4196         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
4197         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
4198         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
4199         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
4200         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
4201         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
4202         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
4203         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
4204         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
4205         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
4206         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
4207         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
4208         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
4209         config/m68k/altos3068.h, config/m68k/apollo68.h,
4210         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
4211         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
4212         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
4213         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
4214         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
4215         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
4216         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
4217         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
4218         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
4219         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
4220         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
4221         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
4222         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
4223         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
4224         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
4225         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
4226         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
4227         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
4228         config/mips/dec-osf1.h, config/mips/elflorion.h,
4229         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
4230         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
4231         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
4232         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
4233         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
4234         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
4235         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
4236         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
4237         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
4238         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
4239         config/ns32k/sequent.h, config/ns32k/tek6000.h,
4240         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
4241         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
4242         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
4243         config/sparc/rtems.h, config/we32k/we32k-protos.h,
4244         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
4245         Delete file.
4246
4247 2002-05-24  Richard Henderson  <rth@redhat.com>
4248
4249         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
4250         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
4251         * config/i386/i386.c (tls_model_chars): Add leading space.
4252         (tls_symbolic_operand): Don't bias by 1.
4253         (legitimize_address): Don't unbias by 1.
4254
4255 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4256
4257         * lcm.c (optimize_mode_switching): Change bb used as indices
4258         to bb->index.
4259
4260 2002-05-24  Richard Henderson  <rth@redhat.com>
4261
4262         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
4263         of update_life_info_in_dirty_blocks.
4264
4265 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
4266
4267         PR other/6782
4268         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
4269
4270 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4271
4272         PR preprocessor/6780
4273         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
4274
4275 2002-05-24  Jim Blandy  <jimb@redhat.com>
4276
4277         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
4278         entry with a type code of zero, marking the end of the compilation
4279         unit's macro info.
4280
4281 2002-05-24  Richard Henderson  <rth@redhat.com>
4282
4283         * varasm.c (asm_output_bss): Always output one byte.
4284         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4285
4286 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
4287
4288         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
4289         namespace.
4290
4291 2002-05-24  Andreas Jaeger  <aj@suse.de>
4292
4293         * ggc-page.c (alloc_page): Cast variables of type size_t to
4294         unsigned long, adjust printf format string.
4295         (ggc_alloc): Likewise.
4296         (ggc_print_statistics): Likewise.
4297         (ggc_print_statistics): Correct printf format string for SCALE to
4298         use unsigned long.
4299
4300 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
4301
4302         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
4303
4304 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
4305             Zack Weinberg     <zack@codesourcery.com>
4306
4307         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
4308         quoted strings.
4309         * dwarf2out.c (lookup_filename): Properly quote filename in .file
4310         directive in assembly file.
4311         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4312         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4313         * config/pj/pj.h (ASM_FILE_START): Likewise.
4314         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
4315         * config/avr/avr.c (asm_file_end): Likewise.
4316         * toplev.c (output_quoted_string): Handle possibly signed plain
4317         char.
4318         * toplev.h (output_clean_symbol_name): Declare
4319         * toplev.c (output_clean_symbol_name): Define.
4320         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
4321         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
4322
4323 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
4324
4325         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
4326
4327 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
4328
4329         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
4330         of size of unsigned.
4331
4332 2002-05-23  Richard Henderson  <rth@redhat.com>
4333
4334         * configure.in (HAVE_AS_TLS): New test.
4335         * config.in, configure: Rebuild.
4336         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
4337         (ix86_tls_dialect_string, ix86_tls_dialect): New.
4338         (override_options): Set it.
4339         (tls_model_chars, tls_symbolic_operand): New.
4340         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
4341         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
4342         (local_exec_symbolic_operand): New.
4343         (get_pic_label_name): Merge into output_set_got.
4344         (ix86_asm_file_end): Emit pic_label_name if defined.
4345         (legitimate_constant_p, constant_address_p): New.
4346         (legitimate_pic_operand_p): New.
4347         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
4348         (legitimate_address_p): Likewise.
4349         (ix86_encode_section_info): Rename from i386_; handle tls decls.
4350         (ix86_strip_name_encoding): New.
4351         (get_thread_pointer): New.
4352         (legitimize_address): Handle tls symbols.
4353         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
4354         Remove UNSPEC_PLT.
4355         (struct machine_function): Add some_ld_name.
4356         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
4357         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
4358         (output_addr_const_extra): New.
4359         (maybe_get_pool_constant): New.
4360         (ix86_split_to_parts): Use it.
4361         (ix86_expand_move): Handle tls symbols.
4362         (ix86_tls_get_addr): New.
4363         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
4364         (TARGET_OPTIONS): Add tls-dialect.
4365         (CONSTANT_ADDRESS_P): Use new out-of-line function.
4366         (LEGITIMATE_CONSTANT_P): Likewise.
4367         (LEGITIMATE_PIC_OPERAND_P): Likewise.
4368         (TARGET_STRIP_NAME_ENCODING): New.
4369         (ASM_OUTPUT_LABELREF): New.
4370         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
4371         (OUTPUT_ADDR_CONST_EXTRA): New.
4372         (PREDICATE_CODES): Update.
4373         (ix86_tls_dialect, ix86_tls_dialect_string): New.
4374         * config/i386/i386.md: Regroup and renumber unspec constants.
4375         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
4376         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
4377         (tls_global_dynamic, tls_local_dynamic_base): New.
4378         (tls_local_dynamic_once): New.
4379         * config/i386/i386-protos.h: Update.
4380
4381 2002-05-23  Richard Henderson  <rth@redhat.com>
4382
4383         * genemit.c (gen_insn): Print file:lineno comment before function.
4384         (main): likewise.
4385         * gensupport.c (struct queue_elem): Add filename member.
4386         (queue_pattern): Initialize it; update all callers.
4387         (process_include): Don't free filename.
4388         (read_md_rtx): Set read_rtx_filename.
4389
4390 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
4391
4392         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
4393
4394 2002-05-23  Richard Henderson  <rth@redhat.com>
4395
4396         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
4397
4398 2002-05-23  Richard Henderson  <rth@redhat.com>
4399
4400         * doc/extend.texi (C++98 Thread-Local Edits): Update with
4401         commentary from Mark.
4402
4403 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4404
4405         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
4406         Use FOR_EACH_BB macros to iterate over basic block chain.
4407         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
4408         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
4409         Likewise.
4410         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
4411         find_unreachable_blocks, create_edge_list, verify_edge_list,
4412         remove_fake_edges, add_noreturn_fake_exit_edges,
4413         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
4414         Likewise.
4415         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4416         find_sub_basic_blocks): Likewise.
4417         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
4418         Likewise.
4419         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
4420         Likewise.
4421         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
4422         Likewise.
4423         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
4424         commit_edge_insertions, commit_edge_insertions_watch_calls,
4425         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
4426         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
4427         * conflict.c (conflict_graph_compute): Likewise.
4428         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4429         df_modified_p, df_refs_unlink, df_dump): Likewise.
4430         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
4431         * final.c (compute_alignments): Likewise.
4432         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
4433         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
4434         count_or_remove_death_notes): Likewise.
4435         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
4436         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
4437         classic_gcse, compute_transp, cprop, compute_pre_data,
4438         compute_transpout, invalidate_nonnull_info,
4439         delete_null_pointer_checks_1, delete_null_pointer_checks,
4440         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
4441         compute_store_table, build_store_vectors, store_motion): Likewise.
4442         * global.c (global_conflicts, mark_elimination): Likewise.
4443         * graph.c (print_rtl_graph_with_bb): Likewise.
4444         * haifa-sched.c (sched_init): Likewise.
4445         * ifcvt.c (if_convert): Likewise.
4446         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4447         compute_available, compute_nearerout, compute_rev_insert_delete,
4448         optimize_mode_switching): Likewise.
4449         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
4450         * predict.c (estimate_probability, note_prediction_to_br_prob,
4451         propagate_freq, counts_to_freqs, expensive_function_p,
4452         estimate_bb_frequencies): Likewise.
4453         * profile.c (instrument_edges, get_exec_counts,
4454         compute_branch_probabilities, compute_checksum, branch_prob,
4455         find_spanning_tree): Likewise.
4456         * recog.c (split_all_insns, peephole2_optimize): Likewise.
4457         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
4458         Likewise.
4459         * regclass.c (scan_one_insn, regclass): Likewise.
4460         * regmove.c (mark_flags_life_zones, regmove_optimize,
4461         record_stack_memrefs): Likewise.
4462         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
4463         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
4464         * resource.c (find_basic_block): Likewise.
4465         * sched-ebb.c (schedule_ebbs): Likewise.
4466         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
4467         find_single_block_region, find_rgns, schedule_insns)
4468         * sibcall.c (optimize_sibling_and_tail_recursive_call)
4469         * ssa-ccp.c (optimize_unexecutable_edges,
4470         ssa_ccp_df_delete_unreachable_insns): Likewise.
4471         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4472         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
4473         rename_block, convert_to_ssa, compute_conservative_reg_partition,
4474         compute_coalesced_reg_partition, rename_equivalent_regs,
4475         convert_from_ssa): Likewise.
4476         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
4477         process_for_unwind_directive): Likewise.
4478
4479         * df.c (FOR_ALL_BBS): Removed.
4480         * gcse.c (struct null_pointer_info): Type of current_block field
4481         changed.
4482         (struct reg_avail_info): Type of last_bb field changed.
4483         * config/ia64/ia64.c (block_num): Removed.
4484         (need_copy_state): Type changed.
4485         (last_block): New.
4486
4487 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4488
4489         * cppinit.c (mark_named_operators): Split out from init_builtins.
4490         (cpp_finish_options): Call it from here instead.
4491
4492 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
4493
4494         * builtin-attrs.def: Update copyright years.
4495         (ATTR_NONNULL): New attribute identifier.
4496         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
4497         attribute tree lists.
4498         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
4499         format operand.
4500         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
4501         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
4502         attribute lists.  Chain the appropriate nonnull attribute.
4503         * c-format.c (check_format_arg): Remove null format string
4504         warning.
4505         * testsuite/gcc.dg/format/null-1.c: New test.
4506
4507 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4508
4509         * Makefile.in (ADAC): Define.
4510         (SYSLIBS): Define.
4511         (.SUFFIXES): Move before language makefile fragments.
4512         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
4513
4514 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
4515
4516         * varasm.c (make_decl_rtl): Don't allow weak variables to be
4517         placed in common.
4518
4519 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
4520
4521         * cfg.c (dump_flow_info): Print results of
4522         maybe_hot/probably_never_executed predicates.
4523         * toplev.c (open_dump_file): Print function frequency.
4524
4525 2002-05-23  David S. Miller  <davem@redhat.com>
4526
4527         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
4528         regsets.
4529
4530 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
4531
4532         * c-common.c (warn_nonnull): Declare.
4533         (c_common_attribute_table): Add "nonnull" attribute.
4534         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
4535         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
4536         check_function_arguments_recurse): New functions.
4537         * c-common.h (warn_nonnull): Declare extern.
4538         (check_function_arguments, check_function_arguments_recurse): New
4539         prototypes.
4540         * c-decl.c (c_decode_option): Add -Wnonnull option.
4541         * c-format.c (set_Wformat): Set warn_nonnull if enabling
4542         format checking.
4543         (format_check_context): New structure.
4544         (check_format_info_recurse): Remove recursion and rename to...
4545         (check_format_arg): ...this.  Update comment.
4546         (check_format_info): Use check_function_arguments_recurse.
4547         * c-typeck.c (build_function_call): Call check_function_arguments
4548         instead of check_function_format.
4549         * doc/extend.texi: Document "nonnull" attribute.
4550         * doc/invoke.texi: Docuemnt -Wnonnull option.
4551         * testsuite/gcc.dg/nonnull-1.c: New test.
4552         * testsuite/gcc.dg/nonnull-2.c: New test.
4553
4554 2002-05-23  David S. Miller  <davem@redhat.com>
4555
4556         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
4557         * cfgcleanup.c (cleanup_cfg): If it is set do not
4558         attempt to delete trivially dead insns.
4559         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
4560         * toplev.c (rest_of_compilation): Document non-trivial aspect
4561         the RTL before optimize_save_area_alloca is run.
4562
4563 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4564
4565         * c-lex.c (indent_level): Remove.
4566         (cb_file_change, c_lex): Remove indent level handling.
4567         * c-lex.h (indent_level): Remove.
4568         * input.h (struct file_stack): Remove indent_level.
4569         * toplev.c (push_srcloc): Remove indent_level handling.
4570
4571 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
4572
4573         PR target/6753
4574         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
4575         of x in constraints for clarity.
4576         (sse_mov?fcc split): abort if op2 == op3.
4577         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
4578         sse_movsfcc_const0_4): Add earlyclobber.
4579         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
4580         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
4581         Use Y instead of x in constraints.
4582
4583 2002-05-23  Richard Henderson  <rth@redhat.com>
4584
4585         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
4586         (C++98 Thread-Local Edits): New subsection.
4587
4588         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
4589         (ix86_arch): Set type to enum processor_type.
4590
4591         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
4592         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
4593
4594 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
4595
4596         * configure.in: Fix as version test for binutils 2.12.1 releases
4597         (without dates).
4598         * configure: Rebuilt.
4599
4600 2002-05-23  Richard Henderson  <rth@redhat.com>
4601
4602         * config/i386/i386.c (get_pic_label_name): New.
4603         (load_pic_register): Remove.
4604         (output_set_got): New.
4605         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
4606         * config/i386/i386.md (UNSPEC_SET_GOT): New.
4607         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
4608         (prologue_set_got, prologue_get_pc): Remove.
4609         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
4610         (builtin_setjmp_receiver): Use gen_set_got.
4611         * config/i386/i386-protos.h: Update.
4612
4613 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
4614
4615         * gcse.c (hash_expr): Do not use alias set for hashing.
4616
4617 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
4618
4619         * dbxout.c (dbxout_class_name_qualifiers): New function.
4620         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
4621
4622 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4623
4624         * cpperror.c (_cpp_begin_message): No special casing
4625         of CPP_FATAL_LIMIT.
4626         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
4627         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
4628         * cpplib.c (do_include_common): Use DL_ERROR.
4629         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
4630         (DL_ICE): Renumber.
4631         * fix-header.c (read_scan_file): Update.
4632
4633 2002-05-22  Richard Henderson  <rth@redhat.com>
4634
4635         * config/i386/i386.c (ix86_expand_call): New function, extracted
4636         from md call patterns.  Add pic_offset_table_rtx to
4637         CALL_INSN_FUNCTION_USAGE when needed.
4638         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
4639         (call_value_pop, call_value, untyped_call): Likewise.
4640         (call_exp, call_value_exp): Remove.
4641         * config/i386/i386-protos.h: Update.
4642
4643 2002-05-22  Richard Henderson  <rth@redhat.com>
4644
4645         * varasm.c (default_section_type_flags): Check for VAR_DECL
4646         before using DECL_THREAD_LOCAL.
4647
4648 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
4649
4650         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
4651         (STARTFILE_SPEC): Delete PE crt0.o.
4652         * config/rs6000/aix51.h: Same.
4653         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
4654         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
4655         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
4656         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
4657         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
4658
4659 2002-05-22  Richard Henderson  <rth@redhat.com>
4660
4661         * varasm.c (default_section_type_flags): Handle tls data and
4662         default sections.
4663         (default_unique_section): Handle tls sections.
4664
4665 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
4666
4667         * configure.in (CROSS): Define NATIVE_CROSS.
4668         * configure: Regenerate.
4669         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
4670         (startfile_prefix_spec): New var.
4671         (static_specs): Add startfile_prefix_spec.
4672         (do_spec_2): Split out from..
4673         (do_spec): ..here.
4674         (main): Process startfile_prefix_spec.
4675         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
4676         dynamic linker.
4677         (STARTFILE_PREFIX_SPEC): Define.
4678         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
4679         absolute paths.
4680
4681 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
4682
4683         * cpperror.c: Fix formatting.
4684         * cppexp.c: Likewise.
4685         * cppfiles.c: Likewise.
4686         * cpphash.c: Likewise.
4687         * cpphash.h: Likewise.
4688         * cppinit.c: Likewise.
4689         * cpplex.c: Likewise.
4690         * cpplib.c: Likewise.
4691         * cppmacro.c: Likewise.
4692         * cppmain.c: Likewise.
4693         * cppspec.c: Likewise.
4694
4695 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
4696
4697         * combine.c (force_to_mode): Use gen_int_mode.
4698         Don't clear CONST_INT bits outside of mode.
4699
4700 2002-05-22  Richard Henderson  <rth@redhat.com>
4701
4702         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
4703         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4704
4705 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
4706
4707         PR c/6643
4708         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
4709         if DECL_SIZE_UNIT is INTEGER_CST.
4710
4711 2002-05-22  Richard Henderson  <rth@redhat.com>
4712
4713         * flow.c (life_analysis): Delete broken reg_label check.
4714
4715 2002-05-22  Richard Henderson  <rth@redhat.com>
4716
4717         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
4718         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4719
4720 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
4721
4722         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
4723         (embed-bb.c): New rule.
4724         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
4725         * config/sh/embed_bb.c: Delete.
4726
4727 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
4728
4729         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
4730
4731 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
4732
4733         * config/h8300/h8300.md (*andorqi3): New.
4734
4735 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4736
4737         PR preprocessor/6517
4738         * Makefile.in: Update.
4739         * c-common.c (c_common_post_options): Add preprocessor
4740         errors to the error count.
4741         * c-lang.c (c_post_options): Kill.
4742         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4743         * hooks.h: Add header guards.
4744         * langhooks-def.h: Include hooks.h.
4745         (LANG_HOOKS_POST_OPTIONS): Update.
4746         * langhooks.h (struct lang_hooks): Update post_options.
4747         * toplev.c (parse_options_and_default_flags): Update.
4748 objc:
4749         * objc-lang.c (objc_post_options): Kill.
4750         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4751
4752 2002-05-21  Bruce Korb  <bkorb@gnu.org>
4753
4754         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
4755         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
4756         * fixinc/fixincl.x: regen.
4757
4758 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
4759
4760         * cfgbuild.c: Fix formatting.
4761         * cfg.c: Likewise.
4762         * cfgcleanup.c: Likewise.
4763         * cfglayout.c: Likewise.
4764         * cfgloop.c: Likewise.
4765         * cfgrtl.c: Likewise.
4766
4767 2002-05-21  Richard Henderson  <rth@redhat.com>
4768
4769         * c-common.h (enum rid): Add RID_THREAD.
4770         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
4771         (grokdeclarator): Grok __thread.
4772         * c-parse.in (reswords): Add __thread.
4773         (rid_to_yy): Add RID_THREAD.
4774
4775         * tree.h (DECL_THREAD_LOCAL): New.
4776         (struct tree_decl): Add thread_local_flag.
4777         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
4778         * tree.c (staticp): TLS variables are not static.
4779
4780         * target-def.h (TARGET_HAVE_TLS): New.
4781         * target.h (have_tls): New.
4782         * output.h (SECTION_TLS): New.
4783         * varasm.c (assemble_variable): TLS variables can't be common for now.
4784         (default_section_type_flags): Handle .tdata and .tbss.
4785         (default_elf_asm_named_section): Handle SECTION_TLS.
4786         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
4787
4788         * flags.h (flag_tls_default): Declare.
4789         * toplev.c (flag_tls_default): Define.
4790         (display_help): Display help for it.
4791         (decode_f_option): Set it.
4792
4793         * doc/extend.texi (Thread-Local): New node describing language-level
4794         thread-local storage.
4795         * doc/invoke.texi (-ftls-model): Document.
4796
4797         * fixinc/inclhack.def (thread_keyword): New.
4798         * fixinc/fixincl.x: Rebuild.
4799
4800 2002-05-21  Jeffrey A Law  <law@redhat.com>
4801
4802         * optabs.c (expand_binop): For double-word integer multiplies,
4803         do not compute intermediate results into something that is
4804         not a register (such as a SUBREG or MEM).
4805
4806         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
4807         (ix86_sched_reorder): Make sure to initialize scheduling
4808         data even when there's only one insn in the ready queue.
4809
4810 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
4811
4812         * genautomata.c (reserv_sets_hash_value): Fix a typo.
4813
4814 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
4815
4816         * genautomata.c (reserv_sets_hash_value): Define hash_value as
4817         set_el_t.  Transform the hash value into unsigned.
4818         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
4819         (transform_3): Add code to process `(A,B)+(D,E)'.
4820
4821 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
4822
4823         * reload1.c (do_output_reload): Run delete_output_reload
4824         only if optimizing.
4825
4826 2002-05-21  Roger Sayle  <roger@eyesopen.com>
4827
4828         PR middle-end/6600
4829         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
4830         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
4831         (can_store_by_pieces): ... and here to limit the largest mode used.
4832         Add a comment to document this function.
4833
4834 2002-05-21  Richard Henderson  <rth@redhat.com>
4835
4836         * flow.c (life_analysis): Fix test for deleted label.
4837
4838 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4839
4840         * doc/tm.texi: Fix typo.
4841
4842 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
4843
4844         * c-common.c (c_common_init): Set options->unsigned_char from
4845         flag_signed_char.
4846         (cb_register_builtins): Define __STRICT_ANSI__ and
4847         __CHAR_UNSIGNED__ here...
4848         * cppinit.c (init_builtins): Not here.
4849         (cpp_create_reader): unsigned_char option defaults to 0, not
4850         !DEFAULT_SIGNED_CHAR.
4851         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
4852         and -funsigned-char.
4853
4854         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
4855         * cpphash.c (_cpp_init_hashtable): Don't set it.
4856         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
4857         directly.  Clarify comment.
4858
4859 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4860
4861         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
4862         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
4863         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
4864         BASIC_BLOCK (n_basic_blocks - 1).
4865         * cfganal.c (can_fallthru, flow_call_edges_add,
4866         flow_preorder_transversal_compute): Too.
4867         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4868         find_sub_basic_blocks): Too.
4869         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
4870         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
4871         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
4872         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
4873         * combine.c (this_basic_block): Type changed to basic_block.
4874         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
4875         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4876         get_last_value, distribute_notes, distribute_links): Too.
4877         * final.c (compute_alignments): Too.
4878         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
4879         * function.c (thread_prologue_and_epilogue_insns): Too.
4880         * gcse.c (compute_code_hoist_vbeinout): Too.
4881         * global.c (build_insn_chain): Too.
4882         * ifcvt.c (find_if_block, find_cond_trap): Too.
4883         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
4884         * regmove.c (regmove_optimize): Too.
4885         * resource.c (find_basic_block): Too.
4886         * sched-ebb.c (schedule_ebbs): Too.
4887         * ssa-dce.c (find_control_dependence, find_pdom): Too.
4888
4889 2002-05-21  Andreas Jaeger  <aj@suse.de>
4890
4891         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
4892
4893 2002-05-21  Richard Henderson  <rth@redhat.com>
4894
4895         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
4896         unspec names, not numbers.
4897
4898 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4899
4900         * doc/sourcebuild.texi: Mention snapshot-README and
4901         snapshot-index.html as needing updating for new front ends.
4902
4903 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4904
4905         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
4906         disabling checking, and avoid multiple evaluation of RTX.
4907
4908 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
4909
4910         * bitmap.c (bitmap_find_bit): Return early if we have the correct
4911         element cached.
4912
4913 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4914
4915         * profile.c (gen_edge_profiler):  Set alias set before the memory is
4916         used.
4917
4918 2002-05-20  David S. Miller  <davem@redhat.com>
4919
4920         * cselib.c (max_value_regs): New.
4921         (cselib_lookup, cselib_invalidate_regno): Initialize it when
4922         adding new entries to the REG_VALUES table and we are dealing with
4923         a hard register.
4924         (clear_table): Initialize it.
4925         (cselib_invalidate_regno): Use it to determine which hard
4926         registers to scan when mode is not VOIDmode.
4927
4928 2002-05-20  Duraid Madina   <duraid@fl.net.au>
4929
4930         * tradcpp.c (fixup_newlines): Use old-style function header.
4931
4932 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
4933
4934         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
4935
4936 2002-05-20  H.J. Lu  (hjl@gnu.org)
4937
4938         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
4939
4940         * config/mips/mips.h (DFMODE_NAN): Defined.
4941         (SFMODE_NAN): Likewise.
4942
4943 2002-05-20  Dale Johannesen  <dalej@apple.com>
4944
4945         * combine.c (cant_combine_insn_p):  Back out my
4946         previous patch.
4947
4948 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
4949
4950         * params.c: Fix formatting.
4951         * params.h: Likewise.
4952         * predict.c: Likewise.
4953         * prefix.c: Likewise.
4954         * print-rtl.c: Likewise.
4955         * print-tree.c: Likewise.
4956         * profile.c: Likewise.
4957
4958 2002-05-20  H.J. Lu  (hjl@gnu.org)
4959
4960         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
4961
4962 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
4963
4964         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
4965         switches straight on to the assembler, do not abbreviate them.
4966         * config/arm/elf.h (ASM_SPEC): As above.
4967         * config/arm/semi.h (ASM_SPEC): As above.
4968         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
4969         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
4970         -mcpu=xscale on to the assembler by default.
4971         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
4972
4973 2002-05-20  Richard Henderson  <rth@redhat.com>
4974
4975         * cse.c (canon_hash): Reorder do_not_record test.  Always
4976         allow pic_offset_table_rtx.
4977
4978 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
4979
4980         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
4981         (expand_binop): Ditto (3 times).
4982
4983 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
4984
4985         * Makefile.in (distclean): Remove QMTest stuff.
4986         (QMTEST_PATH): New variable.
4987         (QMTESTFLAGS): Likewise.
4988         (QMTESTRUNFLAGS): Likewise.
4989         (QMTEST): Likewise.
4990         (QMTEST_GPP_TESTS): Likewise.
4991         (QMTEST_DIR): Likewise.
4992         (QMTEST_DIR/context): New target.
4993         (qmtest-g++): Likeise.
4994         (qmtest-gui): Likewise.
4995         (QMTEST_DIR/gpp-expected.qmr): Likewise.
4996
4997 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
4998
4999         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
5000         an altivec register if TARGET_ALTIVEC.
5001
5002         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
5003         to ALTIVEC_VECTOR_MODE.
5004         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
5005         (rs6000_va_arg): Vectors may go in registers if they are not
5006         altivec vectors.
5007
5008 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
5009
5010         * protoize.c: Fix formatting.
5011
5012 2002-05-19  Richard Henderson  <rth@redhat.com>
5013
5014         * gensupport.c (init_include_reader): Merge into ...
5015         (process_include): ... here.  Simplify composite path creation.
5016         Plug memory leaks.  Fix file/line number tracking.  Do not
5017         process_define_cond_exec.  Return void.
5018         (process_rtx): Don't check process_include return value.
5019
5020 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5021
5022         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
5023         fields.
5024         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5025         traversing basic block chain.
5026         (create_basic_block_structure, create_basic_block): Declaration changed.
5027         (link_block, unlink_block): Declare.
5028         * cfg.c (entry_exit_blocks): Initialize new fields.
5029         (link_block, unlink_block): New.
5030         (expunge_block_nocompact): Unlink basic block.
5031         (dump_flow_info): Print prev_bb/next_bb fields.
5032         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
5033         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
5034         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
5035         * cfgrtl.c (create_basic_block_structure, create_basic_block,
5036         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
5037         (verify_flow_info): Check that list agrees with numbering.
5038
5039 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5040
5041         * c-common.c (preprocessing_asm): New macro.
5042         * c-lex.h (builtin_define, builtin_assert): Use pfile.
5043 doc:
5044         * tm.texi: Update.
5045 config/alpha:
5046         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
5047         (CPP_SPEC): Simplify.
5048         (TARGET_CPU_CPP_BUILTINS): Update.
5049         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
5050         (CPP_SPEC): Simplify.
5051         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
5052         (TARGET_OS_CPP_BUILTINS): Update.
5053         * osf.h (CPP_XFLOAT_SPEC): Kill.
5054         (TARGET_OS_CPP_BUILTINS): Update.
5055         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
5056         * osf5.h (CPP_XFLOAT_SPEC): Kill.
5057         * vms.h (CPP_SUBTARGET_SPEC): Kill.
5058         (TARGET_OS_CPP_BUILTINS): Update.
5059
5060 2002-05-19  Richard Henderson  <rth@redhat.com>
5061
5062         * varasm.c (default_binds_local_p): Fix typo.
5063
5064 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5065
5066         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
5067         CONST_INT operand to the correct mode after adding 1 to it.
5068
5069 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
5070
5071         * config.gcc (powerpc-wrs-windiss*): New target.
5072
5073 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5074
5075         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
5076         (ashrdi3): Use it.
5077
5078 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
5079
5080         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
5081         alphasort.
5082         * config.in: Regenerated.
5083         * configure: Regenerated.
5084
5085 2002-05-19  Richard Henderson  <rth@redhat.com>
5086
5087         * target-def.h (TARGET_BINDS_LOCAL_P): New.
5088         * target.h (struct gcc_target): Move boolean fields to the end.
5089         Add binds_local_p.
5090         * varasm.c (default_binds_local_p): New.
5091         * output.h: Declare it.
5092
5093         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
5094         * config/cris/cris.c (cris_encode_section_info): Likewise.
5095         * config/i386/i386.c (i386_encode_section_info): Likewise.
5096         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
5097         * config/sh/sh.c (sh_encode_section_info): Likewise.
5098
5099         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
5100         (TARGET_BINDS_LOCAL_P): New.
5101
5102 2002-05-19  Richard Henderson  <rth@redhat.com>
5103
5104         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
5105         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
5106         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
5107
5108         * toplev.c (display_help): Kill -a -ax help.
5109
5110         * config/1750a/1750a.h, config/alpha/alpha.h,
5111         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
5112         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
5113         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
5114         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
5115
5116         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
5117         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
5118
5119         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
5120         (ix86_output_function_block_profiler): Kill.
5121         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
5122         (m68hc11_function_block_profiler): Kill.
5123         * config/m68hc11/m68hc11-protos.h: Update.
5124         * config/m88k/m88k.c (output_block_profiler): Kill.
5125         (output_function_block_profiler): Kill.
5126         * config/m88k/m88k-protos.h: Update.
5127
5128 2002-05-19  Richard Henderson  <rth@redhat.com>
5129
5130         * system.h (STRIP_NAME_ENCODING): Poison it.
5131         * output.h (STRIP_NAME_ENCODING): Remove.
5132         (default_strip_name_encoding): Declare.
5133         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
5134         * target.h (strip_name_encoding): New.
5135         * varasm.c (default_strip_name_encoding): New.
5136
5137         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
5138         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
5139         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
5140         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
5141         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
5142         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
5143         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
5144         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
5145         config/v850/v850.h: Use the hook, not the macro.
5146
5147         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5148         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
5149         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
5150         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
5151         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
5152         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
5153         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
5154         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
5155         config/v850/v850.c, config/v850/v850.h:
5156         Move STRIP_NAME_ENCODING to out-of-line function and add
5157         TARGET_STRIP_NAME_ENCODING.
5158
5159         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
5160         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
5161         with TARGET_STRIP_NAME_ENCODING referencing existing function;
5162         make function static.
5163
5164         * xcoffout.c: Include target.h
5165         * Makefile.in (xcoffout.o): Update.
5166
5167         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
5168         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
5169         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
5170         reloc argument unused.
5171         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
5172
5173         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
5174         STRIP_NAME_ENCODING docs.
5175
5176 2002-05-19  Andreas Jaeger  <aj@suse.de>
5177
5178         * gengenrtl.c: Add prototype for excluded_rtx.
5179
5180         * real.h: Add prototype for exact_real_truncate.
5181
5182 2002-05-18  Richard Henderson  <rth@redhat.com>
5183
5184         * system.h (ENCODE_SECTION_INFO): Poison it.
5185         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
5186         * target.h (encode_section_info): New.
5187         * varasm.c (make_decl_rtl, output_constant_def): Use it.
5188         * hooks.c (hook_tree_int_void): New.
5189         * hooks.h: Declare it.
5190
5191         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5192         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
5193         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
5194         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
5195         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
5196         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
5197         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
5198         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
5199         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
5200         config/mcore/mcore-protos.h, config/mcore/mcore.c,
5201         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
5202         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
5203         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
5204         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
5205         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
5206         referencing existing function.  Make function static.
5207
5208         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
5209         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
5210         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
5211         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
5212         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
5213         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
5214         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
5215         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
5216         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
5217         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
5218         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
5219         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
5220         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
5221         Move ENCODE_SECTION_INFO to out-of-line function and add
5222         TARGET_ENCODE_SECTION_INFO.
5223
5224         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
5225         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5226
5227         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
5228         from SUBTARGET_*
5229         (switch_to_section): Replace in_rdata case with in_readonly_data.
5230
5231         * config/h8300/h8300.c (h8300_encode_label): Make static.
5232         * config/h8300/h8300-protos.h: Update.
5233
5234         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
5235         from rs6000_encode_section_info; make static.
5236         (rs6000_xcoff_encode_section_info): New.
5237
5238         * config/v850/v850.c (v850_encode_data_area): Make static.
5239         * config/v850/v850-protos.h: Update.
5240
5241         * config/vax/vax.c: Include flags.h.
5242         (vms_select_section): Fix typo.
5243
5244         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
5245         ENCODE_SECTION_INFO docs.
5246
5247 2002-05-18  Richard Henderson  <rth@redhat.com>
5248
5249         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
5250         REGISTER_TARGET_PRAGMAS.
5251         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
5252
5253         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
5254
5255 2002-05-18  Richard Henderson  <rth@redhat.com>
5256
5257         * system.h (SELECT_RTX_SECTION): Poison.
5258         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
5259         * target.h (select_rtx_section): New.
5260         * varasm.c (output_constant_pool): Use it.
5261         (default_select_rtx_section, default_elf_select_rtx_section): New.
5262         * output.h: Declare them.
5263
5264         * config/darwin.h (SELECT_RTX_SECTION): Move ...
5265         * config/darwin.c (machopic_select_rtx_section): ... here.
5266         * config/darwin-protos.h: Update.
5267
5268         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
5269         * config/nextstep.c (machopic_select_rtx_section): ... here.
5270         (nextstep_select_section): Rename variable to avoid macro clash.
5271         * config/nextstep-protos.h: Update.
5272
5273         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
5274         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
5275         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
5276         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
5277         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
5278         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
5279         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
5280         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
5281         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
5282         (SELECT_RTX_SECTION): Remove.
5283
5284         * config/darwin.h, config/elfos.h, config/nextstep.h,
5285         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
5286         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
5287         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
5288         config/sparc/lynx.h, config/xtensa/xtensa.c
5289         (TARGET_ASM_SELECT_RTX_SECTION): New.
5290
5291         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
5292         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
5293         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
5294         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
5295         (ia64_aix_select_rtx_section): New.
5296         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
5297         redefining.
5298         * config/mips/mips.c (mips_select_rtx_section): Make static.
5299         Support ELF SHF_MERGE features.
5300         * config/mips/mips-protos.h: Update.
5301         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
5302         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
5303         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
5304         make static, fall back to default_elf_select_rtx_section.
5305         * config/rs6000/rs6000-protos.h: Update.
5306         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
5307         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
5308         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
5309         * config/romp/romp.c (romp_select_rtx_section): New.
5310         * config/s390/s390.c (s390_select_rtx_section): New.
5311         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
5312         declarations before target macro definition.
5313         (xtensa_emit_call): Use static buffer.
5314         (xtensa_select_rtx_section): New.
5315         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
5316         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
5317         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
5318
5319         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
5320         SELECT_RTX_SECTION docs.
5321
5322 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
5323
5324         * i386.md (movsi/movdi): Fix template.
5325         (sse2 patterns): Set attributes consistently.
5326
5327         * i386.md (pushqi2, ashrqi_*): Fix constraint.
5328
5329 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
5330
5331         * optabs.c (complex_part_zero_p): New.
5332         * (expand_cmplxdiv_straight): Use it.
5333         * (expand_cmplxdiv_wide): Ditto.
5334         * (expand_binop): Ditto.
5335
5336 2002-05-18  Richard Henderson  <rth@redhat.com>
5337
5338         * final.c (HAVE_READONLY_DATA_SECTION): New.
5339         (shorten_branches): Use it instead of ifdefs.
5340         * varasm.c (enum in_section): Add in_readonly_data.
5341         (text_section, data_section): Tidy.
5342         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
5343
5344         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
5345         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
5346         (READONLY_DATA_SECTION): Don't undef.
5347
5348         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
5349         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
5350         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
5351
5352         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
5353         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
5354         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
5355         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
5356
5357         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
5358         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
5359         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5360         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
5361         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
5362         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
5363         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
5364         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
5365         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
5366
5367         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
5368         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
5369         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
5370         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
5371         config/pa/pa64-hpux.h, config/sparc/litecoff.h
5372         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
5373
5374         * config/elfos.h, config/netware.h, config/svr3.h,
5375         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5376         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5377         config/h8300/h8300.h, config/i386/i386-interix.h,
5378         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5379         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
5380
5381         * config/elfos.h, config/netware.h, config/svr3.h,
5382         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5383         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
5384         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5385         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
5386
5387         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
5388         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
5389         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
5390         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
5391         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
5392         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
5393         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
5394         config/rs6000/sysv4.h, config/v850/v850.h
5395         (EXTRA_SECTIONS): Remove in_const/in_rdata.
5396         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
5397
5398         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
5399         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
5400         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
5401         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
5402         * config/alpha/alpha.c (alpha_start_function): Likewise.
5403         (alpha_write_linkage): Likewise.
5404         * config/m32r/m32r.c (m32r_select_section): Likewise.
5405         * config/m88k/m88k.c (m88k_select_section): Likewise.
5406         * config/mips/mips.c (mips_select_rtx_section): Likewise.
5407         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
5408         (rs6000_elf_select_section): Likewise.
5409         * config/v850/v850.c (v850_select_section): Likewise.
5410
5411         * config/1750a/1750a.h, config/i860/sysv3.h
5412         (READONLY_DATA_SECTION_ASM_OP): New.
5413         READONLY_DATA_SECTION_ASM_OP.
5414         * config/i386/interix.c, config/i386/winnt.c
5415         (i386_pe_unique_section): Always use .rdata prefix.
5416         * config/pa/som.h (readonly_data): Always switch to read-only section.
5417         (READONLY_DATA_SECTION): Predicate on flag_pic.
5418         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
5419         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
5420         (READONLY_DATA_SECTION): Update.
5421
5422 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
5423
5424         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
5425         is used without -Wformat.
5426         * c-common.h (warn_format_zero_length): Declare extern.
5427         * c-decl.c (warn_options): Add "format-zero-length".
5428         * c-format.c (warn_format_zero_length): Declare.
5429         (set_Wformat): Set warn_format_zero_length for -Wformat.
5430         (check_format_info): Only warn about zero-length formats if
5431         warn_format_zero_length is true.  Include the format type
5432         name in the warning message.
5433         * doc/invoke.texi: Document -Wformat-zero-length.
5434         * testsuite/gcc.dg/format/zero-length-1.c: New test.
5435
5436 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
5437
5438         * timevar.c: Fix formatting.
5439         * tlink.c: Likewise.
5440         * toplev.c: Likewise.
5441         * tree-dump.c: Likewise.
5442         * tree-inline.c: Likewise.
5443
5444 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
5445
5446         * cppinit.c (cpp_post_options): If preprocessed, turn off
5447         traditional.  If traditional, turn off column numbers.
5448         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
5449         * cpptrad.c (handle_newline): Update line_base.
5450         (skip_comment): Handle -Wcomment.
5451
5452 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
5453
5454         * cppinit.c (struct builtin): Remove unused fields.
5455         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
5456         (operator_array): New - was second half of builtin_array.
5457         (init_builtins): Simplify loop over builtin_array/operator_array.
5458
5459 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
5460
5461         * defaults.h (UNIQUE_SECTION): Remove.
5462         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
5463
5464 2002-05-17  Richard Henderson  <rth@redhat.com>
5465
5466         * expr.c (init_expr_once): Don't use start/end_sequence.
5467         Use rtx_alloc instead of emit_insn.
5468         * toplev.c (lang_dependent_init): Run init_expr_once here ...
5469         (lang_independent_init): ... not here.
5470
5471 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
5472
5473         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
5474
5475 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5476
5477         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
5478         for fixed registers, possibly used for global register variables.
5479         (initial_elimination_offset, avr_output_function_prologue,
5480         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
5481
5482 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5483
5484         * Makefile.in: Update for cpptrad.c.
5485         * cpphash.h (struct cpp_buffer): New members for buffer
5486         overlays.
5487         (struct cpp_reader): New members for traditional output.
5488         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
5489         * cppinit.c (cpp_create_reader): Set trad_line.
5490         (cpp_destroy): Free trad_out_base if used.
5491         (cpp_read_main_file): Overlay an empty buffer if traditional.
5492         (cpp_finish_options): Don't do builtins.
5493         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
5494         (cpp_handle_option): Handle it.
5495         * cpplex.c (continue_after_nul): New.
5496         (_cpp_lex_direct): Use handle_nul.
5497         * cpplib.h (struct cpp_options): New traditional option.
5498         * cpptrad.c: New file.
5499
5500 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5501
5502         * c-common.c (c_common_init_options): Use C89 for Objective-C,
5503         and set the options flag.
5504         * cppinit.c (lang_flags): Remove objc.
5505         (lang_defaults): Remove OBJC and OBJCXX.
5506         (set_lang): Update.
5507         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
5508         (cpp_handle_option): Remove -+ and -lang-objc++.
5509         For ObjC, just set a flag.
5510         (print_help): Update.
5511         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
5512
5513 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5514
5515         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
5516         bootstrap with -mips3.
5517
5518 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
5519
5520         * final.c: Fix formatting.
5521         * fix-header.c: Likewise.
5522         * flow.c: Likewise.
5523         * fold-const.c: Likewise.
5524         * function.c: Likewise.
5525
5526 2002-05-17  David S. Miller  <davem@redhat.com>
5527
5528         PR c/6689, PR optimization/6615
5529         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
5530         and make it a pointer to rtx.  Update comments.
5531         (update_equiv_regs): When scanning for equivalences, record
5532         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
5533         it while making the equiv replacements.
5534
5535 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5536
5537         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
5538
5539 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5540
5541         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
5542         when encoding visibility into SYMBOL_REF_FLAG.
5543
5544 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
5545
5546         * expr.c (force_operand): Fix reversed move.
5547
5548 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
5549
5550         * doc/install.texi (Testing): Mention two common DejaGnu warnings
5551         that can be ignored.
5552
5553 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5554
5555         * doc/install.texi (Final install): Recommend to install into a
5556         "clean" target directory.
5557
5558 2002-05-17  Richard Henderson  <rth@redhat.com>
5559
5560         * config/ia64/ia64.md: Use braced strings instead of quoted strings
5561         for code blocks.  Tidy whitespace.
5562
5563 2002-05-17  Richard Henderson  <rth@redhat.com>
5564
5565         * hooks.c (hook_tree_bool_false): New.
5566         * hooks.h: Declare it.
5567         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
5568         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
5569         * target.h (select_section, unique_section): New.
5570         (in_small_data_p): New.
5571         * varasm.c (resolve_unique_section): Use hooks instead of macros.
5572         (variable_section, output_constant_def_contents): Likewise.
5573         (default_select_section, default_unique_section): New.
5574         (categorize_decl_for_section, default_elf_select_section): New.
5575         * output.h: Declare them.
5576
5577         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
5578         (TARGET_ASM_SELECT_SECTION): New.
5579         (SELECT_SECTION): Move ...
5580         * config/darwin.c (machopic_select_section): ... here.
5581         * config/darwin-protos.h: Update.
5582
5583         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
5584         (SELECT_SECTION): Move ...
5585         * config/nextstep.c (nextstep_select_section): ... here.
5586         * config/nextstep-protos.h: Update.
5587
5588         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
5589         (TARGET_ASM_SELECT_SECTION): New.
5590         * config/svr3.h (SELECT_SECTION): Remove.
5591
5592         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
5593         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
5594         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
5595         (alpha_encode_section_info): Use it.
5596         * config/alpha/alpha-protos.h: Update.
5597         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
5598         (SELECT_SECTION, UNIQUE_SECTION): Remove.
5599         (TARGET_ASM_SELECT_SECTION): New.
5600         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
5601
5602         * config/arm/pe.h (UNIQUE_SECTION): Remove.
5603         (TARGET_ASM_UNIQUE_SECTION): New.
5604
5605         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
5606         (avr_unique_section): Rename from unique_section; make static.
5607         * config/avr/avr-protos.h: Update.
5608         * config/avr/avr.h (UNIQUE_SECTION): Remove.
5609
5610         * config/c4x/c4x.h (SELECT_SECTION): Remove.
5611
5612         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
5613         (TARGET_ASM_UNIQUE_SECTION): New.
5614         * config/i386/i386-interix.h: Likewise.
5615         * config/i386/win32.h: Likewise.
5616         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
5617         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
5618         * config/i386/sco5.h (SELECT_SECTION): Remove.
5619         (TARGET_ASM_SELECT_SECTION): New.
5620         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
5621
5622         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
5623         instead of SELECT_SECTION.
5624         * config/m68k/dpx2.h: Likewise.
5625         * config/rs6000/lynx.h: Likewise.
5626
5627         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5628         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5629         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
5630         (ia64_in_small_data_p): New.
5631         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
5632         (ia64_aix_select_section, ia64_aix_unique_section): New.
5633         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
5634         (SELECT_SECTION, UNIQUE_SECTION): Remove.
5635
5636         * config/m32r/m32r.h (SELECT_SECTION): Remove.
5637         (TARGET_ASM_SELECT_SECTION): New.
5638         * config/m32r/m32r.c (m32r_select_section): Take align argument.
5639         * config/m32r/m32r-protos.h: Update.
5640
5641         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
5642         (SELECT_SECTION): Move ...
5643         * config/m88k/m88k.c (m88k_select_section): ... here.
5644
5645         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
5646         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
5647         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
5648         (mcore_unique_section): Make static.
5649         * config/mcore/mcore-protos.h: Update.
5650
5651         * config/mips/elf.h (UNIQUE_SECTION): Remove.
5652         (TARGET_ASM_UNIQUE_SECTION): New.
5653         * config/mips/elf64.h: Likewise.
5654         * config/mips/iris6gld.h: Likewise.
5655         * config/mips/linux.h: Likewise.
5656         * config/mips/mips-protos.h: Update.
5657         * config/mips/mips.c (mips_select_section): Add align argument.
5658         * config/mips/mips.h (SELECT_SECTION): Remove.
5659         (TARGET_ASM_SELECT_SECTION): New.
5660
5661         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5662         * config/mmix/mmix.c (mmix_select_section): Remove.
5663         (mmix_unique_section): Remove.
5664         * config/mmix/mmix-protos.h: Update.
5665
5666         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
5667         (SELECT_SECTION): Move ...
5668         * config/pa/pa.c (pa_select_section): ... here.
5669         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
5670
5671         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
5672         from rs6000_select_section and make static.
5673         (rs6000_elf_unique_section): Similarly.
5674         (rs6000_xcoff_select_section): From xcoff.h.
5675         (rs6000_xcoff_unique_section): Likewise.
5676         * config/rs6000/rs6000-protos.h: Update.
5677         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5678         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5679         * config/rs6000/xcoff.h: Likewise.
5680
5681         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
5682         (SELECT_SECTION): Move ...
5683         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
5684
5685         * config/v850/v850.h (SELECT_SECTION): Move ...
5686         * config/v850/v850.c (v850_select_section): ... here.
5687         (TARGET_ASM_SELECT_SECTION): New.
5688
5689         * config/vax/vms.h (SELECT_SECTION): Move ...
5690         * config/vax/vax.c (vms_select_section): ... here.
5691         (TARGET_ASM_SELECT_SECTION): New.
5692
5693         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
5694         for the target hooks.
5695
5696 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
5697
5698         * config/arm/arm.c (emit_multi_reg_push): Do not set
5699         RTX_FRAME_RELATED_P on the SEQUENCE.
5700
5701 2002-05-16  Richard Henderson  <rth@redhat.com>
5702
5703         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
5704         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
5705
5706 2002-05-16  Richard Henderson  <rth@redhat.com>
5707
5708         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
5709
5710         * config/ia64/ia64.c (saveable_obstack): Do not declare.
5711
5712 2002-05-16  Richard Henderson  <rth@redhat.com>
5713
5714         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
5715         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
5716         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
5717         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
5718         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
5719         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
5720         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
5721         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
5722         Revert "Basic block renumbering removal", and two followup patches.
5723
5724 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
5725
5726         * lcm.c (optimize_mode_switching): Revert previous change.
5727
5728 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5729
5730         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
5731         with only extant block numbers.
5732
5733 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
5734
5735         * lcm.c (optimize_mode_switching): Fix typo.
5736
5737 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5738
5739         * flow.c (calculate_global_regs_live): Queue blocks in program order.
5740
5741 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5742
5743         * doc/install.texi (Configuration): Document PWDCMD.
5744
5745 2002-05-16  Dale Johannesen  <dalej@apple.com>
5746
5747         * combine.c (cant_combine_insn_p):  Reenable combinations
5748         involving hard regs unless CLASS_LIKELY_SPILLED_P.
5749
5750 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5751
5752         * c-common.c (cb_register_builtins): Handle more built-ins
5753         here rather than in gcc.c specs.
5754         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
5755         (cpp_options): Pass -O flags even when only preprocessing.
5756         * toplev.c (set_fast_math_flags): New prototype.
5757         (fast_math_flags_set_p): New.
5758         (set_no_fast_math_flags): Remove.
5759         (decode_f_option): Update.
5760         * toplev.h (set_fast_math_flags): Update.
5761         (fast_math_flags_set_p): New.
5762         (set_no_fast_math_flags): Remove.
5763 config:
5764         * c4x/c4x.c (c4x_override_options): Update.
5765
5766 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
5767
5768         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
5769         Default-define here.
5770         (builtin_define_with_value): Can now wrap the expansion in
5771         quotation marks if such is wanted.
5772         (cb_register_builtins): Update calls to builtin_define_with_value.
5773         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
5774         here.
5775         (c_common_init): Set options->stdc_0_in_system_headers.
5776         * c-lex.h: Update prototype of builtin_define_with_value.
5777         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
5778         and REGISTER_PREFIX.
5779
5780         * cppinit.c (VERS, ULP, C, X): Kill.
5781         (builtin_array): Remove entries for __VERSION__,
5782         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
5783         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
5784         a constant.
5785         (init_builtins): Kill off a bunch of now-dead code.
5786         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
5787         -fno-leading-underscore.
5788         (cpp_handle_option): Remove code to set user_label_prefix.
5789         (cpp_post_options): Likewise.
5790
5791         * cpplib.h (struct cpp_options): Remove user_label_prefix.
5792         (stdc_0_in_system_headers): New.
5793         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
5794         stdc_0_in_system_headers) too to decide the value of __STDC__.
5795
5796         * tradcpp.c (user_label_prefix): Kill.
5797         (main): Remove code handling -f(no-)leading-underscore.
5798         (initialize_builtins): Don't define __REGISTER_PREFIX__
5799         or __USER_LABEL_PREFIX__.
5800         (install_value): Wrap compound statement in dummy loop so the
5801         macro works properly in an if statement.
5802
5803
5804 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
5805
5806         * loop.h (struct loop_info): Add member has_prefetch.
5807         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
5808         (prescan_loop): Initialize has_prefetch.
5809         (struct prefetch_info): Change prefetch_in_loop and
5810         prefetch_before_loop from bit fields to ints.
5811         (emit_prefetch_instructions): Several small fixes.
5812         (check_dbra_loop): Don't reverse loop that uses prefetch.
5813
5814 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5815
5816         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
5817         * configure.in: Likewise.
5818         * fixinc/check.tpl: Likewise.
5819         * fixinc/fixinc.dgux: Likewise.
5820         * fixinc/fixinc.svr4: Likewise.
5821         * fixinc/fixinc.winnt: Likewise.
5822         * fixinc/fixincl.sh: Likewise.
5823         * fixproto: Likewise.
5824         * configure: Regenerate.
5825
5826 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5827
5828         Basic block renumbering removal:
5829         * basic_block.h (struct basic_block_def): Renamed index to sindex,
5830         added prev_bb and next_bb fields.
5831         (n_basic_blocks): Renamed to num_basic_blocks.
5832         (last_basic_block): New, index of last basic block.
5833         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5834         traversing basic block chain.
5835         (BLOCK_NUM): index -> sindex.
5836         (create_basic_block_structure, create_basic_block): Declaration changed.
5837         (debug_num2bb): Declare.
5838         (expunge_block_nocompact): Declaration removed.
5839         (link_block, unlink_block, compact_blocks): Declare.
5840         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
5841         * cfg.c (entry_exit_blocks): Initialize new fields.
5842         (clear_edges, alloc_block, expunge_block, cached_make_edge,
5843         redirect_edge_pred, dump_flow_info, dump_edge_info,
5844         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
5845         free_aux_for_edges): Modified.
5846         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
5847         (expunge_block_nocompact): Removed.
5848         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
5849         find_unreachable_blocks, create_edge_list, print_edge_list,
5850         verify_edge_list, flow_edge_list_print, remove_fake_successors,
5851         remove_fake_edges, flow_reverse_top_sort_order_compute,
5852         flow_depth_first_order_compute, flow_preorder_transversal_compute,
5853         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
5854         flow_dfs_compute_reverse_execute): Modified.
5855         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
5856         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
5857         Modified.
5858         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5859         merge_blocks_move_predecessor_nojumps,
5860         merge_blocks_move_successor_nojumps, merge_blocks,
5861         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
5862         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
5863         * cfglayout.c (skip_insns_after_block, label_for_bb,
5864         record_effective_endpoints, scope_to_insns_finalize,
5865         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
5866         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
5867         cfg_layout_duplicate_bb): Modified.
5868         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
5869         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5870         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
5871         flow_loops_find, flow_loop_outside_edge_p): Modified.
5872         * cfgrtl.c (create_basic_block_structure, create_basic_block,
5873         flow_delete_block, compute_bb_for_insn, split_block,
5874         try_redirect_by_replacing_jump, redirect_edge_and_branch,
5875         force_nonfallthru_and_redirect, tidy_fallthru_edge,
5876         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
5877         commit_edge_insertions, commit_edge_insertions_watch_calls,
5878         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5879         purge_all_dead_edges): Modified.
5880         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
5881         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5882         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
5883         Modified.
5884         * conflict.c (conflict_graph_compute): Modified.
5885         * df.c (FOR_ALL_BBS): Removed.
5886         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5887         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
5888         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
5889         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
5890         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5891         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
5892         * final.c (compute_alignments, final_scan_insn): Modified.
5893         * flow.c (verify_local_live_at_start, update_life_info,
5894         update_life_info_in_dirty_blocks, free_basic_block_vars,
5895         delete_noop_moves, calculate_global_regs_live,
5896         initialize_uninitialized_subregs, allocate_bb_life_data,
5897         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
5898         mark_used_reg, count_or_remove_death_notes): Modified.
5899         * function.c (thread_prologue_and_epilogue_insns): Modified.
5900         * gcse.c (struct null_pointer_info): Change typo of current_block
5901         to basic_block.
5902         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
5903         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
5904         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
5905         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
5906         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
5907         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
5908         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
5909         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
5910         pre_delete, one_pre_gcse_pass, compute_transpout,
5911         invalidate_nonnull_info, delete_null_pointer_checks_1,
5912         free_code_hoist_mem, compute_code_hoist_vbeinout,
5913         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5914         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
5915         compute_store_table, build_store_vectors, insert_insn_start_bb,
5916         insert_store, replace_store_insn, free_store_memory, store_motion):
5917         Modified.
5918         * global.c (global_alloc, global_conflicts, mark_elimination,
5919         build_insn_chain): Modified.
5920         * graph.c (print_rtl_graph_with_bb): Modified.
5921         * haifa-sched.c (sched_init): Modified.
5922         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5923         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
5924         if_convert): Modified.
5925         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
5926         compute_insert_delete, pre_edge_lcm, compute_available,
5927         compute_farthest, compute_nearerout, compute_rev_insert_delete,
5928         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
5929         Modified.
5930         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
5931         * loop.c (loop_dump_aux): Modified.
5932         * predict.c (combine_predictions_for_insn, estimate_probability,
5933         last_basic_block_p, process_note_prediction, process_note_predictions,
5934         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
5935         expensive_function_p, estimate_bb_frequencies,
5936         compute_function_frequency): Modified.
5937         * print-rtl.c (print_rtx): Modified.
5938         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
5939         get_exec_counts, compute_branch_probabilities, compute_checksum,
5940         branch_prob, find_spanning_tree): Modified.
5941         * recog.c (split_all_insns, peephole2_optimize): Modified.
5942         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
5943         convert_regs_1, convert_regs_2, convert_regs): Modified.
5944         * regclass.c (scan_one_insn, regclass): Modified.
5945         * regmove.c (mark_flags_life_zones, regmove_optimize,
5946         combine_stack_adjustments): Modified.
5947         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
5948         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
5949         * reorg.c (dbr_schedule): Modified.
5950         * resource.c (find_basic_block, init_resource_info): Modified.
5951         * sbitmap.c (sbitmap_intersection_of_succs,
5952         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
5953         sbitmap_union_of_preds): Modified.
5954         * sched-deps.c (init_dependency_caches): Modified.
5955         * sched-ebb.c (schedule_ebbs): Modified.
5956         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
5957         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
5958         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
5959         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
5960         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
5961         ssa_const_prop): Modified.
5962         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
5963         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
5964         * ssa.c (remove_phi_alternative, find_evaluations,
5965         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
5966         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
5967         make_regs_equivalent_over_bad_edges,
5968         make_equivalent_phi_alternatives_equival,
5969         compute_conservative_reg_partition,
5970         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
5971         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
5972         Modified.
5973
5974 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
5975
5976         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
5977
5978 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
5979
5980         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
5981         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5982         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
5983         calling CONSTANT_POOL_ADDRESS_P.
5984         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
5985         to decide whether to define __arm__ or __thumb.
5986         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
5987         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5988
5989 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5990
5991         * config/arc/arc.h (CPP_PREDEFINES): Remove.
5992         (CPP_SPEC): Update.
5993         (TARGET_CPU_CPP_BUILTINS): New.
5994
5995 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5996
5997         * cpphash.h (cpp_macro): Move here, and make expansion a union.
5998         * cppmacro.c (cpp_macro): Remove.
5999         (enter_macro_context, replace_args, warn_of_redefinition,
6000         _cpp_create_definition, cpp_macro_definition): Update.
6001
6002 2002-05-16  Jason Merrill  <jason@redhat.com>
6003
6004         * config/mips/mips.c (mips_output_external): Don't do sdata
6005         optimization for a variable with DECL_COMDAT set.
6006
6007 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
6008
6009         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
6010         Cleanups for accepting modifiers on pointers.
6011         Fix predicate typos.
6012         Allow long pointers as well as int pointers.
6013
6014 2002-05-15  Richard Henderson  <rth@redhat.com>
6015
6016         * varasm.c (merge_weak): Remove special case for extern and common.
6017
6018 2002-05-15  Matt Hiller  <hiller@redhat.com>
6019
6020         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
6021         XFAILing.
6022         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
6023         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
6024         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
6025         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
6026         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
6027         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
6028
6029 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
6030
6031         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
6032
6033 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
6034
6035         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
6036         ("altivec_mfvscr"): Read from VSCR.
6037
6038         Add vscr sets for the following insns: altivec_vctuxs,
6039         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
6040         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
6041         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
6042         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
6043         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
6044         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
6045         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
6046         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
6047         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
6048         altivec_vsum2sws, altivec_vsumsws.
6049
6050         * config/rs6000/rs6000.h: Add VSCR fixed register.
6051         (CALL_REALLY_USED_REGISTERS): Add vscr.
6052         (CALL_USED_REGISTERS): Same.
6053         (FIXED_REGISTERS): Same.
6054         (REG_ALLOC_ORDER): Same.
6055         (reg_class): Add VSCR_REGS.
6056         (REG_CLASS_NAMES): Same.
6057         (REG_CLASS_CONTENTS): Same.
6058         (VSCR_REGNO): New.
6059         (REGISTER_NAMES): Add vscr.
6060         (DEBUG_REGISTER_NAMES): Same.
6061         (ADDITIONAL_REGISTER_NAMES): Same.
6062         (FIRST_PSEUDO_REGISTER): Increment.
6063         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
6064
6065 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
6066
6067         * fold-const.c (fold): Fix a typo.
6068
6069 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
6070
6071         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
6072         comparison against the highest or lowest integer value before
6073         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
6074         transformation and that of an unsigned comparison against 0
6075         right after.
6076
6077 2002-05-15  Richard Henderson  <rth@redhat.com>
6078
6079         * varasm.c (merge_weak): Error for any weakening after definition.
6080         Adjust weakening after use warning to catch more cases.
6081         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
6082         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
6083
6084 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
6085
6086         * invoke.texi (-malign-double): Re-add lost warning.
6087
6088         * i386-protos.h (x86_output_mi_thunk): Declare.
6089         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
6090         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
6091
6092         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
6093         when flag_asynchronous_unwind_tables is set.
6094
6095         * flags.h (flag_reorder_functions): Declare.
6096         * function.c (prepare_function_start): Initialize frequnecy.
6097         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
6098         * Makefile.in (predict.o): Add dependency on target.h and params.h
6099         * defaults.h (HOT_TEXT_SECTION_NAME,
6100         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
6101         * predict.c (choose_function_section): New function.
6102         (estimate_bb_frequencies): Use it.
6103         * toplev.c (flag_reorder_functions): New global variable.
6104         (lang_independent_options): New.
6105         (parse_options_and_default_flags): Set.
6106         * varasm.c (assemble_start_function): Bypass functdion alignment
6107         for never executed functions.
6108         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
6109         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
6110         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6111         Document.
6112
6113         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
6114
6115         * predict.c: Inlude profile.h
6116         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
6117         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
6118         Use the information about maximal counter in the program.
6119
6120         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
6121
6122         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
6123         probably_never_executed_bb_p): New functions.
6124         * cfgcleanup.c (outgoing_edges_match): Use them.
6125         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
6126         (maybe_hot_bb_p, probably_cold_bb_p,
6127         probably_never_executed_bb_p): New functions.
6128
6129         * function.h (function): Add new field function_frequency.
6130         * predict.c (compute_function_frequency): New function.
6131         (estimate_probability): Call it.
6132
6133 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
6134
6135         PR optimization/5172, optimization/5200
6136         * gcse.c (gcse_main): Disable store_motion.
6137
6138 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
6139
6140         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
6141         (c_common_nodes_and_builtins): Use it.
6142         (builtin_define_with_value): New function.
6143         (cb_register_builtins): Define __SIZE_TYPE__,
6144         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
6145         using builtin_define_with_value.  Use consistent notation when
6146         defining __GXX_WEAK__.
6147         (WCHAR_TYPE_SIZE): Don't redefine.
6148         (combine_strings): Don't use WCHAR_TYPE_SIZE.
6149
6150         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
6151         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
6152         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
6153         * tradcpp.c (initialize_builtins): Likewise.
6154         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
6155
6156         * c-lex.h (builtin_define_with_value): Prototype.
6157         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
6158         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
6159         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
6160
6161         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
6162         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
6163         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
6164         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
6165         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
6166         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
6167         config/sparc/sol2-bi.h, config/sparc/sparc.h:
6168         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
6169         to __SIZE_TYPE__ etc from all spec strings. When this makes
6170         extra specs empty, delete them.
6171
6172 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6173
6174         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
6175         for PA8000 or generating dwarf2 call frame information.
6176         (output_call): Remove DO_FRAME_NOTES check from return pointer
6177         optimization.
6178         (following_call): Return 0 when scheduling for PA8000 or generating
6179         dwarf2 call frame information.  Revise comment.
6180
6181 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6182
6183 config/alpha:
6184         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
6185         and __IEEE_FP_INEXACT as appropriate.
6186         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
6187         (CPP_SPEC): Remove ieee defines.
6188         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
6189
6190 2002-05-14  Richard Henderson  <rth@redhat.com>
6191
6192         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
6193         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
6194
6195 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6196
6197         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
6198         (CPP_SPEC): Update.
6199         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
6200         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
6201         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
6202         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
6203         (EXTRA_SPECS): Update.
6204         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
6205         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
6206         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
6207         define TARGET_OS_CPP_BUILTINS if necessary.
6208
6209 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6210
6211         * gcc.c (cpp_options): Must pass -m* and -f* options
6212         to the front end even when only preprocessing.
6213         (cc1_options): Remove redundant -lang-c.
6214         * tradcpp.c (main): Ignore -m options.
6215 objc:
6216         * lang-specs.h: Similarly.
6217
6218 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
6219
6220         * genautomata.c (transform_3): Add code for transformation
6221         `(A,B,...)+C -> A+C,B,...'.
6222
6223 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
6224
6225         * final.c (end_final): Do not output profile_arcs constructor, when
6226         no functions are instrumented.
6227
6228 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
6229
6230         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
6231
6232 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6233
6234         * doc/install.texi: Remove special markup originally required for
6235         HTML generation with texi2html.
6236
6237 2002-05-14  Andreas Schwab  <schwab@suse.de>
6238
6239         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
6240         SELECT_SECTION.
6241         (UNIQUE_SECTION): Define to get small data correctly.
6242
6243         * varasm.c (resolve_unique_section): Add third parameter
6244         flag_function_or_data_sections and use it instead of
6245         flag_function_sections.
6246         (assemble_start_function): Pass flag_function_sections.
6247         (asm_emit_uninitialised): Pass flag_data_sections.
6248         (assemble_variable): Likewise.
6249
6250 2002-05-14  Richard Henderson  <rth@redhat.com>
6251
6252         * config/i386/i386.md: Use define_constants for unspec numbers.
6253         * config/i386/i386.c: Likewise.
6254
6255 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6256
6257         * doc/contrib.texi: Update my entry.
6258
6259 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
6260
6261         * fixinc/inclhack.def (winidss_valist): Limit applicability.
6262         * fixinc/fixincl.x: Regenerated.
6263         * fixinc/tests/base/math.h: Update.
6264         * fixinc/tests/base/testing.h: Likewise.
6265
6266 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
6267
6268         * genattr.c (gen_attr): Don't emit a comma after the last
6269         enumerator.
6270
6271 2002-05-13  Richard Henderson  <rth@redhat.com>
6272
6273         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
6274         by non-local gotos.
6275         * recog.c (peephole2_optimize): Likewise.
6276
6277 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
6278
6279         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
6280         input to O_BINARY.
6281
6282 2002-05-13  Jeffrey A Law  (law@redhat.com)
6283
6284         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
6285         Update prototype and callers.
6286         (propagate_one_insn): Stack pointer adjustments kill MEMs on
6287         the mem_set_list which reference the stack pointer, as do
6288         calls to constant functions as they may clobber outgoing
6289         argument space.
6290
6291         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
6292
6293         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
6294         (ia32_multipass_dfa_lookahead): New function.
6295
6296 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6297
6298         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
6299         (translate_options): Remove 'V'.
6300         (process_command): Similarly.
6301 doc:
6302         * invoke.texi: Remove documentation of 'V'.
6303
6304 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
6305
6306         * config/s390/linux.h: Revert 2002-04-22 changes.
6307
6308 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
6309
6310         * config/fr30/fr30.md: Only allow splits of immediate loads
6311         if the destination is a register.
6312
6313 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6314
6315         * Makefile.in (c-common.o, cppinit.o): Update.
6316         * c-common.c: Include except.h.
6317         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
6318         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
6319         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
6320         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
6321         CPP_PREDEFINES): Handle here.
6322 config:
6323         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
6324         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
6325         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
6326         TARGET_OS_CPP_BUILTINS.
6327         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
6328         (CPP_SPEC, EXTRA_SPECS): Update.
6329         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
6330         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
6331         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
6332         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
6333         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
6334 doc:
6335         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
6336         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
6337
6338 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
6339
6340         * emit-rtl.c (global_rtl): Update comment.
6341         (const_double_htab, const_double_htab_hash,
6342         const_double_htab_hash, lookup_const_double): New.
6343         (const_int_htab_hash, const_int_htab_eq): Remove const
6344         qualifiers, which cause tons of warnings with RTL checking on.
6345         (gen_rtx_CONST_DOUBLE): Deleted.
6346         (const_double_from_real_value): New function - bears some
6347         resemblance to the former immed_real_const_1.
6348         (immed_double_const): Moved here from varasm.c and
6349         simplified.
6350         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
6351         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
6352         (gen_rtx): Use immed_double_const.
6353         (init_emit_once): Initialize the const_double_htab.  Use
6354         REAL_VALUE_FROM_INT where possible.  Can now use
6355         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
6356         * varasm.c (struct varasm_status): Remove x_const_double_chain.
6357         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
6358         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
6359         (init_varasm_status, mark_varasm_status): Don't touch
6360         x_const_double_chain.
6361
6362         * output.h: Delete prototype for clear_const_double_mem.
6363         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
6364         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
6365         const_double_from_real_value, not immed_real_const_1, and use
6366         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
6367         CONST_DOUBLE_ATOF.
6368         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
6369         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
6370         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
6371         (gen_rtx_REG): Second arg is unsigned.
6372
6373         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
6374         (excluded_rtx): New, return true for CONST_DOUBLE.
6375         (genmacro): Write nothing for excluded codes.
6376         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
6377         * expr.c (expand_expr): Likewise.
6378         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
6379         CONST_DOUBLE_CHAIN.
6380         * toplev.c (rest_of_compilation): Don't call
6381         clear_const_double_mem.
6382
6383         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
6384         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
6385         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
6386         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
6387         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
6388         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
6389         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
6390         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
6391
6392 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6393
6394         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
6395
6396 2002-05-12  Tom Tromey  <tromey@redhat.com>
6397
6398         * tree.h (copy_node): Don't mention TREE_PERMANENT.
6399
6400 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
6401
6402         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
6403         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
6404         * gensupport.h: Prototype new routines.
6405         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
6406         use of printf.
6407         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
6408         (next_comma_elt): Use scan_comma_elt.
6409
6410         * config/i386/i386.md: Use new attribute notation to break up
6411         long lines in define_attr forms.
6412
6413 2002-05-12  Richard Henderson  <rth@redhat.com>
6414
6415         * expr.c (compress_float_constant): New.
6416         (emit_move_insn): Use it.
6417         (float_extend_from_mem): New.
6418         (init_expr_once): Initialize it.
6419         * real.c (exact_real_truncate): New.
6420
6421         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
6422         dropped into memory; penalize for size.
6423         (RTX_COSTS): FLOAT_EXTEND is free.
6424         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
6425         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
6426
6427 2002-05-12  Richard Henderson  <rth@redhat.com>
6428
6429         * profile.h (profile_info): Add missing extern to declaration.
6430         * profile.c (profile_info): Define it.
6431
6432 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6433
6434         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
6435         used for DImode and TImode.
6436
6437 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6438
6439         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
6440         fake a newline.
6441
6442 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
6443
6444         * config/rs6000/rs6000.c (rs6000_default_long_calls,
6445         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
6446         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
6447         (rs6000_override_options): Handle -m(no-)longcall.
6448         (init_cumulative_args, output_mi_thunk): Check for both
6449         longcall and shortcall attributes on the function.
6450         (rs6000_attribute_table): Add "shortcall".
6451         (rs6000_handle_longcall_attribute): Update comment.
6452         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
6453         altivec_expand_ternop_builtin): Add default clauses to switches
6454         to silence warnings.
6455
6456         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
6457         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
6458         (TARGET_OPTIONS): Add longcall and no-longcall.
6459
6460         * config/rs6000/rs6000.md (call_nonlocal_sysv,
6461         call_value_nonlocal_sysv): Split by alternatives.  One pair
6462         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
6463         the call cookie.  The other pair accepts only LR/CTR and has
6464         no restriction.
6465
6466         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
6467         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
6468         tmake_file.
6469         * config/rs6000/rs6000-c.c: New file.
6470         * config/rs6000/t-rs6000-c-rule: New file.
6471         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
6472         Prototype rs6000_pragma_longcall.
6473
6474         * doc/extend.texi: Document shortcall attribute.
6475         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
6476
6477 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6478
6479         * reorg.c (dbr_schedule): Remove unnecessary test.
6480
6481 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
6482
6483         * i386.md (testsi to testqi spliters): New.
6484
6485         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
6486
6487         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
6488
6489         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
6490
6491         * basic-block.h: New flag EDGE_CAN_FALLTHRU
6492         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
6493         that can be made fallthru.
6494
6495         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
6496
6497         * cfglayout.c (cleanup_unconditional_jumps): New static function.
6498         (cfg_layout_initialize): Use it.
6499
6500 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6501
6502         * config/avr/avr.c (avr_mcu_types): Update supported devices.
6503         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6504         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6505
6506 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
6507
6508         * dbxout.c: Fix formatting.
6509         * dependence.c: Likewise.
6510         * df.c: Likewise.
6511         * diagnostic.c: Likewise.
6512         * doloop.c: Likewise.
6513         * dominance.c: Likewise.
6514         * doschk.c: Likewise.
6515         * dwarf2asm.c: Likewise.
6516         * dwarf2out.c: Likewise.
6517         * dwarfout.c: Likewise.
6518
6519 2002-05-10  Richard Henderson  <rth@redhat.com>
6520
6521         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
6522         Convert integers constants as needed.  Replace "nwords" field with
6523         "sizeof_bb".
6524         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
6525         * function.h: Fix typo in comment.
6526         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
6527
6528 2002-05-10  Roger Sayle  <roger@eyesopen.com>
6529
6530         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
6531         into the equivalent (signed char)c > 0.
6532
6533 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
6534
6535         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
6536         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
6537         (struct prefetch_info): Fix spelling of member bytes_accessed.
6538         (emit_prefetch_instructions): Make dump messages more regular;
6539         restructure code to add more dump messages; use new macros for
6540         heuristics. (There are no code generation changes in any of this).
6541
6542 2002-05-10  David S. Miller  <davem@redhat.com>
6543
6544         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
6545         (struct rtx_def): Update unchanging flag comment.
6546         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
6547         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
6548         to be handled to INSN too.
6549         (dbr_schedule): Likewise.
6550         * resource.c (next_insn_no_annul): Likewise.
6551
6552         * cse.c (rtx_cost): Remove multiplication by power of 2 special
6553         casing.
6554
6555 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6556
6557         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
6558         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
6559         (possibly) work around broken /bin/sh.
6560
6561 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6562
6563         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
6564         . as N64/N32 libgcc_s.so subdirs.
6565
6566 2002-05-10  David S. Miller  <davem@redhat.com>
6567
6568         * config/sparc/sparc.md: Use define_constants for unspec numbers.
6569
6570         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
6571         more accurately.
6572         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
6573         comment.
6574         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
6575         * doc/rtl.texi: Document these macros more accurately.
6576         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
6577         JUMP_INSNs and CALL_INSNs.
6578         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
6579         or INSN_FROM_TARGET_P if the code is appropriate.
6580
6581 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6582
6583         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
6584         before using SYMBOL_REF_FLAG (addr).
6585
6586         * config/avr/avr-protos.h (avr_io_address_p): Declare.
6587         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
6588         Make non-static.  Update all callers.
6589         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
6590         New insns to clear/set/test a single bit in I/O address space.
6591
6592 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6593
6594         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
6595
6596 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6597
6598         * Makefile.in: Update.
6599         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
6600         builtin_define_std): New.
6601         (c_common_init): Register CPP builtins callback.
6602         * c-common.h (flag_iso, flag_undef): New.
6603         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
6604         * c-lex.c: Don't include target.h.
6605         (cb_register_builtins): Move to c-common.c.
6606         (init_c_lex): Don't register hook here.
6607         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
6608         (cpp_define, cpp_assert): Remove.
6609         * gcc.c (cc1_options): Pass -undef to front end.
6610         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
6611         (TARGET_INITIALIZER): Update.
6612         * target.h (struct cpp_reader): Don't predeclare.
6613         (struct gcc_target): Remove cpp builtin hook.
6614         * tree.c (default_register_cpp_builtins): Remove.
6615 doc:
6616         * tm.texi: Update.
6617
6618 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6619
6620         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
6621
6622 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6623
6624         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
6625         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
6626
6627 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
6628
6629         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
6630         * config/sparc/libgcc-sparc-glibc.ver: New file.
6631         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
6632         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
6633
6634 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
6635
6636         PR target/6429
6637         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
6638         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
6639         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
6640         base multilibs.
6641         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
6642         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
6643         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6644         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6645
6646 2002-05-09  Richard Henderson  <rth@redhat.com>
6647
6648         * config/ia64/ia64.md: Use define_constants for unspec numbers.
6649         * config/ia64/ia64.c: Likewise.
6650
6651 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
6652
6653         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
6654         (save_restore_insns): Likewise.
6655         (mips_expand_prologue, mips_expand_epilogue): Update callers.
6656         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
6657
6658 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
6659
6660         * athlon.md, k6.md, pentium.md, ppro.md): New files.
6661         * i386.md: Move scheduling information into new files.
6662
6663         * i386.md (type attribute): Add "rotate" for rotate insns.
6664         (rotate insns): Set type to "rotate".
6665         (various attributes and function units): Treat rotate like shift.
6666         (pent_pair attribute): Only rotates by one bit position are
6667         pairable.
6668         (sbb insns): Explicitly set pent_pair attribute on a couple
6669         that were missing it.
6670
6671 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
6672
6673         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
6674         make sure that buffer starts on odd word address.
6675         (sh_va_arg): Skip odd fp registers when reading a double precision
6676         value.
6677
6678 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6679
6680         * tree.h (preserve_data, object_permanent_p, type_precision):
6681         Remove.
6682
6683 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6684
6685         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
6686         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
6687 doc:
6688         * cpp.texi: Update for removal of obsolete features.
6689
6690 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
6691                           Jeffrey A Law  (law@redhat.com)
6692
6693         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
6694         the DFA interface for Pentium processors.
6695         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
6696         (attr_pent_pair, ix86_pent_find_pair): Remove.
6697         (ix86_sched_reorder_pentium): Remove.
6698         (ix86_sched_reorder): Remove reordering for Pentium.
6699         * i386.md (Pentium scheduling): Rewrite using DFA description.
6700
6701 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
6702
6703         * cfganal.c (can_fallthru): Fix fast path.
6704         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
6705         with edges to the next block.
6706
6707 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
6708                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
6709
6710         * final.c (end_final): Use C trees to output data structures for profiling.
6711
6712         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
6713         (profile.o): New dependency profile.h
6714         (final.o): New dependency profile.h
6715         * profile.h: New file. New global structure profile_info.
6716         * final.h (count_edges_instrumented_now): Declare.
6717         (current_function_cfg_checksum): Declare.
6718         (function_list): New structure.
6719         (functions_head, functions_tail): New static variables.
6720         (end_final): Emits more data, removed some -ax stuff.
6721         (final): Stores function names and chcksums.
6722         * gcov-io.h (__write_gcov_string): New function.
6723         (__read_gcov_string): New function.
6724         * gcov.c (read_profile): New function.
6725         (create_program_flow_graph): Uses read_profile instead of reading
6726         da_file.
6727         (read_files): Removed da_file checking, it's done by read_profile now.
6728         * libgcc2.c (bb_function_info): New structure.
6729         (bb): New field in structure, removed some -ax stuff.
6730         (__bb_exit_func): Changed structure of da_file.
6731         * profile.c (count_edges_instrumented_now): New global variable.
6732         (current_function_cfg_checksum): New global variable.
6733         (max_counter_in_program): New global variable.
6734         (get_exec_counts): New function.
6735         (compute_checksum): New function.
6736         (instrument_edges): Sets count_edges_instrumented_now.
6737         (compute_branch_probabilities): Uses get_exec_counts instead of
6738         reading da_file.
6739         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
6740         (init_branch_prob): Removed da_file checking, done in get_exec_counts
6741         now.
6742         (end_branch_prob): Removed da_file checking, done in get_exec_counts
6743         now.
6744         * gcov.texi: Updated information about gcov file format.
6745
6746 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
6747
6748         * sbitmap.c: Fix formatting.
6749         * scan.c: Likewise.
6750         * scan-decls.c: Likewise.
6751         * sched-deps.c: Likewise.
6752         * sched-ebb.c: Likewise.
6753         * sched-rgn.c: Likewise.
6754         * sched-vis.c: Likewise.
6755         * sdbout.c: Likewise.
6756         * sibcall.c: Likewise.
6757         * simplify-rtx.c: Likewise.
6758         * ssa.c: Likewise.
6759         * ssa-ccp.c: Likewise.
6760         * ssa-dce.c: Likewise.
6761         * stmt.c: Likewise.
6762         * stor-layout.c: Likewise.
6763         * stringpool.c: Likewise.
6764
6765 2002-05-09  David S. Miller  <davem@redhat.com>
6766
6767         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
6768
6769 2002-05-07  David S. Miller  <davem@redhat.com>
6770
6771         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
6772         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
6773         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
6774         library implementation clobbers the output before the inputs
6775         are fully consumed, use stack temporary for the output.
6776
6777 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
6778
6779         * config/netbsd.h (CPP_SPEC): Remove.
6780         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
6781         * config/i386/netbsd.h (CPP_SPEC): Define.
6782         * config/ns32k/netbsd.h (CPP_SPEC): Define.
6783         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
6784         * config/sparc/netbsd.h (CPP_SPEC): Define.
6785         * config/vax/netbsd.h (CPP_SPEC): Define.
6786
6787 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
6788
6789         * read-rtl.c: Fix formatting.
6790         * real.c: Likewise.
6791         * recog.c: Likewise.
6792         * regclass.c: Likewise.
6793         * regmove.c: Likewise.
6794         * reg-stack.c: Likewise.
6795         * reload1.c: Likewise.
6796         * reload.c: Likewise.
6797         * resource.c: Likewise.
6798         * rtlanal.c: Likewise.
6799         * rtl.c: Likewise.
6800         * rtl-error.c: Likewise.
6801
6802 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6803
6804         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
6805         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
6806
6807 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
6808
6809         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
6810         use __SSE2__ macro instead.
6811         * config/i386/xmmintrin.h: Likewise.
6812
6813 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
6814
6815         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
6816         and use it in all invocations of these macros.  Clean up comments.
6817         * rtl.c (rtl_check_failed_flag): Add an argument for the name
6818         of the flag access macro whose check failed.
6819         * doc/rtl.texi (Flags): Document additional flag uses.
6820
6821 2002-05-08  Robert Spier <rspier@pobox.com>
6822             Neil Booth  <neil@daikokuya.demon.co.uk>
6823
6824         PR preprocessor/6521
6825         * cppfiles.c (handle_missing_header): Don't do anything
6826         different for <> includes.
6827 doc:
6828         * cppopts.texi: Update documentation for -MG.
6829
6830 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6831
6832         * cpplex.c (cpp_interpret_charconst): Truncate as well as
6833         sign-extend.
6834 doc:
6835         * cpp.texi: Clarify multichar charconst valuation.
6836
6837 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
6838
6839         * doc/invoke.texi: Document -mwindiss option.
6840
6841 2002-05-08  Jason Merrill  <jason@redhat.com>
6842
6843         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
6844
6845         * dwarf2out.c (gen_type_die): Abort on broken recursion.
6846
6847         PR c++/6381
6848         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
6849         REAL_CST.
6850
6851 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
6852
6853         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
6854         little-endian multilibs to override arm/thumb multilibs.
6855         Do not build hardware floating point multilibs, nor apcs-26
6856         multilibs for the Thumb.
6857
6858 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
6859
6860         PR c/6569.
6861         * varasm.c (mark_weak): New function.
6862         (merge_weak): Use it.  Do not call declare_weak.
6863         (declare_weak): Use merge_weak.
6864
6865 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
6866
6867         * cse.c (dead_libcall_p): Update counts.
6868         (delete_trivially_dead_insns): Update call of dead_libcall_p.
6869
6870 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
6871
6872         * cfglayout.c (function_tail_eff_head): Rename to ...
6873         (function_footer): ... this one.
6874         (unlink_insn_chain): New functions.
6875         (label_for_bb): Only call block_label and emit debug message.
6876         (record_effective_endpoints): Actually unlink the headers and footers.
6877         (fixup_reorder_cahin): Re-insert the unlinked sequences.
6878         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
6879         * cfglayout.h (struct reorder_block_def): New fields footer/header;
6880         remove eff_head/eff_end.
6881         * rtl.h (set_first_insn): Declare.
6882         * emit-rtl.c (set_first_insn): New function.
6883
6884         * cfglayout.c (fixup_reorder_chain): Dump duplicated
6885         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6886         cfg_layout_duplicate_bb): New global function.
6887         (duplicate_insn_chain): New static function.
6888         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6889         cfg_layout_duplicate_bb): Declare.
6890         (struct reorder_block_def): Add "original" field.
6891         * emit-rtl.c (emit_copy_of_insn_after): New function.
6892         * rtl.h (emit_copy_of_insn_after): Declare.
6893
6894         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
6895         (fixup_reorder_chain): properly handle edges to exit block.
6896
6897 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6898                                Jan Hubicka  <jh@suse.cz>
6899
6900         * basic-block.h (note_prediction_to_br_prob): declare.
6901         * c-semantics.c: Inlucde predit.h
6902         (expand_stmt): predict GOTO_STMT as not taken.
6903         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
6904         (cleanup_cfg): Do not free tail_recursion_list.
6905         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
6906         (flow_delete_block): Kill predictions past end of basic block.
6907         * output.h (delete_unreachable_blocks): Declare.
6908         * predict.c (predicted_by_p, process_note_predictions,
6909         process_note_prediction, last_block_p): New function.
6910         (estimate_probability): Bypass loop on PRED_CONTINUE;
6911         do not handle noreturn heuristics; kill PRED_RETURN; add
6912         PRED_EARLY_RETURN.
6913         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
6914         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
6915         * predict.h (IS_TAKEN): New constant.
6916         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
6917         * rtl.c (NOTE_INSN_PREDICTION): New.
6918         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
6919         New macro.
6920         (insn_note): add NOTE_INSN_PREDICTION.
6921         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
6922         CFG; free tail_recursion_label_list.
6923         * stmt.c: Include predict.h;
6924         (return_prediction): New.
6925         (expand_value_return): Use it.
6926         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
6927
6928 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
6929
6930         * config/mips/mips.md: Name the unspecs with define_constant.
6931         (*HILO_delay): Rename to 'hilo_delay' (no star).
6932         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
6933         (reload_outdi, reload_outsi): Likewise.
6934
6935 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
6936
6937         * toplev.c: Fix formatting.
6938
6939 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
6940
6941         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
6942         * configure.in (ac_rtlflag_checking): New.
6943         * doc/install.texi (--enable-checking): Document RTL flag checking.
6944
6945 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6946
6947         * c-common.c (c_common_init): Set options->unsigned_wchar.
6948         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
6949         group target dependencies.
6950         (init_builtins, cpp_handle_option): Update.
6951         * cpplex.c (cpp_interpret_charconst): Update.
6952         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
6953         signed_char to unsigned_char, group target dependencies.
6954         * defaults.h (WCHAR_UNSIGNED): Remove.
6955         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
6956 config:
6957         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
6958         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
6959         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
6960         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
6961         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
6962 doc:
6963         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
6964
6965 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
6966
6967         * fixinc/inclhack.def (windiss_math1): New fix.
6968         (windiss_math2): Likewise.
6969         (windiss_valist): Likewise.
6970         * fixinc/fixincl.x: Regenerated.
6971
6972 2002-05-07  Andreas Jaeger  <aj@suse.de>
6973
6974         * genautomata.c (output_internal_min_issue_delay_func): Add
6975         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
6976         (output_internal_trans_func): Likewise.
6977
6978 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
6979
6980         * pa.c (hppa_profile_hook): Use force_reg to get the address
6981         of the profile hook into an appropriate pseudo register.
6982
6983 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
6984
6985         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
6986         (LINK_START_SPEC): Handle it.
6987         (LINK_OS_SPEC): Likewise.
6988         (CPP_SPEC): Likewise.
6989         (STARTFILE_SPEC): Likewise.
6990         (LIB_SPEC): Likewise.
6991         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
6992         all platforms.
6993         (CRTSAVRES_DEFAULT_SPEC): New macro.
6994         (LIB_WINDISS_SPEC): New macro.
6995         (CPP_OS_WINDISS_SPEC): Likewise.
6996         (STARTFILE_WINDISS_SPEC): Likewise.
6997         (ENDFILE_WINDISS_SPEC): Likewise.
6998         (LINK_START_WINDISS_SPEC): Likewise.
6999         (LINK_OS_WINDISS_SPEC): Likewise.
7000         * config/rs6000/windiss.h: New file.
7001
7002 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
7003
7004         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
7005
7006 2002-05-06  David S. Miller  <davem@redhat.com>
7007
7008         * config/sparc/sparc.md (shift insns): Do not mask off
7009         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
7010         take care of it.
7011
7012 2002-05-06  Richard Henderson  <rth@redhat.com>
7013
7014         PR c++/6212
7015         * expr.c (highest_pow2_factor_for_type): New.
7016         (expand_assignment): Use it.
7017
7018 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
7019
7020         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
7021         unspec_volatile.
7022         ("altivec_mfvscr"): Same.
7023
7024 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
7025
7026         * rtl.h (struct rtx_def): Update comments.
7027         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
7028         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
7029         RTL_FLAG_CHECK macros with list of expected RTL codes.
7030         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
7031         (rtl_check_failed_flag): New.
7032         * reload1.c (reload): Use REG macro before changing rtx to MEM.
7033         (reload_cse_noop_set_p): Check rtx code before using access macro.
7034         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
7035         before using access macro.
7036
7037 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
7038
7039         * doc/rtl.texi (Flags): Update to reflect current usage.
7040
7041 2002-05-06  Roger Sayle  <roger@eyesopen.com>
7042
7043         PR opt/3995
7044         * fold-const.c (sign_bit_p): New function.
7045         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
7046         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
7047         Reapply fold when converting (A & C) == C into (A & C) != 0.
7048         (fold_binary_op_with_conditional_arg): Fix typo in comment.
7049
7050 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7051
7052         * c-common.c (warn_multichar): New.
7053         (c_common_init): Set CPP's warn_multichar.
7054         * c-common.h (warn_multichar): New.
7055         * c-decl.c (warn_multichar): Remove.
7056         * c-lex.c (lex_charconst): Update.
7057         * c-tree.h (warn_multichar): Remove.
7058         * cppexp.c (eval_token): Sign-extend charconst value.
7059         * cppinit.c (cpp_create_reader): Set warn_multichar.
7060         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
7061         each character.  Update prototype.  Sign-extend the result.
7062         * cpplib.h: Fix conditions.
7063         (struct cpp_options): Add new warning flag.
7064         (cpp_interpret_charconst): Update prototype.
7065 doc:
7066         * cpp.texi: Update documentation.
7067
7068 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
7069
7070         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
7071         Fix typo in usage of allof instead of unit.
7072
7073 2002-05-06  Richard Henderson  <rth@redhat.com>
7074
7075         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
7076         and any jump or call for IN.
7077
7078 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
7079
7080         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
7081         -msse2.
7082         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
7083
7084 2002-05-06  Roger Sayle  <roger@eyesopen.com>
7085
7086         * fold-const.c (lshift-double): Cast the high word to an unsigned
7087         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
7088         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
7089         avoid compiler warning.  (fold): Remove redundant code from
7090         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
7091
7092 2002-05-06  Jeff Law  <law@redhat.com>
7093
7094         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
7095         * pa.c (pa_adjust_cost): Remove all true dependency cost
7096         adjustments.  Also remove support for non-DFA scheduling.
7097         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
7098         to adjust true dependency costs.  Update various comments.
7099         (7100lc, 7200, 7300 scheduling): Simplify by combining the
7100         FP ALU & MPY units into a single unit.
7101
7102 2002-05-06  Catherine Moore  <clm@redhat.com>
7103
7104         * config/v850/v850.c (compute_register_save_size): Make sure
7105         to count all of the registers that will be saved.
7106
7107 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
7108
7109         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
7110
7111 2002-05-06  David S. Miller  <davem@redhat.com>
7112
7113         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
7114         allow result to overlap input operands in memory.
7115
7116 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7117
7118 doc:
7119         * cpp.texi: Update multichar charconst docs.
7120
7121 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7122
7123         * cpplex.c (cpp_interpret_charconst): Sign-extend each
7124         character.  Don't ignore excess characters.  Treat
7125         multicharacter character constants as signed.
7126         (cpp_parse_escape): Clarify diagnostic.
7127
7128 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
7129
7130         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
7131         use add instead of shift.
7132         (ashldi3_sp64): Likewise.
7133         (ashlsi3_const1, ashldi3_const1): Remove.
7134         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
7135         * config/sparc/sparc.c (const1_operand): New.
7136
7137 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
7138
7139         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
7140
7141 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
7142
7143         PR target/6561
7144         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
7145
7146 2002-05-05  Richard Henderson  <rth@redhat.com>
7147
7148         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
7149         memory latency adjustments.
7150         (alpha_variable_issue): Remove.
7151         (alpha_use_dfa_pipeline_interface): New.
7152         (alpha_multipass_dfa_lookahead): New.
7153         * config/alpha/alpha.md: Remove define_function_unit scheduling;
7154         include new dfa scheduling.
7155         (attr type): Add none.
7156         (blockage): Use it.
7157         * config/alpha/ev4.md: New.
7158         * config/alpha/ev5.md: New.
7159         * config/alpha/ev6.md: New.
7160
7161 2002-05-05  David S. Miller  <davem@redhat.com>
7162
7163         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
7164
7165 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
7166
7167         * cse.c: Fix formatting.
7168         * emit-rtl.c: Likewise.
7169
7170 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
7171
7172         * genautomata.c (initiate_states): Add additional guard to
7173         initialize `units_array'.
7174
7175 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
7176
7177         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
7178         process_unit_to_form_the_same_automaton_unit_lists,
7179         form_the_same_automaton_unit_lists
7180         check_unit_distributions_to_automata): New prototypes and
7181         functions.
7182         (check_automata): Rename it into `check_automata_insn_issues'.
7183         (unit_decl): New fields `the_same_automaton_unit' and
7184         `the_same_automaton_message_reported_p'.
7185         (unit_decl_t): New typedef.
7186         (the_same_automaton_lists): New gloval variable.
7187         (unit_regexp, unit_set_el, units_array, units_cmp,
7188         output_get_cpu_unit_code_func): Use the typedef.
7189         (evaluate_max_reserv_cycles): Increment
7190         `description->max_insn_reserv_cycles'.
7191         (initiate_states): Don't increment `max_cycles_num'.
7192         (transform_insn_regexps): Move code around transformation of
7193         regexps from `generate'.
7194         (generate): Remove call of `transform_insn_regexps'.
7195         (expand_automata): Call `transform_insn_regexps' and
7196         `check_unit_distributions_to_automata'.  Check errors before
7197         `generate'.
7198
7199         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
7200         automaton `ultrasparc3_1'.
7201
7202 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7203
7204         * c-common.c (c_common_init): Set up CPP arithmetic.
7205         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
7206         something reasonable for the host.
7207         (sanity_checks): Add checks.
7208         (cpp_read_main_file): Call sanity_checks() from here...
7209         (cpp_post_options): ... not here.
7210         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
7211         * cpplib.h (struct cpp_options): New member int_precision.
7212
7213 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7214
7215         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
7216
7217 2002-05-04  David S. Miller  <davem@redhat.com>
7218
7219         * config/sparc/linux.h, config/sparc/linux64.h
7220         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
7221
7222         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
7223         more RTX codes.
7224         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
7225
7226         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
7227         of SETs.
7228
7229 2002-05-05  Tim Josling  <tej@melbpc.org.au>
7230
7231         * treelang; New directory for new sample language treelang.
7232
7233 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7234
7235         * Makefile.in (c-lex.o): Update.
7236         * c-lex.c: Include target.h.
7237         (cb_register_builtins): New.
7238         (init_c_lex): Set builtins callback.
7239         * c-lex.h (cpp_define, cpp_assert): New prototypes.
7240         * cppinit.c (init_builtins): Use callback, including for
7241         GXX_WEAK.
7242         * cpplib.h (struct cpp_callbacks): New member.
7243         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
7244         (TARGET_INITIALIZER): Update.
7245         * target.h (struct gcc_target): New hook.
7246         * tree.c (default_register_cpp_builtins): New.
7247         * tree.h (default_register_cpp_builtins): New.
7248 doc:
7249         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
7250
7251 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7252
7253         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
7254         (cpp_post_options): Move sanity checks to...
7255         (sanity_checks): New.
7256         * cpplex.c (maybe_read_ucs): Fix prototype.
7257         (parse_string, cpp_parse_escape): Cast for %c format specifier.
7258         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
7259         if necessary.
7260
7261 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
7262
7263         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
7264         builtins.  Use V2DI patterns instead of TI for logical operations.
7265         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
7266         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
7267         (ix86_expand_builtins): Change the pattern used for movntdq.
7268         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
7269         sse2_nandv2di3): New patterns.
7270         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
7271         on operands.
7272         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
7273         (cvtdq2pd): Correct mode on operand 1.
7274         (sse2_umulsidi3): Describe without unspec.
7275         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
7276         machine modes.
7277         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
7278         (ashlv2di3): Likewise, from sse2_ashlv2di3.
7279         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
7280         ashlv4si3, ashlv2di3): Use SImode for shift count.
7281         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
7282         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
7283         New patterns.
7284         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
7285         New typedefs.
7286         (__m128i, __m128d): New macros.
7287         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
7288         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
7289         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
7290         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
7291         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
7292         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
7293         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
7294         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
7295         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
7296         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
7297         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
7298         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
7299         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
7300         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
7301         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
7302         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
7303         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
7304         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
7305         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
7306         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
7307         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
7308         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
7309         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
7310         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
7311         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
7312         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
7313         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
7314         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
7315         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
7316         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
7317         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
7318         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
7319         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
7320         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
7321         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
7322         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
7323         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
7324         functions.
7325         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
7326         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
7327
7328 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
7329
7330         * dwarf2out.c: Fix formatting.
7331         * varasm.c: Likewise.
7332
7333 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
7334
7335         PR c/6543
7336         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
7337         clobber and use result as temporary value.
7338
7339 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
7340
7341         * expr.c (force_operand): Use expand_simple_* to handle more
7342         cases.
7343
7344 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7345
7346         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
7347         and sign-extension.
7348         (lex_charconst): Update for change in prototype of
7349         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
7350         appropriately.
7351         * cpphash.h (BITS_PER_CPPCHAR_T): New.
7352         * cppinit.c (cpp_create_reader): Initialize them for no
7353         change in semantics.
7354         (cpp_post_options): Add sanity checks.
7355         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
7356         and truncation issues.  Calculate in type cppchar_t.
7357         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
7358         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
7359         run-time dependent precision correctly.  Return whether the
7360         result is signed or not.
7361         * cpplib.c (dequote_string): Use cppchar_t; update.
7362         * cpplib.h (cppchar_signed_t): New.
7363         struct cpp_options): New precision members.
7364         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
7365         * cppexp.c (eval_token): Update.
7366
7367 2002-05-03  David S. Miller  <davem@redhat.com>
7368
7369         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
7370         * config/sparc/sparc.c (sparc_rtx_costs): New function
7371         implementing RTX_COSTS and CONST_COSTS.
7372         * config/sparc/sparc.h (CONST_COSTS): Delete.
7373         (RTX_COSTS_CASES): Define.
7374         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
7375         the work.
7376
7377         * config/sparc/sparc.md (DFA schedulers): Split out...
7378         * config/sparc/cypress.md, config/sparc/hypersparc.md,
7379         config/sparc/sparclet.md, config/sparc/supersparc.md,
7380         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
7381
7382         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
7383         checks on it, always defined for Sparc.
7384
7385         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
7386         Tweak, and add more detailed comments.
7387
7388 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
7389
7390         * Re-apply patch accidentally reverted with
7391         DFA scheduler merge: remove all rules and variables to slurp
7392         source files out of libiberty and rebuild them with HOST_CC.
7393         ($(HOST_PREFIX_1)varray.o): New rule.
7394         (genattrtab rule): Word wrap.
7395
7396 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
7397
7398         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
7399         (CPP_SUBTARGET_SPEC): Define.
7400         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
7401         cpp_subtarget specs.
7402         (CPP_SPEC): Redefine to include %(cpp_subtarget).
7403
7404 2002-05-03  David S. Miller  <davem@redhat.com>
7405
7406         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
7407         * target.h (struct gcc_target): Delete cycle_display member.
7408
7409         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
7410         (rtx_needs_barrier): Delete reference to cycle_display unspec.
7411         (ia64_sched_reorder2): Mention need for cycle display handling
7412         once such notes exist.
7413
7414 2002-05-03  Richard Henderson  <rth@redhat.com>
7415
7416         * real.c (etoasc): Strip most trailing zeros for clarity.
7417         * sched-vis.c: Include real.h.
7418         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
7419         * Makefile.in (sched-vis.o): Add real.h.
7420
7421 2002-05-03  David S. Miller  <davem@redhat.com>
7422
7423         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
7424         no longer needed.
7425
7426 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
7427
7428         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
7429         when we get an out of range literal.
7430         (altivec_expand_ternop_builtin): Same.
7431         (altivec_expand_unop_builtin): Same.
7432         (altivec_expand_builtin): Same, for dss.
7433         (altivec_expand_builtin): Use trees instead of rtl when
7434         determining literal argument validity.
7435
7436 2002-05-03  David S. Miller  <davem@redhat.com>
7437
7438         Delete cycle display scheduling hook.
7439         * config/ia64/ia64.c (ia64_cycle_display,
7440         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
7441         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
7442         and use emit_insn_before instead of ia64_emit_insn_before.
7443         * config/ia64/ia64.md (unspec usage): Delete cycle display.
7444         (cycle_display): Delete insn pattern.
7445         * config/sparc/sparc.md (unspec usage): Delete cycle display.
7446         (cycle_display): Delete insn pattern.
7447         * config/sparc/sparc.c (sparc_cycle_display,
7448         TARGET_SCHED_CYCLE_DISPLAY): Delete.
7449         * doc/md.texi (cycle_display): Don't mention.
7450         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
7451
7452 2002-05-03  Richard Henderson  <rth@redhat.com>
7453
7454         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
7455         * recog.h: Declare them.
7456
7457         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
7458         * config/sparc/sparc.md: Use store_data_bypass_p instead.
7459         * config/sparc/sparc-protos.h: Update.
7460
7461 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
7462
7463         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
7464         -D__arch64__.  Add -D_LP64.
7465         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
7466         from sparc.h.
7467         (CPP_ARCH64_SPEC): Likewise.
7468         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
7469         (NO_BUILTIN_SIZE_TYPE): Undef.
7470
7471 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
7472
7473         * genautomata.c (min_issue_delay_pass_states): Change return type
7474         in the prototype.
7475         (min_issue_delay_pass_states): Change the algorithm.
7476         (min_issue_delay): Set up min_insn_issue_delay for the state.
7477         (output_min_issue_delay_table): Interchange the nested loops and
7478         and initiate min_insn_issue_delay for states.
7479
7480 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
7481
7482         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
7483         jump is simplejump.
7484
7485 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
7486
7487         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
7488         sequence.
7489
7490 2002-05-03  Richard Henderson  <rth@redhat.com>
7491
7492         PR opt/6534
7493         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
7494         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
7495         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
7496         code before JUMP, not EARLIEST.
7497
7498 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
7499
7500         * c-format.c (check_format_info_main): Don't check for presence of
7501         parameter for * width until after operand number has been read,
7502         and only check for it if format parameters are available.
7503         Fixes PR c/6547.
7504
7505 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
7506
7507         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
7508         (LINK_SPEC): Undef before defining.
7509
7510 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
7511
7512         PR preprocessor/6489
7513         * tradcpp.c (fixup_newlines): New.
7514         (main, finclude): Use it.
7515
7516 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
7517
7518         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
7519         * config/mips/mips.c (mips_unique_section): Strip encoding from
7520         decl name.
7521
7522 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
7523
7524         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
7525         mode.
7526
7527 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7528
7529         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
7530         (Specific): Removed buildstats references.
7531         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
7532         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
7533         Accomodate Solaris versions beyond 8.
7534         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
7535         (Specific, *-*-solaris2.8): Removed, obsolete.
7536
7537 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
7538
7539         PR target/6542
7540         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
7541         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
7542         fill leaf_reg_remap with identity.
7543         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
7544
7545 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
7546
7547         * config/h8300/crti.asm: Remove trailing spaces.
7548         * config/h8300/h8300.c: Likewise.
7549         * config/h8300/lib1funcs.asm: Likewise.
7550
7551 2002-05-02  Jason Merrill  <jason@redhat.com>
7552
7553         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
7554         * c-decl.c (c_init_decl_processing): Use it.
7555         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
7556         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
7557         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
7558
7559 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
7560
7561         * regrename.c: Fix formatting.
7562         * tree.c: Likewise.
7563
7564 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
7565
7566         * i386.md (attribute memory): Handle compares properly.
7567
7568 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
7569
7570         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
7571         to none.
7572
7573 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
7574
7575         * function.c: Fix formatting.
7576
7577 2002-05-02  Jan Hubicka  <jh@suse.cz>
7578
7579         * haifa-sched.c (schedule_insn): Print table of instructions and
7580         reservations.
7581         (sched_block): Do not print ready list at verbosity level 1.
7582         * sched-vis.c (print_insn): Make global.
7583         * sched-ebb.c (ebb_print_insn): Rename from...
7584         (print_insn): ... this one.
7585         * sched-int.h (print_insn): Declare
7586
7587 2002-05-02  Richard Henderson  <rth@redhat.com>
7588
7589         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
7590         emitted by cycle_display.
7591
7592 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
7593
7594         * doc/install.texi (*-*-freebsd*): Update to latest status.
7595
7596 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
7597
7598         PR target/6540
7599         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
7600         * config/float-sparc.h: Assume 128-bit long double if
7601         __LONG_DOUBLE_128__ is defined.
7602
7603 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
7604
7605         * genattrtab.c (write_function_unit_info): Add a dummy element
7606         when num_units == 0.
7607
7608 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7609
7610         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
7611         TYPE_MODE (double_type_node) instead of DFmode.
7612
7613 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
7614
7615         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
7616         jumps post reload.
7617         * toplev.c (rest_of_compilation): Revert Richard's patch.
7618
7619 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7620
7621         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
7622
7623 2002-05-02  Catherine Moore  <clm@redhat.com>
7624
7625         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
7626
7627 2002-05-02  Kazu Hirata  <kazu@hxi.com>
7628
7629         * combine.c: Fix comment typos.
7630         * expr.c: Likewise.
7631         * genautomata.c: Likewise.
7632         * stmt.c: Likewise.
7633         * tree.h: Likewise.
7634
7635 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7636
7637         * doc/install.texi: State GNAT version requirements.
7638
7639 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
7640
7641         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
7642         of the frame pointer or arg pointer register which strict register
7643         checking is not enabled.
7644
7645 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
7646
7647         * gcc.dg/altivec-8.c: New.
7648
7649         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
7650         PRE_INC and PRE_DEC for altivec modes.
7651
7652 2002-05-01  Bruce Korb  <bkorb@gnu.org>
7653
7654         * fixinc/check.tpl(set-writable): make sure the function exists first
7655         * fixinc/inclhack.def(alpha_assert): fix test_text
7656         * fixinc/tests/base/assert.h: add in missing result
7657
7658 2002-05-01  Jeff Law  <law@redhat.com>
7659
7660         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
7661         'T' constraint.
7662
7663 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
7664
7665         * dbxout.c (dbxout_type): Emit size information for range types,
7666         as well, but only when using GDB extensions.
7667
7668 2002-05-01  Richard Henderson  <rth@redhat.com>
7669
7670         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
7671         target-independent gnu binutils date test.
7672
7673 2002-05-01  Richard Henderson  <rth@redhat.com>
7674
7675         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
7676         info before expunging the block.
7677
7678 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
7679
7680         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
7681         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
7682         -M -or -MM is in effect.
7683
7684 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
7685
7686         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
7687         A29k configurations.
7688         * doc/install.texi: Update to match.
7689
7690 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7691
7692         PR bootstrap/6514
7693         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
7694         for duplicates. Always loop over whole list.
7695
7696 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7697
7698         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
7699
7700 2002-05-01      Joel Sherrill <joel@OARcorp.com>
7701
7702         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
7703         support routines.
7704
7705 2002-05-01      Joel Sherrill <joel@OARcorp.com>
7706
7707         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
7708
7709 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
7710
7711         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
7712         (nabs_nopower): Same.
7713         (floatdisf2): New pattern.
7714         (absdi2): Convert to define_insn_and_split.
7715         (nabsdi2): Same.
7716         (trunctfsf2): Same.
7717         (floatditf2): Same.
7718         (floatsitf2): Same.
7719         (fix_trunctfdi2): Same.
7720         (fix_trunctfsi2): Same.
7721
7722 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
7723
7724         * doc/install.texi: Update Texinfo version requirement
7725         documentation.
7726
7727 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
7728
7729         PR target/6512, PR target/5628
7730         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
7731         when memory is not aligned.
7732         (movdf_insn_v9only_vis): Likewise.
7733         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
7734         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
7735         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
7736
7737 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
7738
7739         * gcc.dg/altivec-7.c: New.
7740
7741         * config/rs6000/altivec.h: Cleanup.
7742
7743 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
7744
7745         * doc/invoke.texi (Option Summary): Add -mvrsave=.
7746         (RS/6000 and PowerPC Options): Document -mvrsave=.
7747
7748         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
7749         (rs6000_altivec_vrsave_string): Same.
7750         (rs6000_override_options): Call rs6000_parse_vrsave_option.
7751         (rs6000_parse_vrsave_option): New.
7752         (rs6000_stack_info): Only generate vrsave instructions when
7753         TARGET_ALTIVEC_VRSAVE.
7754
7755         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
7756         (rs6000_altivec_vrsave_string): Define extern.
7757         (rs6000_altivec_vrsave): Same.
7758         (TARGET_ALTIVEC_VRSAVE): New.
7759
7760 2002-04-30  Richard Henderson  <rth@redhat.com>
7761
7762         PR opt/6516
7763         * toplev.c (rest_of_compilation): Don't run cross-jump before
7764         bb-reorder.
7765
7766 2002-04-30  Tom Rix  <trix@redhat.com>
7767
7768         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
7769         check which_alternative.
7770
7771 2002-04-30  Kazu Hirata  <kazu@hxi.com>
7772
7773         * cpplex.c: Fix comment formatting.
7774         * function.c: Likewise.
7775         * integrate.c: Likewise.
7776         * regrename.c: Likewise.
7777         * sibcall.c: Likewise.
7778         * simplify-rtx.c: Likewise.
7779         * tree-inline.c: Likewise.
7780
7781 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7782
7783         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
7784         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
7785         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
7786         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
7787         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
7788         * pa/x-ada: New file.  Define ADA_CFLAGS.
7789
7790 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
7791
7792         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
7793         from MMIX_LAST_REGISTER_FILE_REGNUM.
7794         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
7795         (struct machine_function): New member highest_saved_stack_register
7796         previously static variable in mmix.c.
7797         (MACHINE_DEPENDENT_REORG): Define.
7798         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
7799         (MMIX_OUTPUT_REGNO): New.
7800         (mmix_target_asm_function_prologue): Move calculation of last used
7801         saved-stack-register into...
7802         (mmix_machine_dependent_reorg): New function.  Update to also handle
7803         !TARGET_ABI_GNU.
7804         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
7805         register names, simplify somewhat by new variable regno.
7806         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
7807         register.
7808         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
7809         emitting register names.
7810         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
7811         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
7812         Remove fixed FIXME.
7813         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
7814         Declare.
7815
7816         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
7817
7818 2002-04-30  Richard Henderson  <rth@redhat.com>
7819
7820         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
7821         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
7822         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
7823         emit_tfmode_cvt): New.
7824         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
7825         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
7826         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
7827         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
7828         * config/sparc/sparc-protos.h: Update.
7829
7830 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
7831
7832         * install.texi (Final install): Add to the list of info to include
7833         in a report of a successful bootstrap, and add link to 3.1 list.
7834
7835 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
7836
7837         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
7838         (mode): Add vector modes
7839         (i387): Kill attribute.
7840         (unit): New attribute.
7841         (length_immediate): Grok new types.
7842         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
7843         (modrm): Use "unit".
7844         (memory): Handle MMX/SSE properly.
7845         (scheduling descriptions): Kill uses of fop1.
7846         (sse, mmx, fp patterns): Set type and mode properly.
7847
7848 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
7849
7850         * pa.c (override_options): Default to PA8000 scheduling.
7851         * doc/invoke.texi (HP-PA options): Mention newly added 7300
7852         scheduling parameter.
7853
7854         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
7855         handling of double precision multiplies.
7856
7857         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
7858         fpdiv and fpsqrt instructions.
7859         (7200 & 7300 scheduling): Fix typo in handling of
7860         store-load and store-store penalties.
7861
7862 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7863
7864         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
7865         mips.  Add two missing commas.
7866
7867 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
7868
7869         * doc/contrib.texi (Contributors): Update Paolo Carlini's
7870         and Benjamin Kosnik's entries.
7871
7872 2002-04-29  David S. Miller  <davem@redhat.com>
7873
7874         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
7875         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
7876         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
7877         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7878
7879 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7880
7881         * combine.c (find_split_point): Use gen_int_mode.
7882
7883 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
7884
7885         Merging code from dfa-branch:
7886
7887         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7888
7889         * genautomata.c (output_reserv_sets): Fix typo.
7890
7891         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
7892
7893         * genautomata.c (output_reserv_sets): Remove
7894         next_cycle_output_flag.
7895
7896         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
7897
7898         * sched-rgn.c (init_ready_list): Make the DFA code handle
7899         USE/CLOBBER insns in the same way as the traditional
7900         scheduler.
7901         (new_ready): Similarly..
7902
7903         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
7904
7905         * haifa-sched.c (schedule_block): Change the DFA state only after
7906         issuing insn.
7907
7908         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
7909
7910         * pa.c (hppa_use_dfa_pipeline_interface): New function.
7911         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
7912         (override_options): Add PA7300 scheduling support.
7913         (pa_adjust_cost): Update various comments.  Properly
7914         handle anti and output dependencies when using the
7915         DFA scheduler.
7916         (pa_issue_rate): Add PA7300 scheduling support.
7917         (pa_can_combine_p): Call extract_insn before calling
7918         constrain_operands (taken from mainline tree).
7919         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
7920         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
7921         descriptions using DFA descriptions.  Add PA7300
7922         scheduling support.
7923
7924         2002-03-30  David S. Miller  <davem@redhat.com>
7925
7926         Add UltraSPARC-III DFA scheduling support.
7927         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
7928         Update FP conditional move on register insn patterns to use it, as
7929         appropriate.
7930         (define_attr cpu): Add ultrasparc3.
7931         (define_attr us3load_type): New, update integer load patterns to
7932         set it, as appropriate.
7933         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
7934         (rest): Add UltraSPARC3 scheduling description.
7935         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
7936         (PROCESSOR_ULTRASPARC3): New.
7937         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
7938         ({ASM,CPP}_CPU_SPEC): Likewise.
7939         (REGISTER_MOVE_COST): Likewise.
7940         (RTX_COSTS): Likewise.
7941         * config/sparc/sparc.c (sparc_override_options,
7942         sparc_initialize_trampoline, sparc64_initialize_trampoline,
7943         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7944         sparc_issue_rate): Likewise.
7945         * config/sparc/sol2.h: Likewise.
7946         * config/sparc/sol2-sld-64.h: Likewise.
7947         * config/sparc/linux64.h: Likewise.
7948
7949         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
7950
7951         * doc/md.texi: Add comments about usage the latency time for the
7952         different dependencies and about case when two or more conditions
7953         in different define_insn_reservations returns TRUE for an insn.
7954
7955         * doc/md.texi: Add reference for automaton based pipeline
7956         description.
7957
7958         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
7959
7960         * doc/passes.texi: Add missed information about genattrtab.
7961
7962         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
7963
7964         * genautomata.c (output_automata_list_transition_code): Check
7965         automata_list on NULL.
7966
7967         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
7968
7969         * genautomata.c (output_insn_code_cases,
7970         output_automata_list_min_issue_delay_code,
7971         output_automata_list_transition_code,
7972         output_automata_list_state_alts_code): Comment the functions.
7973
7974         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
7975
7976         * genautomata.c (automata_list_el_t): New typedef.
7977         (get_free_automata_list_el,free_automata_list_el,
7978         free_automata_list, automata_list_hash, automata_list_eq_p,
7979         initiate_automata_lists, automata_list_start, automata_list_add,
7980         automata_list_finish, finish_automata_lists,
7981         output_insn_code_cases, output_automata_list_min_issue_delay_code,
7982         output_automata_list_transition_code,
7983         output_automata_list_state_alts_code, add_automaton_state,
7984         form_important_insn_automata_lists): New functions and prototypes.
7985         (insn_reserv_decl): Add members important_automata_list and
7986         processed_p.
7987         (ainsn): Add members important_p.
7988         (automata_list_el): New structure.
7989         (first_free_automata_list_el, current_automata_list,
7990         automata_list_table): New global variables.
7991         (create_ainsns): Initiate member important_p.
7992         (output_internal_min_issue_delay_func): Generate the switch and
7993         call output_insn_code_cases.
7994         (output_internal_trans_func, output_internal_state_alts_func):
7995         Ditto.
7996         (generate): Call initiate_automata_lists.
7997         (automaton_states): New global variable.
7998         (expand_automata): Call form_important_insn_automata_lists.
7999         (write_automata): Call finish_automata_lists.
8000
8001         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
8002
8003         * genautomata.c (add_excls, add_presence_absence): Check that
8004         cpu units in the sets belong the same automaton.
8005
8006         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
8007         about that cpu units in the sets belong the same automaton.
8008
8009         * doc/md.texi: Ditto.
8010
8011         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
8012                     Nitin Gupta  <niting@noida.hcltech.com>
8013
8014         * config/sh/sh.c (sh_use_dfa_interface): New function.
8015
8016         (sh_issue_rate): New Function.
8017         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
8018         TARGET_SCHED_ISSUE_RATE: define.
8019
8020         * config/sh/sh.md: Add DFA based pipeline description for SH4.
8021
8022         (define_attr insn_class): New attribute used for DFA
8023          scheduling.
8024         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
8025         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
8026          cmpeqdi_t): Likewise.
8027
8028         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8029          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
8030          ex_group.
8031         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8032
8033         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
8034
8035         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
8036         break.
8037
8038         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
8039
8040         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
8041         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
8042         necessary.
8043         (output_dfa_start_func): Initiate new variable insn_codes_length,
8044         (write_automata): Output definition of the new variable.
8045
8046         2001-10-02  David S. Miller  <davem@redhat.com>
8047
8048         * haifa-sched.c (advance_one_cycle): New function.
8049         (schedule_block): Use it.
8050         (queue_to_ready): Use it, and also make sure to advance the DFA
8051         state on all stall cycles, not just those where insn_queue links
8052         are found.
8053
8054         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
8055
8056         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
8057         non-zero if the highest-priority instruction could be scheduled.
8058         (choose_ready): Remove last argument from max_issue call.
8059
8060         2001-09-28  David S. Miller  <davem@redhat.com>
8061
8062         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
8063         ultrasparc and 3 for other multi-issue sparcs.
8064
8065         2001-09-27  David S. Miller  <davem@redhat.com>
8066
8067         * config/sparc/sparc.md (cycle_display): New pattern.
8068         * config/sparc/sparc.c (sparc_cycle_display): New.
8069         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
8070
8071         2001-09-25  David S. Miller  <davem@redhat.com>
8072
8073         Convert all of Sparc scheduling to DFA
8074         * config/sparc/sparc.md: Kill all define_function_unit
8075         directives and replace with DFA equivalent.
8076         * config/sparc/sparc.c (ultrasparc_adjust_cost,
8077         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
8078         ultra_fpmode_conflict_exists, ultra_find_type,
8079         ultra_build_types_avail, ultra_flush_pipeline,
8080         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
8081         ultrasparc_variable_issue, ultrasparc_sched_init,
8082         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
8083         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
8084         ultra_cur_hist, ultra_cycles_elapsed): Kill.
8085         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8086         ultrasparc_store_bypass_p): New.
8087         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
8088         Declare.
8089
8090         2001-09-24  David S. Miller  <davem@redhat.com>
8091
8092         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
8093         ready->vec[foo] not ready[foo].
8094
8095         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
8096
8097         * doc/md.texi: Correct examples for define_insn_reservations
8098         `mult' and `div'.
8099
8100         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
8101
8102         * genautomata.c (create_automata): Print message about creation of
8103         each automaton.
8104         (generate): Remove printing meease about creation of
8105         automata.
8106
8107         2001-09-05  David S. Miller  <davem@redhat.com>
8108
8109         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8110         * config/sparc/linux64.h: Likewise.
8111
8112         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
8113
8114         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
8115         schedule_block, sched_init, sched_finish): Add missed calls of
8116         use_dfa_pipeline_interface.
8117
8118         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
8119         Ditto.
8120
8121         * sched-vis.c (get_visual_tbl_length): Ditto.
8122
8123         2001-08-27  Richard Henderson  <rth@redhat.com>
8124
8125         * genattr.c (main): Emit state_t even when not doing scheduling.
8126
8127         2001-08-27  Richard Henderson  <rth@redhat.com>
8128
8129         * genautomata.c (expand_automata): Always create a description.
8130
8131         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
8132
8133         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8134         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8135         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8136         RTL constructions.
8137
8138         * genattr.c (main): New variable num_insn_reservations.  Increase
8139         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
8140         pipeline hazard recognizer interface.
8141
8142         * genattrtab.h: New file.
8143
8144         * genattrtab.c: Include genattrtab.h.
8145         (attr_printf, check_attr_test, make_internal_attr,
8146         make_numeric_value): Move protypes into genattrtab.h.  Define them
8147         as external.
8148         (num_dfa_decls): New global variable.
8149         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8150         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8151         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8152         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
8153
8154         * genautomata.c: New file.
8155
8156         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8157
8158         * sched-int.h: (curr_state): Add the external definition for
8159         automaton pipeline interface.
8160         (haifa_insn_data): Add comments for members blockage and units.
8161
8162         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8163         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8164         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8165         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8166         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8167         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8168         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8169         macros.
8170         (TARGET_SCHED): Use the new macros.
8171
8172         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8173         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8174         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8175         dfa_bubble): New members in gcc_target.sched.
8176
8177         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8178         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8179         (insn_queue): Redefine it as pointer to array.
8180         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8181         INSN_QUEUE_SIZE.
8182         (max_insn_queue_index_macro_value): New variable.
8183         (curr_state, dfa_state_size, ready_try): New varaibles for
8184         automaton interface.
8185         (ready_element, ready_remove, max_issue): New function prototypes
8186         for automaton interface.
8187         (choose_ready): New function prototype.
8188         (insn_unit, blockage_range): Add comments.
8189         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8190         FUNCTION_UNITS_SIZE == 0.
8191         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8192         actual_hazard, potential_hazard): Add comments.
8193         (insn_cost): Use cost -1 as undefined value.  Remove
8194         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
8195         pipeline interface.
8196         (ready_element, ready_remove): New functions for automaton
8197         interface.
8198         (schedule_insn): Add new code for automaton pipeline interface.
8199         (queue_to_ready): Add new code for automaton pipeline interface.
8200         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8201         (debug_ready_list): Print newline when the queue is empty.
8202         (max_issue): New function for automaton pipeline interface.
8203         (choose_ready): New function.
8204         (schedule_block): Add new code for automaton pipeline interface.
8205         Print ready list before scheduling each insn.
8206         (sched_init): Add new code for automaton pipeline interface.
8207         Initiate insn cost by -1.
8208         (sched_finish): Free the current automaton state and finalize
8209         automaton pipeline interface.
8210
8211         * sched-rgn.c: Include target.h.
8212         (init_ready_list, new_ready, debug_dependencies): Add new code for
8213         automaton pipeline interface.
8214
8215         * sched-vis.c: Include target.h.
8216         (get_visual_tbl_length): Add code for automaton interface.
8217         (target_units, print_block_visualization):  Add comments.
8218
8219         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8220         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8221         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8222         (getruntime.o, genautomata.o): New entries.
8223         (genattrtab.o): Add new dependency file genattrtab.h.
8224         (genattrtab): Add new dependencies.  Link it with `libm.a'.
8225         (getruntime.o, hashtab.o): New entries for canadian cross.
8226
8227         * doc/md.texi: Description of automaton based model.
8228
8229         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8230         Add comments.
8231         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8232         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8233         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8234         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8235         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8236         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8237         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8238         hook descriptions.
8239         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8240         MAX_DFA_ISSUE_RATE): New macro descriptions.
8241
8242         * doc/contrib.texi: Add dfa based scheduler contribution.
8243
8244         * doc/gcc.texi: Add more information about genattrtab.
8245
8246 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8247
8248         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
8249         adjust_address_nv call.
8250
8251 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
8252
8253         * doc/install.texi (Testing): Provide additional information, and
8254         a stronger encouragement, for running the testsuites.
8255
8256 2002-04-29  DJ Delorie  <dj@redhat.com>
8257
8258         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
8259         given in upper case.
8260
8261 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8262
8263         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
8264         Solaris 2 <widec.h> if missing.
8265         * fixinc/fixincl.x: Regenerate.
8266         * fixinc/tests/base/widec.h: New file.
8267
8268 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
8269
8270         * toplev.c (f_options): Add "profile" switch so that
8271         -fno-profile can be used to disable -p.
8272
8273 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
8274
8275         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
8276         UV2DImode.
8277         * tree.c (build_common_tree_nodes_2): Likewise.
8278         * tree.h (enum tree_index): Likewise.
8279         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
8280
8281         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
8282         entries.
8283         (init_mmx_sse_builtins): Initialize SSE2 builtins.
8284         (ix86_expand_builtin): Add support for SSE2 builtins.
8285         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
8286         (VALID_SSE_REG_MODE): Use it.
8287         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
8288         (enum ix86_builtins): Add SSE2 builtins.
8289         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
8290         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
8291         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
8292         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
8293         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
8294         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
8295         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
8296         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
8297         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
8298         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
8299         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
8300         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
8301         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
8302         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
8303         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
8304         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
8305         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
8306         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
8307         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
8308         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
8309         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
8310         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
8311         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
8312         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
8313         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
8314         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
8315         lfence_insn): New patterns.
8316         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
8317         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
8318
8319 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
8320
8321         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
8322
8323 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8324
8325         * doc/contrib.texi (Contributors): Add Paolo Carlini and
8326         Janis Johnson.
8327         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
8328         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
8329         and CPU instead of cpu.
8330
8331 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
8332
8333         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
8334         variables.
8335         (lang_independent_options): Add -fif-conversion, -fif-conversion2
8336         (rest_of_compilation): Do if conversion only when asked for.
8337         (parse_options_and_default_flags): Set new variables to 1 for -O1
8338         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
8339
8340 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
8341
8342         * i386.c (dbx64_register_map): Fix typo.
8343
8344 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
8345
8346         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
8347         real_one_half, real_bb_freq_max): New static variables.
8348         (debug_profile_bbauxs): Kill.
8349         (process_note_predictions): Kill unused variable.
8350         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
8351         volatile double.
8352         (propagate_freq): Use REAL_ARITHMETICS.
8353         (estimate_bb_frequencies): Likevise; init new static variables.
8354         * Makefile.in (predict.o): Add dependency on real.h
8355
8356 2002-04-28  David S. Miller  <davem@redhat.com>
8357
8358         PR target/6500
8359         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
8360         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
8361         several {reads,writes} instead.
8362         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
8363         Define.
8364
8365 2002-04-27  David S. Miller  <davem@redhat.com>
8366
8367         PR target/6494
8368         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
8369         of the stack bias.
8370
8371         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
8372         including signal.h and sys/ucontext.h, not needed.
8373
8374 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
8375
8376         * varasm.c (output_constant_def): Correct test for not calling
8377         ENCODE_SECTION_INFO for INTEGER_CST.
8378
8379 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8380
8381         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
8382         keep most cases as function eval_token.
8383         (eval_token): New function.
8384         (_cpp_parse_expr): Read token here for improved diagnostics.
8385         Don't use op_as_text.  Detect bad ':' here.
8386         (reduce): Don't detect bad ':' here.
8387         (op_as_text): Remove.
8388         * cpphash.h (_cpp_test_assertion): Change prototype.
8389         * cpplib.c (_cpp_test_assertion): Change prototype.
8390
8391 2002-04-28  Richard Henderson  <rth@redhat.com>
8392
8393         PR c/5154
8394         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
8395         (ggc_mark_rtx_children): New.
8396
8397 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
8398
8399         PR target/6496
8400         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
8401         after call peepholes for UltraSPARC.
8402         (call + jump 64-bit peepholes): Remove.
8403
8404 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8405
8406         PR c/6497
8407         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
8408         result as temporary value.
8409
8410 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
8411
8412         PR c++/6396
8413         * toplev.c (rest_of_compilation): Only run regrename and copy
8414         propagation if optimizing.
8415
8416 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
8417
8418         PR optimization/6475
8419         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
8420         register of REGNO_DECL (i).
8421         * Makefile.in (reload1.o): Add $(TREE_H).
8422
8423 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8424
8425         * cppexp.c (lex): Update to use state.skip_eval.
8426         (struct op): Remove prio and flags members.
8427         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
8428         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
8429         (LEFT_ASSOC): New macro.
8430         (optab): New table of operator priorities and flags.
8431         (SHIFT): Update.
8432         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
8433         malloc-ed parser stack.
8434         (reduce): New; reduce the operator stack.
8435         (_cpp_expand_op_stack): Expand the operator stack as necessary.
8436         * cpphash.h (struct op): Predeclare.
8437         (struct cpp_reader): New members op_stack, op_limit.
8438         (struct lexer_state): New member skip_eval.
8439         (_cpp_parse_expr): Update.
8440         (_cpp_expand_op_stack): New.
8441         * cpplib.c (do_if): Update.
8442         * cppinit.c (cpp_create_reader): Create op stack.
8443         (cpp_destroy): And destroy it.
8444         * cpplib.h (CPP_LAST_CPP_OP): Correct.
8445         (TTYPE_TABLE): Correct.
8446
8447 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8448
8449         PR c/6343
8450         * c-decl.c (duplicate_decls): Call merge_weak.
8451         * c-pragma.c (apply_pragma_weak): Warn about misuse.
8452         * output.h (merge_weak): Prototype merge_weak.
8453         * varasm.c (merge_weak): New function.
8454         (declare_weak): Make sure we don't give an error on VAR_DECLs.
8455         Mark RTL with SYMBOL_REF_WEAK.
8456
8457 2002-04-27  Kurt Garloff <garloff@suse.de>
8458
8459         * tree-inline.c (inlinable_function_p): Improve heuristics
8460         by using a smoother function to cut down allowable inlinable size.
8461         * param.def: Add parameters max-inline-insns-single,
8462         max-inline-slope, min-inline-insns that determine the exact
8463         shape of the above function.
8464         * param.h: Likewise.
8465
8466 2002-04-26  Richard Henderson  <rth@redhat.com>
8467
8468         * c-parse.in (malloced_yyss, malloced_yyvs): New.
8469         (yyoverflow): Re-add.  Set them.
8470         (free_parser_stacks): New.
8471         * c-common.h: Declare it.
8472         * c-lex.c (c_common_parse_file): Call it.
8473
8474 2002-04-26  Richard Henderson  <rth@redhat.com>
8475
8476         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
8477         for fallthru search.
8478
8479 2002-04-26  Eric Christopher  <echristo@redhat.com>
8480
8481         PR optimization/3700
8482         * config/mips/mips.c (mips_issue_rate): Define.  New function.
8483         (TARGET_SCHED_ISSUE_RATE): Use.
8484
8485 2002-04-25  David S. Miller  <davem@redhat.com>
8486
8487         PR target/6422
8488         * reorg.c (optimize_skip): Do not allow exception causing
8489         instructions to be considered for delay slots.
8490         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
8491         (relax_delay_slots): Do not try to consider exception causing
8492         instructions as redundant.
8493
8494 2002-04-26  Richard Henderson  <rth@redhat.com>
8495
8496         PR c/5225
8497         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
8498
8499 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
8500
8501         PR bootstrap/6445
8502         * config/i386/i386.md (untyped_call): Return the value in a float
8503         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
8504         TARGET_80387.
8505
8506 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
8507
8508         * tree.c (tree_int_cst_lt): Compare constants whose types differ
8509         in unsigned-ness correctly.
8510
8511 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8512
8513         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
8514         portable runtime model.
8515
8516 2002-04-26  Richard Henderson  <rth@redhat.com>
8517
8518         * c-parse.in (yyoverflow): Revert.
8519
8520 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
8521             Richard Henderson  <rth@redhat.com>
8522
8523         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
8524         result as temporary value.
8525
8526 2002-04-26  Richard Henderson  <rth@redhat.com>
8527
8528         PR c/3581
8529         * c-common.c (fix_string_type): Split out of ...
8530         (combine_strings): ... here.  Take a varray, not a tree list.
8531         (c_expand_builtin_printf): Use fix_string_type.
8532         * c-common.h: Update decls.
8533         * c-parse.in (string): Remove.  Update all uses to use STRING
8534         instead, and not call combine_strings.
8535         (yylexstring): New.
8536         (_yylex): Use it.
8537         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
8538         (build_asm_stmt): Likewise.
8539         * objc/objc-act.c (my_build_string): Use fix_string_type.
8540         (build_objc_string_object): Build varray for combine_strings.
8541
8542 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
8543
8544         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
8545         x86-64.
8546
8547 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8548
8549         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
8550         (HAVE_NO_R_OPERAND): Remove.
8551         (HAVE_VALUE): Remove.
8552         (op_to_prio): Update.
8553         (UNARY): Don't alter flags.
8554         (_cpp_parse_expr): want_value used to indicate whether
8555         a number or unary operator is expected next.  Distinguish
8556         unary and binary +/-.
8557         (op_as_text): Update for unary operators.
8558
8559 2002-04-25  Richard Henderson  <rth@redhat.com>
8560
8561         PR c/2161
8562         * c-parse.in (yyoverflow): New.
8563
8564 2002-04-25  Richard Henderson  <rth@redhat.com>
8565
8566         PR c/2098
8567         * c-common.c (shorten_compare): Simplfy conditions leading to
8568         the generation of a warning.
8569
8570 2002-04-25  Richard Henderson  <rth@redhat.com>
8571
8572         PR c/2035
8573         * expmed.c (extract_bit_field): Fall through to generic code rather
8574         than aborting on subreg special case.
8575
8576 2002-04-25  David S. Miller  <davem@redhat.com>
8577
8578         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
8579         for DECL being NULL.
8580
8581 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
8582
8583         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
8584
8585 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
8586
8587         * c-decl.c (grokdeclarator): Remove outdated ??? note
8588         on invalid declaration of flexible array members.
8589
8590 2002-04-25  Richard Henderson  <rth@redhat.com>
8591
8592         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
8593
8594 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
8595
8596         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
8597         needed by the compiler, even if they are used as global regs.
8598
8599 2002-04-25  Matt Hiller  <hiller@redhat.com>
8600
8601         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
8602         functions.
8603         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
8604         of the corresponding functions.
8605         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
8606         New prototypes.
8607
8608 2002-04-25  Matt Hiller  <hiller@redhat.com>
8609
8610         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
8611
8612         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
8613         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
8614         registers, adjust comment accordingly.
8615         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
8616         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
8617         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
8618         for coprocessor registers.
8619         (ADDITIONAL_REGISTER_NAMES): Include
8620         ALL_COP_ADDITIONAL_REGISTER_NAMES.
8621
8622         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
8623         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
8624         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
8625         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
8626         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
8627
8628         (mips_char_to_class): Adjust comment to include coprocessor
8629         constraint letters.
8630
8631         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
8632         New functions.
8633         (mips_reg_names, mips_regno_to_class): Include coprocessor
8634         information.
8635         (mips_sw_reg_names): Ditto, make non-static.
8636         (mips_move_1word): Handle moves to and from coprocessor registers.
8637         (mips_move_2words): Handle moves to and from coprocessor
8638         registers.
8639         (mips_class_max_nregs, mips_register_move_cost): Handle
8640         coprocessor register classes.
8641         (override_options): Initialize mips_char_to_class and
8642         mips_hard_regno_mode_ok properly for coprocessor registers.
8643
8644         * config/mips/mips.md (movdi_internal, movdi_internal2,
8645         movsi_internal1, movsi_internal2): Add constraint-sets for
8646         coprocessor registers.
8647         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
8648         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
8649         isn't mips.
8650         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
8651         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
8652         isn't mips.
8653         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
8654         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
8655         isn't mips.
8656         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
8657         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
8658         isn't mips.
8659
8660         * doc/tm.texi: Document feature.
8661
8662 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8663
8664         * integrate.c (function_attribute_inlinable_p): Simplify.
8665         Check the table pointer is not NULL.
8666
8667 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
8668
8669         * doc/c-tree.texi: Fix typo in introduction.
8670
8671 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8672
8673         * c-common.h (c_common_parse_file): Update.
8674         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8675         * c-lex.c (YYDEBUG): Get from c-lex.h.
8676         (c_common_parse_file): Update.
8677         * c-lex.h (YYDEBUG, yydebug): New.
8678         * c-parse.in (YYDEBUG): Get from c-lex.h.
8679         (c_set_yydebug): Remove.
8680         * c-tree.h (c_set_yydebug): Remove.
8681         * langhooks-def.h (lhd_do_nothing_i): New.
8682         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
8683         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
8684         * langhooks.c  (lhd_do_nothing_i): New.
8685         (lhd_set_yydebug): Remove.
8686         * langhooks.h (struct lang_hooks): Update.
8687         * toplev.c (set_yydebug): New.
8688         (compile_file): Update call to parse_file hook.
8689         (decode_d_option): Update.
8690 objc:
8691         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8692
8693 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
8694
8695         * loop.c (load_mems): Don't change the interface of called functions.
8696
8697         * calls.c (expand_call): Take current_function_pretend_args_size
8698         into account when setting argblock for sibcalls.
8699
8700 2002-04-24  Matt Hiller  <hiller@redhat.com>
8701
8702         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
8703         * c-lex.c: Ditto.
8704
8705         * cpplex.c (skip_line_comment): Process comment one multibyte
8706         character at a time rather than one char at a time, if
8707         appropriate.
8708         (parse_string): Process string one multibyte character at a time
8709         rather than one char at a time, if appropriate.
8710         * c-lex.c (lex_string): Lex and copy multibyte strings
8711         appropriately.
8712         * cpplib.h (cppchar_t): Change to unsigned.
8713
8714 2002-04-24  Richard Henderson  <rth@redhat.com>
8715
8716         PR c/3467
8717         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
8718         for c99.
8719
8720 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
8721
8722         * sh.c (sh_va_arg): If argument was passed by reference,
8723         dereference the pointer.
8724
8725         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8726
8727         * sh.md (divsi3_i4_media): Use match_operand for input values
8728         rather than hard registers.
8729         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
8730         unnecessarily through hard registers.  Keep copies of pseudo
8731         registers outside of the libcall sequence.
8732
8733         * sh.md (casesi_shift_media): Add modes.
8734
8735         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
8736         values in memory.
8737
8738 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8739
8740         * attribs.c (c_common_attribute_table): Move table and handlers
8741         to c-common.c.
8742         (format_attribute_table, lang_attribute_table,
8743         lang_attribute_common): Remove.
8744         (init_attributes): Replace NULL pointers with pointers to the
8745         empty table.
8746         (handle_packed_attribute, handle_nocommon_attribute,
8747         handle_common_attribute, handle_noreturn_attribute,
8748         handle_noinline_attribute, handle_always_inline_attribute,
8749         handle_used_attribute, handle_unused_attribute,
8750         handle_const_attribute, handle_transparent_union_attribute,
8751         handle_constructor_attribute, handle_destructor_attribute,
8752         handle_mode_attribute, handle_section_attribute,
8753         handle_aligned_attribute, handle_weak_attribute,
8754         handle_alias_attribute, handle_visibility_attribute,
8755         handle_no_instrument_function_attribute, handle_malloc_attribute,
8756         handle_no_limit_stack_attribute, handle_pure_attribute,
8757         handle_deprecated_attribute, handle_vector_size_attribute,
8758         vector_size_helper): Move to c-common.c.
8759         * c-common.c (c_common_attribute_table,
8760         handle_packed_attribute, handle_nocommon_attribute,
8761         handle_common_attribute, handle_noreturn_attribute,
8762         handle_noinline_attribute, handle_always_inline_attribute,
8763         handle_used_attribute, handle_unused_attribute,
8764         handle_const_attribute, handle_transparent_union_attribute,
8765         handle_constructor_attribute, handle_destructor_attribute,
8766         handle_mode_attribute, handle_section_attribute,
8767         handle_aligned_attribute, handle_weak_attribute,
8768         handle_alias_attribute, handle_visibility_attribute,
8769         handle_no_instrument_function_attribute, handle_malloc_attribute,
8770         handle_no_limit_stack_attribute, handle_pure_attribute,
8771         handle_deprecated_attribute, handle_vector_size_attribute,
8772         vector_size_helper): Move from attribs.c.
8773         * c-common.h (c_common_attribute_table,
8774         c_common_format_attribute_table): New.
8775         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8776         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8777         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
8778         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
8779         (LANG_HOOKS_INITIALIZER): Update.
8780         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
8781         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
8782         * target.h: Update comment.
8783         * tree.c (default_target_attribute_table): Remove.
8784         * tree.h (default_target_attribute_table, format_attribute_table,
8785         lang_attribute_table, lang_attribute_common): Remove.
8786 objc:
8787         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8788         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8789
8790 2002-04-24  Jason Merrill  <jason@redhat.com>
8791
8792         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
8793         * dwarf2out.c (dwarf_attr_name): Support it.
8794         (gen_array_type_die): Emit it.
8795         (lookup_type_die): No special handling for VECTOR_TYPE.
8796         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
8797
8798 2002-04-24  Richard Henderson  <rth@redhat.com>
8799
8800         * config/mips/mips.md (movdi_usd): Renumber.
8801
8802 2002-04-24  David S. Miller  <davem@redhat.com>
8803
8804         PR target/6420
8805         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
8806         32-bit Sparc and current_function_returns_struct is true.
8807
8808 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
8809
8810         * loop.c (canonicalize_condition): Use gen_int_mode.
8811
8812 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
8813
8814         * config/rs6000/altivec.h: Cleanup file.  Add non individual
8815         variants.
8816         (vec_vaddubm): New.
8817         (vec_vadduhm): New.
8818         (vec_vadduwm): New.
8819         (vec_vaddfp): New.
8820         (vec_vaddcuw): New.
8821         (vec_vaddubs): New.
8822         (vec_vaddsbs): New.
8823         (vec_vadduhs): New.
8824         (vec_vadduws): New.
8825         (vec_vaddsws): New.
8826         (vec_vand): New.
8827         (vec_vandc): New.
8828         (vec_vavgub): New.
8829         (vec_vavgsb): New.
8830         (vec_vavguh): New.
8831         (vec_vavgsh): New.
8832         (vec_vavguw): New.
8833         (vec_vavgsw): New.
8834         (vec_vrfip): New.
8835         (vec_vcmpbfp): New.
8836         (vec_vcmpequb): New.
8837         (vec_vcmpequh): New.
8838         (vec_vcmpequw): New.
8839         (vec_vcmpeqfp): New.
8840         (vec_vcmpgefp): New.
8841         (vec_vcmpgtub): New.
8842         (vec_vcmpgtsb): New.
8843         (vec_vcmpgtuh): New.
8844         (vec_vcmpgtsh): New.
8845         (vec_vcmpgtuw): New.
8846         (vec_vcmpgtsw): New.
8847         (vec_vcmpgtfp): New.
8848         (vec_vcmpgefp): New.
8849         (vec_vcfux): New.
8850         (vec_vcfsx): New.
8851         (vec_vctsxs): New.
8852         (vec_vctuxs): New.
8853         (vec_vexptefp): New.
8854         (vec_vrfim): New.
8855         (vec_lvx): New.
8856         (vec_lvebx): New.
8857         (vec_lvehx): New.
8858         (vec_lde): Add vector float variant.
8859         (vec_lvewx): New.
8860         (vec_lvxl): New.
8861         (vec_vlogefp): New.
8862         (vec_vmaddfp): New.
8863         (vec_vmhaddshs): New.
8864         (vec_vmaxub): New.
8865         (vec_vmaxsb): New.
8866         (vec_vmaxuh): New.
8867         (vec_vmaxsh): New.
8868         (vec_vmaxuw): New.
8869         (vec_vmaxsw): New.
8870         (vec_vmaxsw): New.
8871         (vec_vmaxfp): New.
8872         (vec_vmrghb): New.
8873         (vec_vmrghh): New.
8874         (vec_vmrghw): New.
8875         (vec_vmrglb): New.
8876         (vec_vmrglh): New.
8877         (vec_vmrglw): New.
8878         (vec_vminub): New.
8879         (vec_vminsb): New.
8880         (vec_vminuh): New.
8881         (vec_vminsh): New.
8882         (vec_vminuw): New.
8883         (vec_vminsw): New.
8884         (vec_vminfp): New.
8885         (vec_vmladduhm): New.
8886         (vec_vmhraddshs): New.
8887         (vec_msumubm): New.
8888         (vec_vmsummbm): New.
8889         (vec_vmsumuhm): New.
8890         (vec_vmsumshm): New.
8891         (vec_vmsumuhs): New.
8892         (vec_vmsumshs): New.
8893         (vec_vmuleub): New.
8894         (vec_vmulesb): New.
8895         (vec_vmuleuh): New.
8896         (vec_vmulesh): New.
8897         (vec_vmuloub): New.
8898         (vec_mulosb): New.
8899         (vec_vmulouh): New.
8900         (vec_vmulosh): New.
8901         (vec_vnmsubfp): New.
8902         (vec_vnor): New.
8903         (vec_vor): New.
8904         (vec_vpkuhum): New.
8905         (vec_vpkuwum): New.
8906         (vec_vpkpx): New.
8907         (vec_vpkuhus): New.
8908         (vec_vpkshss): New.
8909         (vec_vpkuwus): New.
8910         (vec_vpkswss): New.
8911         (vec_vpkshus): New.
8912         (vec_vpkswus): New.
8913         (vec_vperm): New.
8914         (vec_vrefp): New.
8915         (vec_vrlb): New.
8916         (vec_vrlh): New.
8917         (vec_vrlw): New.
8918         (vec_vrfin): New.
8919         (vec_vrsqrtefp): New.
8920         (vec_vsel): New.
8921         (vec_vslb): New.
8922         (vec_vslh): New.
8923         (vec_vslw): New.
8924         (vec_vsldoi): New.
8925         (vec_vsl): New.
8926         (vec_vslo): New.
8927         (vec_vspltb): New.
8928         (vec_vsplth): New.
8929         (vec_vspltw): New.
8930         (vec_vspltisb): New.
8931         (vec_vspltish): New.
8932         (vec_vspltisw): New.
8933         (vec_vsrb): New.
8934         (vec_vsrh): New.
8935         (vec_vsrw): New.
8936         (vec_vsrab): New.
8937         (vec_vsrah): New.
8938         (vec_vsraw): New.
8939         (vec_vsr): New.
8940         (vec_vsro): New.
8941         (vec_stvx): New.
8942         (vec_stvebx): New.
8943         (vec_stvehx): New.
8944         (vec_stvewx): New.
8945         (vec_stvxl): New.
8946         (vec_vsububm): New.
8947         (vec_vsubuhm): New.
8948         (vec_vsubuwm): New.
8949         (vec_vsubfp): New.
8950         (vec_vsubcuw): New.
8951         (vec_vsububs): New.
8952         (vec_vsubsbs): New.
8953         (vec_vsubuhs): New.
8954         (vec_vsubshs): New.
8955         (vec_vsubuws): New.
8956         (vec_vsubsws): New.
8957         (vec_vsum4ubs): New.
8958         (vec_vsum4sbs): New.
8959         (vec_vsum4shs): New.
8960         (vec_vsum2sws): New.
8961         (vec_vsumsws): New.
8962         (vec_vrfiz): New.
8963         (vec_vupkhsb): New.
8964         (vec_vupkhpx): New.
8965         (vec_vupkhsh): New.
8966         (vec_vupklsb): New.
8967         (vec_vupklpx): New.
8968         (vec_vupklsh): New.
8969         (vec_vxor): New.
8970
8971 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
8972
8973         PR c/5430
8974         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
8975         added literals from substracted literals.
8976         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
8977         (fold) [associate]: Preserve MINUS_EXPR if needed.
8978
8979 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
8980
8981         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
8982         are obsoleted.
8983
8984 2002-04-23  Tom Tromey  <tromey@redhat.com>
8985
8986         * gcc.c: Added --resource.  For PR java/6314.
8987
8988 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
8989
8990         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
8991         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
8992         these libraries.
8993
8994 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
8995
8996         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
8997
8998 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
8999
9000         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
9001         workaround.
9002         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
9003         (ix86_expand_clrstr): Fix typo.
9004         * loop.c (gen_load_of_final_value): New.
9005         (loop_givs_rescan, strength_reduce, check_dbra_loop):
9006         Use it.
9007
9008 2002-04-23  Roger Sayle  <roger@eyesopen.com>
9009
9010         * builtins.c (builtin_memset_gen_str): New function.
9011         (expand_builtin_memset): Optimize the case of constant length, but
9012         unknown value.
9013
9014 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
9015
9016         * config/rs6000/altivec.h (vec_step): Remove extraneous
9017         parentheses.
9018         (vec_ctu): Cast return.
9019
9020 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
9021
9022         PR target/6413
9023         * function.h: (struct function): Add profile_label_no field.
9024         (current_function_profile_label_no): Define.
9025         * function.c: (profile_label_no): New static var.
9026         (expand_function_start): Increment it, and copy to
9027         current_function_profile_label_no.
9028         * output.h (profile_label_no): Delete.
9029         * final.c (profile_label_no): Delete.
9030         (profile_function): Use current_function_profile_label_no.
9031         (final_end_function): Don't increment profile_label_no here.
9032         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
9033         profile_label_no with current_function_profile_label_no.
9034         * config/pa/pa.c (current_function_number): Delete.
9035         (pa_output_function_prologue): Don't output profile label here.
9036         (hppa_profile_hook): Use label_no param rather than
9037         current_function_number.
9038         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
9039         * config/pa/pa.h: .. here.
9040         (FUNCTION_PROFILER): Output profile label here.
9041
9042 2002-04-22  Eric Christopher  <echristo@redhat.com>
9043
9044         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
9045         patch of 2002-04-09 due to binutils issues.
9046         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
9047
9048 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
9049
9050         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
9051         constraint to 'o' for m=r and r=m alternatives.
9052         ("*movv8hi_internal1"): Same.
9053         ("*movv16qi_internal1"): Same.
9054         ("*movv4sf_internal1"): Same.
9055
9056 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
9057
9058         * rtl.h (RTX_FLAG): New macro.
9059         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
9060         * final.c (alter_subreg): Use macro to access rtx flag.
9061         * integrate.c (copy_rtx_and_substitute): Use new access macro.
9062         * print-rtl.c (print_rtx): Use new access macro.
9063
9064         * cse.c (insert): Check rtx code before accessing flag.
9065
9066         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
9067         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
9068         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
9069         convert_const_symbol_ref, make_canonical, make_alternative_compare,
9070         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
9071         simplify_test_exp, optimize_attrs, simplify_by_exploding,
9072         find_and_mark_used_attributes, unmark_used_attributes,
9073         add_values_to_cover, simplify_with_current_value,
9074         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
9075         copy_rtx_unchanging, main): Use new access macros.
9076
9077 2002-04-22  Tom Rix  <trix@redhat.com>
9078
9079         * expmed.c (init_expmed): Generate shifted constant once.
9080
9081 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
9082
9083         * c-lex.c (lex_charconst): Call convert to get constant in
9084         proper type; don't just smash the type field.
9085         Fixes PR c/6300.
9086
9087         * config.gcc: Add list of obsolete configurations.  Disallow
9088         building these without --enable-obsolete.
9089         * doc/install.texi: Document --enable-obsolete and obsoletion
9090         policy.  Mention obsoletion of individual targets in
9091         appropriate places.
9092
9093 2002-04-22  Richard Henderson  <rth@redhat.com>
9094
9095         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
9096
9097 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
9098
9099         PR f/6138.
9100         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
9101         (walk_fixup_memory_subreg): Likewise.
9102         (fixup_var_refs_insn): Adjust accordingly.
9103         (fixup_var_refs_1): Likewise.
9104
9105 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
9106
9107         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
9108         LIBPATH_ARCH64_SPEC): Define.
9109         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
9110         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
9111         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
9112         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
9113
9114 2002-04-22      Joel Sherrill <joel@OARcorp.com>
9115
9116         * gthr-rtems.h: Correct prototypes to remove warnings.
9117
9118 2002-04-22  Richard Henderson  <rth@redhat.com>
9119
9120         PR c/6344
9121         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
9122
9123         * gcse.c (free_insn_expr_list_list): New.
9124         (clear_modify_mem_tables): Use it.  Fix bit set usage.
9125         (canon_list_insert): Use EXPR_LISTs for expressions.
9126         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
9127
9128 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9129
9130         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
9131         file change and include code to _cpp_pop_buffer.
9132         * cpphash.h (struct pending_option): Predeclare.
9133         (struct cpp_reader): New member next_include_file.
9134         (_cpp_pop_file_buffer): Update.
9135         (_cpp_push_next_buffer): Update, rename.
9136         * cppinit.c (cpp_destroy): Free include chain and pending here.
9137         (cpp_finish_options): Simplify.
9138         (_cpp_push_next_buffer): Rename and clean up.
9139         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
9140         Clarify.
9141         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
9142
9143 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
9144
9145         * config/rs6000/altivec.h (vec_xor): Add variant for both args
9146         being vector signed int.
9147         (vec_andc): Same.
9148         (vec_xor): Add variant for both args being vector signed char.
9149         Remove redundant variant.
9150         (vec_andc): Same.
9151
9152 2002-04-21  David S. Miller  <davem@redhat.com>
9153
9154         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
9155         compare mode in output RTL.
9156
9157 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
9158
9159         * config/rs6000/rs6000.c (rs6000_override_options): Correct
9160         style and formatting of previous patch.
9161
9162 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
9163
9164         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
9165         flag_pic for ABI_AIX.
9166
9167 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9168
9169         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
9170         * cppfiles.c (read_include_file): Similarly.
9171         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
9172         uxstrdup ustrchr, ufputs): Similarly.
9173         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
9174         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
9175         cpp_ideq, parse_identifier, parse_number): Similarly.
9176         * cpplib.c (struct directive, dequote_string, D, run_directive,
9177         cpp_push_buffer): Similarly.
9178         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
9179         _cpp_create_definition, check_trad_stringification,
9180         cpp_macro_definition): Similarly.
9181
9182 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9183
9184         * cppmacro.c (funlike_invocation_p): Don't step back
9185         over CPP_EOF.
9186
9187 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
9188
9189         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
9190         labelno.
9191
9192 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
9193
9194         * doc/invoke.texi: Remove Chill references.
9195         * doc/gcc.texi: Update last modified date.
9196
9197 2002-04-20  Kazu Hirata  <kazu@hxi.com>
9198
9199         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
9200         push and pop.  Replace add.l with add.w.
9201
9202 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
9203
9204         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
9205         multiply instructions for H8/300H case.
9206
9207 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
9208
9209         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
9210         Bum three instructions from each routine.
9211
9212 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9213
9214         * Makefile.in: Update.
9215         * decl.c (push_c_function_context, pop_c_function_context,
9216         mark_c_function_context): Rename for consistency.
9217         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
9218         * c-tree.h (push_c_function_context, pop_c_function_context,
9219         mark_c_function_context): Rename for consistency.
9220         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9221         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9222         * function.c (init_lang_status, save_lang_status,
9223         restore_lang_status, mark_lang_status, free_lang_status):
9224         Move to langhooks.h.
9225         (push_function_context_to, pop_function_context_from,
9226         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
9227         Update.
9228         * function.h (init_lang_status, save_lang_status,
9229         restore_lang_status, mark_lang_status, free_lang_status):
9230         Move to langhooks.h.
9231         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
9232         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
9233         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
9234         LANG_HOOKS_FUNCTION_INITIALIZER): New.
9235         (LANG_HOOKS_INITIALIZER): Update.
9236         (lhd_do_nothing_f): New.
9237         * langhooks.h (struct lang_hooks_for_functions): New.
9238         (struct lang_hooks): New hooks.
9239         * langhooks.c (lhd_do_nothing_f): New.
9240 objc:
9241         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9242         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9243
9244 2002-04-19  David S. Miller  <davem@redhat.com>
9245
9246         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
9247         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
9248
9249 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
9250
9251         PR optimization/3756
9252         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
9253         x = ((int) y < 0) ? cst1 : cst2.
9254
9255 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
9256
9257         PR c/6358
9258         * function.c: Reapply patch for c/6358.
9259         (expand_function_end): Copy decl_rtl's mode, not
9260         current_function_return_rtx mode.
9261
9262 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
9263
9264         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
9265         targets.
9266
9267 2002-04-19  Tom Tromey  <tromey@redhat.com>
9268
9269         * doc/install.texi (Specific): Update status of Solaris 2.8.
9270         For PR libgcj/6158.
9271
9272 2002-04-19  Andreas Schwab  <schwab@suse.de>
9273
9274         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
9275         (PUT_REAL): Restore old definition.
9276
9277 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
9278             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9279
9280         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
9281         binutils 2.11.2 and higher generate smaller binaries than Sun's
9282         native tools.
9283
9284 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
9285
9286         PR c++/6352
9287         * toplev.c (rest_of_compilation): Do not defer functions for which
9288         TREE_SYMBOL_REFERENCED has already been set.
9289
9290 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
9291
9292         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
9293         alternative.
9294
9295 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9296
9297         * builtins.c: Include langhooks.h.
9298         (lang_type_promotes_to): Remove.
9299         (expand_builtin_va_arg): Use new hook.
9300         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
9301         (simple_type_promotes_to): Move to c-typeck.c.
9302         * c-common.h (simple_type_promotes_to): Remove.
9303         * c-decl.c (duplicate_decls, grokdeclarator): Update.
9304         * c-format.c: Include langhooks.h.
9305         (check_format_types): Update.
9306         * c-tree.h (c_type_promotes_to): New.
9307         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
9308         (type_lists_compatible_p): Update.
9309         * langhooks-def.h (lhd_type_promotes_to): New.
9310         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
9311         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9312         * langhooks.c (lhd_type_promotes_to): New.
9313         * langhooks.h (struct lang_hooks_for_types): New hook.
9314         * tree.h (lang_type_promotes_to): Remove.
9315 objc:
9316         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
9317
9318 2002-04-18  Richard Henderson  <rth@redhat.com>
9319
9320         * function.c: Revert patch for c/6358.
9321
9322 2002-04-18  Richard Henderson  <rth@redhat.com>
9323
9324         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
9325         blocks.  Handle multiple references to the TRAP block.  Handle
9326         non-adjacent THEN and OTHER blocks.
9327
9328 2002-04-18  Richard Henderson  <rth@redhat.com>
9329
9330         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
9331         crash with no type for by-mode libcalls.
9332
9333         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
9334
9335 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
9336
9337         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
9338         __xtensa_nonlocal_goto): Use a syscall instructions to flush
9339         the register windows.
9340
9341 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
9342
9343         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
9344         appropriate.  Document need for extended precision even when
9345         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
9346         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
9347         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
9348         instead of relying on later syntax error when REAL_WIDTH > 5.
9349         * real.c: Define NE based only on whether or not we have a
9350         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
9351         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
9352         define GET_REAL and PUT_REAL as simple memcpy operations; no
9353         need to byteswap or round.
9354         Use #error instead of #ifdef-ing out the entire file, for
9355         prompt error detection.
9356
9357         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
9358
9359 2002-04-18  David S. Miller  <davem@redhat.com>
9360
9361         * config/sparc/sparc.h (BRANCH_COST): Define.
9362
9363         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
9364         does it.
9365
9366 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
9367
9368         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
9369         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
9370         propagate_block calls after relaxation loop using new variable
9371         stabilized_prop_flags.
9372
9373 2002-04-18  Richard Henderson  <rth@redhat.com>
9374
9375         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
9376         (ia64_va_arg): Expect variable sized types by reference.
9377         * config/ia64/ia64-protos.h: Update.
9378         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
9379         ia64_function_arg_pass_by_reference.
9380
9381 2002-04-18  Richard Henderson  <rth@redhat.com>
9382
9383         * ifcvt.c: Include except.h.
9384         (block_has_only_trap): Break out from find_cond_trap.
9385         (find_cond_trap): Use it.  Always delete the trap block.
9386         (merge_if_block): Allow then block null.  Be less simplistic about
9387         what insns can end a block.
9388         * Makefile.in (ifcvt.o): Depend on except.h.
9389
9390         * config/ia64/ia64.md (trap, conditional_trap): New.
9391
9392 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
9393
9394         PR c/6358
9395         * function.c (assign_parms): Assign hard current_function_return_rtx
9396         register here...
9397         (expand_function_end): ...not here.
9398
9399 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
9400
9401         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9402         * c-tree.h (c_incomplete_type_error): New.
9403         * c-typeck.c (require_complete_type, build_component_ref): Update.
9404         (incomplete_type_error): Rename.
9405         * langhooks-def.h (lhd_incomplete_type_error): New.
9406         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
9407         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9408         * langhooks.c (lhd_incomplete_type_error): New.
9409         * langhooks.h (struct lang_hooks_for_types): New hook.
9410         * tree.c (size_in_bytes): Use new hook.
9411         * tree.h (incomplete_type_error): Remove.
9412 objc:
9413         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9414
9415 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
9416
9417         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
9418         TARGET_FLOAT_FORMAT blocks.
9419
9420 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9421
9422         * doc/install.texi (Downloading the source): Do not mention Chill
9423         any longer, but mention Ada.
9424         (Configuration): Do not mention Chill any longer.
9425
9426 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
9427
9428         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
9429
9430 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
9431
9432         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
9433         in last patch.
9434
9435 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
9436
9437         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
9438         instead of unsigned_type.
9439
9440 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
9441
9442         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
9443         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
9444         later.
9445
9446 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
9447
9448         * attribs.c (vector_type_node_list): New static variable.
9449         (handle_vector_size_attribute): Use it to avoid generating a
9450         new type node each time we are called.
9451
9452         * combine.c (subst): Avoid trying to make a vector mode subreg of
9453         an integer constant.
9454         (gen_lowpart_for_combine): Likewise.
9455
9456 2002-04-18  Roger Sayle  <roger@eyesopen.com>
9457             Jakub Jelinek  <jakub@redhat.com>
9458
9459         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
9460         for integer constant c (if x has unsigned type or sign bit is not
9461         set in c).  This folds the zero/sign extension into the bit-wise and
9462         operation.
9463
9464 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
9465
9466         PR middle-end/6205
9467         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
9468         otherwise xorps.
9469
9470 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
9471
9472         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
9473
9474 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
9475
9476         * gcc.c (read_specs): Detect and fail if an attempt is made to
9477         rename a spec string to an already existing string.
9478
9479 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9480
9481         * config/s390/s390.c (legitimize_pic_address): Do not generate
9482         illegal address constant without CONST.
9483
9484 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9485
9486         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
9487         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9488
9489 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9490
9491         PR optimization/6305
9492         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
9493         to make sure previous reloads are taken into account.  Generate
9494         better code if one operand is an in-range immediate constant.
9495
9496 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
9497
9498         * doc/install.texi (Building): libgcj requires GNU make.
9499
9500 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
9501
9502         PR bootstrap/6315
9503         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
9504         even if hard quad and register is not floating.
9505         (movtf reg<-mem split): Disallow splitting if hard quad and
9506         register is floating.
9507         (movtf mem<-reg split): Likewise.
9508         * config/sparc/sparc.c (fp_register_operand): New predicate.
9509         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
9510
9511 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
9512
9513         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
9514         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
9515         (unprotoize.o): Ditto.  Build from protoize.c.  Define
9516         UNPROTOIZE on command line.
9517         * protoize.c: Include cppdefault.h.  Delete include_defaults.
9518         (in_system_include_dir): Use cpp_include_defaults (defined in
9519         cppdefault.o).
9520         * unprotoize.c: Delete file.
9521
9522 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
9523
9524         * config/rs6000/altivec.h (vec_ld): Add array variants.
9525         (vec_lde): Same.
9526         (vec_ldl): Same.
9527
9528 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
9529             Aldy Hernandez <aldyh@redhat.com>
9530
9531         * config/rs6000/altivec.h: Define __ALTIVEC__.
9532         (bool): New.
9533         (__pixel): New.
9534         (pixel): New.
9535         (vec_cfux): New.
9536         (vec_vmaddfp): New.
9537         (vec_vsldoi): New.
9538         Add parentheses to all macro arguments.
9539
9540 2002-04-16  Richard Henderson  <rth@redhat.com>
9541
9542         PR c++/6320
9543         * except.c (remove_eh_handler): Insert inner regions at beginning
9544         of sibling chain.  Refactor expressions.
9545
9546 2002-04-16  Richard Henderson  <rth@redhat.com>
9547
9548         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
9549         * config/sparc/sol2-gas-bi.h: New file.
9550         * config.gcc (sparc*-solaris): Add it as needed.
9551         * configure.in (AS_SPARC64_FLAG): Remove check.
9552         * config.in, configure: Regenerate.
9553
9554         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
9555
9556 2002-04-16  Richard Henderson  <rth@redhat.com>
9557
9558         * config/mips/mips.c (override_options): Don't override N32 for
9559         a 64-bit ISA.
9560
9561         PR 6202
9562         * config/mips/mips.md (can_delay): Split out of existing define_delays.
9563         (HILO_delay): Set can_delay false.
9564
9565 2002-04-16  Dale Johannesen <dalej@apple.com>
9566
9567         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
9568         instruction addresses.
9569         (rs6000_output_function_epilogue): Likewise.
9570
9571 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
9572
9573         * c-parse.in (poplevel, compstmt_start,
9574         compstmt_primary_start): Add ending ';', in accordance
9575         with POSIX.
9576
9577 2002-04-16  Richard Henderson  <rth@redhat.com>
9578
9579         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
9580         Adjust tm_file order to get TARGET_DEFAULT set properly.
9581         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
9582         * doc/install.texi (sparc-solaris): Update.
9583
9584 2002-04-16  Dale Johannesen <dalej@apple.com>
9585
9586         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
9587         comparison operands do not match each other or if modes of
9588         conditions do not match result.
9589
9590 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
9591
9592         PR target/6305
9593         * config/s390/s390.md (mulsidi3): Set both subregs of the
9594         multiword register.
9595
9596 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
9597
9598         * config/rs6000/altivec.h (vec_addc): Type check.
9599
9600 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
9601
9602         PR middle-end/6279
9603         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
9604
9605         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
9606
9607 2002-04-15  Richard Henderson  <rth@redhat.com>
9608
9609         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
9610         call_really_used_regs too.
9611
9612 2002-04-15  Richard Henderson  <rth@redhat.com>
9613
9614         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
9615
9616 2002-04-15  David S. Miller  <davem@redhat.com>
9617
9618         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
9619         as being CLOBBERed.
9620
9621 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
9622
9623         PR c/6290
9624         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
9625         CONST_VECTOR is { 0, ... 0 }.
9626
9627 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
9628
9629         * doc/install.texi (Installing GCC: Configuration): Clarify
9630         the only supported ways to configure gcc.
9631
9632 2002-04-15  Roland McGrath  <roland@frob.com>
9633
9634         * config.gcc (alpha*-*-gnu*): New target configuration.
9635         * config/alpha/gnu.h: New file for it.
9636         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
9637
9638 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
9639
9640         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
9641         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
9642         * tree.h (expand_start_stmt_expr): Update prototype.
9643         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
9644         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
9645         on the STMT_EXPR created for the inline function.
9646
9647 2002-04-15  Richard Henderson  <rth@redhat.com>
9648
9649         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
9650         config/i386/linux-aout.h, config/i386/linux-oldld.h,
9651         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
9652         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
9653         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
9654         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
9655         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
9656         Define __gnu_linux__, not gnu_linux.
9657         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
9658
9659 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
9660
9661         Remove Chill front end.
9662         * gcc.c (default_compilers): Remove Chill entries.
9663         * ch: Remove directory.
9664         * doc/frontends.texi: Remove information about Chill.
9665         * doc/sourcebuild.texi: Likewise.
9666         * doc/standards.texi: Likewise.
9667
9668 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
9669
9670         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
9671         (LONGLONG_STANDALONE): Define.
9672
9673 2002-04-15  David S. Miller  <davem@redhat.com>
9674
9675         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
9676         Call emit_library_call with LCT_NORMAL.
9677         (sparc_initialize_trampoline): Use LCT_foo instead of
9678         magic constant in emit_library_call invocations.
9679         (sparc64_initialize_trampoline): Likewise.
9680         (sparc_profile_hook): Likewise.
9681         * config/sparc/sparc.md: Likewise.
9682
9683         * config/sparc/sparc.c (sparc_extra_constraint_check):
9684         Fix type of argument 'c'.
9685         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
9686         Likewise.
9687
9688 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
9689
9690         * diagnostic.h (output_buffer_state): Redefine.
9691         (output_format_decoder): New macro.
9692         (output_prefixing_rule): Likewise.
9693         (output_line_cutoff): Likewise.
9694         (diagnostic_format_decoder): Adjust.
9695         (diagnostic_prefixing_rule): Likewise.
9696         (diagnostic_line_cutoff): Likewise.
9697         (diagnostic_state): Likewise.
9698         (diagnostic_kind_count): Likewise.
9699         (diagnostic_buffer): Now a macro.
9700
9701         * diagnostic.c (diagnostic_buffer): Remove definition.
9702         (output_is_line_wrapping): Adjust.
9703         (set_real_maximum_length): Likewise.
9704         (output_set_maximum_length): Likewise.
9705         (init_output_buffer): Likewise.
9706         (lhd_print_error_function): Likewise.
9707         (output_do_verbatim): Likewise.
9708
9709 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
9710
9711         * cpperror.c (print_location): Don't print include chain
9712         if line == 0.
9713         (cpp_begin_message): Update to use DL_ macros.
9714         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9715         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9716         cpp_notice, cpp_notice_from_errno): Remove.
9717         (cpp_error, cpp_error_with_line): Update to take a diagnostic
9718         level.
9719         (cpp_errno): New.
9720         * cppexp.c (CPP_ICE): Remove.
9721         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
9722         lex, integer_overflow, _cpp_parse_expr): Update.
9723         * cppfiles.c (read_include_file, find_include_file,
9724         handle_missing_header, _cpp_read_file, remap_filename): Update.
9725         * cpphash.h (enum error_type): Remove.
9726         (_cpp_begin_message): Update.
9727         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
9728         cpp_handle_option, cpp_post_options): Update.
9729         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
9730         skip_whitespace, parse_identifier, parse_slow, parse_string,
9731         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
9732         cpp_interpret_charconst): Update.
9733         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
9734         lex_macro_node, do_undef, glue_header_name, parse_include,
9735         do_include_common, read_flag, do_line, do_linemarker, do_ident,
9736         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
9737         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
9738         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
9739         _cpp_pop_buffer, do_diagnostic): Update.
9740         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
9741         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
9742         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9743         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9744         cpp_notice, cpp_notice_from_errno): Remove.
9745         (cpp_error, cpp_error_with_line): Update to take a diagnostic
9746         level.
9747         (cpp_errno): New.
9748         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
9749         collect_args, enter_macro_context, save_parameter, parse_params,
9750         _cpp_create_definition, check_trad_stringification,
9751         cpp_macro_definition): Update.
9752         * cppmain.c (cpp_preprocess_file): Update.
9753         * fix-header.c (read_scan_file): Update.
9754
9755 2002-04-14  Andreas Schwab  <schwab@suse.de>
9756
9757         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
9758
9759 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9760
9761         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
9762
9763 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
9764
9765         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
9766         not gnu_hurd.
9767
9768 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
9769
9770         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
9771
9772 2002-04-13      Joel Sherrill <joel@OARcorp.com>
9773
9774         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
9775         sparc-elf and sparc-rtems targets.
9776
9777 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
9778
9779         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
9780         defined, and __gnu_hurd__ wherever __GNU__ is defined.
9781         * arm/linux-elf.h: Likewise.
9782         * cris/aout.h: Likewise.
9783         * cris/linux.h: Likewise.
9784         * i370/linux.h: Likewise.
9785         * i386/gnu.h: Likewise.
9786         * i386/linux-aout.h: Likewise.
9787         * i386/linux-oldld.h: Likewise.
9788         * i386/linux.h: Likewise.
9789         * i386/linux64.h: Likewise.
9790         * ia64/linux.h: Likewise.
9791         * m68k/linux-aout.h: Likewise.
9792         * m68k/linux.h: Likewise.
9793         * mips/linux.h: Likewise.
9794         * pa/pa-linux.h: Likewise.
9795         * pj/linux.h: Likewise.
9796         * rs6000/sysv4.h: Likewise.
9797         * s390/linux.h: Likewise.
9798         * sh/linux.h: Likewise.
9799         * sparc/linux-aout.h: Likewise.
9800         * sparc/linux.h: Likewise.
9801         * sparc/linux64.h: Likewise.
9802         * xtensa/linux.h: Likewise.
9803
9804 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
9805
9806         * stmt.c (check_unique_operand_names): Expect operand names to
9807         be strings rather than identifiers.  Use simple_cst_equal to
9808         compare them.
9809         (resolve_operand_name_1): Make same identifier to string change here.
9810         * c-parse.in (asm_operand): Convert a named operand into a string.
9811         * cp/parse.y (asm_operand): Likewise.
9812
9813 2002-04-13  Andreas Schwab  <schwab@suse.de>
9814
9815         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
9816
9817 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
9818
9819         Revert these changes:
9820
9821         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
9822
9823         PR c++/5571
9824         * stor-layout.c (layout_decl): Reset the RTL for the decl.
9825
9826 2002-04-12  Richard Henderson  <rth@redhat.com>
9827
9828         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
9829         (sparc*-*-solaris): Clean up header files.
9830         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
9831         and plan on generating 64-bit code.
9832         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
9833         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
9834         * config/sparc/sol2-sld-64.h: Rename ...
9835         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
9836         for AS_SPARC64_FLAG not defined.
9837         * config/sparc/sol2-gld-bi.h: New.
9838         * config/sparc/sol2-sld.h: Remove.
9839         * config/sparc/sol26-sld.h: New.
9840         * config/sparc/sol2.h: Tidy comments.
9841         * doc/install.texi: Document sparc-solaris configury changes.
9842
9843 2002-04-12  Richard Henderson  <rth@redhat.com>
9844
9845         * recog.c (offsettable_address_p): Match the logic in adjust_address.
9846
9847         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
9848         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
9849
9850 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9851
9852         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
9853
9854 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
9855
9856         * pa.c (pa_can_combine_p): Call extract_insn before calling
9857         constrain_operands.
9858
9859 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
9860
9861         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
9862         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
9863         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9864         (CPP_PREDEFINES): Handle __declspec.
9865         * config/i386/t-interix (USER_H): Remove.
9866
9867 2002-04-12  DJ Delorie  <dj@redhat.com>
9868
9869         * integrate.c (compare_blocks): Make comparisons safe for when
9870         sizeof(int) < sizeof(char *).
9871         (find_block): Likewise.
9872
9873 2002-04-12  Jan Hubicka  <jh@suse.cz>
9874             David Edelsohn  <edelsohn@gnu.org>
9875
9876         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
9877         registers.
9878         (symbol_ref_operand): New.
9879         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
9880         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
9881
9882 2002-04-12  Andreas Schwab  <schwab@suse.de>
9883
9884         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
9885         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
9886         overrides the definition in config/svr4.h.
9887
9888 2002-04-12      Eric Norum <eric.norum@usask.ca>
9889
9890         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
9891         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
9892         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
9893         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
9894         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
9895         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
9896         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
9897         definitions to config/rtems.h and make the targets more similar.
9898
9899 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9900
9901         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
9902         POINTERS_EXTEND_UNSIGNED.
9903         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
9904         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
9905
9906         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
9907         not specified.
9908
9909 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
9910
9911         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
9912         depends on TARGET_SHMEDIA, not TARGET_SH5.
9913
9914 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
9915
9916         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
9917         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
9918
9919 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
9920
9921         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
9922         no r0 clobber.
9923
9924 2002-04-12  Andreas Schwab  <schwab@suse.de>
9925
9926         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
9927
9928 2002-04-12  Richard Henderson  <rth@redhat.com>
9929
9930         PR bootstrap/4191
9931         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
9932
9933         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
9934         modes spanning multiple hard regs.
9935
9936         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
9937
9938 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9939
9940         * pa.c (pa_output_function_prologue): Don't accumulate the total
9941         number of code bytes when using TARGET_64BIT, or gas, SOM and not
9942         the portable runtime.
9943         (output_deferred_plabels): Handle 64bit plabels.
9944         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
9945         generating pic code using the GAS assembler for object formats that
9946         are not SOM (ie., ELF32 and ELF64).
9947         (output_millicode_call): Check attribute type if attribute length is 28.
9948         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
9949         dbr_sequence_length once.
9950         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
9951         dbr_sequence_length once.
9952         * pa.h (TARGET_SOM): Define if not defined.
9953         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
9954         with GAS and not SOM.
9955         (jump, call_internal_reg, call_value_internal_reg): Likewise.
9956         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
9957
9958 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9959
9960         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
9961         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
9962         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
9963         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
9964         elfos.h and dbxelf.h values are fine now.
9965         * config/i386/freebsd.h, config/alpha/freebsd.h
9966         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
9967
9968 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9969
9970         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
9971         or set Acpu or Amachine.  Reformat.
9972         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9973         define.
9974         (LINK_SPEC): Do not need to undef.
9975         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
9976         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
9977         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9978         define.
9979         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
9980         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
9981         (LINK_SPEC): Do not need to undef.
9982         (DONT_USE_BUILTIN_SETJMP): Do not define.
9983         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
9984         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
9985         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
9986         Remove trailing spaces.
9987         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
9988         __ELF__, or set Acpu or Amachine.  Reformat.
9989         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9990         define.
9991
9992 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
9993
9994         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
9995         all other *-*-freebsd* targets.
9996
9997 2002-04-11  Richard Henderson  <rth@redhat.com>
9998
9999         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
10000
10001 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
10002
10003         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
10004         Include {cpu}/{cpu}.h thru tm_file.
10005         (alpha*-*-linux*ecoff): Remove target.
10006         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
10007         (LINK_SPEC): Remove, is not OS independent.
10008         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
10009         (LINK_SPEC): Do not need to #undef any longer.
10010         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
10011         any longer.
10012         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
10013         __ELF__.
10014         (LINK_SPEC): Moved here from alpha/elf.h.
10015         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
10016         SUB_CPP_PREDEFINES.
10017         * config/alpha/linux-ecoff.h: Remove.
10018         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
10019         (CPP_SPEC): Define _POSIX_SOURCE as needed.
10020         (CPP_SUBTARGET_SPEC): Do not define.
10021         (LINK_SPEC): Do not need to #undef any longer.
10022         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
10023         * config/alpha/vms.h: Likewise.
10024
10025 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
10026
10027         * doc/extend.texi: Remove old claim that typedefs cannot have
10028         an alignment attribute.
10029
10030 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
10031
10032         PR optimization/6177
10033         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
10034         bitpos is 0 and bitsize CONCAT size.
10035
10036 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
10037
10038         PR c/6223
10039         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
10040
10041 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
10042
10043         * config/alpha/freebsd.h: Minor reformatting.
10044         (CPP_SPEC): Define ELF and add cpp_subtarget.
10045         (ASM_SPEC): No longer needed.
10046
10047 2002-04-11  Richard Henderson  <rth@redhat.com>
10048
10049         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
10050         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
10051         (dimode mem/zero splitter): New.
10052
10053 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
10054
10055         * config/cris/cris.c (cris_override_options): Tweak error message
10056         for PIC not implemented.
10057
10058         * config/cris/cris.h: Tweak comments related to parameter-passing.
10059
10060         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
10061
10062 2002-04-10  Richard Henderson  <rth@redhat.com>
10063
10064         * except.c (add_ehl_entry): Allow duplicates after landing pad
10065         creation.
10066
10067 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
10068
10069         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
10070
10071 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
10072
10073         * c-decl.c (c_init_decl_processing): Move generation of
10074         decls for g77_integer_type_node and friends from here ...
10075         * c-common.c (c_common_nodes_and_builtins): ... to here.
10076
10077 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
10078
10079         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
10080         is only used as frame pointer when frame_pointer_needed is true.
10081
10082 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
10083
10084         PR target/817
10085         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
10086         for the fact that the pool entry uses two words.
10087         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
10088         1k bytes.
10089         (movdf_soft_insn): Similarly.
10090         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
10091         for the fact that the pool entry uses three words.
10092
10093 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
10094
10095         * config/mips/mips.c (mips_va_arg): When using the struct version
10096         of the EABI va_list, allow arguments in the register save area to
10097         take up less room than a stack argument.
10098
10099 2002-04-10  Richard Henderson  <rth@redhat.com>
10100
10101         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
10102         if EXPAND_INITIALIZER.
10103
10104 2002-04-09  Richard Henderson  <rth@redhat.com>
10105
10106         * config/alpha/alpha.md (movdi_er_maybe_g): New.
10107         * config/alpha/alpha.c (alpha_expand_mov): Use it.
10108
10109 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
10110
10111         PR optimization/6233
10112         * rtlanal.c (pure_call_p): New function.
10113         * rtl.h (pure_call_p): Declare.
10114         * loop.c (prescan_loop): Use it to set has_nonconst_call.
10115         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
10116
10117 2002-04-09  Eric Christopher  <echristo@redhat.com>
10118
10119         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
10120         information to .comm directive.
10121
10122 2002-04-09  Richard Henderson  <rth@redhat.com>
10123
10124         PR c/5078
10125         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
10126
10127 2002-04-09  Richard Henderson  <rth@redhat.com>
10128
10129         * basic-block.h (flow_delete_block_noexpunge): Declare.
10130         (expunge_block_nocompact): Declare.
10131         * cfg.c (expunge_block_nocompact): Split out from ...
10132         (expunge_block): ... here.
10133         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
10134         (flow_delete_block_noexpunge): Split out from ...
10135         (flow_delete_block): ... here.
10136         * cfgcleanup.c (delete_unreachable_blocks): Compact while
10137         removing dead blocks.
10138         * except.c (exception_handler_labels): Remove.
10139         (exception_handler_label_map): New.
10140         (struct eh_region): Add aka member.
10141         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
10142         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
10143         (for_each_eh_label, for_each_eh_label_1): New.
10144         (init_eh): Register exception_handler_label_map.
10145         (free_eh_status): Use free_region.
10146         (find_exception_handler_labels): Use the map, not the list.
10147         (remove_exception_handler_label): Likewise.
10148         (maybe_remove_eh_handler): Likewise.
10149         (remove_eh_handler): Use the region aka bitmap.
10150         * except.h (exception_handler_labels): Remove.
10151         (for_each_eh_label): Declare.
10152         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
10153         * loop.c (invalidate_loops_containing_label): New.
10154         (find_and_verify_loops): Use it.  Use for_each_eh_label.
10155         * sched-rgn.c (is_cfg_nonregular): Use
10156         current_function_has_exception_handlers.
10157
10158 2002-04-09  Richard Henderson  <rth@redhat.com>
10159
10160         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
10161         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
10162         Do not return changed status.
10163         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
10164         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
10165         New functions that do return changed status.
10166         * sbitmap.h: Update decls.
10167         * gcse.c, lcm.c: Use _cg functions as needed.
10168
10169 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
10170
10171         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
10172         (sh64-*-elf*, sh-*-rtemself*): Likewise.
10173         * config/sh/embed_bb.c: New file.
10174         * config/sh/embed-elf.h: New file.
10175         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
10176         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
10177         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10178         __PTRDIFF_TYPE__ .
10179         (SUBTARGET_CPP_PTR_SPEC): Don't define.
10180         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
10181         Add subtarget_asm_endian_spec.
10182         (ASM_SPEC): Use subtarget_asm_endian_spec.
10183         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
10184         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
10185         (WCHAR_UNSIGNED): Define.
10186         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
10187         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10188         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
10189         Fix value.
10190         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
10191         (sh_adjust_cost): Likewise.
10192         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10193         __PTRDIFF_TYPE__ .
10194         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
10195         (WCHAR_TYPE_SIZE): Likewise.
10196         (ASM_SPEC): Use subtarget_asm_endian_spec.
10197         (SH_ELF_WCHAR_TYPE): #undef/ #define.
10198         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
10199         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
10200         (MAX_WCHAR_TYPE_SIZE): Don't #define .
10201         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
10202         (USER_LABEL_PREFIX): Don't #undef /#define .
10203         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10204         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
10205         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
10206         (ASM_SPEC): Likewise.
10207         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
10208         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
10209         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
10210         (LIB2FUNCS_EXTRA): Define.
10211         * t-sh64 (LIB2FUNCS_EXTRA): Define.
10212         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
10213         (LIB1ASMFUNCS_CACHE): Define.
10214         (LIB2FUNCS_EXTRA): Redefine empty.
10215
10216 2002-04-08  Richard Henderson  <rth@redhat.com>
10217
10218         * reorg.c (get_branch_condition): Use reversed_comparison_code.
10219
10220 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10221
10222         * config/m68hc11/larith.asm (__map_data_section): Fix condition
10223         and optimize for size.
10224         (__do_global_ctors): Fix pointer comparison.
10225         (__do_global_dtors): Likewise.
10226
10227 2002-04-09  David S. Miller  <davem@redhat.com>
10228
10229         * config/sparc/sparc.c (sparc_extra_constraint_check): New
10230         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
10231         allow reloading pseudos.
10232         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
10233         * config/sparc/sparc-protos.h: Declare it.
10234
10235         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
10236         unsigned comparison warning.
10237         (output_restore_regs): Mark leaf_function as unused.
10238
10239 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10240
10241         * expr.c (is_aligning_offset): New function.
10242         (expand_expr, case COMPONENT_EXPR): Call it.
10243
10244 2002-04-08  David S. Miller  <davem@redhat.com>
10245
10246         PR target/6082
10247         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
10248
10249         Make init_priority work on Sparc when using GNU ld.
10250         * config/sparc/linux.h, config/sparc/linux64.h,
10251         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
10252         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
10253         * config/sparc/sol2-gld.h: New file to do the same.
10254         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
10255         sparc/sol2-gld.h to tm_file.
10256
10257         PR optimization/4328
10258         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
10259         * doc/md.texi: Document it.
10260         * config/sparc/sparc.md (movdi_insn_sp64_novis,
10261         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
10262         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
10263         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
10264         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
10265
10266 2002-04-08  Andreas Jaeger  <aj@suse.de>
10267
10268         * stmt.c (expand_asm_operands): Revert last patch from Richard
10269         Henderson.
10270
10271 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10272
10273         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
10274         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
10275
10276 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10277
10278         * doc/contrib.texi (Contributors): Add David O'Brien.
10279
10280 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
10281
10282         * configure.in (auto-build.h): Use target_alias and build_alias
10283         when running configure.
10284         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
10285         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
10286         * configure: Regenerate.
10287
10288 2002-04-07  David S. Miller  <davem@redhat.com>
10289
10290         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
10291
10292 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10293
10294         PR 5933
10295         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
10296         generating 32-bit pic code.
10297
10298 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
10299
10300         * cppinit.c (cpp_create_reader): Initialize
10301         discard_comments_in_macro_exp.
10302         (COMMAND_LINE_OPTIONS): Add "-CC" option.
10303         (cpp_handle_option): Handle "-CC" option.
10304         * cpplex.c (save_comment): If saving a C++ comment in
10305         a directive, convert it to a C comment.
10306         (_cpp_lex_direct): Pass second comment start character to
10307         save_comment to indicate comment type.
10308         * cpplib.c (_cpp_handle_directive): If processing
10309         a "#define" directive and discard_comments_in_macro_exp
10310         is false,  re-enable saving of comments.
10311         (lex_macro_node): If discard_comments_in_macro_exp is false,
10312         discard any comments before the macro identifier.
10313         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
10314         member.
10315         * cppmacro.c (cpp_get_token): If expanding a macro while
10316         processing a directive, discard any comments we might encounter.
10317         (parse_params): If discard_comments_in_macro_exp is false,
10318         ignore comments in the macro parameter list.
10319         * gcc.c (cpp_unique_options): Add "-CC" option.
10320         (option_map): Map "--comments-in-macros" to "-CC".
10321         * doc/cppopts.texi: Document "-CC" option.
10322         * f/lang-specs.h: Add "-CC" option.
10323         * testsuite/gcc.dg/cpp/maccom1.c: New test.
10324         * testsuite/gcc.dg/cpp/maccom2.c: New test.
10325         * testsuite/gcc.dg/cpp/maccom3.c: New test.
10326         * testsuite/gcc.dg/cpp/maccom4.c: New test.
10327         * testsuite/gcc.dg/cpp/maccom5.c: New test.
10328         * testsuite/gcc.dg/cpp/maccom6.c: New test.
10329
10330 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10331
10332         PR middle-end/6180
10333         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
10334
10335 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
10336
10337         PR c++/5571
10338         * stor-layout.c (layout_decl): Reset the RTL for the decl.
10339
10340         PR opt/5120
10341         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
10342         RTX_UNCHANGING_P for the functions arguments when a tail call
10343         is made.
10344
10345 2002-04-06  Jason Merrill  <jason@redhat.com>
10346
10347         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
10348         (parse_options_and_default_flags): Set them appropriately.
10349         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
10350
10351 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
10352
10353         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
10354         here.
10355
10356         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
10357         semicolon.
10358
10359         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
10360         types come in by-reference.  Fix typo in comment.
10361
10362 2002-04-05  David S. Miller  <davem@redhat.com>
10363
10364         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
10365         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
10366         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
10367         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
10368
10369 2002-04-05  David S. Miller  <davem@redhat.com>
10370
10371         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
10372         are not going to emit return instructions, emit at least a nop
10373         for the sake of sane backtraces.
10374
10375 2002-04-05  Richard Henderson  <rth@redhat.com>
10376
10377         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
10378
10379 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
10380
10381         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
10382
10383 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
10384
10385         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
10386         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
10387         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
10388
10389 2002-04-05  Andreas Schwab  <schwab@suse.de>
10390
10391         * c-convert.c: Include c-common.h.
10392         * Makefile.in (c-convert.o): Updated.
10393
10394 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
10395
10396         * mklibgcc.in: Use separate libgcc.map for each multilib.
10397         * Makefile.in (distclean): Don't remove libgcc.map here.
10398
10399 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
10400
10401         * Makefile.in (s-mlib): Handle --disable-multilib by separate
10402         genmultilib invocation.
10403
10404 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
10405
10406         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
10407         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
10408         to num_gprs for symmetry.
10409         * config/mips/mips.c: Adjust accordingly.
10410
10411 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10412
10413         * c-common.c (truthvalue_conversion): Rename, update.
10414         * c-common.h (c_common_truthvalue_conversion): New.
10415         * c-convert.c (convert): Update.
10416         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10417         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
10418         * c-typeck.c (build_binary_op, build_unary_op,
10419         build_conditional_expr): Update.
10420         * fold-const.c (constant_boolean_node, fold): Use langhook.
10421         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
10422         * langhooks.h (struct lang_hooks): New hook.
10423         * stmt.c (expand_decl_cleanup): Use langhook.
10424         * tree.h (truthvalue_conversion): Remove.
10425 objc:
10426         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10427
10428 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
10429
10430         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
10431         Add rules to make null object file.
10432
10433 2002-04-04  Jim Blandy  <jimb@redhat.com>
10434
10435         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
10436         macro formal parameter names.
10437
10438 2002-04-04  David S. Miller  <davem@redhat.com>
10439
10440         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
10441
10442 2002-04-04  Richard Henderson  <rth@redhat.com>
10443
10444         PR middle-end/5099
10445         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
10446         Support copies into and out of memory.  Don't accept allows_reg
10447         and allows_mem as gospel.
10448
10449 2002-04-04  Richard Henderson  <rth@redhat.com>
10450
10451         PR opt/6165
10452         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
10453         (write_dependence_p): Likewise.
10454
10455 2002-04-04  Richard Henderson  <rth@redhat.com>
10456
10457         * predict.c (estimate_bb_frequencies): Do frequency calculation
10458         with a volatile temporary.
10459
10460 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
10461
10462         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
10463
10464 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10465
10466         PR c++/6119
10467         * final.c (final_start_function): Don't bump profile_label_no here...
10468         (final_end_function): ...but here.
10469
10470 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10471
10472         * config/sparc/sparc.md (pic): New attribute.
10473         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
10474         into stack slots.
10475         (split after do_builtin_setjmp_setup): New.
10476
10477 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10478
10479         PR fortran/6106
10480         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
10481         change.
10482
10483 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
10484
10485         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
10486         UNITS_PER_WORD for zero sized aggregates.
10487
10488 2002-04-03  David S. Miller  <davem@redhat.com>
10489
10490         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
10491         one-character spec for this, just use %(link_gcc_c_sequence).
10492
10493 2002-04-03  David S. Miller  <davem@redhat.com>
10494
10495         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
10496         handling.
10497
10498 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10499
10500         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
10501         (DWARF_FRAME_RETURN_COLUMN): Move.
10502         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10503         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
10504         * pa.c (except.h, predict.h): Include.
10505         (FRP): Delete.
10506         (store_reg_modify, set_reg_plus_d): Revise prototypes.
10507         (output_ascii): Add cast.
10508         (store_reg_modify): Revise to add frame notes.
10509         (set_reg_plus_d): Likewise.
10510         (compute_frame_size): Include space for eh data registers in frame if
10511         the current function calls eh_return.
10512         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
10513         function calls eh_return.  Save eh data registers if the current
10514         function calls eh_return.  Fix code to add frame notes.  Emit
10515         blockage to prevent insns with frame notes being scheduled in the
10516         delay slot of calls.
10517         (hppa_expand_epilogue): Restore eh data registers and do final stack
10518         adjustment if the current function calls eh_return.  Don't add frame
10519         notes.
10520         (output_call): Revise for change in length of call insn.  Don't do
10521         return pointer adjustment for an unconditional jump in the delay slot
10522         of a call when using frame notes.
10523         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
10524         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
10525         (ARG_POINTER_CFA_OFFSET): Define.
10526         * pa.md (return_external_pic): New pattern.
10527         (prologue): Correct formatting.  Use return_external_pic if current
10528         function calls eh_return.
10529         (call_internal_symref, call_value_internal_symref,
10530         sibcall_internal_symref, sibcall_value_internal_symref): Change default
10531         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
10532         respectively.
10533         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
10534
10535         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
10536         list of targets to check using "nop" insn.
10537         * configure: Rebuilt.
10538
10539 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
10540
10541         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
10542
10543 2002-04-03  David S. Miller  <davem@redhat.com>
10544
10545         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
10546         library sequence passed to the linker.
10547         (LINK_COMMAND_SPEC): Use it.
10548         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
10549         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
10550         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10551
10552 2002-04-03  Jason Merrill  <jason@redhat.com>
10553
10554         * except.c (struct eh_status): Remove protect_list.
10555         (begin_protect_partials, end_protect_partials): Remove.
10556         (add_partial_entry): Remove.
10557         * except.h: Remove prototypes.
10558
10559         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
10560         expand_decl_cleanup_eh.
10561
10562         PR c++/5636
10563         * tree.h (CLEANUP_EH_ONLY): New macro.
10564         * stmt.c (expand_decl_cleanup_eh): New fn.
10565         (expand_cleanups): Check CLEANUP_EH_ONLY.
10566         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
10567         Use expand_decl_cleanup_eh.
10568         (expand_stmt): Adjust.
10569         * c-common.h: Adjust prototype.
10570
10571 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
10572
10573         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
10574         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
10575         (cris_target_asm_function_epilogue): Ditto.
10576         (cris_initial_frame_pointer_offset): Ditto.
10577         (cris_simple_epilogue): Ditto.
10578         (cris_expand_builtin_va_arg): Variable-size types come in
10579         by-reference.
10580
10581 2002-04-03  David S. Miller  <davem@redhat.com>
10582
10583         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
10584         little-endian.
10585         (set_fast_math): Correct 'fsr' type.
10586
10587 2002-04-03  Richard Henderson  <rth@redhat.com>
10588
10589         PR opt/3569
10590         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
10591         * toplev.c (check_global_declarations): Use it.
10592         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
10593         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10594         (LANG_HOOKS_DECLS): Add it.
10595         * langhooks.c (lhd_warn_unused_global_decl): New.
10596         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10597         * c-objc-common.c (c_warn_unused_global_decl): New.
10598         * c-tree.h (c_warn_unused_global_decl): Declare.
10599         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10600
10601 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10602
10603         * langhooks-def.h (lhd_set_decl_assembler_name,
10604         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
10605         (LANG_HOOKS_INITIALIZER): Update.
10606         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
10607         * langhooks.h (struct lang_hooks): New hook.
10608         * tree.c (set_decl_assembler_name): Move to langhooks.c.
10609         (lang_set_decl_assembler_name): Remove.
10610         (init_obstacks): Don't set hook.
10611         (decl_assembler_name): New function.
10612         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
10613         (decl_assembler_name): New.
10614         (lang_set_decl_assembler_name): Remove.
10615
10616 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
10617
10618         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
10619         works properly with .hidden symbols.
10620         * configure: Rebuilt.
10621         * config.in: Rebuilt.
10622         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10623         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
10624         properly with .hidden symbols.
10625
10626 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
10627
10628         PR middle-end/6102
10629         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
10630         USE argument.
10631
10632 2002-04-03  Richard Henderson  <rth@redhat.com>
10633
10634         PR opt/4120
10635         * sched-rgn.c (sets_likely_spilled): New.
10636         (sets_likely_spilled_1): New.
10637         (add_branch_dependences): Use it.
10638
10639 2002-04-02  Richard Henderson  <rth@redhat.com>
10640
10641         PR opt/4311
10642         * loop.h (LOOP_FIRST_PASS): New.
10643         * loop.c (strength_reduce): Mind it when deciding to unroll.
10644         * toplev.c (rest_of_compilation): Set it.
10645
10646 2002-04-02  David S. Miller  <davem@redhat.com>
10647
10648         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
10649         mems_ok_for_ldd_peep when the order of the loads being examined
10650         is reversed.
10651         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
10652         existing comment to increase comprehension of this situation.
10653
10654 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
10655
10656         * config/sh/sh.md: Don't use union real_extract.
10657
10658 2002-04-02  Richard Henderson  <rth@redhat.com>
10659
10660         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
10661
10662 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
10663
10664         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
10665         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
10666         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
10667         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
10668         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
10669         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
10670         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
10671         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
10672         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
10673         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
10674         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
10675         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
10676         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
10677         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
10678         Include as many configury headers via tm_file as possible.  This
10679         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
10680         * config/openbsd-oldgas.h: New file.
10681         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
10682         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
10683         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
10684         config/i386/i386-coff.h, config/i386/i386-interix.h,
10685         config/i386/iscdbx.h, config/i386/linux-aout.h,
10686         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
10687         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
10688         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
10689         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
10690         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
10691         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
10692         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
10693         config/i386/vxi386.h: Do not directly include configury headers.
10694         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
10695         Directly include configury headers that are no longer automatically
10696         included by the above headers.
10697         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
10698         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
10699         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
10700         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
10701         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
10702         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
10703         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
10704         (TARGET_VERSION): Define.
10705         * config/i386/beos-elf.h, config/i386/freebsd.h,
10706         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
10707         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
10708         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
10709         config/i386/sco5.h, config/i386/sysv4.h
10710         (TARGET_VERSION): Do not need to protect.
10711         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
10712         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
10713         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
10714         config/i386/i386-interix.h, config/i386/linux-aout.h,
10715         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
10716         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
10717         (YES_UNDERSCORES): Do not define - not needed.
10718         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
10719         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10720         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
10721         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
10722         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10723         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
10724         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
10725         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
10726
10727 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
10728             Richard Henderson  <rth@redhat.com>
10729
10730         PR c/5484
10731         * function.c (assign_temp): Accept either type or decl argument.
10732         Detect variables whose size is too large to fit into an integer.
10733         * stmt.c (expand_decl): Pass the decl, not the type.
10734
10735 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
10736
10737         * protoize.c: Match include directory usage with cppdefault.c.
10738
10739 2002-04-03  Jeffrey A Law  (law@redhat.com)
10740             Hans-Peter Nilsson  <hp@bitrange.com>
10741
10742         * combine.c (simplify_comparison): Avoid narrowing a comparison
10743         with a paradoxical subreg when doing so would drop signficant bits.
10744
10745 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
10746
10747         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
10748         if POINTERS_EXTEND_UNSIGNED is defined.
10749
10750 2002-04-02  Richard Henderson  <rth@redhat.com>
10751
10752         PR opt/3967
10753         * local-alloc.c (contains_replace_regs): LO_SUM may contain
10754         replace regs.
10755
10756 2002-04-02  Richard Henderson  <rth@redhat.com>
10757
10758         * doc/standards.texi: Document required freestanding libc entry points.
10759
10760 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
10761
10762         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
10763         associated splitter.  Remove MQ constraint.
10764         (ctrdi_internal4): Correct CCmode clobber.
10765
10766 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10767
10768         * milli64.S ($$dyncall): New function.
10769         * t-linux (LIB1ASMFUNCS): Revise module list.
10770         (LIB1ASMSRC): Use pa/milli64.S.
10771
10772 2002-04-02  Richard Henderson  <rth@redhat.com>
10773
10774         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
10775         rename solaris_sys_varargs_h.
10776
10777 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10778
10779         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
10780         the same mode as its component.
10781
10782 2002-04-02  Richard Henderson  <rth@redhat.com>
10783
10784         PR opt/190
10785         * final.c (this_is_asm_operands): Export.
10786         * output.h (this_is_asm_operands): Declare.
10787         * config/i386/i386.c (print_operand): Error odd asm operands.
10788
10789 2002-04-02  Richard Henderson  <rth@redhat.com>
10790
10791         PR opt/420
10792         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
10793
10794 2002-04-01  Richard Henderson  <rth@redhat.com>
10795
10796         PR target/1538
10797         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
10798         * fixinc/fixincl.x: Rebuild.
10799
10800 2002-04-01  Richard Henderson  <rth@redhat.com>
10801
10802         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
10803         (atomic_alloc, atomic_free): New.
10804         (SIZE, MASK_FOR, PTR_IN): New.
10805         (emergency_reg_state, emergency_reg_state_free): New.
10806         (emergency_labeled_state, emergency_labeled_state_free): New.
10807         (reg_state_alloced, labeled_state_alloced): New.
10808         (alloc_reg_state, free_reg_state): New.
10809         (alloc_label_state, free_label_state, free_label_states): New.
10810         (push, pop, dup_state_stack, free_state_stack): Use them.
10811         (desc_label_state): Likewise.
10812         (uw_frame_state_for): Free label states and state stack.
10813         (uw_update_reg_address): Eliminate warnings.
10814
10815 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
10816
10817         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
10818         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
10819
10820 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10821
10822         * c-decl.c (grokdeclarator): Update.
10823         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10824         * c-tree.h (c_mark_addressable): New.
10825         * c-typeck.c (default_function_array_conversion, build_unary_op,
10826         build_array_ref, convert_for_assignment): Update.
10827         (mark_addressable): Rename.
10828         * calls.c (try_to_integrate, expand_call): Use langhook.
10829         * expr.c (expand_expr): Use langhook.
10830         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
10831         * langhooks.h (struct lang_hooks): New hook.
10832         * stmt.c (expand_asm_operands): Use langhook.
10833         * tree.h (mark_addressable): Remove.
10834 objc:
10835         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10836
10837 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
10838
10839         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
10840         in previous change.
10841
10842 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
10843
10844         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
10845         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
10846
10847 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10848
10849         * c-common.c (unsigned_conversion_warning, convert_and_check,
10850         unsigned_type, signed_type, shorten_compare,
10851         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
10852         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
10853         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
10854         New.
10855         * c-decl.c (grokdeclarator): Update.
10856         * c-format.c (check_format_types): Update.
10857         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10858         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10859         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
10860         * convert.c (convert_to_integer): Use new hooks.
10861         * expmed.c (make_tree): Use new hooks.
10862         * expr.c (store_expr): Use new hooks.
10863         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
10864         all_ones_mask_p, unextend, fold): Use new hooks.
10865         * langhooks.h (struct lang_hooks_for_types): New hooks.
10866         * tree.h (signed_or_unsigned_type, signed_type,
10867         unsigned_type): Remove.
10868 objc:
10869         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10870         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10871
10872 2002-03-31  Richard Henderson  <rth@redhat.com>
10873
10874         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
10875         (desc_frgr_mem): Fix reference to f16-f31.
10876
10877 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10878
10879         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
10880         RTVEC_ELT): Const-ify.
10881         * varray.h (VARRAY_CHECK): Const-ify.
10882         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
10883         ggc_mark_rtvec, ggc_mark): Const-ify.
10884
10885 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10886
10887         * diagnostic.c: Include langhooks-def.h.
10888         * Makefile.in (diagnostic.o): Update.
10889
10890 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10891
10892         * c-common.c (c_unsafe_for_reeval): Rename.
10893         * c-common.h (c_unsafe_for_reeval): Rename.
10894         * c-decl.c (finish_incomplete_decl): Rename.
10895         (c_init_decl_processing): Don't set langhook.
10896         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10897         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10898         * c-objc-common.c (c_objc_common_init): Don't set langhook.
10899         * c-tree.h (finish_incomplete_decl): Rename.
10900         * langhooks-def.h (lhd_unsafe_for_reeval): New.
10901         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
10902         (LANG_HOOKS_INITIALIZER): Update.
10903         * langhooks.c (lhd_unsafe_For_reeval): New.
10904         * langhooks.h (struct langhooks): New hooks.
10905         * toplev.c (incomplete_decl_finalize_hook): Remove.
10906         (wrapup_global_declarations): Update.
10907         * tree.c (lang_unsafe_for_reeval): Remove.
10908         (unsafe_for_reeval): Update.
10909         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
10910         Remove.
10911 objc:
10912         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10913         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10914
10915 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10916
10917         * diagnostic.c (print_error_function): Remove.
10918         (default_print_error_function): Rename.
10919         (report_error_function): Update.
10920         * diagnostic.h (print_error_function): Remove.
10921         (default_print_error_function): Remove.
10922         * langhooks-def.h (struct diagnostic_context): Predeclare.
10923         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
10924         (LANG_HOOKS_INITIALIZER): Update.
10925         * langhooks.h (struct diagnostic context): Predeclare.
10926         (struct lang_hooks): New hook.
10927
10928 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10929
10930         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
10931         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
10932         !flag_pic.
10933         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
10934         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
10935         of PIC_OFFSET_TABLE_REGNUM thruout.
10936         * config/rs6000/rs6000.md: Likewise.
10937         * config/rs6000/darwin.h: Likewise.
10938
10939 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10940
10941         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
10942         unsigned HOST_WIDE_INT, not unsigned int.
10943
10944 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10945
10946         PR middle-end/6096, middle-end/6098, middle-end/6099
10947         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
10948         CODE_LABELs.
10949         (fill_slots_from_thread): Likewise.
10950
10951 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10952
10953         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
10954         floating fields in float regs.
10955         (function_arg_record_value_2): Likewise.
10956
10957 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
10958
10959         * config/mmix/mmix.md (define_constants): Remove misleading
10960         FIXME.  Add MMIX_fp_rO_OFFSET.
10961         ("nonlocal_goto_receiver"): Don't have stack-frame address of
10962         saved rO as part of the pattern.  Remove FIXME.
10963         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
10964         here, at output-time.
10965
10966 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
10967
10968         PR middle-end/6100
10969         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
10970         REG_BR_PRED.
10971         (output_v9branch): Likewise.
10972
10973 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
10974
10975         * gcc.c: Revert previous patch for now.
10976         * config/i386/djgpp.h: Likewise.
10977
10978 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
10979
10980         * config/mmix/crti.asm (_init): Register _fini with atexit.
10981         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
10982
10983 2002-03-31  Richard Henderson  <rth@redhat.com>
10984
10985         PR target/3997
10986         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
10987         (ASM_OUTPUT_DEF_FROM_DECLS): New.
10988
10989 2002-03-31  Richard Henderson  <rth@redhat.com>
10990
10991         * libgcc2.c (__bb_exit_func): Make static.
10992
10993         * config/alpha/alpha.md (trap): New.
10994
10995 2002-03-31  Richard Henderson  <rth@redhat.com>
10996
10997         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
10998         promoted argument types; build trap.
10999         (expand_builtin_trap): New.
11000         (expand_builtin): Use it.
11001         * stmt.c (expand_nl_goto_receivers): Likewise.
11002         * expr.h (expand_builtin_trap): Declare.
11003         * libfuncs.h (LTI_abort, abort_libfunc): New.
11004         * optabs.c (init_optabs): Init abort_libfunc.
11005
11006 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
11007
11008         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
11009         (LINK_COMMAND_SPEC): ... from here.
11010         (init_gcc_specs): Duplicate it here too, omitting
11011         shared_name in the second copy.
11012         (init_spec): Test for duplicate
11013         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
11014
11015 2002-03-30  David S. Miller  <davem@redhat.com>
11016
11017         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11018         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
11019
11020 2002-03-30  Roger Sayle <roger@eyesopen.com>
11021             Richard Henderson  <rth@redhat.com>
11022
11023         * regmove.c (combine_stack_adjustments_for_block): Avoid
11024         emitting a stack adjustment of zero bytes.  Let delete_insn
11025         update bb->head.
11026
11027 2002-03-30  Richard Henderson  <rth@redhat.com>
11028
11029         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
11030         (sparc_emitting_epilogue): New.
11031         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
11032         * config/sparc/sparc-protos.h: Update.
11033         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
11034         (TARGET_SWITCHES): Update.
11035         * config/sparc/sparc.md (return): Remove.
11036         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
11037         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
11038         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
11039         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11040         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
11041         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
11042         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
11043         Remove MASK_EPILOGUE.
11044         * doc/invoke.texi: Update.
11045
11046 2002-03-30  Daniel Berlin  <dan@dberlin.org>
11047
11048         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
11049         CPP will start the file for us.
11050
11051 2002-03-30  Richard Henderson  <rth@redhat.com>
11052
11053         PR target/5446
11054         * config/ia64/ia64.c (group_barrier_needed_p): Special case
11055         prologue_allocate_stack.
11056         (ia64_single_set): Use insn codes for recognition of special
11057         cases, not rtl matching.
11058         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
11059
11060 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
11061
11062         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
11063
11064 2002-03-30  Richard Henderson  <rth@redhat.com>
11065
11066         PR target/6032
11067         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
11068         or -fomit-frame-pointer with profiling.
11069         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11070         (FUNCTION_PROFILER): Do nothing.
11071         (PROFILE_HOOK): New.
11072         * config/sparc/sparc.c (sparc_override_options): Don't check
11073         code models for profiling.
11074         (sparc_function_profiler): Remove.
11075         (sparc_profile_hook): New.
11076         * config/sparc/sparc-protos.h: Update.
11077
11078 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
11079
11080         PR optimization/6086
11081         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
11082         of SUBREG of volatile MEM or because the MEM was mode dependent,
11083         return CLOBBER instead of unmodified SUBREG.
11084
11085 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
11086
11087         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
11088         when not optimizing.
11089
11090         * toplev.c (rest_of_compilation): Cann mark_constant_function
11091         only when optimizing.
11092
11093         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
11094         are NULL.
11095
11096         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
11097         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
11098         (try_optimize_cfg): clear all AUX fields.
11099
11100         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
11101         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
11102         (ix86_address_cost): Be prepared for SUBREGed registers.
11103         (legitimate_address_p): Accept SUBREGed registers.
11104
11105 2002-03-29  Richard Henderson  <rth@redhat.com>
11106
11107         PR target/5672
11108         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
11109
11110 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11111
11112         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
11113         for aggregate and TFmode types.
11114
11115 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
11116
11117         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
11118
11119 2002-03-29  Richard Henderson  <rth@redhat.com>
11120
11121         PR target/5886
11122         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
11123         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
11124
11125 2002-03-29  Richard Henderson  <rth@redhat.com>
11126
11127         PR target/6041
11128         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
11129         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
11130         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
11131         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
11132         conditional.
11133         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
11134
11135 2002-03-29  Dale Johannesen <dalej@apple.com>
11136
11137         * loop.c (combine_movables): Do allow combination of pseudos.
11138
11139 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
11140
11141         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
11142         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
11143         No functional change except ...
11144         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
11145         * doc/install.texi (*-*-freebsd*): Document port configuration.
11146
11147 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11148
11149         * Makefile.in (convert.o, calls.o, expmed.o): Update.
11150         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
11151         Use new hooks.
11152         * builtin-types.def (BT_PTRMODE): Update.
11153         * c-common.c (type_for_size): Rename c_common_type_for_size.
11154         (type_for_mode): Similarly.
11155         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
11156         Use new hook.
11157         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
11158         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
11159         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
11160         Redefine.
11161         * c-typeck.c (common_type, comptypes, default_conversion):
11162         Use new hooks.
11163         * calls.c: Include langhooks.h.
11164         (emit_library_call_value_1): Use new hooks.  Avoid redundant
11165         calls.
11166         * convert.c: Include langhooks.h
11167         (convert_to_pointer, convert_to_integer): Use new hooks.
11168         * except.c (init_eh): Similarly.
11169         * expmed.c: Include langhooks.h.
11170         (expand_mult_add): Use new hooks.
11171         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
11172         try_casesi): Similarly.
11173         * fold-const.c (optimize_bit_field_compare, make_range,
11174         decode_field_reference, fold_truthop, fold): Similarly.
11175         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
11176         put_var_into_stack): Similarly.
11177         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
11178         LANG_HOOKS_TYPE_FOR_SIZE): New.
11179         (LANG_HOOKS_TYPES_INITIALIZER): Update.
11180         * langhooks.h (lang_hooks_for_types): New hooks.
11181         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
11182         * tree.c (get_unwidened, get_narrower): Similarly.
11183         * tree.h (type_for_mode, type_for_size): Remove.
11184         * varasm.c (force_const_mem): Use new hooks.
11185         * utils2.c (nonbinary_modular_operation): Update.
11186 objc:
11187         * objc-act.c (handle_impent): Update.
11188         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
11189         Redefine.
11190
11191 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
11192
11193         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
11194         * config/ia64/ia64.c (basereg_operand): New.
11195         * config/ia64/ia64-protos.h (basereg_operand): Declare.
11196         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
11197
11198 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
11199
11200         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
11201         unwind information when frame_pointer_needed.
11202         (mmix_assemble_integer): Tweak wording in comment.
11203
11204 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11205
11206         * Makefile.in (except.o): Update.
11207         * except.c: Include langhooks.h.
11208         (init_eh): Use langhook.
11209         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
11210         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
11211         (LANG_HOOKS_INITIALIZER): Update.
11212         * langhooks.h (lang_hooks_for_types): New.
11213         (struct lang_hooks): Add it.
11214         * tree.c (make_lang_type_fn, make_lang_type): Remove.
11215         * tree.h (make_lang_type_fn, make_lang_type): Remove.
11216 config:
11217         * alpha/alpha.c: Include langhooks.h.
11218         (alpha_build_va_list): Use langhook.
11219         * d30v/d30v.c: Include langhooks.h.
11220         (d30v_build_va_list): Use langhook.
11221         * i386/i386.c: Include langhooks.h.
11222         (ix86_build_va_list): Use langhook.
11223         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
11224         * s390/s390.c: Include langhooks.h.
11225         (s390_build_va_list): Use langhook.
11226         * stormy16/stormy16.c: Include langhooks.h.
11227         (stormy16_build_va_list): Use langhook.
11228
11229 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
11230
11231         PR c++/5964
11232         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
11233         attributes.
11234         (length): Compute variable length for branches/calls/jumps here.
11235         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
11236         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
11237         define branch_type attribute.
11238         (divsi3_sp32): Maximum length is 6 not 7.
11239         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
11240         call_address_untyped_struct_value_sp32,
11241         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
11242         * config/sparc/sparc.c (empty_delay_slot): New function.
11243         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
11244         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
11245
11246 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
11247
11248         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
11249         nonzero_bits if not needed.
11250         (nonzero_bits) [XOR]: Likewise.
11251         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
11252         reg_last_set_mode and mode are both MODE_INT, but not equal.
11253         (record_value_for_reg): Compute reg_last_set_nonzero_bits
11254         in nonzero_bits_mode for MODE_INT modes.
11255
11256 2002-03-28  Richard Henderson  <rth@redhat.com>
11257
11258         PR target/5715
11259         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
11260         to GAS.  Correct drift between alternatives.
11261
11262 2002-03-28  Richard Henderson  <rth@redhat.com>
11263
11264         PR target/6087
11265         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
11266
11267 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
11268
11269         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
11270         emulation to the linker.
11271
11272 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
11273
11274         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
11275         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
11276
11277 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
11278
11279         * combine.c (simplify_and_const_int): Make sure to apply mask
11280         when force_to_mode returns a constant integer.  PR3311.
11281
11282 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11283
11284         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
11285
11286 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11287
11288         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
11289         and Objective-C Dialect Options.
11290
11291 2002-03-28  Richard Henderson  <rth@redhat.com>
11292
11293         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
11294         comparison should be done vs !=0 not >0 return code.  Tidy cases.
11295
11296 2002-03-28  Richard Henderson  <rth@redhat.com>
11297
11298         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
11299         on to c_expand_body.
11300         * c-tree.h (finish_function): Update decl.
11301         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
11302
11303 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11304
11305         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
11306
11307 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
11308
11309         * rtlanal.c: Include flags.h
11310         (may_trap_p): Do not mark FP operations if trapping
11311         if !flag_trapping_math
11312         * Makefile.in (rtlanal.o): Add dependency on flag.h
11313         * ifcvt.c (noce_operand_ok): Avoid the lameness.
11314
11315 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
11316
11317         * mips.md: Use dconst1, not 1.0, as first argument of
11318         REAL_VALUE_LDEXP.  Don't use union real_extract.
11319
11320 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
11321
11322         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
11323         rather than $target.  Heed program_prefix and
11324         program_transform_name.  Search for gas in cross-compiler case too.
11325         "test -x" rather than "test -f".
11326         (gcc_cv_ld): Likewise.
11327         (gcc_cv_nm): Heed program_prefix and program_transform_name.
11328         (gcc_cv_objdump): Likewise.
11329         * configure: Regenerate.
11330
11331 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11332
11333         * Makefile.in (attribs.o): Update.
11334         * attribs.c: Include langhooks.h.
11335         (decl_attributes): Use langhook.
11336         * c-decl.c (insert_default_attributes): Rename.
11337         * c-tree.h (c_insert_default_attributes): New.
11338         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
11339         (LANG_HOOKS_INITIALIZER): Update.
11340         * langhooks.h (struct lang_hooks): New hook.
11341         * tree.h (insert_default_attributes): Remove.
11342 objc:
11343         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
11344
11345 2002-03-27  Andreas Schwab  <schwab@suse.de>
11346
11347         * config/i386/i386.c (classify_argument): Also check for
11348         QUAL_UNION_TYPE.
11349
11350 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11351
11352         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
11353         any more.
11354
11355 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11356
11357         * i960.md (ret): Set PC.
11358         (nonlocal_goto): Fix expander.
11359         * builtins.c (epxand_builin_longjmp): Check that we've emitted
11360         some jump or call.
11361
11362 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
11363
11364         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
11365         of libcall regions.
11366
11367 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11368
11369         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
11370         assigning to BLOCK_FOR_INSN directly.
11371
11372 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
11373
11374         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
11375
11376 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11377
11378         * c-common.c (c_expand_expr): Fix prototype.
11379         * c-common.h (c_expand_expr): Always declare, update.
11380         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11381         * c-objc-common.c (c_objc_common_init): No global hook.
11382         * expr.c (expand_expr): Use langhook.
11383         * expr.h (enum expand_modifier): Conditionally declare.
11384         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
11385         (LANG_HOOKS_INITIALIZER): Update.
11386         * langhooks.c (lhd_expand_expr): New.
11387         * langhooks.h (struct lang_hooks): New hook.
11388         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
11389         (lang_independent_init): Don't default hook.
11390 objc:
11391         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11392
11393 2002-03-27  Richard Henderson  <rth@redhat.com>
11394
11395         PR target/6054
11396         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
11397         TARGET_CONST_GP.  Simplify conditions.
11398
11399 2002-03-27  Richard Henderson  <rth@redhat.com>
11400
11401         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11402         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
11403         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
11404
11405 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
11406
11407         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
11408         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
11409         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
11410         Remove unnecessary masks.
11411         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
11412         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
11413         -mwindows, -mdll switches and their negations.
11414
11415 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11416
11417         * gcc-common.c (lang_mark_false_label_stack): Remove.
11418         * ggc.h (lang_mark_false_label_stack): Similarly.
11419
11420 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
11421
11422         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
11423
11424         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
11425         or __rtems_ is defined.
11426
11427 2002-03-26  Richard Henderson  <rth@redhat.com>
11428
11429         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
11430         if a non-trivial load was emitted.
11431         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
11432         in high+extra+low case.
11433
11434 2002-03-26  Richard Henderson  <rth@redhat.com>
11435
11436         * config.gcc (sparc*-solaris): Use float_format=sparc.
11437
11438 2002-03-26  Richard Henderson  <rth@redhat.com>
11439
11440         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11441         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
11442         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
11443         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
11444         (WINT_TYPE_SIZE): Fix at 32.
11445
11446 2002-03-26  Richard Henderson  <rth@redhat.com>
11447
11448         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
11449         until after eh landing pad generation.
11450         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
11451         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
11452
11453 2002-03-26  Richard Henderson  <rth@redhat.com>
11454
11455         * expr.h (ADD_PARM_SIZE): One more convert for INC.
11456
11457 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
11458
11459         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
11460         and warning switches.
11461         (cc1_options):  Likewise.
11462
11463 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
11464
11465         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
11466         Restore more of the signal context.  Set no_reg_stack_frame.
11467         * config/ia64/unwind-ia64.c (unw_state_record):
11468         Add no_reg_stack_frame, comments.
11469         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
11470         (uw_update_context): Adjust bsp when unwinding from leaf,
11471         but not signal frame.
11472
11473 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
11474
11475         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
11476
11477 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
11478
11479         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
11480
11481 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
11482
11483         PR target/5621
11484         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
11485         "Add a pool_range attribute", which was lost during the ARM/Thumb
11486         merge.
11487
11488 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
11489
11490         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
11491         a register into the MAC16 accumulator.
11492
11493 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
11494
11495         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
11496         (Warning Options): Document -Wswitch-enum.
11497         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
11498         -Wswitch.
11499         (warn_switch_enum): Define variables.
11500         * flags.h (warn_switch_enum): Declare variables.
11501         * stmt.c (expand_end_case_type): When warn_switch_enum /
11502         -Wswitch-enum, perform switch checks.
11503         Fix PR c/5044.
11504
11505 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
11506
11507         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
11508         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
11509         (reload_muladdsi_compare0_scratch): Delete.
11510
11511 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
11512
11513         * doc/install.texi (*-*-freebsd*): Update.
11514
11515 2002-03-26  Richard Henderson  <rth@redhat.com>
11516
11517         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
11518         (SUB_PARM_SIZE): Cast DEC to ssizetype.
11519
11520         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
11521         types from the normal argument frame.
11522
11523         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
11524         variable sized objects by reference.
11525         (sparc_va_arg): Receive them by reference too.
11526
11527 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
11528
11529         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
11530         code to not restoring global registers.
11531
11532 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
11533
11534         * Makefile.in (ggc-common.o): Update.
11535         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
11536         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11537         * c-tree.h (c_mark_tree): New.
11538         * ggc-common.c: Include langhooks.h.
11539         (gcc_mark_trees): Use new langhook.
11540         * ggc-callbacks.c: Delete file.
11541         * ggc.h (lang_mark_tree): Remove.
11542         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
11543         (LANG_HOOKS_INITIALIZER): Update.
11544         * langhooks.h (struct lang_hooks): New hook.
11545 objc:
11546         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11547
11548 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
11549
11550         * doc/cpp.texi: Exclude entire Top node from printed manual.
11551         Move option index after directive index.  Insert page breaks
11552         before GFDL and concept index.  Index environment variables
11553         with command line options.
11554         * doc/cppenv.texi: Use @vtable for environment variable list.
11555         Add paragraph explaining semantics of empty elements in path
11556         variables.  Exclude a cross-reference to Fishkill from the
11557         manpage.  Remove an unnecessary cross-reference of the entry
11558         right above the referer.  Don't use @anchor in text that goes
11559         into manpage.
11560         * doc/cppopts.texi: Cross-reference the environment variables
11561         section, not the specific environment variable, for consistency.
11562
11563 2002-03-25  Richard Henderson  <rth@redhat.com>
11564
11565         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
11566         anywhere in the block.  Don't refer to insns that have been
11567         removed from the chain.  Iterate backward through the new insns.
11568         Don't refer to edges that have been removed.
11569
11570 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
11571
11572         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
11573         test for overflow of constant.
11574
11575 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
11576
11577         PR target/2623
11578         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
11579         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
11580         these patterns on arm_archv4.
11581
11582 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
11583
11584         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
11585         int".
11586
11587 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
11588
11589         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
11590         float_handled, float_handler, float_signal, set_float_handler,
11591         and do_float_handler.  Set handler for SIGFPE to crash_signal.
11592         * toplev.h: Don't prototype do_float_handler.
11593
11594         * c-lex.c: Fold parse_float into lex_number.  Make warning
11595         about portability of hex float constants more informative, and
11596         don't issue it on top of a syntax error.
11597         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
11598         their callers.
11599         * real.h: Define REAL_VALUE_ABS here...
11600         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
11601         simplify_unary_real, simplify_binary_real, and
11602         simplify_binary_is2orm1 into their callers.
11603         * tree.c: Fold build_real_from_int_cst_1 into caller.
11604
11605         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
11606
11607         * tsystem.h: Include float.h here...
11608         * libgcc2.c: ... not here.
11609
11610 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
11611
11612         Fixes for: PR bootstrap/3591, target/5676
11613         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
11614         defined.  Do not disable exceptions or rtti.
11615         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
11616         mcore.h.  Disable exceptions and rtti, since they are not
11617         supported by EPOC.
11618
11619 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11620
11621         * c-decl.c (maybe_build_cleanup): Remove.
11622         * expr.c (expand_expr): Use langhook.
11623         * langhooks-def.h (lhd_return_null_tree,
11624         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
11625         (LANGHOOKS_INITIALIZER): Update.
11626         * langhooks.c (lhd_return_null_tree): New.
11627         * langhooks.h (struct lang_hooks): New hook.
11628         * tree-inline.c (initialize_inlined_parameters): Use langhook.
11629         * tree.h (maybe_build_cleanup): Remove.
11630
11631 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
11632
11633         * regrename.c (build_def_use): Move recog_memoized
11634         before extract_insn.
11635
11636 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
11637
11638         PR target/6043
11639         * expr.c (emit_group_store): Handle storing into CONCAT.
11640
11641 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
11642
11643         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
11644         corresponding MATCH_DUP.
11645
11646 2002-03-24  Richard Henderson  <rth@redhat.com>
11647
11648         * unroll.c (unroll_loop): Zero label_map.
11649
11650         * gcse.c: Include except.h.
11651         * Makefile.in (gcse.o): Update.
11652
11653 2002-03-24  Richard Henderson  <rth@redhat.com>
11654
11655         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
11656         Do resolve_unique_section before shared data clause.
11657
11658 2002-03-24  Richard Henderson  <rth@redhat.com>
11659
11660         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
11661
11662 2002-03-24  Richard Henderson  <rth@redhat.com>
11663
11664         * recog.c (peephole2_optimize): Split blocks when EH insns are
11665         generated in the middle of a block.  Do global life update if
11666         zapped EH edges.
11667
11668 2002-03-24  Richard Henderson  <rth@redhat.com>
11669
11670         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
11671
11672 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11673
11674         preprocessor/3951
11675         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
11676         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
11677         (init_dependency_output): Don't make no_output decision here.
11678
11679 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
11680
11681         * stmt.c (check_for_full_enumeration_handling): Remove tests of
11682         warn_switch.  Update description.
11683         (expand_end_case_type): Call check_for_full_enumeration_handling
11684         when warn_switch.
11685
11686 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11687
11688         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
11689         (m68hc11_split_move): Call it to see if the source and destination
11690         operands use the same direction auto inc/dec mode, otherwise make the
11691         source an offsetable memory operand and generate an add.
11692
11693 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11694
11695         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
11696         register for operand 2.
11697         ("*subsi3_zero_extendqi"): Likewise.
11698         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
11699         bits so that it is compatible with a pop.
11700         ("*andhi3_gen"): Likewise.
11701         ("xorhi3"): Likewise.
11702
11703 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11704
11705         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
11706         -pedantic here...
11707         (cpp_post_options): ... not here.
11708
11709 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11710             Aldy Hernandez  <aldyh@redhat.com>
11711
11712         Removal of separate preprocessor cpp0.
11713
11714         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
11715         cpp0, install-common): Update.
11716         * c-common.c (flag_preprocess_only): New.
11717         (c_common_init): Preprocess for -E.
11718         * c-common.h (flag_preprocess_only): New.
11719         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
11720         * c-objc-common.c (c_init_decl_processing): Exit quickly
11721         for NULL return from c_common_init.
11722         * cpplib.h (cpp_preprocess_file): New.
11723         * cppmain.c (main, general_init, pfile, progname): Remove.
11724         (do_preprocessing): Rename cpp_preprocess_file, don't call
11725         cpp_finish.  Don't close stdout here.
11726         (setup_callbacks): Update prototype.
11727         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
11728         Update.
11729         * tradcpp.c (main): Ignore -quiet.
11730 objc:
11731         * lang-specs.h (default_compilers): Preprocess with cc1obj.
11732
11733 2002-03-24  Richard Henderson  <rth@redhat.com>
11734
11735         PR optimization/5742
11736         * machmode.def: Add inner mode field to complex modes.
11737         * config/mips/mips.c (mips_function_value): Always define.  Add
11738         new argument to handle libcalls.
11739         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
11740         (FUNCTION_VALUE): Likewise.
11741         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
11742         * config/mips/mips-protos.h: Update.
11743
11744 2002-03-23  Richard Henderson  <rth@redhat.com>
11745
11746         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
11747         * config/sparc/sparc-protos.h: Update.
11748         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
11749
11750 2002-03-23  Richard Henderson  <rth@redhat.com>
11751
11752         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
11753         _start or _init begins the text segment.
11754
11755 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
11756
11757         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
11758         not HOST_WIDEST_INT.
11759         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
11760
11761 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
11762
11763         PR java/5489
11764         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
11765         operand argument to output_return_instruction.
11766         * arm.c (arm_print_operand, case 'd'): If the operand is
11767         const_true_rtx then just return.
11768         (arm_print_operand, case 'D'): If the operand is const_true_rtx
11769         then abort.
11770
11771 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
11772
11773         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
11774         (Warning Options): Document -Wswitch-default.
11775         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
11776         -Wswitch.
11777         (warn_switch_default): Define variable.
11778         (warn_switch): Update comment.
11779         * flags.h (warn_switch_default): Declare variable.
11780         (warn_switch): Update comment.
11781         * stmt.c (expand_end_case): Check for and, when
11782         warn_switch_no_default, warn of a missing default case.
11783
11784 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
11785
11786         * real.h (N): Special case 128 bit doubles.
11787
11788         * combine.c (simplify_comparison): When widening modes, ignore
11789         sign extension on CONST_INTs.
11790
11791 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
11792
11793         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
11794         passed to adjust_address.  Fix comment formatting.
11795
11796
11797 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
11798
11799         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
11800         Always make REAL_VALUE_TYPE a struct containing an array of
11801         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
11802         big it is.  Don't declare or use union real_extract.
11803
11804         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
11805         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
11806         (print_operand), config/arm/arm.c (output_move_double),
11807         config/arm/arm.md (consttable_4, consttable_8),
11808         config/romp/romp.c (output_fpops), config/s390/s390.h
11809         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
11810         (xtensa_output_literal): Don't use union real_extract.
11811
11812         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
11813         (sfmode_constant_to_ulong), config/ns32k/merlin.h
11814         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
11815         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
11816         (PRINT_OPERAND): Don't use local version of union
11817         real_extract.
11818
11819         * config/convex/convex.c (check_float_value), config/vax/vax.c
11820         (vax_float_literal), config/m88k/m88k.md (divdf3),
11821         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
11822         config/pdp11/pdp11.c (output_move_quad): Don't do host
11823         arithmetic on target floating point quantities.
11824
11825         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
11826         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
11827
11828         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
11829         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
11830
11831         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
11832         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
11833         INFINITY.
11834         * print-rtl.c (print_rtx): Disable code which needs
11835         floating-point emulator.
11836         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
11837         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
11838         depending on HOST_FLOAT_FORMAT to be defined properly.
11839
11840         * config/1750a/1750a.c (get_double, float_label): Delete.
11841         (print_operand): Delete huge commented-out chunk.  Use
11842         REAL_VALUE_TO_DECIMAL.
11843         * config/1750a/1750a-protos.h: Delete prototypes of deleted
11844         functions.
11845         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
11846         IEEE_FLOAT_FORMAT.
11847         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
11848         Use REAL_VALUE_TO_DECIMAL as ELF version does.
11849         * config/m88k/m88k.c (real_power_of_2_operand,
11850         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
11851         real_extract out of the union; run the input through
11852         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
11853         from that into the union.
11854         * config/pdp11/pdp11.c (output_move_double): Rearrange
11855         parentheses to make automatic indenter happy.
11856
11857         * doc/tm.texi (Cross-compilation): Rename node to "Floating
11858         Point" and rewrite to describe current situation.  Also adjust
11859         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
11860         match code.
11861         * doc/rtl.texi: Adjust cross reference.
11862
11863 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
11864
11865         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
11866         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
11867         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
11868         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
11869         prevent use of sp as a reload register.
11870         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
11871         non_acc_reg_operand.
11872         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
11873         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
11874         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
11875         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
11876
11877 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11878
11879         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
11880         * cpplex.c (unterminated): Delete.
11881         (parse_string): No string literal may extend over multiple
11882         lines.  Suppress the error when preprocessing assembly.
11883         * cppmain.c (scan_translation_unit): Strings are single-line.
11884
11885         * doc/cpp.texi: Update to match.
11886
11887 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
11888
11889         PR optimization/5854
11890         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
11891         Shut up warnings.
11892         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
11893         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
11894         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
11895         const0 if scratch register was not allocated.
11896         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
11897         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
11898         with GEN_INT (...).
11899         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
11900         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
11901         with GEN_INT (...) everywhere.  Remove constraints in define_split
11902         patterns.
11903         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
11904         require scratch register for setting 0 into regs/non-pushable memory.
11905
11906 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
11907
11908         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
11909         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
11910
11911 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
11912
11913         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
11914         * cppinit.c (cpp_create_reader):  On by default.
11915         (cpp_handle_option):  Handle -W[no-]endif-labels.
11916         (cpp_post_options):  Also enable if -pedantic.
11917         * cpplib.c (do_else):  Use it.
11918         (do_endif):  Likewise.
11919         * doc/cppopts.texi:  Document new option.
11920         * doc/invoke.texi:  Document new option.
11921
11922 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
11923
11924         * config/i386/i386.c, config/i386/i386.md: Change all occurences
11925         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
11926
11927 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
11928
11929         * flow.c (calculate_global_regs_live): Clear aux fields of
11930         ENTRY and EXIT.
11931
11932 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
11933
11934         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
11935         REG or MEM subregs, pass rtx * instead of rtx to it.
11936         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
11937         rtx * instead of rtx to alter_subreg.
11938         * config/m32r/m32r.c (gen_split_move_double): Likewise.
11939         * config/pj/pj.c (pj_output_rval): Likewise.
11940
11941 2002-03-22  Richard Henderson  <rth@redhat.com>
11942
11943         PR target/3177
11944         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
11945         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
11946         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
11947         (ia64_expand_prologue): Look at int_regs, not words, for number
11948         of incomming int regs.
11949
11950 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
11951
11952         * expr.c (expand_expr): A RESULT_DECL is part of a call.
11953
11954 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
11955
11956         * toplev.c (flag_loop_optimize, flag_crossjumping):
11957         New static variables.
11958         (rest_of_compilation): Conditionalize crossjumping and
11959         loop optimizer.
11960         (parse_options_and_default_flags): Default loop_optimize and
11961         crossjumping.
11962         (lang_independent_options): Add -fcrossjumping and -floop-optimize
11963         * invoke.texi (crossjumping, loop-optimize): Document.
11964
11965 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11966
11967         * real.c (eiisneg): Move outside #ifdef NANS.
11968
11969 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11970
11971         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
11972         frequencies match; avoid match on different loop depths.
11973         (try_crossjump_to_bb): Kill tests that no longer brings time
11974         savings.
11975         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
11976         updating code.
11977         (split_edge): Likewise.
11978
11979         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
11980         variable.
11981
11982         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
11983         * cfgrtl.c: Include insn-config.h
11984         (split_block) Dirtify block in presence of conditional execution
11985
11986 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
11987
11988         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
11989         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
11990         (function_arg): Constify CUMULATIVE_ARGS.
11991         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
11992         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
11993         (UNITS_PER_DOUBLE): New macro.
11994         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
11995         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
11996         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
11997         fp_regs and stack_words.
11998         (EABI_FLOAT_VARARGS_P): New macro.
11999         * config/mips/mips.c (struct mips_arg_info): New.
12000         (mips_arg_info): New function.
12001         (function_arg_advance): Use it.  Add adjustment instructions here
12002         rather than in function_arg.
12003         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
12004         for VOIDmode at the beginning of the function.
12005         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
12006         (function_arg_pass_by_reference): Likewise.
12007         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
12008         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
12009         (mips_va_start): Likewise.  Use the new stack_words field of
12010         CUMULATIVE_ARGS to set up overflow area.  Reformat.
12011         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
12012         doubles and other types, aligning the overflow pointer for non-doubles
12013         too.  Remove some code duplication.  Replace hard-coded constants.
12014
12015 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
12016
12017         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
12018         (CLASS_UNITS): Undefine.
12019         (CLASS_MAX_NREGS): Use FP_INC.
12020         * config/mips/mips.c (compute_frame_size): Likewise.
12021         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
12022
12023 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12024
12025         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
12026         prototype, and handle lexing numbers and identifiers.
12027         (parse_identifier): Update to new form of parse_slow.
12028         (parse_number): Fast path only, use parse_slow otherwise.
12029         (_cpp_lex_direct): Update calls to parse_number.
12030
12031 2002-03-21  DJ Delorie  <dj@redhat.com>
12032
12033         * bb-reorder.c (make_reorder_chain_1): Protect against
12034         when redundant edges are omitted.
12035         * predict.c (dump_prediction): Likewise.
12036
12037 2002-03-21  Richard Henderson  <rth@redhat.com>
12038
12039         PR target/5996
12040         * fixinc/inclhack.def (solaris_stdio_tag): New.
12041         * fixinc/fixincl.x: Regenerate.
12042
12043 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
12044
12045         PR c/5597
12046         * c-typeck.c (process_init_element): Flag non-static
12047         initialization of a flexible array member as illegal.
12048
12049 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
12050
12051         * config/rs6000/t-linux64: New.
12052         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
12053         t-ppccomm.  Use t-rs6000 and t-linux64.
12054         (powerpc64-*-gnu* <tmake_file>): Likewise.
12055         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
12056         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
12057         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
12058
12059 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
12060
12061         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
12062         flag_really_no_inline instead of optimize == 0.
12063
12064         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
12065
12066         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
12067
12068         * flags.h (flag_really_no_inline): New.
12069
12070         * c-common.c (c_common_post_options): Initialize
12071         flag_really_no_inline.
12072
12073         * toplev.c (flag_really_no_inline): New.
12074
12075 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
12076
12077         * config/avr/avr.md (length): Fix length computation for
12078         conditional branches.
12079
12080 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12081
12082         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
12083         sdbout.o, profile.o): Update.
12084         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
12085         langhook.
12086         * c-common.h (gettags): Move here from tree.h.
12087         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
12088         insert_block, getdecls, kept_level_p, global_bindings_p): New.
12089         * dbxout.c (dbxout_init): Use getdecls langhook.
12090         * expr.c (expand_expr): Use insert_block langhook.
12091         * fold-const.c: Include langhooks.h.
12092         (fold_range_test, fold_binary_op_with_conditional_arg,
12093         fold): Use global_bindings_p langhook.
12094         * integrate.c (expand_inline_function): Use insert_block langhook.
12095         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
12096         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
12097         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
12098         LANG_HOOKS_GETDECLS): New.
12099         (LANG_HOOKS_INITIALIZER): Update.
12100         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
12101         langhook.
12102         * langhooks.h (struct lang_hooks_for_decls): New.
12103         (struct lang_hooks): Update.
12104         * profile.c: Include langhooks.h.
12105         (output_func_start_profiler): Use new langhooks.
12106         * sdbout.c: Include langhooks.h.
12107         (sdbout_init, sdbout_finish): Use getdecls langhook.
12108         * stmt.c: Include langhooks.h.
12109         (expand_fixup, fixup_gotos): Use new langhooks.
12110         * stor-layout.c: Include langhooks.h.
12111         (variable_size): Use global_bindings_p langhook.
12112         * toplev.c (compile_file): Use getdecls langhook.
12113         * tree-inline.c (remap_block): Use insert_block langhook.
12114         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
12115         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
12116
12117 2002-03-21  Richard Henderson  <rth@redhat.com>
12118
12119         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
12120         constants in .data when -fpic.
12121
12122 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12123
12124         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
12125         where appropriate.
12126
12127 2002-03-21  Tom Tromey  <tromey@redhat.com>
12128
12129         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
12130
12131 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12132
12133         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
12134
12135         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
12136
12137 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
12138             Richard Henderson  <rth@redhat.com>
12139
12140         PR c/5354
12141         * c-common.c (c_expand_expr): Preserve result of a statement
12142         expression if needed.
12143
12144 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
12145
12146         PR bootstrap/4195
12147         * genrecog.c (maybe_both_true_mode): Remove.
12148         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
12149         * machmode.def (Pmode): Likewise.
12150
12151 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
12152
12153         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
12154         (nonlocal_mentioned_p_1): New function.
12155         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
12156         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
12157         (mark_constant_function): Recognize pure functions.
12158         * rtl.h (global_reg_mentioned_p): New prototype.
12159         * rtlanal.c (global_reg_mentioned_p,
12160         global_reg_mentioned_p_1): New function.
12161
12162 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12163
12164         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
12165         UNIX assert.h.
12166         * fixinc/fixincl.x: Regenerate.
12167
12168 2002-03-20  Jason Merrill  <jason@redhat.com>
12169
12170         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
12171
12172 2002-03-20  Michael Meissner  <meissner@redhat.com>
12173
12174         * doc/invoke.texi (Optimize Options): Document that -O2 sets
12175         -fstrict-aliasing.
12176
12177 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
12178
12179         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
12180         ".literal_position" directive before the constant pool.
12181
12182 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12183
12184         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
12185         Add Craig Rodrigues.
12186         Add Brad Lucier to testers.
12187
12188 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
12189
12190         PR target/4792
12191         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
12192         to if_then_else.
12193         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
12194         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
12195         instead of insn_extract.
12196
12197 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
12198
12199         PR bootstrap/4192
12200         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
12201
12202         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
12203         stmt if some case has been output.
12204
12205 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
12206
12207         PR c/5972
12208         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
12209         movsfcc_1, movdfcc_1): Add %O2.
12210         * config/i386/i386.c (print_operand): Handle %ON.
12211         Print . before float condition codes in Sun as cmov syntax.
12212         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
12213         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
12214         no longer true.
12215
12216 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
12217
12218         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
12219         return instruction if PC was popped.
12220
12221 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
12222
12223         * config/xtensa/xtensa.md: Remove unused type attributes.
12224         (adddi_carry, subddi_carry): Change type attribute to "multi".
12225
12226 2002-03-19  Dale Johannesen  <dalej@apple.com>
12227
12228         PR optimization/5999, middle-end/5731
12229         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
12230         multiplications by reciprocals.
12231
12232 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12233
12234         * Makefile.in: Update.
12235         * c-common.c: Include langhooks.h.
12236         (inline_forbidden_p): Use new hook.
12237         * diagnostic.c: Include langhooks.h.
12238         (format_with_decl, announce_function,
12239         default_print_error_function): Use new hook.
12240         * dwarf2out.c (dwarf2_name): Use new hook.
12241         * function.c: Include langhooks.h.
12242         (init_function_start): Use new hook.
12243         * langhooks-def.h (lhd_decl_printable_name): New.
12244         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
12245         (LANGHOOKS_INITIALIZER): Update.
12246         * langhooks.c (lhd_decl_printable_name): New.
12247         * langhooks.h (struct lang_hooks): New hook.
12248         * toplev.c (decl_name, decl_printable_name): Remove.
12249         (open_dump_file): Use new hook.
12250         (process_options): Remove old hook.
12251         * tree.h (decl_printable_name): Remove.
12252 objc:
12253         * objc-act.c (objc_init): Remove old hook.
12254         (objc_printable_name): Export.
12255         * objc-act.h (objc_printable_name): New.
12256         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12257
12258 2002-03-19  Jim Blandy  <jimb@redhat.com>
12259
12260         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
12261         the start_source_file debug hook, not the current line number.
12262
12263 2002-03-19  Richard Henderson  <rth@redhat.com>
12264
12265         * flow.c (EH_USES): Provide default.
12266         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
12267         * doc/tm.texi (EH_USES): New.
12268
12269         * config/ia64/ia64.c (ia64_eh_uses): New.
12270         * config/ia64/ia64-protos.h: Update.
12271         * config/ia64/ia64.h (EH_USES): New.
12272
12273 2002-03-19  Richard Henderson  <rth@redhat.com>
12274
12275         * varasm.c (output_constant_def): Fix stupid typo.
12276
12277 2002-03-19  Richard Henderson  <rth@redhat.com>
12278
12279         PR 5879
12280         * except.c (current_function_has_exception_handlers): New.
12281         * except.h: Declare it.
12282         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
12283         Combine tests that disable all sibcalls for the function.
12284
12285 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
12286
12287         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
12288         for INTEGER_CST.
12289
12290 2002-03-19  Richard Henderson  <rth@redhat.com>
12291
12292         PR 5977, 5991
12293         * config/ia64/ia64.c: Revert 2002-03-01 patch.
12294         * config/ia64/ia64.h (INIT_EXPANDERS): New.
12295
12296 2002-03-19  Jim Blandy  <jimb@redhat.com>
12297
12298         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
12299         name, even if the replacement list contains no tokens, as required
12300         by Dwarf.
12301
12302 2002-03-19  Jason Merrill  <jason@redhat.com>
12303
12304         * varasm.c (globalize_decl): Get the name from the RTL, not
12305         DECL_ASSEMBLER_NAME.
12306
12307         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
12308
12309 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
12310
12311         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
12312         subdi_carry): Define.
12313
12314 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
12315
12316         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
12317         about -fpic/-fPIC if extra_warnings set.
12318
12319 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
12320
12321         * expr.c (expand_expr): Sign-extend CONST_INT generated from
12322         TREE_STRING_POINTER.
12323         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
12324
12325 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12326
12327         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
12328         in favor of SP if FRAME_POINTER_REQUIRED is false.
12329
12330 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
12331
12332         * emit-rtl.c (gen_int_mode): New function.
12333         * rtl.h: Prototype for it.
12334         * combine.c (make_extraction, simplify_comparison), expmed.c
12335         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
12336         (convert_modes, store_field), optabs.c (expand_fix),
12337         simplify-rtx.c (neg_const_int, simplify_unary_real),
12338
12339         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
12340         Use it instead of GEN_INT (trunc_int_for_mode (...)).
12341
12342 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
12343
12344         PR c/5656
12345         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
12346         convert_parm_for_inlining.
12347         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
12348         Define.
12349         * langhooks-def.h: Likewise.
12350         * objc/objc-lang.c: Likewise.
12351         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
12352         function.
12353         * tree-inline.c (initialize_inlined_parameters):
12354         Call convert_parm_for_inlining lang hook if needed.
12355         * c-typeck.c (c_convert_parm_for_inlining): New function.
12356         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
12357
12358 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
12359
12360         * calls.c (precompute_arguments): Do not assume that temporaries
12361         can be destroyed after expanding the argument.
12362         (expand_call): Likewise.
12363
12364 2002-03-15  Eric Christopher  <echristo@redhat.com>
12365
12366         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
12367         Fix register preference on last change.
12368         * config/mips/mips.c (mips_return_in_memory): New function.
12369         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
12370         * config/mips/mips-protos.h: Declare.
12371         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
12372         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
12373
12374 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
12375
12376         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
12377         a register too.
12378         (anddi3, iorsi3): Likewise.
12379
12380         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
12381         use %gprel for symbols that are going to be placed in linkonce
12382         sections.
12383
12384         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
12385         RETURN_ADDRESS_POINTER_REGNUM to $ra.
12386         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
12387         not needed.  Disregard leaf_function_p().
12388         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
12389         mips16 frame pointer.
12390         * config/mips/mips.md (store ra): Only to small SP offsets.
12391         2001-08-22  Graham Stott  <grahams@redhat.com>
12392         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
12393         return a REG rtx for the return address register.
12394
12395 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
12396
12397         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
12398         constant-pool addresses as "mode-dependent".
12399         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
12400
12401 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
12402
12403         PR target/5740
12404         * expr.c (emit_group_load): Use extract_bit_field if
12405         needed for CONCAT arguments.
12406
12407 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
12408
12409         PR target/4863
12410         * arm.md (tablejump): Make this a define_expand.  For PIC add the
12411         offset to the base of the table.
12412         (thumb_tablejump): Matcher for Thumb tablejump insn.
12413         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
12414         as the difference of two labels.
12415         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12416         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
12417         tables in the code.
12418         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12419         * arm.c (get_jump_table_size): If the table is not in the text
12420         section, return zero.
12421
12422 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
12423
12424         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
12425         of gen_rtx_SUBREG.
12426         (arm_reload_out_hi): Use gen_lowpart instead of
12427         gen_rtx_SUBREG to access QImode components.
12428         * config/arm/arm.md: Disable zero_extend split for QImode
12429         subregs in BIG_ENDIAN mode.
12430         (storehi_bigend): Match use of least significant byte.
12431         (storeinthi): Remove extraneous SUBREG.
12432         Add missing construction of operands[2].
12433         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
12434         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
12435         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
12436
12437 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
12438
12439         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
12440         any_operand.
12441
12442 2002-03-17  Richard Henderson  <rth@redhat.com>
12443
12444         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
12445         explicitly.
12446
12447 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
12448
12449         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
12450         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
12451
12452 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12453
12454         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
12455
12456         * predict.c (estimate_bb_frequencies): Delete unused variables.
12457
12458 2002-03-17  Richard Henderson  <rth@redhat.com>
12459
12460         * config/ia64/ia64.c (ia64_attribute_table): Move before
12461         targetm definition.  Make static.
12462
12463 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
12464
12465         * c-common.h (yyparse, c_common_parse_file): New.
12466         * c-lang.c: Include c-common.h.
12467         (LANG_HOOKS_PARSE_FILE): Redefine.
12468         * c-lex.c: Include c-common.h.
12469         (yyparse): Rename c_common_parse_file.  Call yyparse.
12470         * c-parse.in (yyparse): Remove macro.
12471         * c-tree.h (yyparse_1): Remove.
12472         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
12473         (LANG_HOOKS_INITIALIZER): Update.
12474         * langhooks.h (struct lang_hoooks): New hook parse_file.
12475         * toplev.c (compile_file): Use parse_file hook.
12476         * tree.h (yyparse): Remove.
12477         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
12478
12479 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
12480
12481         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
12482         float_truncate, not fix.
12483         ("*truncdfsf2_real"): Ditto.
12484         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
12485
12486         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
12487
12488 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
12489
12490         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
12491         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
12492         where appropriate.  Make the second reference to
12493         leaf_function_p a function call, as intended.  Reindented.
12494
12495         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
12496         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
12497
12498         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
12499         add register to non-constant into sp.
12500
12501         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
12502         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
12503         (mips16_gp_pseudo_rtx): Lose.
12504         (INIT_EXPANDERS): Deleted.
12505         * config/mips/mips.c (mips_init_machine_status): New.
12506         (mips_free_machine_status): New.
12507         (mips_mark_machine_status): New.
12508         (override_options): Set them.
12509         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
12510         (struct machine_function): ... new.  Replaced all references.
12511         (mips_add_gc_roots): Don't mark them.
12512         (embedded_pic_fnaddr_reg): New, extracted from...
12513         (embedded_pic_offset): ... here.
12514         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
12515         (movsi): Likewise.
12516
12517 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12518
12519         * cppinit.c: Revert -MD removal.
12520
12521 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12522
12523         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
12524         soft registers by default for 68HC12.
12525         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
12526         when compiling with -fomit-frame-pointer.
12527         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
12528         (expand_epilogue): Likewise.
12529         (m68hc11_gen_rotate): Use exg when rotating by 8.
12530
12531 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12532
12533         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
12534         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
12535         (splits): Remove unused add splits.
12536         ("*addhi3_68hc12"): Tune constraints.
12537         ("addhi_sp"): Try to use X instead of Y in all cases and if the
12538         constant fits in 8-bits and D is dead use abx/aby instructions.
12539         ("*addhi3"): Remove extern declaration of ix_reg.
12540         ("*subsi3"): Optimize and provide new split.
12541         ("subhi3"): Cleanup.
12542         ("*subhi3_sp"): Avoid saving X if we know it is dead.
12543         (arith splits): For 68hc12 save the address register on the stack
12544         and do the arithmetic operation with a pop.
12545
12546 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12547
12548         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
12549         allocating QImode in address registers.
12550         ("*movqi_m68hc11"): Likewise.
12551
12552 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
12553
12554         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
12555
12556 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12557
12558         * cppinit.c (print_help): Display -MD and -MMD.
12559         Don't display usage string.  Update assertion syntax and
12560         typo.
12561         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
12562         (cpp_handle_option): Update.
12563
12564 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
12565
12566         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
12567         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
12568         and define it so that regardless of target CPU size,
12569         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
12570         of "int" rather than "long."
12571
12572 2002-03-15  Richard Henderson  <rth@redhat.com>
12573
12574         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
12575         size as a tree.
12576
12577 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12578
12579         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
12580         ("tstqi" split): Avoid using memory for tstqi on address register.
12581         (splits): Remove constraints.
12582         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
12583         ("cmpdf", "cmpsf"): Remove since not used.
12584         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
12585         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
12586
12587 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12588
12589         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
12590         ("neghi2"): Tighten constraints.
12591         ("one_cmplsi2"): Optimize and simplify split.
12592         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
12593
12594 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12595
12596         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
12597         and split of AND operation to clear the upper bits.
12598         ("*logicalsi3_zextqi"): Likewise.
12599         ("*logicallhi3_zexthi_ashift8"): Likewise.
12600         ("*logicalsi3_silshr16"): Likewise.
12601         ("logicalsi3_silshl16"): Likewise.
12602         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
12603
12604 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12605
12606         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
12607         (m68hc11_indirect_p): New function.
12608         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
12609         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
12610         TARGET_M6812.
12611         (asm_print_register): Likewise.
12612         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
12613         (m68hc11_indirect_p): Declare.
12614         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
12615         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
12616         (TARGET_SWITCHES): New option -mrelax.
12617         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
12618         destination.
12619         ("iorsi3", "xorsi3"): Likewise.
12620         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
12621         ("*andhi3_mem"): New to handle destination in memory with bclr
12622         and a scratch register.
12623         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
12624         ("*andhi3_const"): New when operand2 is constant.
12625         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
12626         ("*andhi3_gen"): Cleanup of the old "andhi3".
12627         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
12628         ("xorqi3"): Update constraints.
12629
12630 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12631
12632         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
12633         for reg_equiv_memory_loc when the operand is a register that does
12634         not get a hard register (stack location).
12635         (tst_operand): After reload, accept all memory operand.
12636         (symbolic_memory_operand): Fix detection of symbolic references.
12637         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
12638         accept symbols and any constant.
12639
12640 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12641
12642         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
12643         note on the insn that sets the soft frame register.
12644         (must_parenthesize): ix and iy are also reserved names.
12645         (print_operand_address): One more place where parenthesis are required
12646         to avoid confusion with register names.
12647         (m68hc11_gen_movhi): Allow push of stack pointer.
12648         (m68hc11_check_z_replacement): Fix handling of parallel with a
12649         clobber.
12650         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
12651         the replacement register is.
12652         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
12653         and D8_REGS classes.
12654         (MODES_TIEABLE_P): All modes are tieable except QImode.
12655
12656 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12657
12658         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
12659         (___subdi3): Likewise.
12660         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
12661         (__map_data_section): Optimize 68hc11 case.
12662
12663 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12664
12665         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
12666         than a shift to avoid adding a register with itself.
12667         (m68hc11_memory_move_cost): Take into account NO_REGS.
12668         (m68hc11_register_move_cost): Update and use memory move cost
12669         for soft registers.
12670         (m68hc11_address_cost): Make cost of valid offset not 0 so that
12671         it gives more opportunities to cse to optimize.
12672         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
12673         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
12674
12675 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
12676
12677         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
12678         * c-common.def (CLEANUP_STMT): New tree node.
12679         * c-common.h (CLEANUP_DECL): New macro.
12680         (CLEANUP_EXPR): Likewise.
12681         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
12682         * expr.c (expand_expr): Tidy.
12683         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
12684         * tree-inline.c (initialize_inlined_parameters): Clean up
12685         new local variables.
12686
12687 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
12688
12689         PR bootstrap/4128
12690         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
12691         before movrXX only, use reg_overlap_mentioned_p.
12692         Only special case NE if just one insn can be generated.
12693
12694 2002-03-15  Jason Merrill  <jason@redhat.com>
12695
12696         * varasm.c (assemble_variable): Call resolve_unique_section before
12697         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
12698         of error_mark_node.
12699
12700 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
12701
12702         PR target/5170
12703         * arm.md (split pattern for thumb shiftable immediates): Add comment
12704         explaining non-obvious test.
12705
12706 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
12707
12708         PR target/5712
12709         * arm.md (movaddr, movaddr_insn): Delete.
12710
12711 2002-03-15  Jason Merrill  <jason@redhat.com>
12712
12713         * toplev.c (wrapup_global_declarations): Clarify variable handling.
12714         -fkeep-static-consts doesn't apply to comdats.
12715
12716 2002-03-14  Richard Henderson  <rth@redhat.com>
12717
12718         * c-decl.c: Include c-pragma.h.
12719         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
12720         (finish_function): Tidy.
12721         * c-pragma.c: Include c-common.h.
12722         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
12723         (handle_pragma_weak): Use them.
12724         (init_pragma): Register pending_weaks.
12725         * c-pragma.h (maybe_apply_pragma_weak): Declare.
12726         * print-tree.c (print_node): Print DECL_WEAK.
12727         * varasm.c (mark_weak_decls): Remove.
12728         (remove_from_pending_weak_list): Remove.
12729         (add_weak): Remove.
12730         (asm_emit_uninitialised): Call globalize_decl for weak commons.
12731         (weak_decls): Make a tree_list.
12732         (declare_weak): Cons weak_decls directly.
12733         (globalize_decl): Remove weak_decls elements directly.
12734         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
12735         symbols.  Don't pretend to handle aliases.
12736         (init_varasm_once): Update weak_decls registry.
12737         * Makefile.in: Update dependencies.
12738
12739 2002-03-14  Richard Henderson  <rth@redhat.com>
12740
12741         PR target/5312
12742         * config/ia64/ia64.c: Include tm_p.h last.
12743         (gen_nop_type): Remove duplicate definition.
12744         (cycle_end_fill_slots): Set sched_data for second L slot.
12745         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
12746         (nop_cycles_until): Fix typos.
12747
12748 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
12749
12750         PR optimization/5891
12751         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
12752
12753 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
12754
12755         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
12756           descriptors correctly.
12757
12758 2002-03-14  Michael Meissner  <meissner@redhat.com>
12759
12760         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
12761         100, allowing MAX_UNROLLED_INSNS to be overridden.
12762
12763         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
12764         --param.
12765
12766         * unroll.c (params.h): Include.
12767         (MAX_UNROLLED_INSNS): Delete, now in params.h.
12768
12769         * doc/invoke.texi (--param max-unroll-insns): Document.
12770
12771         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
12772
12773 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
12774
12775         * arm.md: Fix warnings about constraints in peepholes and splits.
12776
12777 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
12778
12779         * cpphash.h (struct lexer_state): Remove line_extension member.
12780         * cpplib.c (dequote_string, do_linemarker): New functions.
12781         (linemarker_dir): New data object.
12782         (DIRECTIVE_TABLE): No longer need to interpret #line in
12783         preprocessed source.  Delete obsolete comment about return
12784         values of handlers.
12785         (end_directive, directive_diagnostics, _cpp_handle_directive):
12786         Don't muck with line_extension.
12787         (directive_diagnostics): No need to issue warnings for
12788         linemarkers here.
12789         (_cpp_handle_directive): Issue warnings for linemarkers here,
12790         when appropriate.  Dispatch linemarkers to do_linemarker, not
12791         do_line.
12792         (do_line): Code to handle linemarkers split out to do_linemarker.
12793         Convert escape sequences in filename argument, both places.
12794
12795         * cppmacro.c (quote_string): Rename cpp_quote_string and
12796         export.  All callers changed.
12797         * cpplib.h (cpp_quote_string): Prototype.
12798         * cppmain.c (print_line): Call cpp_quote_string on to_file
12799         before printing it.
12800
12801         * doc/cpp.texi: Document that escapes are now interpreted in
12802         #line and in linemarkers, and that non-printing characters are
12803         converted to octal escapes when linemarkers are generated.
12804
12805 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
12806
12807         * emit-rtl.c (try_split): Use delete_insns.
12808         * recog.c (split_all_insns): Fix terminating condition.
12809
12810 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
12811             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
12812
12813         PR target/5828
12814         * arm.c (arm_output_epilogue): Fix floating-point register save
12815         adjustment when using a frame pointer.
12816
12817 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
12818
12819         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
12820         * config/mips/mips.c (compute_frame_size): Retrofit them here.
12821         (save_restore_insns, mips_expand_epilogue): And here.
12822         (build_mips16_call_stub): And here.
12823         (mips_function_value): Use the new macros to decide whether a single
12824         or complex float can be returned in floating-point registers.  Return
12825         a parallel rtx in the complex case.
12826
12827 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
12828
12829         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
12830         call after liveness analysis.
12831
12832         * recog.c (split_insn): Use delete_insn_and_edges.
12833
12834         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
12835         instructions to have branch prediction notes.
12836         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
12837
12838 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
12839
12840         * configure.in: Don't pass -Wno-long-long to a ADA compiler
12841         that doesn't support it.
12842         * configure: Regenerate.
12843
12844 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12845
12846         PR target/5626
12847         * config/sparc/sparc.md (normal_branch, inverted_branch,
12848         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12849         inverted_fp_branch): Adjust calls to output_cbranch.
12850         Set length attribute.
12851         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
12852         output_v9branch.  Set length attribute.
12853         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
12854         predicates.
12855         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
12856         (output_cbranch): Likewise.  Handle far branches.
12857         (output_v9branch): Handle far branches.
12858         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
12859         Adjust prototypes.
12860         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
12861         noov_compare64_op predicates.
12862
12863 2002-03-13  Jason Merrill  <jason@redhat.com>
12864
12865         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
12866         into the function and constify it.
12867         * gthr-dce.h, gthr-solaris.h: Likewise.
12868
12869 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
12870
12871         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
12872         * config/rs6000/rs6000.c (rs6000_va_arg): Use
12873         std_expand_builtin_va_arg if not ABI_V4.
12874
12875 2002-03-13  Jason Merrill  <jason@redhat.com>
12876
12877         * varasm.c (globalize_decl): New fn.
12878         (assemble_start_function): Use it.
12879         (asm_emit_uninitialized): Use it.
12880         (assemble_alias): Use it.
12881         (assemble_variable): Use it.
12882
12883 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
12884
12885         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
12886         2002-03-12 internal visibility change.
12887         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
12888         visibility into SYMBOL_REF_FLAG.
12889
12890 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
12891
12892         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
12893         VOIDmode operand.  Add compile-time optimization for constant results.
12894
12895 2002-03-12  Jason Merrill  <jason@redhat.com>
12896
12897         * c-typeck.c (convert_for_assignment): Don't allow conversions
12898         between pointers and references.  Only allow lvalues to convert to
12899         reference.
12900
12901 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
12902
12903         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
12904         before prologue, to avoid scheduling problems.
12905
12906 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12907
12908         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12909         (ELIMINABLE_REGS): Add sfp->sp.
12910         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
12911
12912 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12913
12914         PR optimization/5892
12915         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
12916
12917 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
12918
12919         * loop.c (basic_induction_var): Don't call convert_modes if mode
12920         classes are different.
12921
12922 2002-03-12  Richard Henderson  <rth@redhat.com>
12923
12924         PR optimization/5901
12925         * function.c (reposition_prologue_and_epilogue_notes): Position
12926         the markers after/before the last/first insn not deleted.
12927
12928 2002-03-12  Richard Henderson  <rth@redhat.com>
12929
12930         PR optimization/5878
12931         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
12932         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
12933         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12934
12935         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
12936         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
12937         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
12938
12939         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
12940         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
12941         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
12942         also.  Don't set it if not flag_pic.
12943         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
12944         to be INVALID_REGNUM when not used.
12945
12946 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
12947
12948         * expmed.c (store_bit_field): Reset alias set for memory.
12949         (extract_bit_field): Same.
12950
12951 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12952
12953         * c-common.c (c_tree_code_type, c_tree_code_length,
12954         c_tree_code_name, add_c_tree_codes): Delete.
12955         * c-common.h (add_c_tree_codes): Delete.
12956         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
12957         Define.
12958         * c-objc-common.c (c_objc_common_init): Don't call
12959         add_c_tree_codes, instead set lang_unsafe_for_reeval.
12960         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
12961         objc_tree_code_name, add_objc_tree_codes): Delete.
12962         (objc_init): Don't call add_objc_tree_codes.
12963         * objc/objc-lang.c (tree_code_type, tree_code_length,
12964         tree_code_name): Define.
12965         * toplev.c (lang_independent_init): Don't set
12966         tree_code_length[IDENTIFIER_NODE].
12967         * tree.c (tree_code_type, tree_code_length, tree_code_name):
12968         Delete definitions, moved to language front-ends.
12969         * tree.def (IDENTIFIER_NODE): Hardwire the length.
12970         * tree.h (tree_code_type, tree_code_length, tree_code_name):
12971         Const-ify.
12972         (tree_code_length): Change type to unsigned char.
12973
12974 2002-03-12  Richard Henderson  <rth@redhat.com>
12975
12976         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
12977         internal visibility change.
12978
12979 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
12980
12981         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
12982         validize_mem() instead of change_address to avoid clobbering
12983         memory attributes.
12984
12985 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
12986
12987         * c-lex.h (position_after_whitespace): Remove.
12988
12989 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
12990
12991         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
12992         (lex_string): Use unsigned char pointers.
12993
12994 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
12995
12996         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
12997         is not a valid memory_operand.
12998
12999 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
13000
13001         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
13002         * config/xtensa/lib1funcs.asm: Fix copyright to include
13003         special case for libgcc files.
13004         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
13005         (__divsi3): Likewise.
13006         (__umodsi3): Likewise.
13007         (__modsi3): Likewise.
13008         * config/xtensa/lib2funcs.S: Fix copyright to include
13009         special case for libgcc files.
13010
13011 2002-03-12  Tom Rix  <trix@redhat.com>
13012
13013         * collect2.c (resolve_lib_name): Move outside of
13014         OBJECT_FORMAT_COFF ifdef.
13015         (ignore_library): Same.
13016
13017 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
13018
13019         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
13020
13021 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
13022
13023         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
13024         to function_section before writing out the constant pool.
13025
13026 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
13027
13028         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
13029         zero_constant.
13030         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
13031
13032 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
13033
13034         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
13035         (adddi3): Likewise.
13036         (movdf): Likewise.
13037         (movdi): Likewise.
13038         (cmpsi splitter): Likewise.
13039         (modsi3): Fail if <= 0.
13040         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
13041         redundant test when HOST_BITS_PER_WIDE_INT != 32.
13042         (reg_or_sub_cint64_operand): Likewise.
13043         (num_insns_constant_wide): Optimize sign extension.
13044         (rs6000_legitimize_address): Likewise.
13045
13046 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
13047
13048         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13049         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13050
13051 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
13052
13053         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
13054         address calculation.
13055
13056 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
13057
13058         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
13059         scratch register to DImode / TImode.
13060         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
13061         register used does not overlap the target.
13062
13063 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13064
13065         * Makefile.in (debug.o): Depend on debug.h.
13066         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
13067         * debug.c (do_nothing_debug_hooks): Likewise.
13068         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
13069         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
13070         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
13071         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
13072         * dwarfout.c (dwarf_debug_hooks): Likewise.
13073         * integrate.c (output_inline_function): Likewise.
13074         * objc/objc-act.c (synth_module_prologue): Likewise.
13075         * sdbout.c (sdb_debug_hooks): Likewise.
13076         * toplev.c (debug_hooks): Likewise.
13077         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13078
13079 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13080
13081         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
13082         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
13083         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
13084         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
13085         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
13086         * defaults.h (POINTER_SIZE): Define.
13087         * doc/tm.texi (POINTER_SIZE): Document default.
13088
13089 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13090
13091         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
13092
13093 2002-03-11  Richard Henderson  <rth@redhat.com>
13094
13095         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
13096         if rebuild_label_notes_after_reload.
13097
13098 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
13099
13100         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
13101         emit pic register load if "internal" visibility.
13102         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
13103         (cris_expand_builtin_va_arg): Do all computations on trees.
13104
13105 2002-03-11  Richard Henderson  <rth@redhat.com>
13106
13107         * rtlanal.c: Include recog.h.
13108         (keep_with_call_p): Fix thinko.
13109         * Makefile.in (rtlanal.o): Update dependencies.
13110
13111 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
13112
13113         * genflags.c (gen_insn): Use IS_VSPACE.
13114         * genoutput.c (output_insn_data): Likewise.
13115         (process_template): Likewise.
13116
13117 2002-03-11  Richard Henderson  <rth@redhat.com>
13118
13119         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
13120
13121 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13122
13123         * Makefile.in: Update.
13124         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
13125         Update documentation.
13126         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
13127         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
13128
13129 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
13130
13131         * Makefile.in: Give texi2pod its input file as a command line
13132         argument, not on stdin.
13133
13134 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
13135             Daniel Berlin  <dan@dberlin.org>
13136
13137         C++ alias analysis improvement.
13138         * alias.c (record_component_aliases): Record aliases for base
13139         classes too.
13140
13141 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
13142
13143         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
13144
13145 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
13146
13147         * toplev.c (vms_fopen): Remove, not needed.
13148
13149         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
13150
13151         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
13152
13153         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
13154         for FP, already done later.
13155
13156         * toplev.c (debug_args): Add entry for VMS_DEBUG.
13157         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
13158
13159 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
13160
13161         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
13162         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
13163         LARGEST_EXPONENT_IS_NORMAL for the given mode.
13164         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
13165         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
13166         (ediv, emul, eldexp, esqrt): Likewise.
13167         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
13168         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
13169         (saturate): New function.
13170         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
13171         (make_nan): Use a saturation value instead of a NaN if
13172         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
13173         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
13174         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
13175         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
13176         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
13177         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
13178         !ROUND_TOWARDS_ZERO.
13179         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
13180         (ROUND_TOWARDS_ZERO): Document.
13181
13182 2002-03-11  Andreas Jaeger  <aj@suse.de>
13183
13184         * cfg.c (dump_flow_info): Remove unused variable.
13185
13186 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
13187
13188         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
13189         computations on trees.
13190
13191 2002-03-10  Richard Henderson  <rth@redhat.com>
13192
13193         PR 5693:
13194         * reload.c (copy_replacements_1): New.
13195         (copy_replacements): Use it to recurse through the rtx.
13196
13197 2002-03-10  Richard Henderson  <rth@redhat.com>
13198
13199         * loop.c (strength_reduce): Compute number of iterations as
13200         unsigned HOST_WIDE_INT.
13201
13202 2002-03-10  Richard Henderson  <rth@redhat.com>
13203
13204         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
13205         to move away from the end of the block.
13206
13207 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
13208
13209         PR preprocessor/5899
13210         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
13211
13212 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13213
13214         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
13215
13216         * attribs.c (decl_attributes): Fix signed/unsigned warning.
13217
13218 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
13219
13220         * config/mmix/mmix.c: Improve comments.
13221         (mmix_target_asm_function_prologue): Drop variable
13222         empty_stack_frame.  Don't allocate unused slot above fp.
13223         (mmix_target_asm_function_epilogue): Mirror prologue changes.
13224         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
13225         brace in first column.
13226         (enum reg_class): Ditto.
13227         (FIRST_PARM_OFFSET): Now 0.
13228         (USER_LABEL_PREFIX): Remove #if 0:d definition.
13229
13230 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13231
13232         * combine.c (make_extraction): Fix error in last change.
13233
13234 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13235
13236         * c4x.c (c4x_fp_reglist): Const-ify.
13237         * cris.c (cris_print_operand): Likewise.
13238         * i386.c (ix86_va_arg): Likewise.
13239         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
13240         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
13241         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
13242         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
13243         * mcore.h (regno_reg_class): Likewise.
13244         * mips.c (gen_int_relational): Likewise.
13245         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
13246         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
13247         * pdp11.c (move_costs): Likewise.
13248         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
13249         * s390.c (s390_branch_condition_mnemonic, regclass_map):
13250         Likewise.
13251         * s390.h (regclass_map): Likewise.
13252         * sh.c (shift_amounts): Likewise.
13253         * sh.md (rotlsi3): Likewise.
13254
13255 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
13256
13257         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
13258         (ne0+5): Use new clobber to generate proper shift pattern.
13259         Patch by Michael Matz <matz@kde.org>.
13260
13261 2002-03-09  Andreas Schwab  <schwab@suse.de>
13262
13263         * gcc.c (validate_all_switches): Also handle `%W{...}'.
13264
13265 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
13266
13267         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
13268
13269 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
13270
13271         PR middle-end/5877
13272         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
13273         even for non-representable constants.
13274
13275 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13276
13277         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
13278         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
13279         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
13280         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
13281         (pop_function_context): Compute MAY_SHARE parameter for
13282         fixup_var_refs.
13283         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
13284         (gen_mem_addressof): Call fixup_var_refs with new parm.
13285
13286         * combine.c (make_extraction): Don't make extension of CONST_INT.
13287
13288 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
13289
13290         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
13291         in o32 and o64 ABIs.
13292         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
13293         but getting fixed-size structs passed in registers regardless of
13294         padding in o32 and o64 ABIs.
13295
13296         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
13297         offset before loading address of argument passed by transparent
13298         reference.
13299
13300 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13301
13302         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
13303
13304 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
13305
13306         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
13307         marker such that registers after it are saved.
13308
13309 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13310
13311         * sparc.c (arith_4096_operand): Fix error in last change.
13312
13313 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
13314
13315         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
13316         defaults for MEABI.
13317
13318 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
13319
13320         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
13321         vectors.
13322
13323 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
13324
13325         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
13326
13327 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
13328
13329         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
13330         removed; fix return value.
13331         * combine.c (combine_instructions): Dirtify blocks where we failed to
13332         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
13333         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
13334
13335 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13336
13337         * gcse.c (insert_insn_end_bb): Fix typo in last change.
13338
13339 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
13340
13341         * recog.c (peephole2_optimize): Re-distribute EH edges.
13342
13343 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
13344
13345         * expr.c (expand_expr): Use unsave lang hook.
13346         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
13347         (LANG_HOOKS_INITIALIZER): Update.
13348         * langhooks.h (struct lang_hooks): New hook unsave.
13349         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
13350         (unsave_expr_1): Remove unused lang_unsave_expr_now.
13351         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
13352         (unsave_expr_now): Remove.
13353         * tree.h (unsave_expr_now, lang_unsave,
13354         lang_unsave_expr_now): Remove.
13355         (lhd_unsave): New.
13356
13357 2002-03-08  Andreas Jaeger  <aj@suse.de>
13358
13359         * flow.c (propagate_block_delete_insn): Remove unused variable.
13360
13361 2002-03-08  Kazu Hirata  <kazu@hxi.com>
13362
13363         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
13364         insn length for memory load/store.
13365
13366 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13367
13368         * doc/install.texi (--with-libiconv-prefix): Document.
13369
13370 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
13371
13372         * doc/sourcebuild.texi: Fix typo.
13373
13374 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
13375
13376         PR c/3711
13377         * builtins.c (std_expand_builtin_va_arg): Do all computations on
13378         trees.
13379
13380 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13381
13382         * rtl.c (copy_most_rtx): Move from here ...
13383         * emit-rtl.c (copy_most_rtx): ... to here.
13384
13385 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
13386
13387         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
13388         SUBTARGET_CPP_SIZE_SPEC.
13389         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
13390
13391         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
13392
13393 2002-03-07  Matt Hiller  <hiller@redhat.com>
13394
13395         * gensupport.c (first_dir_md_include): Renamed from include;
13396         change all references.
13397         (last_dir_md_include): Renamed from last_include; change all
13398         references.
13399         (init_md_reader): Unconditionally initialize base_dir whether or
13400         not filename is a relative path.
13401
13402 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
13403
13404         * config/fp-bit.c (_unord_f2): Compile it in even if
13405         US_SOFTWARE_GOFAST is enabled.
13406
13407         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
13408         NULL_RTX.  Set all HFmode operations as NULL_RTX.
13409         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
13410         NULL_RTX, try reversing the comparison and the operands.
13411
13412 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
13413
13414         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
13415         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
13416         and MATCH_OP_DUP.
13417
13418 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
13419
13420         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
13421
13422 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
13423
13424         * basic-block.h (fixup_abnormal_edges): Declare.
13425         * reload1.c (fixup_abnormal_edges): New function.
13426         * reg-stack.c (convert_regs): Use it.
13427
13428         * gcse.c (insert_insn_end_bb): Handle trapping insns.
13429
13430         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
13431
13432 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
13433
13434         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
13435         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
13436         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
13437         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
13438         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
13439         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
13440         unless x and y could be infinite.
13441         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
13442         Check that the common type of both arguments is a real, even for
13443         targets without unordered comparisons.  Allow an integer argument
13444         to be compared against a real.
13445         (expand_tree_builtin): Use expand_unordered_cmp.
13446         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
13447         * cse.c (fold_rtx): Likewise.  Fix indentation.
13448         * fold-const.c (fold_real_zero_addition_p): New.
13449         (fold): Use it, and the new HONOR_... macros.
13450         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
13451         * jump.c (reversed_comparison_code_parts): After searching for
13452         the true comparison mode, use HONOR_NANS to decide whether it
13453         can be safely reversed.
13454         (reverse_condition_maybe_unordered): Remove IEEE check.
13455         * simplify-rtx.c (simplify_binary_operation): Use the new macros
13456         to decide which simplifications are valid.  Allow the following
13457         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
13458         and (a - -b) to (a + b).
13459         (simplify_relational_operation): Use HONOR_NANS.
13460         * doc/tm.texi: Document the MODE_HAS_... macros.
13461
13462 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
13463
13464         * combine.c (simplify_comparison): If simplifying a logical shift
13465         right and compare with constant, force the comparison to unsigned.
13466
13467 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
13468
13469         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
13470
13471         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
13472         -mabi=no-altivec
13473         (alt_reg_names): Remove % for vrsave.
13474
13475 2002-03-06  Richard Henderson  <rth@redhat.com>
13476
13477         PR optimization/5844
13478         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
13479         if used indicates we've already emitted one copy of an operand.
13480         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
13481         (gen_split): Supply a non-null used.
13482
13483 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
13484
13485         * reload1.c (reload): Unshare all rtl after reload is done.
13486
13487         * simplify-rtx.c (simplify_plus_minus): Do not abort,
13488         but simply fail if the expression is too complex to simplify.
13489         (simplify_gen_binary): Handle simplify_plus_minus failures.
13490
13491 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
13492
13493         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
13494         consistently call delete_trivially_dead_insns after CSE and GCSE;
13495         fix DFI_life dumping; do jump threading after liveness; do crossjumping
13496         after liveness2; update comment in last crossjumping.
13497         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
13498
13499 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
13500
13501         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
13502         after completing fast dead code elimination.
13503
13504         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
13505         COMPARE operator.
13506
13507 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
13508
13509         * version.c:  Fix misplaced leading blanks on first line.
13510
13511 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
13512
13513         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
13514
13515 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
13516
13517         * cfgcleanup.c (mentions_nonequal_regs): New function.
13518         (thread_jump): Use it.
13519         * toplev.c (rest_of_compilation): Run jump threading after
13520         liveness.
13521
13522 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
13523
13524         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
13525         patch.
13526
13527 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13528
13529         * predict.c (estimate_bb_frequencies): Do not reload the
13530         frequencies from notes.
13531
13532 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
13533
13534         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
13535         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
13536
13537         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
13538         delete_noop_moves): Return indeger.
13539         * flow.c (ndead): New variable.
13540         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
13541         BB argument; update callers.
13542         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
13543         (life_analysis): Do not call purge_all_dead_edges.
13544         (update_life_info): Return number of deleted insns; print statistics.
13545         (update_life_info_in_dirty_blocks): likewise.
13546         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
13547         return number of insns deleted.
13548
13549         * cse.c: Include timevar.h
13550         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
13551         iterate until stabilizes; print statistics; return number of killed
13552         insns.
13553         * Makefile.in: (cse.o): Add timevar.h dependency
13554         * rtl.h (delete_trivially_dead_insns): New.
13555         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
13556         * toplev.c (rest_of_compilation): Update callers.
13557
13558         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
13559         (try_optimize_cfg): Do not update liveness.
13560         (cleanup-cfg): Loop until try_optimize_cfg and dead code
13561         removal stabilizes; use delete_trivially_dead_insns.
13562
13563         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
13564
13565 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
13566
13567         * cppmain.c (setup_callbacks): Disable #pragma and #ident
13568         callbacks when processing assembly language.
13569
13570 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13571
13572         * pa.h (ASM_FILE_END): Define.
13573         * som.h (ASM_FILE_END): Delete.
13574
13575         * pa.c (function_arg): Don't pass floats in general registers in
13576         indirect calls if TARGET_ELF32.
13577
13578 2002-03-05  Richard Henderson  <rth@redhat.com>
13579
13580         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
13581
13582 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
13583
13584         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
13585
13586 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
13587
13588         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
13589         -r command line.  Don't hide any symbols if not building
13590         shared libgcc.
13591
13592 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
13593
13594         * cfg.c (dump_flow_info): Warn about profile mismatches.
13595         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
13596         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
13597
13598 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
13599
13600         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
13601         wide volatile memory by parts.
13602
13603 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
13604
13605         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
13606         is NULL.
13607
13608 2002-03-05  Richard Henderson  <rth@redhat.com>
13609
13610         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
13611
13612 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
13613
13614         * toplev.c (documented_lang_options): Document more
13615         language-specific options.
13616         * doc/invoke.texi (Warning Options): Correct documentation for
13617         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
13618         * c-decl.c (c_decode_option): Use a table to handle warning options.
13619
13620 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
13621
13622         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
13623         parameter to mmix_encode_section_info.
13624         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
13625         relocatably.  Always produce ELF, not mmo if linking relocatably.
13626         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
13627         first is non-zero, don't add symbol prefix.
13628         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
13629         prototype accordingly.
13630
13631 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
13632
13633         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
13634
13635 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
13636
13637         * configure.in: Increase required makeinfo version to 4.1.
13638         * configure: Regenerate.
13639
13640 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
13641
13642         * .cvsignore: Remove *.info* and genrtl*; these files are generated
13643         elsewhere now.
13644
13645 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
13646
13647         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
13648         * doc/invoke.texi: Fix @math uses.
13649
13650 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
13651
13652         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
13653         removal
13654
13655 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
13656
13657         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
13658         (powerpc-*-eabisimaltivec*): Same.
13659
13660         * config/rs6000/t-ppcendian: New.
13661
13662 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13663
13664         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
13665         nonimmediate_src_operand and nonimmediate_lsrc_operand to
13666         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
13667
13668 2002-03-03  Richard Henderson  <rth@redhat.com>
13669
13670         * toplev.c (rest_of_decl_compilation): Revert last two changes.
13671
13672 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
13673
13674         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
13675         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
13676         tree.c, config/m68k/m68k.c:
13677         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
13678         REAL_ARITHMETIC blocks unconditional.  Delete some further
13679         #ifdef blocks predicated on REAL_ARITHMETIC.
13680         * flags.h, toplev.c: Delete remaining references to
13681         flag_pretend_float.
13682
13683         * doc/invoke.texi: Remove documentation of -fpretend-float.
13684         * doc/tm.texi: Describe the various REAL_* macros as provided by
13685         real.h, not by the target configuration files.
13686
13687         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
13688         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
13689         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13690         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
13691         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
13692         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
13693         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
13694         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
13695         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13696         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
13697         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13698         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
13699         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
13700         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
13701         config/xtensa/xtensa.h:
13702         Do not define, undefine, or mention in comments any of
13703         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
13704         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
13705         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
13706         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
13707         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
13708         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
13709         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
13710         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
13711         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
13712
13713 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13714
13715         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
13716         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
13717         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
13718         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
13719         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
13720         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
13721         Delete.
13722         * defaults.h (BITS_PER_WORD): Define.
13723         * doc/tm.texi (BITS_PER_WORD): Document default value.
13724
13725         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
13726         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
13727         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
13728
13729 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13730
13731         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
13732         lieu of explicit sizeof/sizeof.
13733         * i386.c (override_options, ix86_init_mmx_sse_builtins,
13734         ix86_expand_builtin): Likewise.
13735         * mips.c (mips_add_gc_roots): Likewise.
13736         * mmix.c (mmix_output_condition): Likewise.
13737         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
13738         altivec_init_builtins): Likewise.
13739         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
13740         * cppexp.c (Nsuff, parse_number): Likewise.
13741         * cppinit.c (builtin_array_end): Likewise.
13742         * gcc.c (n_default_compilers, process_command): Likewise.
13743         * genpreds.c (output_predicate_decls): Likewise.
13744         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
13745         * lcm.c (N_ENTITIES): Likewise.
13746         * stor-layout.c (set_sizetype): Likewise.
13747
13748 2002-03-03  Richard Henderson  <rth@redhat.com>
13749
13750         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
13751         for types or labels.
13752
13753 2002-03-03  Richard Henderson  <rth@redhat.com>
13754
13755         * c-decl.c (start_decl): Initialized variables are not common.
13756
13757 2002-03-02  Per Bothner  <per@bothner.com>
13758
13759         * gcc.c (option_map):  Suport new --bootclasspath option.
13760         --CLASSPATH is now just an alias for --classpath.
13761
13762 2002-03-02  Richard Henderson  <rth@redhat.com>
13763
13764         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
13765         load if "internal" visibility.
13766         * doc/extend.texi: Document visibility meanings.
13767
13768 2002-03-02  Richard Henderson  <rth@redhat.com>
13769
13770         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
13771         to functions as well.
13772
13773 2002-03-02  Richard Henderson  <rth@redhat.com>
13774
13775         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
13776         (handle_visibility_attribute): Don't call assemble_visibility.
13777         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
13778         without asmspec.  Invoke assemble_alias when needed.
13779         * varasm.c (maybe_assemble_visibility): New.
13780         (assemble_start_function, assemble_variable, assemble_alias): Use it.
13781
13782 2002-03-02  Richard Henderson  <rth@redhat.com>
13783
13784         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
13785         invoke ENCODE_SECTION_INFO with first call flag.
13786
13787         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13788         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
13789         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
13790         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
13791         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
13792         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
13793         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
13794         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
13795         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
13796         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
13797         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
13798         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
13799         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
13800         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
13801         config/mcore/mcore-protos.h, config/mcore/mcore.c,
13802         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
13803         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
13804         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
13805         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
13806         config/sh/sh.h, config/sparc/sparc.h,
13807         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
13808         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
13809         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
13810         FIRST argument.  As needed, examine it and do nothing.
13811
13812         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
13813         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13814         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
13815
13816         * config/arm/t-pe (pe.o): Add dependencies.
13817
13818 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13819
13820         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
13821         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
13822         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
13823         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
13824         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
13825         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
13826         * defaults.h (BITS_PER_UNIT): Define.
13827         * doc/tm.texi (BITS_PER_UNIT): Document default value.
13828
13829 2002-03-02  Kazu Hirata  <kazu@hxi.com>
13830
13831         * config/h8300/h8300-protos.h: Add a prototype for
13832         compute_a_shift_length.
13833         * config/h8300/h8300.c (h8300_asm_insn_count): New.
13834         (compute_a_shift_length): Likewise.
13835         (h8300_adjust_insn_length): Do not adjust insn length of shift
13836         insns.
13837         * config/h8300/h8300.md (anonymous shift patterns): Use
13838         compute_a_shift_length.
13839
13840 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13841
13842         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
13843         trunc_int_for_mode.
13844
13845         * emit-rtl.c (offset_address): Call update_temp_slot_address.
13846
13847 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13848
13849         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
13850         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
13851         * flags.h (flag_zero_initialized_in_bss): Declare.
13852         * toplev.c (flag_zero_initialized_in_bss): New flag.
13853         (lang_independent_options): Add flag_zero_initialized_in_bss.
13854         * tree.c (initializer_zerop): New function.
13855         * tree.h (initializer_zerop): Declare.
13856         * varasm.c (assemble_variable): If we can emit bss, put zero
13857         initializers in the bss section.
13858
13859 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
13860
13861         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
13862         like more than one symbol per .weak directive.
13863
13864 2002-03-01  Richard Henderson  <rth@redhat.com>
13865
13866         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
13867         adjust argument_pointer by pretend_args_size.
13868         (ia64_va_start): Adjust va_start address by -pretend_args_size.
13869
13870 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13871
13872         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
13873
13874 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
13875
13876         * toplev.c (rest_of_compilation): Delete dead jumptables before
13877         loop.
13878         * flow.c (delete_dead_jumptables): Make global.
13879         * rtl.h (delete_dead_jumptables): Declare.
13880
13881 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
13882
13883         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
13884         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
13885         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
13886
13887 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13888
13889         * config/h8300/h8300-protos.h: Fix formatting.
13890         * config/h8300/h8300.c: Likewise.
13891         * config/h8300/h8300.h: Likewise.
13892
13893 2002-03-01  Kazu Hirata  <kazu@hxi.com>
13894
13895         * config/h8300/h8300.c (print_operand): Support 16-bit
13896         constant addresses.
13897         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
13898
13899 2002-02-28  Richard Henderson  <rth@redhat.com>
13900
13901         * expmed.c (store_bit_field): Prevent generation of CONCATs;
13902         pun complex values as integers; use gen_lowpart instead of
13903         gen_rtx_SUBREG.
13904         (extract_bit_field): Likewise.
13905
13906 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
13907             David Edelsohn  <edelsohn@gnu.org>
13908
13909         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
13910         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
13911         (SUPPORTS_WEAK): Likewise.
13912         * output.h (add_weak): Add tree param.
13913         * varasm.c (add_weak): Likewise.  Save decl.
13914         (struct weak_syms): Add decl field.
13915         (mark_weak_decls): New function.
13916         (init_varasm_once): ggc_add_root mark_weak_decls.
13917         (assemble_start_function): Use ASM_WEAKEN_DECL.
13918         (assemble_variable): Likewise.
13919         (assemble_alias): Likewise.
13920         (declare_weak): Pass decl to add_weak.
13921         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
13922         (remove_from_pending_weak_list): Declare and define for
13923         ASM_WEAKEN_DECL.
13924         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
13925         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
13926         * defaults.h (SUPPORTS_WEAK): Likewise.
13927         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13928         .weak for code sym.  Do emit .size for descriptor sym.
13929         (ASM_DECLARE_FUNCTION_SIZE): Define.
13930         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
13931         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
13932         .lglobl unless TARGET_XCOFF.  Formatting fixes.
13933         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13934         .weak for code sym.
13935         (HANDLE_PRAGMA_WEAK): Remove.
13936         (ASM_WEAKEN_LABEL): Remove.
13937         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
13938
13939 2002-03-01  Jason Merrill  <jason@redhat.com>
13940
13941         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
13942         (TARGET_EXPR_CLEANUP): New macro.
13943
13944 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
13945
13946         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
13947         to take ptr_extend into account as third type of extension.
13948         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
13949         fields used by SUBREG_PROMOTED_UNSIGNED_P.
13950         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
13951         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
13952         * calls.c (precompute_arguments): Use new macro.
13953         (expand_call): Ditto.
13954         * combine.c (nonzero_bits): Ditto.
13955         (record_promoted_value): Ditto.
13956         * expr.c (store_expr): Ditto.
13957         (expand_expr): Ditto.
13958         * function.c (assign_parms): Ditto.
13959
13960 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
13961
13962         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
13963         override -shared and -shared-libgcc.
13964
13965 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
13966
13967         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
13968         of "ultrasparc".
13969         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
13970         to be broken.
13971
13972 2002-02-28  Richard Henderson  <rth@redhat.com>
13973
13974         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
13975         4 cycle latency from MM producers.
13976         (ia64_internal_sched_reorder): Likewise with pipeline flush.
13977
13978 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
13979
13980         * mklibgcc.in: Don't use GNU make extension.
13981
13982 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
13983
13984         * c-parse.in (STATIC): New terminal.
13985         (scspec): New non-terminal.  Update productions accordingly.
13986         (program): Remove bogus ifc / end ifc.
13987         (array_declarator): Simplify production using STATIC.
13988
13989 2002-02-28  Jim Meyering  <meyering@lucent.com>
13990
13991         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
13992         \a still means TARGET_BELL.
13993
13994 2002-02-28  Richard Henderson  <rth@redhat.com>
13995
13996         * haifa-sched.c (sched_emit_insn): New.
13997         (schedule_block): Use last_scheduled_insn to track last insn.
13998         * sched-int.h (sched_emit_insn): Prototype.
13999         * config/ia64/ia64.c (last_issued): Remove.
14000         (ia64_variable_issue): Don't set it.
14001         (nop_cycles_until): Use sched_emit_insn.
14002
14003 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
14004
14005         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
14006         extended constants.
14007
14008 2002-02-28  Kazu Hirata  <kazu@hxi.com>
14009
14010         * config/h8300/h8300.c: Fix formatting.
14011         * config/h8300/h8300.h: Likewise.
14012
14013 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14014
14015         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
14016         which may overwrite the high byte of the frame pointer.
14017
14018 2002-02-28  Bo Thorsen  <bo@suse.de>
14019
14020         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
14021         (STARTFILE_SPEC): Add 64 bit files.
14022         (ENDFILE_SPEC): Likewise.
14023
14024 2002-02-28  Jason Merrill  <jason@redhat.com>
14025
14026         * c-decl.c (finish_function): Only warn about missing return
14027         statement with -Wreturn-type.
14028
14029 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
14030
14031         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
14032
14033         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
14034         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
14035
14036 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
14037
14038         * basic-block.h (BB_REACHABLE): Renumber.
14039         (BB_DIRTY, BB_NEW): New flags.
14040         (clear_bb_flags): Declare.
14041         (update_life_info_in_dirty_blocks): Declare.
14042         * cfg.c (clear_bb_flags): New function.
14043         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
14044         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
14045         reorder_insns, emit_insn_after): Mark block as dirty.
14046         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
14047         (update_life_info_in_dirty_blocks): New function.
14048         * recog.c (apply_change_group): Dirtify block.
14049
14050         * cse.c (cse_insn): Reorder emitting of jump insn to keep
14051         cfg consistent.
14052         * gcse.c (delete_null_pointer_checks): Likewise.
14053
14054         * toplev.c (dump_file_index): Move cse2 after bp,
14055         add DFI_null
14056         (dump_file_info): Similary.
14057         (rest_of_compilation): Avoid most of CFG rebuilds;
14058         do first if converision after null pointer checks, do cse2
14059         after branch prediction; avoid full liveness rebuild after
14060         initializing subregs.
14061         * invoke.texi (-d options): Document -du, renumber.
14062
14063         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
14064         (notice_new_block): Do not set BB_UPDATE_LIFE.
14065         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
14066          merge_blocks_move_successor_nojumps, merge_blocks,
14067          try_crossjump_to_edge): Likewise.
14068         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
14069         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
14070         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
14071         (merge_of_block): Do not use life_data_ok.
14072         (find_if_case_1): Do not use SET_UPDATE_LIFE.
14073         (if_convert): Use BB_DIRTY mechanizm to update life.
14074         * lcm.c (optimize_mode_switching): Update
14075         update_life_info_in_dirty_blocks
14076
14077 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
14078
14079         * Makefile.in (integrate.o): Update.
14080         * c-decl.c (copy_lang_decl): Rename.
14081         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14082         * integrate.c: Include langhooks.h.
14083         (copy_decl_for_inlining): Update to use langhook.
14084         * langhooks-def.h (lhd_do_nothing_t,
14085         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
14086         (LANG_HOOKS_INITIALIZER): Update.
14087         * langhooks.c (lhd_do_nothing_t): New.
14088         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
14089         * tree.h (copy_lang_decl): Remove.
14090 objc:
14091         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14092
14093 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
14094
14095         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
14096         POST_DEC, and POST_MODIFY.
14097
14098 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
14099
14100         * c-typeck.c (digest_init): Remove unused parameter; all
14101         callers changed.
14102
14103 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
14104
14105         * expmed.c (expand_shift): Correctly test for low part of a
14106         subreg.
14107
14108 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
14109
14110         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
14111         insn UIDs with insn addresses.
14112
14113 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
14114
14115         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
14116         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
14117         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
14118         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
14119         gcc.c, toplev.c: Delete code implementing -traditional mode.
14120
14121         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
14122         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
14123         Document removal of -traditional mode for compilation, and
14124         remove documentation only relevant to that mode.
14125
14126         * config/nextstep.h, config/ptx4.h, config/svr4.h,
14127         config/convex/convex.h, config/d30v/d30v.h,
14128         config/i386/dgux.h, config/i386/osf1elf.h,
14129         config/i386/osfelf.h, config/i386/osfrose.h,
14130         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
14131         config/m68k/hp310.h, config/m88k/dgux.h,
14132         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
14133         config/m88k/m88k.h, config/m88k/openbsd.h,
14134         config/mips/abi64.h, config/mips/osfrose.h,
14135         config/mips/svr4-5.h, config/mips/svr4-t.h,
14136         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14137         config/stormy16/stormy16.h: Remove all references to
14138         -traditional from target specs.  Delete all mention of the
14139         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
14140         delete a couple of commented-out definitions of
14141         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
14142         to -traditional.
14143
14144         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
14145         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
14146
14147 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
14148
14149         * mklibgcc.in: Don't use \n in a line subject to
14150         interpretation by echo.
14151
14152 2002-02-27  Graham Stott  <grahams@redhat.com>
14153
14154         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
14155         Constify NAME.
14156
14157         * loop.c (prescan_loop): Handle PARALLEL.
14158
14159         * unroll.c (loop_iterations): Return 0 if the add_val for
14160         a BIV is REG.
14161
14162         * final.c (output_operand_lossage): Constify PFX_STR.
14163
14164         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
14165
14166 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
14167
14168         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
14169         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
14170
14171 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
14172
14173         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14174
14175 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
14176
14177         * cpplex.c (_cpp_lex_token): Handle directives in macro
14178         arguments.
14179         * cpplib.c (_cpp_handle_directive): Save and restore state
14180         if parsing macro args when entering a directive.
14181         * cppmacro.c (collect_args): No need to handle directives
14182         in macro arguments.
14183         (enter_macro_context, replace_args): Use the original macro
14184         definition in case it was redefined whilst collecting arguments.
14185 doc:
14186         * cpp.texi: Update.
14187
14188 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
14189
14190         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
14191         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
14192         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
14193         method on AIX.
14194         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
14195         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
14196         (load_toc_v4_PIC_2): Same.
14197
14198 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
14199
14200         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
14201
14202 2002-02-26  Richard Henderson  <rth@redhat.com>
14203
14204         * config/alpha/alpha.md (ashldi_se): Re-enable.
14205
14206 2002-02-26  Richard Henderson  <rth@redhat.com>
14207
14208         * config/alpha/alpha.c (alpha_encode_section_info): Examine
14209         MODULE_LOCAL_P; improve commentary.
14210
14211 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
14212
14213         * doc/cpp.texi: Clarify documentation of relationship between
14214         #line and #include.
14215
14216 2002-02-26  Kazu Hirata  <kazu@hxi.com>
14217
14218         * config/h8300/h8300-protos.h: Update the prototype for
14219         compute_logical_op_length.  Add the prototype for
14220         compute_logical_op_cc.
14221         * config/h8300/h8300.c (compute_logical_op_length): Figure out
14222         code from operands.
14223         (compute_logical_op_cc): New.
14224         * config/h8300/h8300.md: Combine all the logical op patterns
14225         in HImode and SImode.  Use compute_logical_op_cc.
14226
14227 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
14228
14229         * config/i386/i386.c (print_operand): Don't append ATT-style
14230         length suffixs to x87 opcodes when in Intel mode.
14231
14232 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
14233
14234         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
14235         (init_emit_once): Update calls.
14236         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
14237         (init_syntax_once): Prototype.
14238
14239 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14240
14241         * pa-linux.h (LIB_SPEC): Update definition.
14242         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14243
14244 2002-02-26  Richard Henderson  <rth@redhat.com>
14245
14246         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
14247         if we emitted a stop bit.
14248
14249 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
14250
14251         * configure.in (libgcc_visibility): Substitute.
14252         * configure: Rebuilt.
14253         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
14254         defined symbols .hidden.
14255
14256 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
14257
14258         * attribs.c (c_common_attribute_table): Add visibility.
14259         (handle_visibility_attribute): New function.
14260         * varasm.c (assemble_visibility): New function.
14261         * output.h (assemble_visibility): Add prototype.
14262         * tree.h (MODULE_LOCAL_P): Define.
14263         * crtstuff.c (__dso_handle): Use visibility attribute.
14264         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
14265         for MODULE_LOCAL_P symbols too.
14266         * config/ia64/ia64.c (ia64_encode_section_info): Handle
14267         MODULE_LOCAL_P symbols the same way as local symbols.
14268         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
14269         into .sdata/.sbss by the user.
14270         * doc/extend.texi (Function Attributes): Document visibility
14271         attribute.
14272
14273 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
14274
14275         PR debug/5770
14276         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
14277         STRING_CST initializer spanning the whole variable without
14278         embedded zeros.
14279         If expand_expr returned MEM, don't use it.
14280
14281 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
14282
14283         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
14284         generate a die for the lexical block.
14285
14286 2002-02-26  Kazu Hirata  <kazu@hxi.com>
14287
14288         * config/h8300/h8300-protos.h: Add a prototype for
14289         compute_logical_op_length.
14290         * config/h8300/h8300.c (compute_logical_op_length): New.
14291         * config/h8300/h8300.md (anonymous logical patterns): Use
14292         compute_logical_op_length for length.
14293
14294 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
14295
14296         * dwarf2out.c (modified_type_die): Do not call type_main_variant
14297         for vectors.
14298         (gen_type_die): Same.
14299
14300         * attribs.c (handle_vector_size_attribute): Set debug information.
14301
14302 2002-02-26  Daniel Egger  <degger@fhm.edu>
14303
14304         * config/rs6000/rs6000.md: Swap define_insn attributes to
14305         fix incorrect generation of merge high instructions instead
14306         of merge low.
14307
14308 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
14309
14310         * c-typeck.c (really_start_incremental_init): Use
14311         bitsize_zero_node for vectors.
14312
14313 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
14314
14315         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
14316         ("*set_vrsave_internal"): Same.
14317
14318 2002-02-25  Richard Henderson  <rth@redhat.com>
14319
14320         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
14321         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
14322
14323 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
14324
14325         PR target/5755
14326         * config/i386/i386.c (ix86_return_pops_args): Only pop
14327         fake structure return argument if it was passed on the stack.
14328
14329 2002-02-25  Jason Merrill  <jason@redhat.com>
14330
14331         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
14332         RESULT_DECL.
14333
14334 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
14335
14336         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
14337         link with shared_name only.
14338         * doc/invoke.texi (Link Options): Document new behavior.
14339
14340 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
14341
14342         * c-typeck.c (push_init_level): Handle vectors.
14343
14344 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
14345
14346         * config/sparc/sparc.c (const64_high_operand): Zero-extend
14347         operands of SPARC_SETHI_P.
14348         (input_operand): Likewise.
14349         (sparc_emit_set_const32): Likewise.
14350         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
14351         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
14352         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
14353         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
14354         (movdi_insn_sp64_vis): Likewise.
14355         (movdi split, movdf split): Use SETHI32.
14356         * doc/md.texi: Document SPARC constraints L, M and N.
14357
14358 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
14359
14360         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
14361         ("*set_vrsave_internal"): use mfspr for Darwin.
14362
14363         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
14364         gen_get_vrsave_internal.
14365
14366 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14367
14368         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
14369
14370 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14371
14372         * cpplex.c (cpp_interpret_charconst): Get signedness or
14373         otherwise of wide character constants correct.
14374         * cppexp.c (lex): Get signedness of wide charconsts correct.
14375
14376 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14377
14378         * optabs.c (widen_operand): Only call convert_modes for
14379         promoted SUBREG if signedness matches.
14380         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
14381
14382 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14383
14384         * cpplib.c (glue_header_name): Use local buffer to build up
14385         header name.
14386
14387 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14388
14389         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
14390
14391 2002-02-23  Kazu Hirata  <kazu@hxi.com>
14392
14393         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
14394         H8/300[HS] separately.
14395         * config/h8300/h8300.md: Remove the early clobber constraint
14396         from bit field patterns.
14397
14398 2002-02-23  Kazu Hirata  <kazu@hxi.com>
14399
14400         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
14401         register_operand.
14402         (mulhisi3): Likewise.
14403         (umulqisi3): Likewise.
14404         (umulhisi3): Likewise.
14405
14406 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14407
14408         * cppinit.c (output_deps): Correct test for stdout output.
14409         (init_dependency_output): Cure warning.
14410
14411 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14412
14413         * expr.c (store_expr): When converting expression to promoted
14414         equivalent type, allow using SUBREG_REG of TARGET as the target
14415         of the expansion of EXP.
14416         * loop.c (basic_induction_var, case SUBREG): Always look inside.
14417         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
14418         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
14419         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
14420         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
14421
14422 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
14423
14424         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
14425         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
14426         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
14427
14428 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
14429
14430         PR optimization/5747
14431         * loop.c (scan_loop): Update reg info if move_movables created new
14432         pseudos.
14433
14434 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
14435
14436         * gcc.c (init_gcc_spec): Revert last change.
14437
14438 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
14439
14440         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
14441         gpc_reg_operand constraint.
14442
14443 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
14444
14445         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
14446         Simplify comparison of `low'.
14447         (add_operand): Fix formatting.
14448         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
14449         (mask_operand): Disallow mask to wrap in 64-bit mode.
14450         (rs6000_stack_info): Remove redundant test setting push_p.
14451         (output_toc): Fix formatting.
14452         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
14453         cc_reg_not_cr0_operand constraint.
14454         (booldi3, boolcdi3 splitters): Same.
14455
14456 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
14457
14458         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
14459
14460 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
14461
14462         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
14463         gcc invoked with -shared-libgcc.
14464
14465 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
14466
14467         PR c++/5748
14468         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
14469         decl if any of elements was TREE_USED.
14470
14471 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
14472
14473         * config/sparc/sol2.h: Don't include sys/mman.h.
14474         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
14475         (arith_4096_operand): Don't throw high bits away.
14476         (const64_operand): Take sign extension of CONST_INTs into account.
14477         (const64_high_operand, sparc_emit_set_const32): Likewise.
14478         (GEN_HIGHINT64): Likewise.
14479         (sparc_emit_set_const64_quick1): Likewise.
14480         (const64_is_2insns): Likewise.
14481         (print_operand): Use trunc_int_for_mode for sign extension.
14482         * config/sparc/sparc.h (SMALL_INT32): Likewise.
14483         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
14484         chars.  Assume CONST_INT is already properly sign-extended.
14485         (movdi split): Sign-extend each SImode part.
14486         (andsi3 split): Don't mask high bits off, so that result
14487         remains properly sign-extend.
14488         (iorsi3 split): Likewise.
14489         (xorsi3 split): Likewise.
14490
14491 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
14492
14493         * fold-const.c (fold): Fix typo in comments.
14494
14495 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
14496
14497         * Makefile.in (langhooks.o): Update dependencies.
14498
14499 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
14500
14501         * langhooks.c: Include flags.h.
14502
14503 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
14504
14505         * testsuite/gcc.dg/attr-alwaysinline.c: New.
14506
14507         * c-common.c (c_common_post_options): Set inline trees by
14508         default.
14509
14510         * doc/extend.texi (Function Attributes): Document always_inline
14511         attribute.
14512         Update documentation about inlining when not optimizing.
14513
14514         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
14515
14516         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
14517         unless DECL_ALWAYS_INLINE.
14518
14519         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
14520         unless DECL_ALWAYS_INLINE.
14521         (c_disregard_inline_limits): Disregard if always_inline set.
14522
14523         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
14524         Disregard if always_inline set.
14525         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
14526         unless DECL_ALWAYS_INLINE.
14527
14528         * attribs.c (handle_always_inline_attribute): New.
14529         (c_common_attribute_table): Add always_inline.
14530
14531         * config/rs6000/altivec.h: Add prototypes for builtins
14532         requiring the always_inline attribute.
14533
14534 2002-02-21  Eric Christopher  <echristo@redhat.com>
14535
14536         * expmed.c (store_bit_field): Try to simplify the subreg
14537         before generating a new one when when the mode size of
14538         value is less than maxmode.
14539
14540 2002-02-21  Richard Henderson  <rth@redhat.com>
14541
14542         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
14543         than gen_rtx_PLUS to form the sum.
14544         * explow.c (force_reg): Rearrange to not allocate new pseudo
14545         when force_operand returns a register.
14546         * expr.c (expand_assignment): Allow offset_rtx expansion to
14547         return a sum.  Do not force addresses into registers.
14548         (expand_expr): Likewise.
14549         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
14550         to canonicalize arithmetic that didn't simpify.
14551         (simplify_plus_minus): New argument force; update
14552         all callers.  Don't split CONST unless we can do something with it,
14553         and wouldn't lose the constness of the operands.
14554
14555         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
14556         that we generated earlier.
14557
14558 2002-02-21  Tom Tromey  <tromey@redhat.com>
14559
14560         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14561         (output_line_info): Use constant `1', with a long explanatory
14562         comment.
14563         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
14564
14565 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
14566
14567         * jump.c (redirect_jump): If old label has no UID, don't try to
14568         delete it.
14569
14570 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
14571
14572         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
14573         If input is constant, do shifts at compile time.
14574
14575 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
14576
14577         * doc/extend.texi: Fix some more overfull hboxes.
14578
14579 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
14580
14581         PR optimization/4994
14582         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
14583         register moves.
14584
14585 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
14586
14587         PR c++/4574
14588         * expr.h (expand_and): Add mode argument.
14589         * expmed.c (expand_and): Add mode argument.
14590         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
14591         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
14592         * except.c (expand_builtin_extract_return_addr): Likewise.
14593         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
14594         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
14595         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
14596         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
14597         * config/c4x/c4x.md: Use GEN_INT (x) instead of
14598         gen_rtx (CONST_INT, VOIDmode, x).
14599
14600 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
14601
14602         PR c/4697:
14603         * stmt.c (warn_if_unused_value): Move side effects test once more.
14604
14605 2002-02-20  Torbjorn Granlund  <tege@swox.com>
14606
14607         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
14608         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
14609
14610 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
14611
14612         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
14613         SUBREG or ZERO_EXTEND.
14614
14615 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
14616
14617         * sh.h (current_function_anonymous_args): Remove.
14618         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
14619         of current_function_varargs and current_function_stdarg is set.
14620         * sh.c (sh_expand_prologue): Check current_function_varargs /
14621         current_function_stdarg / TARGET_SH5 instead of
14622         current_function_anonymous_args.
14623
14624         * sh64.h (TARGET_VERSION): Define.
14625
14626 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
14627
14628         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
14629         VRSAVE_REGNO on TARGET_ALTIVEC.
14630
14631 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
14632
14633         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
14634         bits of SImode const_int.
14635         (includes_rshift_p): Likewise.
14636         (print_operand): Call mask_operand and mask64_operand with correct
14637         mode.
14638         (rs6000_output_function_epilogue): Pad traceback table to word.
14639         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
14640         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
14641         mask64_operand with correct mode.
14642         (FUNCTION_ARG_REGNO_P): Correct parentheses.
14643
14644 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
14645
14646         PR debug/4461
14647         * varasm.c (get_pool_constant_mark): New.
14648         * rtl.h (get_pool_constant_mark): Add prototype.
14649         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
14650         be represented if it has not been output.
14651
14652 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
14653
14654         * combine.c (do_SUBST): Sanity check substitutions of
14655         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
14656         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
14657         CONST_INT into its operand.
14658         (known_cond): Likewise, for ZERO_EXTEND.
14659         * simplify-rtx.c (simplify_unary_operation): Fix condition to
14660         allow for simplification of wide modes.  Reject CONST_INTs in
14661         ZERO_EXTEND when their actual mode is not given.
14662
14663 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
14664
14665         * c-decl.c (pushdecl): If no global declaration is found for an
14666         extern declaration in block scope, try a limbo one.
14667
14668 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
14669
14670         PR c++/4401
14671         * c-common.c (pointer_int_sum): Moved from...
14672         * c-typeck.c (pointer_int_sum): ...here.
14673         * c-common.h (pointer_int_sum): Add prototype.
14674
14675 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
14676
14677         PR c++/5713
14678         * c-decl.c (duplicate_decls): Return 0 if issued error about
14679         redeclaration.
14680
14681 2002-02-20  Roger Sayle  <roger@eyesopen.com>
14682             Jakub Jelinek  <jakub@redhat.com>
14683
14684         PR c/4389
14685         * tree.c (host_integerp): Ensure that the constant integer is
14686         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
14687         when pos is zero or non-zero respectively.  Clarify comment.
14688         * c-format.c (check_format_info_recurse): Fix host_integerp
14689         usage; the pos argument should be zero when assigning to a
14690         signed HOST_WIDE_INT.
14691
14692 2002-02-20  Richard Henderson  <rth@redhat.com>
14693
14694         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
14695         of the operand, rather than assuming TImode.
14696         (ix86_expand_binop_builtin): Cope with commutative patterns
14697         using nonimmediate_operand for both operands.
14698         (ix86_expand_timode_binop_builtin): Likewise.
14699         (ix86_expand_store_builtin): Validate operand 1.
14700         (ix86_expand_unop1_builtin): Likewise.
14701
14702 2002-02-20  Philip Blundell  <philb@gnu.org>
14703
14704         PR 5705
14705         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
14706
14707 2002-02-20  Richard Henderson  <rth@redhat.com>
14708
14709         PR c/5615
14710         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
14711
14712 2002-02-20  Tom Tromey  <tromey@redhat.com>
14713
14714         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14715         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14716         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14717         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14718         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
14719         unconditionally.
14720
14721 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
14722
14723         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
14724           for (const_int 0) in X not just INTVAL.
14725
14726 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
14727
14728         * doc/extend.texi: Avoid or reduce overfull hboxes.
14729
14730 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
14731
14732         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
14733         operations if the field does not start at a mode boundary.
14734
14735 2001-02-20      Joel Sherrill <joel@OARcorp.com>
14736
14737         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
14738         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
14739         Also done for -Acpu and -Amachine.
14740
14741 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
14742
14743         * cppinit.c (init_dependency_output): Take deps output file
14744         from -o if none given with -MF.  Suppress normal output.
14745         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
14746         * doc/cpp.texi, doc/invoke.texi: Update.
14747
14748 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
14749
14750         * toplev.c (output_quoted_string): Write unprintable
14751         characters with octal escapes.
14752
14753 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
14754
14755         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
14756         really_call_used[VRSAVE_REGNO] if not Altivec.
14757
14758 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
14759
14760         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
14761         MODE_MASK.
14762         (constant_pool_expr_1): Fix formatting.
14763         (rs6000_legitimize_reload_address): Likewise.
14764
14765 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14766
14767         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
14768         now that we have one.
14769
14770 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
14771
14772         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
14773         end of first block of bitfields (which was only seven bits);
14774         rename dummy to unused_1; remove comment which is no longer true.
14775
14776 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
14777
14778         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
14779
14780 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
14781
14782         PR 5399
14783         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
14784         if generating PIC.
14785
14786         PR 5054
14787         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
14788         arm_is_longcall_p rather than inspecting call-type cookie
14789         directly.
14790         (call_value_insn) [TARGET_THUMB]: Likewise.
14791
14792 2002-02-19  Graham Stott  <grahams@redhat.com>
14793
14794         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
14795
14796 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
14797
14798         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
14799         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
14800         (FP_SAVE_INLINE): Delete.
14801
14802         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
14803         * config/rs6000/eabi.asm: Remove ABI save restore routines.
14804         * config/rs6000/t-ppccomm: Build crtsavres.o.
14805         * config/rs6000/crtsavres.asm: New file.
14806
14807 2002-02-19  Philip Blundell  <philb@gnu.org>
14808
14809         * config/arm/arm.c (use_return_insn): Don't reject interrupt
14810         functions.
14811         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
14812         (output_return_instruction): Allow interrupt functions to return with
14813         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
14814         (arm_expand_prologue): Subtract 4 before stacking LR in an
14815         interrupt function.
14816
14817 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
14818
14819         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
14820         decl, not just FUNCTION_DECL.
14821         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
14822         (arm_assemble_integer): Likewise.
14823         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
14824         marked local.
14825
14826 2002-02-19  matthew green  <mrg@eterna.com.au>
14827
14828         * config.gcc (sparc-*-netbsdelf*): Enable target.
14829         (sparc64-*-netbsd*): New target.
14830         * config/sparc/netbsd-elf.h: New file.
14831         * config/sparc/t-netbsd64: New file.
14832
14833 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
14834
14835         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
14836
14837 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
14838
14839         * doc/invoke.texi: explicitly list the style guidelines that
14840         -Weffc++ checks for.
14841
14842 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
14843
14844         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
14845
14846 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14847
14848         PR other/5718
14849         * gcc.c (cpp_unique_options): Treat -o as indicating object file
14850         only if not -E.  If -E, pass -o through to the preprocessor.
14851
14852 2002-02-19  Kazu Hirata  <kazu@hxi.com>
14853
14854         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
14855         register number with an appropriate macro.
14856
14857 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
14858
14859         * doc/rtl.texi (Constants): Close @code tag.
14860
14861 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
14862
14863         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
14864         ("mmx_uavgv4hi3"): Same.
14865         ("pmulhrwv4hi3"): Same.
14866
14867         * tree-inline.c (walk_tree): Handle vectors.
14868
14869         * c-common.c (constant_expression_warning): Handle vectors.
14870         (overflow_warning): Same.
14871
14872         * sched-deps.c (sched_analyze_2): Handle vectors.
14873
14874         * rtlanal.c (rtx_unstable_p): Handle vectors.
14875         (rtx_varies_p): Same.
14876         (count_occurrences): Same.
14877         (regs_set_between_p): Same.
14878         (modified_between_p): Same.
14879         (modified_in_p): Same.
14880         (volatile_insn_p): Same.
14881         (volatile_refs_p): Same.
14882         (side_effects_p): Same.
14883         (may_trap_p): Same.
14884         (inequality_comparisons_p): Same.
14885         (replace_regs): Same.
14886         (computed_jump_p_1): Same.
14887
14888         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
14889         argument.
14890         (inner_mode_array): New.
14891         (copy_rtx): Handle vectors.
14892         (copy_most_rtx): Same.
14893         (rtx_equal_p): Same.
14894         (get_mode_alignment): Adjust for vectors.
14895
14896         * resource.c (mark_referenced_resources): Handle vectors.
14897         (mark_set_resources): Same.
14898
14899         * reload1.c (eliminate_regs): Handle vectors.
14900         (elimination_effects): Same.
14901         (scan_paradoxical_subregs): Same.
14902
14903         * reload.c (subst_reg_equivs): Handle vectors.
14904
14905         * regrename.c (scan_rtx): Handle vectors.
14906
14907         * regclass.c (reg_scan_mark_refs): Handle vectors.
14908
14909         * recog.c (find_single_use_1): Handle vectors.
14910
14911         * local-alloc.c (equiv_init_varies_p): Handle vectors.
14912         (contains_replace_regs): Same.
14913         (memref_referenced_p): Same.
14914
14915         * integrate.c (copy_rtx_and_substitute): Handle vectors.
14916         (subst_constants): Same.
14917
14918         * genattrtab.c (attr_copy_rtx): Handle vectors.
14919         (encode_units_mask): Same.
14920         (clear_struct_flag): Same.
14921         (count_sub_rtxs): Same.
14922
14923         * gcse.c (want_to_gcse_p): Handle vectors.
14924         (oprs_unchanged_p): Same.
14925         (hash_expr_1): Same.
14926         (oprs_not_set_p): Same.
14927         (expr_killed_p): Same.
14928         (compute_transp): Same.
14929         (store_ops_ok): Same.
14930
14931         * function.c (purge_addressof_1): Do not allow paradoxical subregs
14932         of vectors.
14933         (fixup_var_refs_1): Same.
14934         (instantiate_virtual_regs_1): Same.
14935
14936         * fold-const.c (operand_equal_p): Handle vectors.
14937         (fold): Same.
14938         (rtl_expr_nonnegative_p): Same.
14939
14940         * flow.c (mark_used_regs): Handle vectors.
14941
14942         * df.c (df_uses_record): Handle vectors.
14943
14944         * cselib.c (cselib_subst_to_values): Handle vectors.
14945         (cselib_mem_conflict_p): Same.
14946         (hash_rtx): Same.
14947
14948         * cse.c (canon_reg): Handle vectors.
14949         (fold_rt): Same.
14950         (cse_process_notes): Same.
14951         (count_reg_usage): Same.
14952         (canon_hash): Same.
14953
14954         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
14955
14956         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
14957
14958         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
14959         (gen_rtx): Handle CONST_VECTOR.
14960         (gen_const_vector_0): New.
14961         (copy_rtx_if_shared): CONST_VECTORs can be shared.
14962         (reset_used_flags): Same.
14963         (copy_insn_1): Same.
14964         (initializer_constant_valid_p): Handle VECTOR_CST.
14965
14966         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
14967
14968         * doc/rtl.texi (Constants): Document const_vector.
14969         (CONST0_RTX): Update for vectors.
14970         (RTL sharing): Same.
14971
14972         * print-tree.c (print_node): Add case for VECTOR_CST.
14973
14974         * tree.h (TREE_VECTOR_CST_ELTS): New.
14975         (struct tree_vector): New.
14976         (union tree_node): Add vector node.
14977         (build_vector): Add prototype.
14978
14979         * tree.def (VECTOR_CST): New.
14980
14981         * tree.c (build_vector): New.
14982
14983         * expmed.c (make_tree): Handle CONST_VECTOR.
14984
14985         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
14986         (CONST_VECTOR_ELT): New.
14987         (CONST_VECTOR_NUNITS): New.
14988
14989         * machmode.h (GET_MODE_INNER): New.
14990         (DEF_MACHMODE): Accept 8th arg.
14991
14992         * machmode.def: Add 8th argument for vector inner mode.
14993         Add inner vector modes for vectors.
14994
14995         * rtl.def (VEC_CONST): Remove.
14996         (CONST_VECTOR): New.
14997
14998         * expr.c (clear_storage): Allow vectors.
14999         (is_zeros_p): Handle VECTOR_CST.
15000
15001         * varasm.c (output_constant_pool): Handle vectors.
15002         (rtx_const): Add veclo and vechi fields.
15003         (kind): Add RTX_VECTOR.
15004         (decode_rtx_const): Add case for vector.
15005
15006         * config/rs6000/rs6000-protos.h: Add zero_constant.
15007
15008         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
15009         constants.  Force easy vector constants into memory.
15010         (easy_vector_constant): New.
15011         (emit_easy_vector_constant): New.
15012         (rs6000_legitimize_reload_address): Do not generate bad reloads on
15013         darwin.
15014
15015         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
15016         instruction does.
15017         ("altivec_lvxl"): Same.
15018         (altivec_lvebx): Same.
15019         (altivec_lvehx): Same.
15020         (altivec_lvewx): Same.
15021         ("*movv4si_const0"): New.
15022         ("*movv4sf_const0"): New.
15023         ("*movv8hi_const0"): New.
15024         ("*movv16qi_const0"): New.
15025
15026 2002-02-18  Kazu Hirata  <kazu@hxi.com>
15027
15028         * config/h8300/h8300.c (notice_update_cc): Use
15029         cc_status.value2.
15030
15031 2002-02-18  Kazu Hirata  <kazu@hxi.com>
15032
15033         * config/h8300/h8300.md (divmod patterns): Change the
15034         constraints for operands[1] to register_operand.
15035
15036 2002-02-18  Kazu Hirata  <kazu@hxi.com>
15037
15038         * config/h8300/h8300-protos.h: Remove the prototype for
15039         p_operand.
15040         * config/h8300/h8300.c (p_operand): Remove.
15041         * config/h8300/h8300.md: Replace p_operand with
15042         const_int_operand.
15043
15044 2002-02-18 Philip Blundell <pb@nexus.co.uk>
15045
15046         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
15047         comment.
15048         (output_return_instruction): Allow use of LDR to unstack
15049         return addresss even for interrupt handlers or when
15050         interworking.  If compiling for ARMv5, use interworking-safe
15051         return instructions by default.  Remove duplicated code and
15052         lengthy "strcat" sequences.
15053
15054 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15055
15056         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
15057         (LINK_EH_SPEC): Define.
15058         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
15059
15060 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
15061
15062         * config/s390/s390.c (s390_emit_prologue): Do not set the
15063         frame_related flag for call-clobbered registers.
15064
15065 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
15066
15067         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
15068         (construct_container): Fix handling of SSE operands.
15069         (ix86_expand_builtin): Fix handling of 64bit pointers.
15070         (mmx_maskmovq_rex): New pattern.
15071
15072 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
15073
15074         * regrename.c (kill_set_value): Handle subregs properly.
15075
15076 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
15077
15078         * objc/objc-act.c (handle_impent): Remove leading '*'
15079         from objc_class_name.
15080
15081 2002-02-17  Richard Henderson  <rth@redhat.com>
15082
15083         * config/alpha/alpha.c (some_small_symbolic_operand,
15084         some_small_symbolic_operand_1, split_small_symbolic_operand,
15085         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
15086         Handle small SYMBOL_REFs anywhere, not just inside memories.
15087         * config/alpha/alpha-protos.h: Update.
15088         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15089         * config/alpha/alpha.md (small symbolic operand splitter): Update.
15090
15091 2002-02-17  Roland McGrath  <roland@frob.com>
15092
15093         * config.gcc (powerpc-*-gnu-gnualtivec*,
15094         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
15095         * config/rs6000/gnu.h: New file.
15096         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
15097         Grok "gnu" in rs6000_abi_name.
15098         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
15099         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
15100         Grok -mcall-gnu analogous to -mcall-linux et al.
15101         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15102         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
15103         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
15104
15105 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
15106
15107         PR c/3444:
15108         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
15109         shortening.
15110
15111 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15112
15113         * config/cris/cris.h: Undefine STARTFILE_SPEC and
15114         ENDFILE_SPEC before (re)defining them.
15115
15116 2002-02-17  Kazu Hirata  <kazu@hxi.com>
15117
15118         * config/h8300/h8300.c: Fix formatting.
15119         * config/h8300/h8300.h: Likewise.
15120
15121 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15122
15123         * doc/tm.texi: Explain why empty strings should not be
15124         marked for translation.
15125
15126 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15127
15128         * final.c (output_operand_lossage): Changed to accept
15129         printf style arguments. Change calls where necessary.
15130         * output.h (output_operand_lossage): Change declaration
15131         accordingly. Update copyright.
15132         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
15133         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
15134         Update copyright date where necessary.
15135
15136         * config/i386/i386.c (print_operand): Likewise. Remove use of
15137         sprintf.
15138
15139         * config/cris/cris.c (cris_operand_lossage): Likewise.
15140         Rename parameter so that exgettext recognizes it as
15141         translatable message.
15142         (LOSE_AND_RETURN): Rename parameter to msgid.
15143
15144 2002-02-17  Kazu Hirata  <kazu@hxi.com>
15145
15146         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
15147         hard coded register number with an appropriate macro.
15148         (HARD_REGNO_MODE_OK): Likewise.
15149         (ARG_POINTER_REGNUM): Likewise.
15150         (STATIC_CHAIN_REGNUM): Likewise.
15151         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
15152         * config/h8300/h8300.md (define_constants): Define more
15153         register numbers.
15154
15155 2002-02-17  Philipp Thomas  <pthomas@suse.de>
15156
15157         * config/i386/i386.h: Don't mark empty strings for translation.
15158
15159 2002-02-16  H.J. Lu <hjl@gnu.org>
15160
15161         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
15162
15163 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
15164
15165         * cppinit.c (merge_include_chains): Check for brack being
15166         NULL before attempting to merge it with qtail.
15167
15168 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
15169
15170         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
15171         DBX_DEBUG.
15172
15173 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15174
15175         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
15176
15177 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15178
15179         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
15180         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
15181         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
15182
15183 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15184
15185         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
15186         now only if !TARGET_FIX.
15187         (*movsi_nt_vms_fix): New pattern.
15188
15189 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
15190
15191         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
15192         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
15193         (alpha_sa_mask, alpha_sa_size): Reflect above change.
15194         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
15195         (alpha_start_function, alpha_expand_epilogue): Likewise.
15196         (unicosmk_gen_dsib): Likewise.
15197
15198 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15199
15200         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
15201
15202 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
15203
15204         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
15205         check_and_change_labels, s390_final_chunkify): Delete.
15206         (s390_split_branches, s390_chunkify_pool): New functions.
15207         (s390_function_prologue): Call them.
15208
15209         * config/s390/s390.h (S390_REL_MAX): Delete.
15210         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
15211
15212         * config/s390/s390.md (cjump, icjump, jump): Fix length
15213         attribute calculation.
15214
15215
15216 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
15217
15218         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
15219         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
15220
15221 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15222
15223         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
15224         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
15225         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
15226
15227 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
15228
15229         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
15230
15231 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
15232
15233         * reload.c (find_dummy_reload): Check that an output register
15234         is valid for its mode.
15235
15236 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
15237
15238         * combine.c (known_cond): After replacing the REG of a SUBREG, try
15239         to simplify it.
15240
15241         * function.c (assign_parms): Demote promoted argument passed by
15242         transparent reference.
15243
15244 2001-02-14      Joel Sherrill <joel@OARcorp.com>
15245
15246         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
15247         -Acpu() and -Amachine() to eliminate warnings.
15248
15249 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
15250
15251         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
15252
15253 2002-02-14  Kazu Hirata  <kazu@hxi.com>
15254
15255         * config/h8300/h8300-protos.h: Update the prototype for
15256         const_costs.
15257         * config/h8300/h8300.c (const_costs): Treat SET as a little
15258         more expensive operation.
15259         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
15260         reference to const_costs.
15261
15262 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
15263
15264         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
15265
15266 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
15267
15268         PR c/5503:
15269         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
15270         use arguments from newtype.
15271
15272 2002-02-13  Eric Christopher  <echristo@redhat.com>
15273
15274         * config/mips/mips.c (override_options): Add check for march/mipsX
15275         on the same command line. Fix error message in cpu processing.
15276         Remove architecture and ISA checks.
15277
15278 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
15279
15280         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
15281
15282         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
15283
15284 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
15285
15286         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
15287         alternatives.
15288         ("*movv8hi_internal1"): Same.
15289         ("*movv16qi_internal1"): Same.
15290         ("*movv4sf_internal1"): Same.
15291
15292         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
15293         not push_reload for altivec modes.
15294
15295 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
15296
15297         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
15298         all RTEMS targets including removal of #includes from config/*/rtems*.h
15299         file and adding them to tm_file setting. Added xm_defines=POSIX to
15300         many targets.
15301         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
15302         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
15303         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
15304         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
15305         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
15306         config/m68k/rtemself.h: Ditto.
15307         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
15308         config/mips/rtems64.h: Ditto.
15309         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
15310         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
15311         Ditto.
15312         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
15313         config/sparc/rtemself.h: Ditto.
15314         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
15315         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
15316         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
15317         more like arm-elf.
15318         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
15319         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
15320         target made more similar to i386-elf.
15321         * config/i386/t-rtems-i386: Added soft float support and multilibs.
15322         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
15323         be similar to config/m68k/t-m68kelf.
15324         * gthr-rtems.h: Encapsulate with extern "C" for C++.
15325
15326 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
15327
15328         * regmove.c (kill_value): Handle subregs.
15329
15330 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
15331
15332         * i386.md (mul patterns): Allow memory operand to be first;
15333         add expanders where needed; fix constraints.
15334         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
15335         Allow memory operand to be the first.
15336
15337         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
15338         operands.
15339
15340 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
15341
15342         PR c/5681:
15343         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
15344         GET_MODE (x).
15345
15346 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
15347
15348         PR optimization/5547:
15349         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
15350         all valid IA-32 address modes involving non-scaled %ebx and
15351         GOT/GOTOFF as displacement.
15352
15353 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
15354
15355         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
15356         after emitting ltorg insns.
15357
15358         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
15359         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
15360         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
15361         *abssf2): Fix "op_type" attribute.
15362
15363 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
15364
15365         * mkconfig.sh: Avoid using a subshell redirect.
15366         ($output.T): Change to $(output)T.
15367         (ENABLE_NLS): Remove unneeded undef.
15368
15369         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
15370         * config/alpha/x-vms (libsubdir): Define.
15371
15372         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
15373         register frame procedures. Optimize retrieving context.
15374
15375         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
15376         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
15377         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
15378
15379 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15380
15381         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
15382         Make same change as for find_base_value.
15383
15384 2002-02-13  Kazu Hirata  <kazu@hxi.com>
15385
15386         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
15387         of QImode and SImode.
15388
15389 2002-02-13  Kazu Hirata  <kazu@hxi.com>
15390
15391         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
15392         length computation of movsi.
15393         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
15394
15395 2002-02-13  Kazu Hirata  <kazu@hxi.com>
15396
15397         * config/h8300/h8300.md (subqi3): Tighten the predicate for
15398         operands[2] to register_operand.
15399
15400 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
15401
15402         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
15403
15404 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
15405
15406         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
15407         for altivec_lvx* and altivec_stvx*.
15408         ("*movv4si_internal"): Add constraint for loading from GPRs.
15409         ("*movv8hi_internal1"): Same.
15410         ("*movv16qi_internal1"): Same.
15411         ("*movv4sf_internal1"): Same.
15412
15413         * config/rs6000/rs6000.c (altivec_register_operand): New.
15414
15415         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
15416         altivec_register_operand.
15417
15418 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
15419
15420         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
15421         handle SYMBOL_REF.
15422
15423 2002-02-13  Stan Shebs  <shebs@apple.com>
15424
15425         * c-typeck.c (digest_init): Handle vectors.
15426         (really_start_incremental_init): Same.
15427         (pop_init_level): Same.
15428         (process_init_element): Same.
15429
15430         * varasm.c (output_constant): Same.
15431
15432         * expr.c (clear_storage): Same.
15433         (store_constructor): Same.
15434
15435 2002-02-12  Eric Christopher  <echristo@redhat.com>
15436
15437         * explow.c (hard_function_value): Add comment explaining
15438         signed/unsigned comparison.
15439
15440 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
15441
15442         * jump.c (never_reached_warning): Add finish argument.
15443         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
15444         real insn after end.
15445         * rtl.h (never_reached_warning): Adjust prototype.
15446         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
15447         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
15448         never_reached_warning.
15449
15450 2002-02-12  Graham Stott  <grahams@redhat.com>
15451
15452         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
15453
15454 2002-02-12  Kazu Hirata  <kazu@hxi.com>
15455
15456         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
15457         logical shifts on H8/300.
15458         (shift_alg_si): Improve several shifts on H8/300.
15459         (get_shift_alg): Likewise.
15460
15461 2002-02-12  Graham Stott  <grahams@redhat.com>
15462
15463         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
15464
15465 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15466
15467         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
15468         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
15469
15470 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
15471
15472         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
15473         non-CONST_INT through default_assemble_integer.
15474         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
15475         <case 8>: Abort for CONST_DOUBLE.
15476
15477 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15478
15479         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
15480         is specified.
15481         * config/pa/pa-linux.h (LIB_SPEC): Delete.
15482         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15483
15484 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
15485
15486         * config/stormy16/stormy16.md (zero_extendqihi2): New.
15487
15488 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
15489
15490         * regrename.c (regrename_optimize): Don't accept a
15491         part-clobbered register if the replaced register is not part
15492         clobbered.
15493
15494         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
15495         take padding into account when computing the argument value.
15496
15497         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
15498
15499         * combine.c (try_combine): Apply substitutions in
15500         CALL_INSN_FUNCTION_USAGE too.
15501
15502 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
15503
15504         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
15505         __builtin_altivec_abs*.
15506         (bdesc_abs): New.
15507
15508         * config/rs6000/rs6000.h (rs6000_builtins): Add
15509         ALTIVEC_BUILTIN_ABS*.
15510
15511         * config/rs6000/altivec.h: Use const char for builtins expecting
15512         literals.
15513         (vec_abs): New versions for C and C++.
15514         (vec_abss): Same.
15515
15516 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15517
15518         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
15519         using Pmode.
15520
15521 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15522
15523         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
15524         constant definition from h8300.md.
15525         (FRAME_POINTER_REGNUM): Likewise.
15526         * config/h8300/h8300.md (define_constants): Add FP_REG.
15527
15528 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15529
15530         * config/h8300/h8300.c (print_operand): Remove redundant code.
15531
15532 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15533
15534         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
15535         * config/h8300/h8300.c (byte_reg): Make it static.
15536
15537 2002-02-10  Richard Henderson  <rth@redhat.com>
15538
15539         PR c/5623
15540         * c-typeck.c (incomplete_type_error): Handle flexible array members.
15541
15542 2002-02-10  Richard Henderson  <rth@redhat.com>
15543
15544         PR c++/5624
15545         * tree.c (append_random_chars): Don't abort if main_input_filename
15546         does not exist.
15547
15548 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
15549
15550         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
15551
15552 2002-02-10  Kazu Hirata  <kazu@hxi.com>
15553
15554         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
15555         (pushhi1): Likewise.
15556
15557 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15558
15559         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
15560         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
15561
15562 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
15563
15564         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
15565         remove MASK_VIS.
15566         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
15567
15568 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15569
15570         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
15571         a half of an SImode register on H8/300.
15572
15573 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
15574
15575         * i386.md (movdi_2): Add missing '!'.
15576
15577 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15578
15579         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
15580         definitions.
15581
15582 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15583
15584         * config/h8300/h8300.md (length): Correct the distance valid
15585         for the short branch.
15586
15587 2002-02-09  Kazu Hirata  <kazu@hxi.com>
15588
15589         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
15590
15591 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
15592
15593         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
15594         registers in SImode.
15595         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
15596         part-clobbered.
15597
15598         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
15599         patch.
15600
15601         Contribute sh64-elf.
15602         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
15603         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
15604         (sh_cannot_modify_jumps_p): New function.
15605         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
15606         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
15607         (sh_ms_bitfield_layout_p): New function.
15608         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
15609                     Zack Weinberg  <zack@codesourcery.com>
15610         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
15611         expand_simple_binop instead of expand_binop.
15612         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
15613         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
15614         use of .quad and .uaquad.
15615         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
15616         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
15617         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15618         * config/sh/sh.md (movdi_const, movdi_const_32bit,
15619         movdi_const_16bit): Make sure all CONSTs have modes.
15620         (sym2PIC): Ditto, but by adjusting all callers.
15621         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
15622         if the prologue calls the SHmedia argument decoder or register
15623         saver.
15624         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
15625         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
15626         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
15627         (sh_expand_epilogue): Don't emit USE of return target register.
15628         (prepare_move_operands): Legitimize DImode PIC addresses.
15629         (sh_media_register_for_return): Skip tr0, used to initialize the
15630         PIC register.
15631         (sh_expand_prologue): Remove explicit USE of return register.
15632         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
15633         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
15634         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
15635         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
15636         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
15637         EXTRA_CONSTRAINT_T.
15638         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
15639         (MOVI_SHORI_BASE_OPERAND_P): New.
15640         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
15641         (EXTRA_CONSTRAINT_T): Define in terms of them.
15642         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
15643         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
15644         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
15645         alternatives supporting TARGET_REGS.
15646         (UNSPEC_GOTPLT): New constant.
15647         (movdi split): Move incrementing of LABEL_NUSES...
15648         (movdi_const, movdi_const_32bit): Here.  Use
15649         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
15650         (movdi_const_16bit): New.
15651         (call, call_value) [flag_pic]: Use GOTPLT.
15652         (call_pop, call_value_pop): New expands.
15653         (call_pop_compact, call_pop_rettramp): New insns.
15654         (call_value_pop_compact, call_value_pop_rettramp): New insns.
15655         (sibcall) [flag_pic]: Use GOT.
15656         (builtint_setjmp_receiver): Remove bogus, unused expand.
15657         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
15658         (*pt, *ptb, ptrel): New insns.
15659         (sym2GOT): Handle DImode GOT.
15660         (sym2GOTPLT, symGOTPLT2reg): New expands.
15661         (sym2PIC): New expand.
15662         (shcompact_return_tramp): Use GOTPLT to return trampoline.
15663         (shcompact_return_tramp_i): Use return register explicitly.
15664         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
15665         disable flag_reorder_blocks.
15666         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15667         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
15668         clobbers, for clarity.
15669         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
15670         restoring of r0 in macl as MAYBE_DEAD.
15671         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
15672         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
15673         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
15674         alter_subreg all over.
15675         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
15676         reload, instead of emitting instructions that would require
15677         reloading.
15678         (casesi_load_media): Add missing modes.
15679         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
15680         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
15681         as used if the argument decoder is called.
15682         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
15683         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
15684         Pmode, then extend it to DImode if necessary.
15685         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
15686         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
15687         constants in FPU-enabled SHmedia, let them be loaded from memory.
15688         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
15689         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
15690         Adjust whitespace in assembly output templates.
15691         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
15692         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
15693         mode of if_then_else.
15694         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
15695         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
15696         sh.h.
15697         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
15698                     Joern Rennecke <amylaar@redhat.com>
15699         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
15700         (SUBTARGET_CPP_PTR_SPEC): New.
15701         (SUBTARGET_CPP_SPEC): Remove.
15702         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
15703         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15704         Fix typo in previous checkin.
15705         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
15706         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
15707         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
15708                     Alexandre Oliva  <aoliva@redhat.com>
15709         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
15710         what single FP register can hold for SHmedia target.
15711         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
15712                     Alexandre Oliva  <aoliva@redhat.com>
15713         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15714         Do not split into SUBREG.
15715         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
15716         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
15717         and added new functions as specified in SH5 ABI r9.
15718         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
15719         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
15720         8-byte boundary.
15721         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
15722         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
15723         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
15724         and consttable_window_ends.
15725         2001-06-03  Graham Stott  <grahams@redhat,com>
15726         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
15727         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
15728         * config/sh/sh.c (print_operand): Handle floating-point pair,
15729         vector and matrix registers.
15730         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
15731         vector modes into account.
15732         * config/sh/sh.md (movv2sf): Split move between registers into
15733         movdf.
15734         (movv4sf, movv16sf): Introduce insns that get split only after
15735         reload.
15736         * config/sh/shmedia.h: Fix Copyright dates.
15737         * config/sh/ushmedia.h: Likewise.  Move loop counter
15738         declarations into conditionals that uses them.
15739         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
15740         loop boundary.
15741         * config/sh/sshmedia.h: Fix Copyright dates.
15742         (sh_media_PUTCFG): Fix constraints.
15743         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
15744         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
15745         ptrmemfunc_vbit_in_delta for SH5.
15746         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
15747         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
15748         * invoke.texi: Likewise.
15749         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
15750         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
15751         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
15752         GCC_pop_shmedia_regs_nofpu): New global symbols.
15753         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
15754         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
15755         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
15756         compact function with nonlocal labels.
15757         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
15758         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
15759         (initial_elimination_offset): Account for their stack space.
15760         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
15761         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
15762         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
15763         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
15764         least one of the operands to be a register.
15765         (movv2sf): Likewise.  Renamed to movv2sf_i.
15766         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
15767         prepare_move_operands() before emitting SHmedia insns.
15768         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
15769         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
15770         Don't save nor initialize r12.  Don't mis-align the stack.
15771         Pad the code with a nop.
15772         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
15773         stack.
15774         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
15775         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
15776         [__SHMEDIA__]: Implement.
15777         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
15778         * config/sh/sh.md: Set latency of `pt' closer to reality.
15779         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
15780         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
15781         Set move, load and store type attributes.
15782         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
15783         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
15784         profiling.
15785         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
15786         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
15787         * config/sh/sh.c (sh_media_register_for_return): New function.
15788         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
15789         branch-target register.
15790         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
15791         * config/sh/sh.md (return_media_i): Use any call-clobbered
15792         branch-target register.
15793         (return_media): If r18 wasn't copied in the prologue, copy it
15794         here.
15795         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
15796         Clear class FP0_REGS.
15797         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
15798         from elf.h.
15799         2001-03-08  DJ Delorie  <dj@redhat.com>
15800         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
15801         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
15802         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
15803         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
15804         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
15805         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
15806         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
15807         return value correctly for call_cookie.
15808         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
15809         * config/sh/crt1.asm (start): Modified so as to call
15810         ___setup_argv_and_call_main.
15811         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
15812         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
15813         SHmedia mode.
15814         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
15815         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
15816         (STRIP_NAME_ENCODING): Use it.
15817         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
15818         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
15819         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
15820         prepare_scc_operands().
15821         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
15822         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
15823         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
15824         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
15825         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
15826         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
15827         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
15828         used in shcompact_incoming_args.
15829         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
15830         change.
15831         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
15832         mode.
15833         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
15834         Adjust accordingly.
15835         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15836         Simplify.  Adjust.  Add sanity check.
15837         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
15838         FPU_SINGLE_BIT.
15839         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
15840         TARGET_SHCOMPACT.
15841         (udivsi3, divsi3): Use them.
15842         (force_mode_for_call): New insn.
15843         (call, call_value, sibcall_value): Emit it before SHcompact
15844         calls.
15845         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
15846         * config/sh/sh.md (call, call_value, sibcall): Make sure the
15847         call cookie is non-NULL before taking its value.
15848         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
15849         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
15850         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
15851         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
15852         block.
15853         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
15854         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
15855         temporary for stack adjusts.  Use MACL and MACH to pass
15856         arguments to shcompact_incoming_args.
15857         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
15858         clobber r1.
15859         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
15860         (nested_trampoline): Load static chain address into r1.
15861         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
15862         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
15863         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
15864         fp_arith_reg_operand().
15865         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
15866         * config/sh/sh.md (casesi): Sign-extend the first two operands,
15867         and use signed compares for them.
15868         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
15869         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
15870         ones properly aligned.
15871         (find_barrier): Account for extra alignment needed for 8-byte wide
15872         constants.
15873         (machine_dependent_reorg): Require a label for the second 4-byte
15874         constant after an 8-byte one.
15875         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
15876         change.
15877         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
15878         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
15879         last_float when switching float modes.
15880         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
15881         auto-increment for general-purpose registers.
15882         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
15883         result.
15884         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
15885         for stack adjust.
15886         * config/sh/sh.c (sh_builtin_saveregs): Support using all
15887         registers for varargs.
15888         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
15889         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
15890         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
15891         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
15892         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
15893         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
15894         call_cookie accordingly.
15895         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
15896         (SHCOMPACT_BYREF): Likewise.
15897         (SHCOMPACT_FORCE_ON_STACK): New macro.
15898         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
15899         (sh_builtin_saveregs): Likewise.
15900         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15901         shcompact_incoming_args): Use new shift values.  Support
15902         sequences of consecutive and non-consecutive pushes/pops.
15903         * config/sh/sh.md (return): Don't explicitly use PR_REG.
15904         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
15905         * config/sh/sh.h (TEXT_SECTION): Define.
15906         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
15907         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
15908         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
15909         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
15910         return values on FPU-enabled SHmedia.
15911         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
15912         FPU-enabled SHmedia.
15913         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
15914         value is returned in a non-FP reg and is not returned by
15915         reference.
15916         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
15917         jump_ind.
15918         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
15919         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
15920         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
15921         quad-aligned to be passed by callee-copy reference.
15922         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
15923         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
15924         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
15925         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
15926         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
15927         copying low-numbered FP regs to r7 and r8.
15928         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
15929         FP regs to general-purpose regs only if the copy was passed on the
15930         stack.
15931         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
15932         copying FP reg to r9.
15933         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
15934         copy FP regs to general-purpose regs only in outgoing calls.
15935         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
15936         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
15937         HOST_WIDE_INT.
15938         * config/sh/sh.h (struct sh_args): Document all fields.
15939         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
15940         passed partially on the stack should not consider making
15941         sibcalls.
15942         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
15943         stack_regs only for incoming calls.  When passing FP args,
15944         make sure there are FP regs available before modifying
15945         call_cookie.
15946         (SHCOMPACT_BYREF): Pass double args in general-purpose
15947         registers by reference.
15948         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
15949         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
15950         attempt to generate sibcalls if the caller got any arguments
15951         by reference.
15952         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
15953         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
15954         to 8-byte boundaries.
15955         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
15956         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
15957         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
15958         stored in the stack.
15959         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
15960         for the offsets to have the ISA bit set.
15961         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
15962         invocation.  Use beq instead of bgt to mark end of sequence of
15963         loads.
15964         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
15965         bgt to mark end of sequence of stores.
15966         * config/sh/sh.c (arith_operand): Don't check whether
15967         CONST_OK_FOR_J for now.
15968         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
15969         instead of long for conversion.
15970         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
15971         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
15972         before passing it to fprintf.
15973         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
15974         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
15975         Call set_fpscr before reading/writing SR.
15976         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
15977         Call set_fpscr.
15978         * config/sh/lib1funcs.asm: Add `.align 2' directives before
15979         SHmedia code.
15980         (FMOVD_WORKS): Define on SH5 with FPU.
15981         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
15982         setting.
15983         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
15984         _fpscr_values.
15985         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
15986         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
15987         address.
15988         (ia_main_table): Ditto.
15989         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
15990         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15991         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
15992         the definitions from sh.h.
15993         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
15994         TARGET_SH5.
15995         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
15996         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
15997         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15998         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
15999         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
16000         Increment LABEL_NUSES.
16001
16002         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
16003         TARGET_SH5.
16004         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
16005         defined.
16006         * config/sh/elf.h (SIZE_TYPE): Likewise.
16007         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16008         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16009         shcompact_incoming_args): Load switch table addresses using
16010         datalabel.
16011         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16012         (NO_BUILTIN_SIZE_TYPE): Define.
16013         (SIZE_TYPE): Don't define.
16014         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16015         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
16016         definition of __SH5__=32 for -m5-compact-nofpu.
16017         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
16018         ADDR_DIFF_VEC.
16019         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
16020         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
16021         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
16022         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
16023         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
16024         (INSN_LENGTH_ALIGNMENT): Likewise.
16025         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
16026         * config/sh/sh.md (call, call_value, sibcall): Simplify
16027         copying of non-branch-target register.
16028         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
16029         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
16030         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
16031         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
16032         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
16033         floating-point values as structs.
16034         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
16035         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
16036         general-purpose register.
16037         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
16038         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
16039         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
16040         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
16041         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
16042         (ENCODE_SECTION_INFO): Enclose variables and constants in
16043         DATALABEL unspecs.
16044         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
16045         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
16046         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
16047         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
16048         only for LABEL_REFs.  For SYMBOL_REFs, prepend
16049         SH_DATALABEL_ENCODING to the symbol name.
16050         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
16051         convert_mode().
16052         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
16053         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
16054         UNSPEC_DATALABEL.
16055         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
16056         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
16057         (DATALABEL_REF_P): Don't require CONST.
16058         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
16059         REL label.
16060         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
16061         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
16062         right.
16063         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
16064         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
16065         Use shallow_copy_rtx and PUT_MODE to change the mode of
16066         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
16067         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
16068         on SHmedia using GENERAL_REGs.
16069         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16070         bltu_media_i): Fix reversion of conditions.
16071         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
16072         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
16073         * config/sh/sh.c (output_far_jump): Save r13 in macl.
16074         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
16075         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
16076         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
16077         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
16078         (GCC_nested_trampoline): Likewise.
16079         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
16080         * config/sh/sh.c (gen_datalabel_ref): Define.
16081         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
16082         (INITIALIZE_TRAMPOLINE): Likewise.
16083         (TRAMPOLINE_ADJUST_ADDRESS): Define.
16084         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
16085         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
16086         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
16087         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
16088         (ic_invalidate): Adjust for SH5.
16089         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
16090         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
16091         _nested_trampoline.
16092         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
16093         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
16094         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
16095         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
16096         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
16097         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
16098         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
16099         * config/sh/sh.c (target_reg_operand): Match only target-branch
16100         registers and pseudos that aren't virtual registers.
16101         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16102         Copy operands that don't match target_reg_operand to pseudos.
16103         (call_media, call_value_media, sibcall_media): Use
16104         target_reg_operand instead of target_operand.
16105         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
16106         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
16107         * config/sh/sh.c (target_reg_operand): Match hardware registers
16108         other than branch-target registers.
16109         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
16110         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
16111         (fpscr_values) [SH5 == 32]: Define.
16112         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
16113         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16114         Handle function addresses coming in SUBREGs.
16115         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
16116         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16117         shcompact_return_trampoline): Use datalabel where appropriate.
16118         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
16119         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
16120         general-purpose register to copy one branch-target register to
16121         another.
16122         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
16123         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
16124         SYMBOL_REFs with VOIDmode.
16125         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16126         bltu_media_i): New insns.
16127         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
16128         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
16129         (INIT_CUMULATIVE_ARGS): Likewise.
16130         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
16131         * machmode.def (V16SFmode): New mode.
16132         * c-common.c (type_for_mode): Support V2SF and V16SF.
16133         * tree.c (build_common_tree_nodes_2): Likewise.
16134         * tree.h (tree_index): Likewise.
16135         * calls.c (emit_call_1): Take args_so_far.  Adjust all
16136         callers.  Introduce CALL_POPS_ARGS.
16137         * tm.texi (CALL_POPS_ARGS): Document.
16138         * config/sh/crt1.asm: Implement in SHmedia mode.
16139         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
16140         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
16141         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
16142         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
16143         Implement divsi and udivsi in SHmedia mode.  Introduce
16144         SHcompact trampolines.
16145         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
16146         only in SHmedia64.
16147         (regno_reg_class): Rewrite.
16148         (fp_reg_names): Remove.
16149         (sh_register_names, sh_additional_register_names): New.
16150         (print_operand): Added `u'.  Support SUBREGs in addresses.
16151         Add parentheses around shifted CONSTs.
16152         (output_file_start): Output .mode and .abi directives.
16153         (shiftcosts, addsubcosts, multcosts): Adjust.
16154         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
16155         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
16156         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
16157         bytes, not registers.  Take into account the need for the
16158         SHcompact incoming args trampoline.  Adjust all callers.
16159         (sh_expand_prologue): Take stack_regs into account.  Call
16160         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
16161         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
16162         stack aligned as per SH5 ABI.
16163         (sh_builtin_saveregs): Support SH5 ABI.
16164         (sh_build_va_list, sh_va_start): Likewise.
16165         (initial_elimination_offset): Take alignment into account.
16166         Compute location of PR according to the SH5 stack frame.
16167         (arith_reg_operand): Reject branch-target registers.
16168         (shmedia_6bit_operand): New.
16169         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
16170         (target_reg_operand): Match DImode only.  Accept SUBREGs.
16171         (target_operand): New.
16172         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
16173         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
16174         SIBCALL_REGS for SHmedia.
16175         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
16176         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
16177         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
16178         (TARGET_SWITCHES): New SH5 flags.
16179         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
16180         VALID_REGISTER_P to disable unsupported registers.
16181         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
16182         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
16183         (FUNCTION_ARG_PADDING): Define.
16184         (FASTEST_ALIGNMENT): Adjust.
16185         (SH_REGISTER_NAMES_INITIALIZER): New.
16186         (sh_register_names): Declare.
16187         (DEBUG_REGISTER_NAMES): Define.
16188         (REGISTER_NAMES): Define based on sh_register_names.
16189         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
16190         (sh_additional_register_names): Declare.
16191         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
16192         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
16193         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
16194         (REGISTER_NATURAL_MODE): Define.
16195         (FIRST_PSEUDO_REGISTER): Adjust.
16196         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
16197         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
16198         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
16199         (VECTOR_MODE_SUPPORTED_P): Define.
16200         (REG_CLASS_CONTENTS): Adjust.
16201         (SMALL_REGISTER_CLASSES): Adjust.
16202         (REG_ALLOC_ORDER): Adjust.
16203         (INDEX_REG_CLASS): Adjust.
16204         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
16205         (CONST_OK_FOR_LETTER_P): Adjust.
16206         (PREFERRED_RELOAD_CLASS): Adjust.
16207         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
16208         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
16209         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
16210         (FIRST_FP_PARM_REG): Adjust.
16211         (CALL_POPS_ARGS): Define.
16212         (FUNCTION_ARG_REGNO_P): Adjust.
16213         (struct sh_args): New fields.
16214         (GET_SH_ARG_CLASS): Adjust.
16215         (INIT_CUMULATIVE_ARGS): Adjust.
16216         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
16217         (FUNCTION_ARG_ADVANCE): Adjust.
16218         (FUNCTION_ARG): Adjust.
16219         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
16220         (FUNCTION_ARG_CALLEE_COPIES): Define.
16221         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
16222         (STRICT_ARGUMENT_NAMING): Define.
16223         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
16224         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
16225         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
16226         (SETUP_INCOMING_VARARGS): Adjust.
16227         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
16228         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
16229         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
16230         (SUBREG_OK_FOR_INDEX_P): Adjust.
16231         (EXTRA_CONSTRAINT_S): Update.
16232         (EXTRA_CONSTRAINT_T): New.
16233         (EXTRA_CONSTRAINT): Adjust.
16234         (GO_IF_LEGITIMATE_INDEX): Adjust.
16235         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
16236         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
16237         (MOVE_MAX): Adjust.
16238         (MAX_MOVE_MAX): Define.
16239         (Pmode): Adjust.
16240         (CONST_COSTS): Adjust.
16241         (REGISTER_MOVE_COST): Adjust.
16242         (BRANCH_COST): Adjust.
16243         (TEXT_SECTION_ASM_OP): Adjust.
16244         (DBX_REGISTER_NUMBER): Adjust.
16245         (ASM_OUTPUT_DOUBLE_INT): New.
16246         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
16247         (PREDICATE_CODES): Adjust.
16248         (PROMOTE_MODE): Adjust.
16249         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
16250         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
16251         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
16252         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
16253         (DR0_REG, DR2_REG, DR4_REG): Renumber.
16254         (TR0_REG, TR1_REG, TR2_REG): New.
16255         (XD0_REG): Renumber.
16256         (UNSPEC_COMPACT_ARGS): New.
16257         (type): Added pt and ptabs.
16258         (length): Default to 4 on SHmedia.  Default pt length to 12
16259         and     20 on SHmedia32 and SHmedia64, respectively.
16260         (pt): New function unit.
16261         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
16262         Add whitespace between operands of SHmedia instructions.
16263         (movdicc): Fix.
16264         (adddi3_media, addsi3_media): Adjust constraints.
16265         (subsi3) [SHmedia]: Force operand 1 into a register.
16266         (udivsi3_i1_media, udivsi3_i4_media): New.
16267         (udivsi3): Support SHmedia.
16268         (divsi3_i1_media, divsi3_i4_media): New.
16269         (divsi3): Support SHmedia.
16270         (anddi3, iordi3, xordi3): Adjust constraints.
16271         (zero_extendhidi2, zero_extendqidi2): New.
16272         (extendsidi2, extendhidi2, extendqidi2): New.
16273         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
16274         (pop_e, pop_fpul, pop_4): Likewise.
16275         (movsi_media): Support FP and BT registers.
16276         (movsi_media_nofpu): New.  Adjust splits to DImode.
16277         (lduw, ldub): Renamed to zero_extend* above.
16278         (movqi_media): Fix typo.
16279         (movdi_media): Support FP and BT registers.
16280         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
16281         (movdi_const_32bit): New.
16282         (shori_media): Require immediate operand.  Use `u' for output.
16283         (movdf_media, movsf_media): Simplified.
16284         (movdf_media_nofpu, movsf_media_nofpu): New.
16285         (movdf, movsf): Adjust
16286         (movv2sf, movv2sf, movv16sf): New.
16287         (beq_media, beq_media_i): Adjust constraints.  Don't use
16288         scratch BT register.
16289         (bne_media, bne_media_i): Likewise.
16290         (bgt_media, bgt_media_i): Likewise.
16291         (bge_media, bge_media_i): Likewise.
16292         (bgtu_media, bgtu_media_i): Likewise.
16293         (bgeu_media, bgeu_media_i): Likewise.
16294         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
16295         bunordered): Emit jump insn.  Force operands to registers when
16296         needed.
16297         (jump_media, jump): Simplify.
16298         (call_compact, call_compact_rettramp): New.
16299         (call_value_compact, call_value_compact_rettramp): New.
16300         (call_media, call_value_media): Simplify.
16301         (sibcall_compact, sibcall_media): New.
16302         (call, call_value): Adjust for SHmedia and SHcompact.
16303         (sibcall, sibcall_value, untyped_call): Likewise.
16304         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
16305         (indirect_jump): Adjust for SHmedia.
16306         (casesi_jump_media): New.
16307         (nop): Re-enable for SHmedia.
16308         (call_site): Restrict to SH1.
16309         (casesi): Adjust for SHmedia.
16310         (casesi_shift_media, casesi_load_media): New.
16311         (return): Explicitly use PR register.  Call return trampoline
16312         on SHcompact.
16313         (return_i): Explicitly use PR register.
16314         (shcompact_return_tramp, shcompact_return_tramp_i): New.
16315         (return_media): Adjust.
16316         (shcompact_incoming_args): New.
16317         (epilogue): Adjust.
16318         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16319         (movstrsi): Disable on SH5.
16320         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
16321         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
16322         (subsf3, subsf3_media): Likewise.
16323         (mulsf3, mulsf3_media, mac_media): Likewise.
16324         (divsf3, divsf3_media): Likewise.
16325         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
16326         (floatsisf2, fux_truncsfsi2): Likewise.
16327         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
16328         constraints.
16329         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
16330         (cmpunsf_media, cmpsf): Likewise.
16331         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
16332         (abssf2, abssf2_media): Likewise.
16333         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
16334         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
16335         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
16336         (floatsidf2, fix_truncdfsi2): Likewise.
16337         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
16338         constraints.
16339         (cmpeqdf_media, cmpgtdf_media): Likewise.
16340         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
16341         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
16342         (absdf2, absdf2_media): Likewise.
16343         (extendsfdf2, extendsfdf2_media): Likewise.
16344         (truncsfdf2, truncsfdf2_media): Likewise.
16345         * config/sh/sh64.h: New file.
16346         * config/sh/t-sh64: New file.
16347         * config/sh/shmedia.h: New file.
16348         * config/sh/ushmedia.h: New file.
16349         * config/sh/sshmedia.h: New file.
16350         * configure.in: Added sh64-*-elf.
16351         * configure: Rebuilt.
16352         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
16353         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
16354         (reg_class_from_letter): Use `b' for TARGET_REGS.
16355         (print_operand): Support `%M', `%m', `AND' and
16356         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
16357         (andcosts): Adjust for SHmedia.
16358         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
16359         Likewise.
16360         (target_reg_operand): New function.
16361         * config/sh/sh-protos.h (target_reg_operand): Declare.
16362         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
16363         FP registers on SH5.
16364         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
16365         on SH4.
16366         (TARGET_REGISTER_P): New macro.
16367         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
16368         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
16369         (EXTRA_CONSTRAINT_S): New macro.
16370         (EXTRA_CONSTRAINT): Adjust.
16371         (FLOAT_TYPE_SIZE): Define to 32.
16372         (Pmode): DImode on SHmedia.
16373         (CONST_COSTS): Adjust for SHmedia literals.
16374         (PREDICATE_CODES): Added target_reg_operand.
16375         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
16376         * config/sh/sh.md: Remove all attrs from SHmedia insns.
16377         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
16378         (cmpdi): Accept SHmedia.
16379         (movdicc_false, movdicc_true): New insns.
16380         (movdicc): New expand.
16381         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
16382         no_new_pseudos.
16383         (addsi3_media): Match `S' constraint.
16384         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
16385         (negdi2): Expand for SHmedia.
16386         (one_cmpldi2): New expand.
16387         (zero_extendsidi2): Change from expand to insn.
16388         (extendsidi2): Add constraints.
16389         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
16390         LD/ST address.  Fix SI immediate loading split.
16391         (movhi_media, movqi_media, lduw, ldub): New insns.
16392         (movhi, movqi): Accept SHmedia.
16393         (shori_media, movdi_media): Relax input constraints.  Split
16394         symbolic constants.
16395         (movdf_media, movsf_media): New insn.  New split to movdi.
16396         (movdf, movsf): Match on SHmedia.
16397         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
16398         bgeu_media): New insns and splits.  New insns with `_i' suffix.
16399         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
16400         (bunordered): New expand.
16401         (jump_compact): Renamed from `jump'.
16402         (jump_media): New insn.
16403         (jump): New expand.
16404         (call_media, call_value_media): New insns.
16405         (call, call_value): Adjust.
16406         (indirect_jump_compact): Renamed from `indirect_jump'.
16407         (indirect_jump_media): New insn.
16408         (indirect_jump): New expand.
16409         (untyped_call, return): Accept SHmedia.
16410         (return_media): New insn.
16411         (prologue, epilogue, blockage): Accept SHmedia.
16412         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16413         (sunordered): New expand.
16414         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
16415         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
16416         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
16417         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
16418         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
16419         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
16420         abssf2_media): New insns.
16421         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
16422         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
16423         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
16424         floatdidf2, floatsidf2_media, fix_truncdfdi2,
16425         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
16426         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
16427         absdf2_media): New insns.
16428         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
16429         (extendsfdf2_media, truncdfsf2_media): New insns.
16430         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
16431         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
16432         * config/sh/sh.h (CONST_OK_FOR_J): Document.
16433         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
16434         * config/sh/sh.md (adddi3): New expand.
16435         (adddi3_media, adddi3z_media): New insns.
16436         (adddi3_compact): Renamed from adddi3.
16437         (addsi3_media): Use add.l r63 to add constant zero.
16438         (subdi3): New expand.
16439         (subdi3_media): New insn.
16440         (subdi3_compact): Renamed from subdi3.
16441         (mulsidi3): New expand.
16442         (mulsidi3_media): New insn.
16443         (mulsidi3_compact): Renamed from mulsidi3.
16444         (umulsidi3): New expand.
16445         (umulsidi3_media): New insn.
16446         (umulsidi3_compact): Renamed from umulsidi3.
16447         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
16448         (ashlsi3, ashrsi3, lshrsi3): Use them.
16449         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
16450         (ashldi3, ashrdi3, lshrdi3): Use them.
16451         (zero_extendsidi2): New expand.
16452         (extendsidi2): New insn.
16453         (movsi_media): New insn.  Split to movdi to load constants.
16454         (movsi): Enable for shmedia.
16455         (movdi_media): New insn.  Use shori_media to load wide constants.
16456         (short_media): New insn.
16457         (movdi): Enable for shmedia.
16458         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
16459         * config/sh/sh.h (CPP_SPEC): Added `m5'.
16460         (SUBTARGET_CPP_SPEC): Added `!m5'.
16461         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
16462         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
16463         to all other SH variants.
16464         (TARGET_DEFAULT): Set to SH1_BIT.
16465         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
16466         (BITS_PER_WORD): Raise to 64 on shmedia.
16467         (MAX_BITS_PER_WORD): Change to 64.
16468         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
16469         (INT_TYPE_SIZE): Keep as 32.
16470         (UNITS_PER_WORD): Raise to 8 on shmedia.
16471         (MIN_UNITS_PER_WORD): Keep as 4.
16472         (POINTER_SIZE): Raise to 64 on shmedia.
16473         (CONST_OK_FOR_J): New macro.
16474         (CONST_OK_FOR_LETTER_P): Use it.
16475         (processor_type): Add PROCESSOR_SH5.
16476         * config/sh/sh.md: Conditionalize all expands, insns and
16477         splits to TARGET_SH1.
16478         (cpu): Added sh5.
16479         (addsi3_compact): Renamed from...
16480         (addsi3): Now an expand.
16481         (addsi3_media, subsi3_media): New insns.
16482         (subsi3): Don't negate constants with SHmedia.
16483
16484         * hooks.c: New file.
16485         * hooks.h: New file.
16486         * Makefile.in (HOOKS_H): New.
16487         (TARGET_DEF_H): Added $(HOOKS_H).
16488         (OBJS): Added hooks.o.
16489         (cfgcleanup.o, bb-reorder.o): Added target.h.
16490         (hooks.o): Added dependencies.
16491         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
16492         (TARGET_INITIALIZER): this.
16493         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
16494         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
16495         * bb-reorder.c: Include target.h.
16496         (reorder_basic_blocks): Skip if cannot modify jumps.
16497         * cfgcleanup.c: Include target.h.
16498         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
16499
16500 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
16501
16502         * config/mips/mips.md (casesi_internal, casesi_internal_di):
16503         Protect jump delay slot instructions with .set noreorder and
16504         .set nomacro.
16505
16506 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
16507
16508         * config/mips/mips.md (casesi_internal_di): Calculate
16509         the index into the target offset table correctly.
16510
16511 2002-02-08  Richard Henderson  <rth@redhat.com>
16512
16513         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
16514         * final.c (output_addr_const): Accept and discard SUBREG.
16515         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
16516         mark them unknown instead.
16517         (simplify_subtraction): Handle RTX_UNKNOWN.
16518         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
16519
16520 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
16521
16522         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
16523
16524 2002-02-08  Richard Henderson  <rth@redhat.com>
16525
16526         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
16527
16528 2002-02-08  Andreas Jaeger  <aj@suse.de>
16529
16530         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
16531         * config/i386/t-linux64: New file.
16532
16533 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
16534
16535         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
16536         * c-parse.in (compstmt): Clear last_expr_type.
16537
16538 2002-02-07  Richard Henderson  <rth@redhat.com>
16539
16540         * loop.c (strength_reduce): Sink final_value when not
16541         eliminating a biv.
16542
16543 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
16544
16545         * config/sparc/freebsd.h: Fix mismatched spec {.
16546
16547 2002-02-07  Richard Henderson  <rth@redhat.com>
16548
16549         * cfgrtl.c: Include recog.h and insn-config.h.
16550         (keep_with_call_p): Fix general_operand invocation.
16551         * Makefile.in (cfgrtl.o): Update dependencies.
16552
16553 2002-02-07  Kazu Hirata  <kazu@hxi.com>
16554
16555         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
16556         comment.  Accept HImode only if TARGET_H8300.
16557
16558 2002-02-07  Eric Christopher  <echristo@redhat.com>
16559
16560         * config/mips/crtn.asm: Cleanup #ifdefs.
16561
16562 2002-02-07  Eric Christopher  <echristo@redhat.com>
16563
16564         * config/mips/crti.asm: Add changes for mips16. mips16 uses
16565         register 7 as RA instead of $31.
16566         * config/mips/crtn.asm: Ditto.
16567         * config/mips/mips.c (mips_move_2words): Add case for
16568         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
16569         (compute_frame_size): Fix typo.
16570         (save_restore_insns): Ditto.  Make documentation about using
16571         register $7 as return register more precise.
16572         (mips_expand_epilogue): Fix comment. Add code to work around not
16573         being able to add to the stack pointer directly.
16574         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
16575         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
16576         epilogue.
16577
16578 2002-02-07  Tom Rix  <trix@redhat.com>
16579
16580         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
16581         immediates in ldu and stdu DS opcode field.
16582         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
16583         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
16584         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
16585
16586 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
16587
16588         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
16589         offset for stack bias.
16590
16591 2002-02-07  H.J. Lu <hjl@gnu.org>
16592
16593         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
16594
16595 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
16596
16597         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
16598
16599 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
16600
16601         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
16602         * i386.c (x86_order_regs_for_local_alloc): New global function.
16603         * i386.h (REG_ALLOC_ORDER): CLeanup.
16604         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
16605
16606 2002-02-07  Richard Henderson  <rth@redhat.com>
16607
16608         PR optimization/2463
16609         * alias.c (find_base_value): Recall base values for fixed hard regs.
16610         * loop.c (loop_regs_update): Don't use single_set on non-insns.
16611
16612 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
16613
16614         * config/mips/mips.md (define_delay) [mips16]: Adjust required
16615         length.
16616
16617 2002-02-06  Richard Henderson  <rth@redhat.com>
16618
16619         PR c/5609
16620         * stmt.c (resolve_operand_name_1): Take more care with mixed
16621         named and unnamed operands.
16622
16623 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
16624             Jan Hubicka  <jh@suse.cz>
16625
16626         * loop.c (remove_constant_addition): Avoid clobbering a shared
16627         CONST expression.
16628
16629 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
16630
16631         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
16632         * config/s390/t-linux64: New file.
16633         * config/s390/libgcc-glibc.ver: New file.
16634
16635 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
16636
16637         * config/s390/linux64.h: Delete file.
16638         * config/s390/s390x.h: New file.
16639         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
16640         as target header file.
16641         * config/s390/linux.h (TARGET_VERSION): Define depending on
16642         DEFAULT_TARGET_64BIT.
16643         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
16644         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
16645         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
16646         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
16647         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
16648         (EXTRA_SPEC): New define.
16649         * config/s390/s390.h (TARGET_VERSION): Define depending on
16650         DEFAULT_TARGET_64BIT.
16651         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
16652
16653 2002-02-06  Jason Merrill  <jason@redhat.com>
16654
16655         * c-decl.c (finish_function): Warn about a non-void function with
16656         no return statement and no abnormal exit.
16657         (current_function_returns_abnormally): New variable.
16658         (start_function): Clear it.
16659         (struct c_language_function): Add returns_abnormally.
16660         (push_c_function_context): Save it.
16661         (pop_c_function_context): Restore it.
16662         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
16663         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
16664         an explicit return type.
16665         * c-tree.h: Declare current_function_returns_abnormally.
16666         (C_FUNCTION_IMPLICIT_INT): New macro.
16667         * c-typeck.c (build_function_call): Set it.
16668         (c_expand_return): Set current_function_returns_value even if the
16669         value is erroneous.
16670
16671 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
16672
16673         PR c/5420:
16674         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
16675         unsafe for reevaluation.
16676
16677 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
16678
16679         PR c/5482:
16680         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
16681         EXPR_STMT, but COMPOUND_STMT, recurse into it.
16682
16683 2002-02-06  Richard Henderson  <rth@redhat.com>
16684
16685         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
16686         be a general_operand.  Dest for function value must be a pseudo.
16687
16688 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
16689
16690         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
16691         as SYMBOL_REFs from the constant pool.
16692
16693 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
16694
16695         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
16696         passed by invisible reference.
16697
16698 2002-02-05  Richard Henderson  <rth@redhat.com>
16699
16700         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
16701
16702 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
16703
16704         Implement using "base addresses" in insn operands as default.
16705         * config/mmix/mmix.c (mmix_conditional_register_usage): if
16706         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
16707         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
16708         used to read the rtx value.
16709         (mmix_target_asm_function_epilogue): Fix spacing.
16710         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
16711         (mmix_legitimate_address): Ditto.
16712         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
16713         should be loaded with a GETA insn.  Don't allocate needless extra
16714         char for nul termination and fix misleading comment.
16715         (mmix_print_operand_address): Handle constants if
16716         TARGET_BASE_ADDRESSES.
16717         (mmix_output_register_setting): Use base addressing if
16718         TARGET_BASE_ADDRESSES and the number of insns is 3.
16719         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
16720         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
16721         to use R as constraint, add LDA to match s.
16722         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
16723         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
16724         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
16725         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
16726         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
16727         order with other fixed registers.
16728         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
16729         other parameter/call-clobbered registers.
16730         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
16731         -mbase-addresses, -mno-base-addresses.
16732         (MMIX Options): Ditto.
16733
16734 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16735
16736         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
16737
16738 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
16739
16740         * config/rs6000/altivec.h: Change elem to _S_elem.
16741
16742 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
16743
16744         * config/netbsd.h (WCHAR_TYPE): Define.
16745         (WCHAR_TYPE_SIZE): Ditto.
16746         (WINT_TYPE): Ditto.
16747         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
16748         (WCHAR_UNSIGNED): Ditto.
16749         (WCHAR_TYPE_SIZE): Ditto.
16750         (WINT_TYPE): Ditto.
16751         * config/arm/netbsd.h: Likewise.
16752         * config/i386/netbsd-elf.h: Likewise.
16753         * config/i386/netbsd.h: Likewise.
16754         * config/m68k/netbsd-elf.h: Likewise.
16755         * config/m68k/netbsd.h: Likewise.
16756         * config/ns32k/netbsd.h: Likewise.
16757         * config/sparc/netbsd.h: Likewise.
16758         * config/vax/netbsd.: Likewise.
16759
16760 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
16761
16762         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
16763         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
16764         (TARGET_INITIALIZER): this.
16765         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
16766         (BITFIELD_NBYTES_LIMITED): Markup fix.
16767         * tree.h (default_ms_bitfield_layout_p): Declare.
16768         (record_layout_info): Added prev_field.
16769         * tree.c (default_ms_bitfield_layout_p): New fn.
16770         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
16771         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
16772         * stor-layout.c: Include target.h.
16773         (start_record_layout): Initialize prev_field.
16774         (place_field): Handle MS bit-field layout, and disregard
16775         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
16776         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
16777         * Makefile.in (stor-layout.o): Adjust dependencies.
16778
16779 2002-02-05  Jason Merrill  <jason@redhat.com>
16780
16781         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
16782
16783 2002-02-05  Andreas Jaeger  <aj@suse.de>
16784
16785         * crtstuff.c: Fix comments.
16786
16787 2002-02-05  Richard Henderson  <rth@redhat.com>
16788
16789         PR fortran/3393
16790         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
16791         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
16792
16793         PR fortran/3392
16794         * config/mips/mips.c (function_arg): Handle TImode.
16795         (function_arg_advance): Likewise.
16796
16797 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16798
16799         * config/rs6000/altivec.h (vec_step_help): Rename to
16800         __vec_step_help.
16801
16802 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16803
16804         * config/rs6000/altivec.h: Fix typos.
16805
16806 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
16807
16808         * config/arm/netbsd.h: Correct a comment.
16809
16810 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16811
16812         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
16813         building void typed builtins.
16814
16815         * config/rs6000/altivec.h (vec_ld*): Fix typos.
16816         (vec_step): Implement for C++.
16817
16818 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16819
16820         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
16821
16822 2002-02-04  Richard Henderson  <rth@redhat.com>
16823
16824         * combine.c (nonzero_bits): Re-introduce special case for
16825         sp/fp/ap wrt REGNO_POINTER_ALIGN.
16826
16827 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
16828
16829         * doc/extend.texi: Warn about unsupported usage of altivec
16830         builtins.
16831
16832         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
16833         (altivec_predicate_*): New.
16834
16835         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
16836         Add C++ version of vec_*() functions.
16837
16838         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
16839         (bdesc_2arg): Remove altivec predicates.
16840         (altivec_expand_builtin): Handle predicates.
16841         (altivec_init_builtins): Handle predicates.
16842         (altivec_expand_predicate_builtin): New.
16843
16844 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16845
16846         * pa.c (DO_FRAME_NOTES): Move forward.
16847         (store_reg): Revise handling of frame notes.
16848         (load_reg): Likewise.
16849         (set_reg_plus_d): Likewise.
16850         (hppa_expand_prologue): Likewise.
16851         (hppa_expand_epilogue): Likewise.
16852
16853 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16854
16855         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
16856
16857 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16858
16859         PR c/4475, c++/3780:
16860         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
16861         * c-common.h (SWITCH_TYPE): Define.
16862         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
16863         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
16864         Rename spareness variable to sparseness.
16865         (expand_end_case_type): Renamed from expand_end_case, use orig_type
16866         if non-NULL instead of TREE_TYPE (orig_index).
16867         * tree.h (expand_end_case_type): Renamed from expand_end_case.
16868         (expand_end_case): Define using expand_end_case_type.
16869         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
16870         to expand_end_case_type.
16871         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
16872
16873 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16874
16875         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
16876         (BIGGEST_ALIGNMENT): Change to 128.
16877
16878 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16879
16880         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
16881
16882 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16883
16884         * pa.md (call_internal_reg_64bit): Remove unused variable.
16885
16886 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
16887
16888         * config/arm/arm.h (machine_function): Add uses_anonymous_args
16889         field.
16890         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
16891         * config/arm/arm.c (current_function_anonymous_args): Delete,
16892         replace uses with cfun->machine->uses_anonymous_args.
16893         (arm_reorg): Do not reset uses_anonymous_args.
16894
16895         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
16896         any geenral register.
16897
16898 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
16899
16900         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
16901         the entry block.
16902
16903 2002-02-04  Richard Henderson  <rth@redhat.com>
16904
16905         * combine.c (force_to_mode): Remove STACK_BIAS code.
16906         (nonzero_bits): Likewise.  Replace sp/fp special case with
16907         REGNO_POINTER_ALIGN.
16908
16909         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
16910         (HARD_FRAME_POINTER_REGNUM): New.
16911         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
16912         (FIXED_REGS, CALL_USED_REGS): Update.
16913         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
16914         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
16915         (HARD_REGNO_NREGS): Update for SFP.
16916         (STACK_POINTER_OFFSET): Include bias here ...
16917         (FIRST_PARM_OFFSET): ... not here.
16918         (STACK_BIAS): Remove.
16919         (INIT_EXPANDERS): New.
16920         (STARTING_FRAME_OFFSET): Do not include bias.
16921         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
16922         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
16923         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
16924         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
16925         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
16926         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
16927         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
16928         (MUST_SAVE_REGISTER): Likewise.
16929         (sparc_flat_function_prologue): Likewise.
16930         (sparc_flat_function_epilogue): Likewise.
16931         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
16932         (sparc_init_modes): SFP is GENERAL_REGS.
16933         (sparc_builtin_saveregs): SFP does not have bias applied.
16934
16935 2002-02-04  Richard Henderson  <rth@redhat.com>
16936
16937         * config/alpha/alpha.c (current_function_is_thunk): Don't check
16938         current_function_is_thunk.
16939         (alpha_sa_mask): Distinguish between current_function_is_thunk
16940         called from ASM_OUTPUT_MI_THUNK and not.
16941         (alpha_does_function_need_gp): Thunks always need gp.
16942         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16943         (alpha_output_mi_thunk_osf): New.
16944         * config/alpha/alpha-protos.h: Update.
16945         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
16946
16947 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
16948
16949         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
16950         function types, not when they're taken away.
16951
16952 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
16953
16954         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
16955         CODE_LABEL and jump table when replacing a table jump with a
16956         simple jump.
16957
16958 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
16959
16960         * config/s390/s390-protos.h (legitimize_la_operand,
16961         s390_secondary_input_reload_class, s390_plus_operand,
16962         s390_expand_plus_operand): Add prototypes.
16963
16964         config/s390/s390.c (s390_secondary_input_reload_class,
16965         s390_plus_operand, s390_expand_plus_operand): New functions.
16966
16967         (struct s390_address): New member 'pointer'.
16968         (s390_decompose_address): Compute it.
16969         (legitimate_la_operand_p): Use it.
16970         (legitimize_la_operand): New function.
16971         (movti, movdi, movdf splitters): Call it.
16972
16973         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
16974         (PREDICATE_CODES): Add s390_plus_operand.
16975
16976         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
16977         (la_ccclobber): Allow GENERAL_REGS as output operand.
16978
16979         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
16980         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
16981         (*la_64, *la_31, reload_indi, reload_insi): ... these.
16982
16983 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
16984
16985         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
16986         register names for regular asm () construct.
16987
16988 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16989
16990         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
16991         registers.
16992
16993 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
16994
16995         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
16996         pat for recog.
16997
16998 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
16999
17000         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
17001         constant pool to be identical by string address and index.
17002
17003 2002-02-04  Anthony Green  <green@redhat.com>
17004
17005         * output.h (SECTION_OVERRIDE): Define.
17006         * varasm.c (named_section): Obey SECTION_OVERRIDE.
17007
17008 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
17009
17010         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
17011         by existing arm*-*-netbsd* (a.out) target.
17012         (ns32k-*-netbsdelf*): Likewise.
17013         (sparc-*-netbsdelf*): Likewise.
17014         (vax-*-netbsdelf*): Likewise.
17015
17016 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
17017
17018         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
17019         headers and libobjc headers.
17020
17021 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
17022
17023         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
17024         (_mingw.h): Remove duplicate include.
17025
17026 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
17027
17028         * config.gcc: Set cpu_type to m68k for 68010, as well.
17029         (m68010-*-netbsdelf*): New...
17030         (m68k*-*-netbsdelf*): ...targets.
17031         * config/m68k/netbsd-elf.h: New file.
17032
17033 2002-02-02  Kazu Hirata  <kazu@hxi.com>
17034
17035         * config/h8300/h8300.c (hand_list): Move inside function_arg.
17036
17037 2002-02-02  Kazu Hirata  <kazu@hxi.com>
17038
17039         * config/h8300/h8300.c (h8_push_ops): Move inside
17040         h8300_init_once.
17041         (h8_pop_ops): Likewise.
17042         (h8_move_ops): Likewise.
17043
17044 2002-02-02  Kazu Hirata  <kazu@hxi.com>
17045
17046         * config/h8300/h8300.c (os_task): Make it static.
17047         (monitor): Likewise.
17048         (pragma_saveall): Likewise.
17049
17050 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
17051
17052         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
17053         constant is a valid sign-extension for Pmode.
17054
17055 2002-02-02  Kazu Hirata  <kazu@hxi.com>
17056
17057         * config/h8300/h8300.c: Fix formatting.
17058
17059 2002-02-02  Kazu Hirata  <kazu@hxi.com>
17060
17061         * config/h8300/h8300.md: Fix formatting.
17062
17063 2002-02-02  Kazu Hirata  <kazu@hxi.com>
17064
17065         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
17066         predicates of operands[1].  Split the patterns for each
17067         processor variant.
17068
17069 2002-02-02  Kazu Hirata  <kazu@hxi.com>
17070
17071         * config/h8300/h8300.md (xor patterns): Tighten the predicates
17072         of operands[1] to register_operand.
17073
17074 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
17075
17076         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
17077         * cpphash.c (_cpp_init_hashtable): Similarly.
17078         * cppinit.c (cpp_create_reader): Default the signed_char flag.
17079         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
17080         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
17081         (cpp_handle_option): Handle the new options.
17082         * cpplex.c (cpp_interpret_charconst): Use new flag.
17083         * cpplib.h (struct cpp_options): New member signed_char.
17084         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
17085         (cpp_options): Handle -fsigned-char and -funsigned-char.
17086         (static_specs): Remove signed_char_spec.
17087         (do_spec1): Don't handle %c.
17088         * system.h: Poison SIGNED_CHAR_SPEC.
17089         * tradcif.y (yylex): Use flag_signed_char.
17090         * tradcpp.h (flag_signed_char): New.
17091         * tradcpp.c (flag_signed_char): New.
17092         (main): Handle new command-line options.
17093         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
17094 config:
17095         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
17096         * avr/avr.h: Remove old comments.
17097         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
17098         (CC1_SPEC): Pass -fsigned-char if -mic*.
17099         (SIGNED_CHAR_SPEC): Remove.
17100 doc:
17101         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
17102
17103 2002-02-01  Eric Christopher  <echristo@redhat.com>
17104
17105         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
17106         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
17107         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
17108         (ASM_OUTPUT_REG_POP): Ditto.
17109
17110 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
17111
17112         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
17113         patch.
17114
17115 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
17116
17117         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
17118
17119 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
17120
17121         PR c/5304:
17122         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
17123         unconditionally.
17124
17125 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
17126
17127         * cfganal.c: Include tm_p.h.
17128         (keep_with_call_p): Fix the test that determines if a register holds
17129         the return value of a call.
17130
17131 2002-02-01  DJ Delorie  <dj@redhat.com>
17132
17133         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
17134         we are given conflicting registers, switch to the other one we
17135         had allocated for us.
17136         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
17137         as TImode so we know when the "other" register is available.
17138
17139 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
17140
17141         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
17142         sparc/sparc_bi.h.
17143
17144 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
17145
17146         * cfganal.c (keep_with_call_p): New function.
17147         (flow_call_edges_add): Prevent splitting a block between a call and
17148         a single-set instruction that should be kept in the same block.
17149
17150 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17151
17152         * doc/install.texi (avr): Update outdated URL.
17153
17154 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
17155
17156         * config/stormy16/stormy16.md (pushqi): New.
17157         (popqi): New.
17158         (pushhi): New.
17159         (pophi): New.
17160         (movhi): Remove stack operands.
17161         (movqi): Likewise.
17162         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
17163         nonimmediate_nonstack_operand.
17164         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
17165         New.
17166         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
17167         New.
17168
17169 2002-01-31  Jason Merrill  <jason@redhat.com>
17170
17171         * Makefile.in (c-parse.c): Handle .output file.
17172         * objc/Make-lang.in (objc-parse.c): Likewise.
17173
17174 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
17175
17176         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
17177         the -me[lb] option is given.  Don't output the default flag
17178         twice.
17179
17180 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
17181
17182         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
17183         the primary source file; this has not been done yet.
17184         * c-decl.c (c_expand_body): Reset input_filename from
17185         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
17186
17187 2002-01-31  Kazu Hirata  <kazu@hxi.com>
17188
17189         * rtlanal.c (subreg_regno_offset): Do not use
17190         SUBREG_REGNO_OFFSET.
17191         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
17192         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
17193
17194 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
17195
17196         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
17197         version rather than GNATS version in --version output.
17198
17199 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
17200
17201         * ifcvt.c (noce_process_if_block): Make a copy of the destination
17202         when copying back from a temporary.
17203
17204 2002-01-30  Richard Henderson  <rth@redhat.com>
17205
17206         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
17207         and new_dest are the same.
17208
17209 2002-01-30  Richard Henderson  <rth@redhat.com>
17210
17211         PR opt/5076
17212         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
17213         * rtl.c (note_insn_name): Update.
17214         * emit-rtl.c (remove_unnecessary_notes): Kill it.
17215         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
17216         to perform loop rotation.
17217         (expand_exit_loop_top_cond): New.
17218         * tree.h (expand_exit_loop_top_cond): Declare it.
17219         * c-semantics.c (genrtl_while_stmt): Use it.
17220         (genrtl_for_stmt): Likewise.
17221
17222 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
17223
17224         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
17225         arguments to 64-bit boundaries on 64-bit ABIs.
17226
17227 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
17228
17229         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
17230
17231 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
17232
17233         * c-decl.c (grokdeclarator): Handle type being a typedef for an
17234         invalid type.
17235
17236 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
17237
17238         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
17239         * config/sparc/sparc_bi.h: Remove file.
17240         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
17241
17242 2002-01-30  Richard Henderson  <rth@redhat.com>
17243
17244         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
17245
17246 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
17247
17248         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
17249
17250 2002-01-30  Jason Merrill  <jason@redhat.com>
17251
17252         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
17253         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
17254         (reg_save): Use DW_CFA_offset_extended_sf instead.
17255
17256         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
17257
17258 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
17259
17260         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
17261         in cselib_lookup.
17262
17263 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
17264
17265         * rs6000.md ("*call_value_local32"): Remove constraints.
17266         ("*call_value_local64"): Same.
17267         ("*call_value_indirect_nonlocal_aix32"): Same.
17268         ("*call_value_nonlocal_aix32"): Same.
17269         ("*call_value_indirect_nonlocal_aix64"): Same.
17270         ("*call_value_nonlocal_aix64"): Same.
17271         ("*call_value_nonlocal_sysv"): Same.
17272
17273 2002-01-29  Richard Henderson  <rth@redhat.com>
17274
17275         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
17276
17277 2002-01-29  Richard Henderson  <rth@redhat.com>
17278
17279         * expr.c (force_operand): Ignore flag_pic for detecting pic
17280         address loads.
17281         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
17282         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
17283         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
17284         instead of open-coded loop.
17285         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
17286         be fixed when in use.
17287
17288 2002-01-29  Richard Henderson  <rth@redhat.com>
17289
17290         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
17291         * sched-rgn.c (propagate_deps): Update them.
17292         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
17293         clobbers list when either gets too long.
17294
17295 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
17296
17297         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
17298         and INDEX_REGS the same as GENERAL_REGS.
17299         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
17300
17301 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17302
17303         * tree.c (build_nonstandard_integer_type): Correct prototype.
17304
17305 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
17306
17307         * config/s390/s390.md (movstrsico, movstrdix_64,
17308         movstrsix_31): Remove, replace by ...
17309         (movstrdi_short, movstrsi_short, movstrdi_long,
17310         movstrsi_long): ... these.  New.
17311         (movstrdi, movstrsi): Adapt.
17312
17313         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
17314         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
17315         Remove unnecessary CC clobber.
17316         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
17317         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
17318
17319         (divmoddi4): Don't partially initialize TImode register.
17320
17321 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
17322
17323         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
17324
17325 2002-01-29  Richard Henderson  <rth@redhat.com>
17326
17327         * flow.c (print_rtl_and_abort): Remove.
17328         (print_rtl_and_abort_fcn): Remove.
17329         (verify_local_live_at_start): Use dump_bb instead.
17330         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
17331         (verify_wide_reg_1): Return 2 on mode test failure.
17332
17333 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17334
17335         PR c/3325, c/3326, c/2511, c/3347
17336         * c-decl.c (enum_decl_context): Remove BITFIELD.
17337         (grokdeclarator): Take bitfield width as an input.
17338         Ensure bitfields are given the correct type.  Perform
17339         bitfield width validation with build_bitfield_integer_type
17340         rather than waiting for finish_struct.
17341         (grok_typename, grok_typename_in_parm_context, start_decl,
17342         push_parmdecl, grokfield, start_function): Update calls to
17343         grokdeclarator.
17344         (build_bitfield_integer_type): New function.
17345         (finish_struct): Move bitfield validation to grokdeclarator
17346         and build_bitfield_integer_type.
17347         * tree.c (build_nonstandard_integer_type): New function.
17348         * tree.h (build_nonstandard_integer_type): New prototype.
17349 objc:
17350         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
17351
17352 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
17353
17354         PR other/1502:
17355         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
17356         don't ignore unrecognized -W* options.
17357         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
17358         * cpplib.h (cpp_handle_option): Adjust prototype.
17359         * c-decl.c (c_decode_options): Pass 0 as last argument to
17360         cpp_handle_option.
17361
17362         PR c/2896:
17363         * gcc.c (cpp_unique_options): Split from cpp_options.
17364         (cpp_options): Source cpp_unique_options.
17365         (default_compilers): Use cpp_unique_options instead of cpp_options
17366         when used together with cc1_options.
17367         (static_specs): Add cpp_unique_options.
17368         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
17369         when used together with cc1_options.
17370
17371 2002-01-29  Kazu Hirata  <kazu@hxi.com>
17372
17373         * config/h8300/h8300-protos.h: Update the prototype of
17374         output_a_shift.
17375         * config/h8300/h8300.c (output_a_shift): Remove an unused
17376         argument 'insn'.  Remove redundant code.
17377         * config/h8300/h8300.md: Adust to the new prototype of
17378         output_a_shift.
17379
17380 2002-01-29  Kazu Hirata  <kazu@hxi.com>
17381
17382         * config/h8300/h8300-protos.h: Update the prototypes of
17383         emit_a_rotate and expand_a_rotate.
17384         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
17385         first argument to 'enum rtx_code'.
17386         (expand_a_rotate): Likewise.
17387
17388 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17389
17390         * config/h8300/h8300-protos.h: Update the prototype of
17391         output_simode_bld.
17392         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
17393         'log2'.
17394         * config/h8300/h8300.md: Adjust to the new prototype.
17395
17396 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17397
17398         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
17399         redundant code.
17400
17401 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17402
17403         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
17404         is a fixed register before returning pic_offset_table_rtx.
17405         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
17406         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
17407
17408 2002-01-28  Jason Merrill  <jason@redhat.com>
17409
17410         * dwarf2.h: Sync with src version.
17411
17412 2002-01-28  Paul Koning  <pkoning@equallogic.com>
17413
17414         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
17415         BT_FN_VOID_PTR_VAR.
17416         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
17417         * doc/extend.texi (__builtin_prefetch): Update documentation:
17418         first argument is now const void ptr.
17419
17420 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17421
17422         * config/h8300/h8300-protos.h: Remove an unused prototype.
17423
17424 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
17425
17426         * toplev.c (lang_independent_init): Round up identifier size.
17427
17428 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
17429
17430         * config.gcc: Revert previous change.
17431
17432 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
17433
17434         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
17435
17436 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
17437
17438         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
17439         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
17440         other non-elf netbsd config frags.
17441         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
17442         collect2 will does that.
17443         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
17444         shared-lib frobbing will work.
17445
17446 2002-01-28  Kazu Hirata  <kazu@hxi.com>
17447
17448         * config/h8300/h8300.h: Fix formatting.
17449         * config/h8300/h8300.md: Likewise.
17450
17451 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
17452
17453         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
17454         the old, removed AAA_standards fix.
17455         * fixinc/fixincl.x: Rebuilt.
17456
17457 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
17458
17459         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
17460         atexit call in crtbegin, hooked in after call to frame_dummy;
17461         register EH before registering __fini__start.
17462
17463 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
17464
17465         * config/rs6000/altivec.h: Remove spurious semicolons.
17466
17467 2002-01-27  Kazu Hirata  <kazu@hxi.com>
17468
17469         * config/h8300/h8300.md: Replace dead bit extraction patterns
17470         with ones that work.
17471
17472 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17473
17474         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
17475         if not STRICT_ALIGNMENT.
17476         * rtl.h (MEM_ALIGN): Likewise.
17477
17478 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17479
17480         * doc/invoke.texi (-fdump-translation-unit): Revert this
17481         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17482
17483 2002-01-27  Kazu Hirata  <kazu@hxi.com>
17484
17485         * config/h8300/h8300.md (define_constants): New.
17486         (anonymous patterns) Use defined constants appropriately.
17487
17488 2002-01-27  Kazu Hirata  <kazu@hxi.com>
17489
17490         * config/h8300/h8300.c (function_arg): Remove redundant code.
17491
17492 2002-01-26  Richard Henderson  <rth@redhat.com>
17493
17494         * sched-deps.c (reg_pending_uses_head): New.
17495         (reg_pending_barrier): Rename from reg_pending_sets_all.
17496         (find_insn_list): Don't mark inline.
17497         (find_insn_mem_list): Remove.
17498         (add_dependence_list, add_dependence_list_and_free): New.
17499         (flush_pending_lists): Replace only_write param with separate
17500         for_read and for_write parameters.  Update all callers.  Use
17501         add_dependence_list_and_free.
17502         (sched_analyze_1): Do not add reg dependencies here; just set
17503         the pending bits.  Use add_dependence_list.
17504         (sched_analyze_2): Likewise.
17505         (sched_analyze_insn): Replace schedule_barrier_found with
17506         reg_pending_barrier.  Add all dependencies for pending reg
17507         uses, sets, and clobbers.
17508         (sched_analyze): Don't add reg dependencies for calls, just
17509         set pending bits.  Use regs_invalidated_by_call.  Treat
17510         sched_before_next_call as a normal list, not a fake insn.
17511         (init_deps): No funny init for sched_before_next_call.
17512         (free_deps): Free pending mems lists.  Don't zero reg_last.
17513         (init_deps_global): Init reg_pending_uses.
17514         (finish_deps_global): Free it.
17515         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
17516         (find_insn_mem_list): Remove.
17517         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
17518         (propagate_deps): Use them.  Zero temp mem lists.
17519
17520 2002-01-26  Richard Henderson  <rth@redhat.com>
17521
17522         * Makefile.in (CRTSTUFF_CFLAGS): New.
17523         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
17524         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
17525         crtstuff.c instead of alpha assembly version.
17526         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
17527         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
17528         not FORCE_{INIT,FINI}_SECTION_ALIGN.
17529         (__do_global_dtors_aux): Mark used.
17530         (frame_dummy, __do_global_ctors_aux): Mark used.
17531         (fini_dummy, init_dummy): Remove.
17532
17533         * config/alpha/crtbegin.asm: Remove file.
17534         * config/alpha/crtend.asm: Remove file.
17535         * config/alpha/t-crtbe: Remove file.
17536         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
17537         (LINK_EH_SPEC): New.
17538
17539         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
17540         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
17541         calling constructors.
17542         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
17543
17544         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
17545         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
17546         CRT_END_INIT_DUMMY hack.
17547         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
17548         FORCE_{INIT,FINI}_SECTION_ALIGN.
17549
17550         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
17551         FORCE_{INIT,FINI}_SECTION_ALIGN.
17552
17553         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
17554         invocation sequence.
17555         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
17556
17557         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
17558         (FORCE_CODE_SECTION_ALIGN): New.
17559
17560 2002-01-26  Richard Henderson  <rth@redhat.com>
17561
17562         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
17563
17564 2002-01-26  Richard Henderson  <rth@redhat.com>
17565
17566         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
17567         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
17568
17569 2002-01-26  Kazu Hirata  <kazu@hxi.com>
17570
17571         * config/h8300/h8300.md: Remove bit extraction patterns that
17572         cannot be triggered.
17573         Restrict each bit extraction pattern to a variant on which the
17574         pattern is tested.
17575
17576 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
17577
17578         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
17579
17580 2002-01-26  Kazu Hirata  <kazu@hxi.com>
17581
17582         * config/h8300/h8300.md: Remove bit test patterns that cannot
17583         be triggered.
17584         Restrict each bit test pattern to a variant on which the
17585         pattern is tested.
17586
17587 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17588
17589         * builtins.c (expand_builtin_strncat): Remove redundant check for
17590         INTEGER_CST.
17591
17592 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
17593
17594         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
17595         default setting.
17596         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
17597         existing setting.
17598
17599 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
17600
17601         * dbxout.c (dbxout_init): Use assemble_name rather than just
17602         stripping off the first character.
17603         (dbxout_source_file): Likewise.
17604
17605 2002-01-25  DJ Delorie  <dj@redhat.com>
17606
17607         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
17608         using rtx_equal_p, not by comparing pointers.
17609
17610 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
17611
17612         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
17613         for PIC_OFFSET_TABLE_REGNUM.
17614         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
17615
17616 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
17617
17618         * config.gcc (x86_64-*-freebsd*): New target.
17619         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
17620         value.
17621         (i[34567]86-*-freebsd*): Don't include svr4.h.
17622         * config/i386/freebsd64.h: New file.
17623
17624 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
17625
17626         * config/alpha/x-vms (version): Make static.
17627
17628         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
17629         in previous checkin.
17630
17631         * Makefile.in (install-headers-cp): New target.
17632         * config.gcc (alpha-dec-*vms*): Install headers with
17633         install-headers-cp
17634
17635 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
17636
17637         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
17638         avoid it's copies.
17639
17640 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17641
17642         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
17643         of compare_tree_int.
17644         (expand_builtin_strncat): Likewise.
17645         * c-decl.c (finish_struct): Use tree_low_cst.
17646         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
17647         * tree.c (compare_tree_int): Likewise.
17648
17649 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
17650
17651         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
17652         adjustments even if they are implemented by more than two insns.
17653
17654 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
17655
17656         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
17657         * df.h (struct ref): Kill B.
17658         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
17659
17660         * basic-block.h (PROP_EQUAL_NOTES): New flag.
17661         * flow.c (propagate_one_insn): Use it.
17662         (mark_used_regs): Handle NIL.
17663
17664 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
17665
17666         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
17667         to help folding.
17668
17669 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
17670
17671         * rs6000.md (prefetch): Make address V4SI mode so that the address
17672         is restricted to legitimate form for instruction.
17673
17674 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
17675
17676         * doc/install.texi (xtensa-*-elf): New target.
17677         (xtensa-*-linux*): New target.
17678         * doc/contrib.texi: Add myself.
17679
17680 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
17681
17682         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
17683         purpose register to hold an SImode (or smaller) value.
17684
17685 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
17686
17687         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
17688         registry only.
17689         * crtstuff.c: Likewise.
17690
17691 2002-01-25  Kazu Hirata  <kazu@hxi.com>
17692
17693         * config/h8300/h8300.md (negation patterns): Tighten
17694         predicates to register_operand.
17695
17696 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
17697
17698         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
17699         mode, not Pmode.
17700
17701         * builtins.c (expand_builtin_prefetch): Same.
17702
17703 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17704
17705         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
17706         modes.
17707
17708 2002-01-24  Kazu Hirata  <kazu@hxi.com>
17709
17710         * config/h8300/h8300.c (print_operand): Remove support for
17711         operand character 'A'.
17712         * config/h8300/h8300.md (three anonymous patterns): Replace
17713         operand character 'A' with either 'T' or 'S'.
17714
17715 2002-01-24  Kazu Hirata  <kazu@hxi.com>
17716
17717         * config/h8300/h8300.c (print_operand): Remove support for
17718         operand character 'U'.
17719
17720 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
17721
17722         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
17723
17724 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
17725
17726         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
17727         values to be assigned to the stack pointer.
17728
17729 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
17730
17731         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
17732         to const_double needs to be done right for big-endian systems.
17733
17734 2002-01-24  Jason Merrill  <jason@redhat.com>
17735
17736         PR c++/2432
17737         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
17738         to can_throw_internal.
17739
17740 2002-01-23  Richard Henderson  <rth@redhat.com>
17741
17742         * fold-const.c (fold): Change UINT_MAX test to check vs precision
17743         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
17744
17745 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17746
17747         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
17748         (symGOT2reg): Use them, then set as GOT value as unchanging.
17749         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
17750         as a temporary, if possible.
17751         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
17752         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
17753
17754 2002-01-23  Kazu Hirata  <kazu@hxi.com>
17755
17756         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
17757         accept to accept 0x80 as operands[2].
17758
17759 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
17760
17761         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
17762
17763 2002-01-23  Richard Henderson  <rth@redhat.com>
17764
17765         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
17766
17767 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
17768
17769         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
17770         (parmlist_or_identifiers_1): Verify that only a parmlist follows
17771         an attribute.
17772
17773 2002-01-23  Richard Henderson  <rth@redhat.com>
17774
17775         * expr.c (move_by_pieces_1): Extend size before negation.
17776
17777         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
17778         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
17779         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
17780         * config/m68k/t-m68kelf: Likewise.
17781
17782 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
17783
17784         * config/xtensa/elf.h: New file.
17785         * config/xtensa/lib1funcs.asm: New file.
17786         * config/xtensa/lib2funcs.S: New file.
17787         * config/xtensa/linux.h: New file.
17788         * config/xtensa/t-xtensa: New file.
17789         * config/xtensa/xtensa-config.h: New file.
17790         * config/xtensa/xtensa-protos.h: New file.
17791         * config/xtensa/xtensa.c: New file.
17792         * config/xtensa/xtensa.h: New file.
17793         * config/xtensa/xtensa.md: New file.
17794         * config.gcc (xtensa-*-elf*): New target.
17795         (xtensa-*-linux*): New target.
17796         * cse.c (canon_hash): Compare rtx pointers instead of register
17797         numbers.  This is required for the Xtensa port.
17798         * integrate.c (copy_insn_list): Handle case where the static
17799         chain is in memory and the memory address has to be copied to
17800         a register.
17801         * doc/invoke.texi (Option Summary): Add Xtensa options.
17802         (Xtensa Options): New node.
17803         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
17804
17805 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
17806
17807         * diagnostic.c (internal_error): Do ICE suppression only
17808         when ENABLE_CHECKING is not defined.
17809
17810         * c-typeck.c (require_complete_type): Return error_mark_node
17811         if type is error_mark_node.
17812
17813 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
17814
17815         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
17816         -Os and issue a warning.
17817
17818 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
17819
17820         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
17821         current (lack of) need for host configuration by hand.
17822
17823         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
17824         references.  Documentation of some target macros moved from
17825         hostconfig.texi to tm.texi.
17826
17827 2002-01-23  Will Cohen  <wcohen@redhat.com>
17828
17829         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
17830         defined.
17831
17832 2002-01-23  Kazu Hirata  <kazu@hxi.com>
17833
17834         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
17835         operand[3].
17836
17837 2002-01-23  Jason Merrill  <jason@redhat.com>
17838
17839         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
17840
17841         * function.c (assign_parms): Don't put args of inline functions
17842         into registers when not optimizing.
17843
17844 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
17845
17846         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
17847         (prologue_use): New pattern.
17848         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
17849         preference to gen_rtx_USE.
17850         (thumb_expand_prologue): Use gen_prologue_use in preference to
17851         gen_rtx_USE.
17852         (thumb_expand_epilogue): Use gen_prologue_use in preference to
17853         gen_rtx_USE.
17854
17855 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
17856
17857         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
17858
17859 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
17860
17861         PR c/3504
17862         * doc/extend.texi: Correct documentation of __alignof__.
17863
17864 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
17865
17866         * params.h: Rename arguments of DEFPARAM so that it will be
17867         recognized as a translation keyword.
17868
17869 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17870
17871         * extend.texi: Document altivec functions.
17872         Fix N-bit adjectives in X86 builtin documentation.
17873
17874 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
17875
17876         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
17877         auto_inc_dec values.
17878
17879 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
17880
17881         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
17882         after backslash.
17883         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
17884
17885 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
17886
17887         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
17888
17889 2002-01-22  Richard Henderson  <rth@redhat.com>
17890
17891         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
17892         copy_insn not copy_rtx.
17893
17894 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
17895
17896         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
17897         "nonzero" as that might add "1" bits.  Ensure "constop" is
17898         properly sign extened.
17899         (force_to_mode): Tweak for sign extended constop.
17900
17901 2002-01-22  Richard Henderson  <rth@redhat.com>
17902
17903         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
17904         for_each_rtx instead of assuming we're already looking at the MEM.
17905         (split_small_symbolic_mem_operand): Likewise.
17906         * config/alpha/alpha.h (PREDICATE_CODES): Update.
17907         * config/alpha/alpha.md (small symbolic memory splitters): Update.
17908
17909 2002-01-22  Richard Henderson  <rth@redhat.com>
17910
17911         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
17912         sequence number for the literal.
17913         (divmoddi_internal_er): Likewise.
17914
17915 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17916
17917         PR java/4972
17918         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
17919         in LIBICONV variable.
17920         * configure: Regenerated.
17921
17922 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
17923
17924         * dependence.c (build_def_use): Remove array_idx.
17925
17926         * dwarfout.c (last_filename): Remove.
17927         (output_compile_unit_die): Remove last_filename.
17928
17929 2002-01-22  Roger Sayle  <roger@eyesopen.com>
17930             Richard Henderson  <rth@redhat.com>
17931
17932         PR opt/3640
17933         * fold-const.c (fold): Optimize unsigned comparisons against
17934         UINT_MAX (and similar unsigned constants).
17935
17936 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
17937
17938         * Makefile.in (loop.o): Depend on OPTABS_H.
17939         * loop.c (emit_prefetch_instructions): Check the prefetch operand
17940         against the predicate.
17941
17942         PR target/5379
17943         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
17944         for the address operand.
17945
17946 2002-01-22  Richard Henderson  <rth@redhat.com>
17947
17948         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
17949
17950 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17951
17952         PR other/5450
17953         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
17954         preprocessor flags.
17955
17956 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
17957
17958         * config.gcc (x86_64-*-netbsd*): New target.
17959         * config/i386/netbsd64.h: New file.
17960
17961 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17962
17963         * regrename.c (kill_value): Fix typo.
17964
17965 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
17966
17967         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
17968
17969         * config/rs6000/rs6000.h: Same.
17970
17971         * function.c (instantiate_virtual_regs): Remove
17972         STARTING_FRAME_PHASE.
17973         (assign_stack_local_1): Same.
17974         Calculate frame phase.
17975
17976 2002-01-22  Nick Clifton  <nickc@redhat.com>
17977
17978         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
17979         variable declaration to outer scope in order to simplify
17980         future extensions.
17981         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
17982         arm_hard_regno_mode_ok.
17983         * config/arm/arm-protos.h: Add a prototype for
17984         arm_hard_regno_mode_ok.
17985         * config/arm/arm.c (soft_df_operand): Remove now redundant
17986         check for DImode values using IP_REGNUM.
17987         (nonimmediate_soft_df_operand): Remove now redundant check for
17988         DImode values using IP_REGNUM.
17989         (arm_hard_regno_mode_ok): New function. New check: make sure
17990         that DImode values are not stored in IP_REGNUM.
17991
17992         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
17993         note with a USE.
17994         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
17995
17996 2002-01-22  Jason Merrill  <jason@redhat.com>
17997
17998         * c-semantics.c (genrtl_compound_stmt): Only check nesting
17999         consistency if this COMPOUND_STMT is scoped.
18000
18001 2002-01-22  Kazu Hirata  <kazu@hxi.com>
18002
18003         * predict.c: Fix formatting.
18004         * print-tree.c: Likewise.
18005         * protoize.c: Likewise.
18006         * real.h: Likewise.
18007         * rtl.h: Likewise.
18008         * sbitmap.h: Likewise.
18009         * scan.c: Likewise.
18010         * sched-deps.c: Likewise.
18011         * sched-vis.c: Likewise.
18012         * sdbout.c: Likewise.
18013         * sibcall.c: Likewise.
18014         * ssa.c: Likewise.
18015         * ssa-ccp.c: Likewise.
18016         * ssa-dce.c: Likewise.
18017         * stmt.c: Likewise.
18018         * stor-layout.c: Likewise.
18019         * system.h: Likewise.
18020
18021 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18022
18023         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
18024         if fits in bounds of base type.
18025
18026         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
18027         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
18028         (add_bound_info, default): If can't find a context, make a
18029         SAVE_EXPR.
18030         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
18031
18032 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
18033
18034         * c-typeck.c (parser_build_binary_op): If result from
18035         build_binary_op is ERROR_MARK just return error_mark_node without
18036         further processing.
18037
18038 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
18039
18040         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
18041         Split a.out-specific bits into...
18042         * config/netbsd-aout.h: ...this.
18043         * config/netbsd-elf.h: New file.
18044         * config/alpha/netbsd-elf.h: Remove.
18045         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
18046         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
18047         (STARTFILE_SPEC): Remove redundant definition.
18048         (ENDFILE_SPEC): Likewise.
18049         (LINK_SPEC): Likewise.
18050         (CPP_SPEC): Likewise.
18051         (ASM_SPEC): Likewise.
18052         (LIB_SPEC): Likewise.
18053         (SWITCH_TAKES_ARG): Likewise.
18054         (TARGET_MEM_FUNCTIONS): Likewise.
18055         (CPP_PREDEFINES): Redefine.
18056         (ASM_FINAL_SPEC): Remove redefinition.
18057         (ASM_COMMENT_START): Redefine.
18058         (FUNCTION_PROFILER): Define.
18059         (TARGET_VERSION): Redefine.
18060         Comment and formatting cleanup.
18061         * config/i386/netbsd.h: Include <netbsd-aout.h>.
18062         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
18063         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
18064         big- or little-endian.
18065         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
18066         * config.gcc (*-*-netbsd*): Add definitions common to all
18067         NetBSD configs.
18068         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
18069         gnu_ld definitions.  Add netbsd-elf.h to and remove
18070         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
18071         tmake_file, and don't lose previous tmake_file contents.
18072         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
18073         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
18074         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
18075         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
18076         (mipsel-*-netbsd*): Rename this to...
18077         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
18078         mips/little.h to tm_file for mips*el-*.
18079         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
18080         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
18081         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
18082
18083 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18084
18085         * pa-protos.h (reg_before_reload_operand): New function prototype.
18086         * pa.c (reg_before_reload_operand): New function implementation.
18087         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
18088         contraints to "*m".
18089
18090 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18091
18092         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
18093
18094 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18095
18096         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
18097         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
18098         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
18099         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
18100         (ENDFILE_SPEC): Undefine.
18101         (STARTFILE_SPEC): Redefine for PA.
18102
18103 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18104
18105         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
18106
18107 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
18108
18109         * config.gcc: Add entries to supported PowerPC --with-cpu
18110         types.
18111
18112 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
18113
18114         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
18115         true for 64-bit mode only SSE registers in 32-bit mode.
18116
18117 2002-01-21  Kazu Hirata  <kazu@hxi.com>
18118
18119         * unwind-dw2.c: Fix formatting.
18120         * unwind-dw2-fde.c: Likewise.
18121         * unwind-dw2-fde.h: Likewise.
18122         * unwind-pe.h: Likewise.
18123         * varasm.c: Likewise.
18124         * varray.h: Likewise.
18125
18126 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
18127
18128         Remove workaround for register stack overwrite bug in mmix.
18129         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
18130         support for TARGET_REG_STACK_FILL_BUG.
18131         * config/mmix/mmix.h: Remove member has_call_without_parameters.
18132         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
18133         Delete.
18134         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
18135         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
18136         -mno-reg-stack-fill-bug-workaround.
18137         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
18138         machine member has_call_without_parameters.
18139         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
18140         -mreg-stack-fill-bug-workaround and
18141         -mno-reg-stack-fill-bug-workaround.
18142         (MMIX Options): Ditto.
18143
18144 2002-01-21  Kazu Hirata  <kazu@hxi.com>
18145
18146         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
18147         as appropriate.
18148         Remove redundant code.
18149
18150 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
18151
18152         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
18153         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
18154         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
18155         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
18156         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
18157         out target macro definitions and non-target-specific comments
18158         mostly taken from old versions of the manual.
18159
18160 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18161
18162         * config/h8300/h8300.h: Fix comment formatting.
18163         * config/ia64/aix.h: Likewise.
18164         * config/ia64/ia64-protos.h: Likewise.
18165         * config/ia64/ia64.c: Likewise.
18166         * config/ia64/ia64.h: Likewise.
18167         * config/ia64/ia64intrin.h: Likewise.
18168         * config/ia64/linux.h: Likewise.
18169         * config/ia64/unwind-aix.c: Likewise.
18170         * config/ia64/unwind-ia64.c: Likewise.
18171
18172 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18173
18174         * config/h8300/h8300.c: Revise comments about shift code.
18175
18176 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18177
18178         * config/h8300/h8300.c (function_arg): Update a comment.
18179
18180 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18181
18182         * config/h8300/h8300.md: Update the comments at the beginning
18183         of the file.
18184
18185 2002-01-20  Kazu Hirata  <kazu@hxi.com>
18186
18187         * config/i370/i370.c: Fix comment formatting.
18188         * config/i370/i370.h: Likewise.
18189         * config/i370/i370.md: Likewise.
18190         * config/i370/linux.h: Likewise.
18191
18192 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18193
18194         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
18195
18196         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
18197         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
18198         in incomplete case.
18199
18200 2002-01-20  Graham Stott  <grahams@redhat.com>
18201
18202         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
18203
18204 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18205
18206         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
18207
18208 2002-01-19  Tom Rix  <trix@redhat.com>
18209
18210         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
18211
18212 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
18213
18214         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
18215
18216         * function.c (assign_stack_local_1): Adjust x_frame_offset with
18217         STARTING_FRAME_PHASE.
18218         (STARTING_FRAME_PHASE): New.
18219         (instantiate_virtual_regs): Check saneness of
18220         STARTING_FRAME_PHASE.
18221
18222         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
18223
18224 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
18225
18226         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
18227
18228 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18229
18230         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
18231         be used for bootstrapping GCC 3.0.
18232
18233 2002-01-18  Kazu Hirata  <kazu@hxi.com>
18234
18235         * config/h8300/h8300.md: Fix an insn length.
18236
18237 2002-01-18  Kazu Hirata  <kazu@hxi.com>
18238
18239         * bitmap.h: Fix comment formatting.
18240         * combine.c: Likewise.
18241         * cppfiles.c: Likewise.
18242         * c-pragma.h: Likewise.
18243         * c-typeck.c: Likewise.
18244         * df.c: Likewise.
18245         * dwarf2out.c: Likewise.
18246         * function.c: Likewise.
18247         * gcc.c: Likewise.
18248         * genattrtab.c: Likewise.
18249         * gthr-win32.h: Likewise.
18250         * haifa-sched.c: Likewise.
18251         * predict.c: Likewise.
18252         * rtlanal.c: Likewise.
18253         * rtl.h: Likewise.
18254         * unwind-dw2-fde.h: Likewise.
18255         * unwind-pe.h: Likewise.
18256         * vmsdbgout.c: Likewise.
18257
18258 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18259
18260         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
18261         if type_required and passed decl.
18262
18263 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
18264
18265         * config.gcc (cpu_type): Include altivec.h in powerpc
18266         extra_headers.
18267         Same for darwin.
18268
18269         * config/rs6000/altivec.h: New.
18270
18271 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
18272
18273         * doc/install.texi (*-ibm-aix*): Update assembler and exception
18274         handling information.
18275         * doc/trouble.texi (Interoperation): Add libstdc++ information
18276         for AIX.
18277         (Misunderstandings): Add template instantiation and static template
18278         member information for AIX.
18279
18280 2002-01-17  Jason Merrill  <jason@redhat.com>
18281
18282         * dbxout.c (dbxout_type): Support const and volatile.
18283
18284         * except.c (add_partial_entry): Remove backwards compatibility code.
18285         (end_protect_partials): Likewise.
18286
18287 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
18288
18289         * config/ia64/ia64.md (prologue_use): New.
18290         * config/ia64/ia64.c (ia64_expand_prologue): Use
18291         gen_prologue_use instead of gen_rtx_USE.
18292         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
18293         as CODE_FOR_pred_rel_mutex.
18294         (ia64_sched_reorder2): Likewise.
18295
18296 2002-01-16  Eric Christopher  <echristo@redhat.com>
18297
18298         * config/mips/r3900.h: Reformat.
18299         (SUBTARGET_CPP_SIZE_SPEC): Remove.
18300         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
18301         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
18302         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
18303         * config/mips/t-elf: Remove mips3 multilib.
18304
18305 2002-01-16  H.J. Lu <hjl@gnu.org>
18306
18307         * config/mips/linux.h: Include "mips/abi64.h".
18308
18309 2002-01-16  H.J. Lu <hjl@gnu.org>
18310
18311         * config/mips/t-linux: New.
18312
18313         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
18314
18315         * config/mips/linux.h: Don't include "gofast.h".
18316         (INIT_SUBTARGET_OPTABS): Removed.
18317
18318 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18319
18320         * config/h8300/h8300-protos.h: Replace emit_a_shift with
18321         output_a_shift.
18322         * config/h8300/h8300.c: Likewise.
18323         * config/h8300/h8300.md: Likewise.
18324
18325 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18326
18327         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
18328         spaces after an opcode name.
18329         (pushqi1_h8300hs): Likewise.
18330         (pushhi1_h8300hs): Likewise.
18331
18332 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18333
18334         * doc/extend.texi: Replace "option" with "attribute"
18335         appropriately.
18336
18337 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
18338
18339         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
18340         (and:DI () (const_int -8)).
18341         (split_small_symbolic_mem_operand): Split
18342         (mem (and:DI () (const_int -8)).
18343
18344 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
18345
18346         PR target/5309:
18347         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
18348         same way as TYPE_IMUL.
18349         (ultrasparc_sched_reorder): Likewise.
18350         * config/sparc/sparc.md (type): Add comment to update
18351         ultrasparc_sched_reorder when making changes.
18352
18353 2002-01-16  Kazu Hirata  <kazu@hxi.com>
18354
18355         * doc/invoke.texi: Change the dump file name of block
18356         reordering pass from 28.bbro to 29.bbro.
18357         Mention -dk option.
18358
18359 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
18360
18361         * i386.md (minsf splitter): Fix pasto.
18362
18363 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
18364
18365         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
18366         to frame pointer initialisation instruction.
18367         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
18368         initialisation instruction.
18369         (soft_df_operand): Do not accept the IP register.
18370         (nonimmediate_soft_df_operand): Do not accept the IP register.
18371
18372 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
18373
18374         PR target/5357:
18375         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
18376         MASK_V8 being both set.
18377
18378 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
18379
18380         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
18381         insn for GOT register; add REG_MAYBE_DEAD notes instead.
18382         config/s390/s390.md (call, call_value): Add GOT register to
18383         CALL_INSN_FUNCTION_USAGE where needed.
18384         (call_exp, call_value_exp): New.
18385
18386 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
18387
18388         * config/arm/arm.c: General formatting tidy up.
18389
18390 2002-01-16  Graham Stott  <grahams@redhat.com>
18391
18392         * calls.c (try_to_integrate): Use "(size_t)" intermediate
18393         cast and when casting an integer literal to "rtx" pointer.
18394         (expand_call): Likewise.
18395         * flow.c (try_pre_increment): Likewise.
18396         (find_use_as_address): Likewise.
18397         * integrate.c (expand_iline_function): Likewise.
18398         * regmove.c (try_auto_increment): Likewise.
18399
18400 2002-01-16  Graham Stott  <grahams@redhat.com>
18401
18402         * sched-rgn.c (passed): Use sbitmap_free.
18403         (header): Likewise.
18404         (inner): Likewise.
18405         (in_queue): Likewise.
18406         (in_stack): Likewise.
18407
18408 2002-01-15  Eric Christopher  <echristo@redhat.com>
18409
18410         * flow.c (propagate_one_insn): Change to use fatal_insn.
18411
18412 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18413
18414         * expmed.c (extract_fixed_bit_field): Remove unused code.
18415         * system.h: Poison SLOW_ZERO_EXTEND.
18416         * doc/tm.texi: Remove.
18417         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
18418         * config/arm/arm.h: Likewise.
18419         * config/avr/avr.h: Likewise.
18420         * config/clipper/clipper.h: Likewise.
18421         * config/convex/convex.h: Likewise.
18422         * config/d30v/d30v.h: Likewise.
18423         * config/dsp16xx/dsp16xx.h: Likewise.
18424         * config/elxsi/elxsi.h: Likewise.
18425         * config/fr30/fr30.h: Likewise.
18426         * config/h8300/h8300.h: Likewise.
18427         * config/i370/i370.h: Likewise.
18428         * config/i386/i386.h: Likewise.
18429         * config/m68k/m68k.h: Likewise.
18430         * config/mips/mips.h: Likewise.
18431         * config/ns32k/ns32k.h: Likewise.
18432         * config/pdp11/pdp11.h: Likewise.
18433         * config/pj/pj.h: Likewise.
18434         * config/s390/s390.h: Likewise.
18435         * config/sh/sh.h: Likewise.
18436         * config/stormy16/stormy16.h: Likewise.
18437         * config/v850/v850.h: Likewise.
18438         * config/vax/vax.h: Likewise.
18439         * config/we32k/we32k.h: Likewise.
18440
18441 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
18442
18443         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
18444         (altivec_lvsl): Change constraint to b.
18445         (altivec_lvsr): Same.
18446         (altivec_lvebx): Same.
18447         (altivec_lvehx): Same.
18448         (altivec_lvewx): Same.
18449         (altivec_lvxl): Same.
18450         (altivec_lvx): Same.
18451         (altivec_stvx): Add parallel.
18452         (altivec_stvxl): Same.
18453         (altivec_stvehx): Same.
18454         (altivec_stvebx): Same.
18455         (altivec_stvebx): Same.
18456
18457 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
18458
18459         * config.gcc: Change altivec.h to altivec-defs.h.
18460
18461         * config/rs6000/altivec.h: Delete.
18462
18463         * config/rs6000/altivec-defs.h: Add.
18464
18465 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18466
18467         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
18468         and UMOD modes.
18469
18470         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
18471         less than or equal to eight bytes.
18472
18473         * vax.md (andsi3): Remove constraints and change SET destination
18474         operand type to nonimmediate_operand.
18475         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
18476         when it is a CONST_INT.
18477
18478 2002-01-15  Jason Merrill  <jason@redhat.com>
18479
18480         * c-common.def (FILE_STMT): New code.
18481         * c-common.c (statement_code_p): It's a statement.
18482         * c-common.h (stmt_tree_s): Add x_last_filename.
18483         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
18484         (last_expr_filename): New macro.
18485         * c-semantics.c (begin_stmt_tree): Initialize it.
18486         (add_stmt): If the filename changed, also insert a
18487         FILE_STMT.
18488         (expand_stmt): Handle seeing one.
18489
18490 2002-01-15  Eric Christopher  <echristo@redhat.com>
18491
18492         * flow.c (propagate_one_insn): Add error message and print out
18493         insn for debugging.
18494
18495 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
18496
18497         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
18498         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
18499         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
18500         TRAMPOLINE_ALIGNMENT.
18501         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
18502         to be in bits.
18503         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
18504         PCC_BITFIELD_TYPE_MATTERS.
18505         * config/interix.h (STDC_VALUE): Remove.  Use
18506         STDC_0_IN_SYSTEM_HEADERS.
18507         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
18508         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
18509         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
18510
18511 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18512
18513         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
18514         not work on this platform currently.
18515
18516 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
18517
18518         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
18519         readonly_warning in _().
18520
18521 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
18522
18523         * gcc.c (delete_if_ordinary): Backout previous change.
18524
18525 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18526
18527         * config/h8300/h8300.c (print_operand): Remove support for
18528         unused operand characters.
18529
18530         * read-rtl.c: Fix formatting.
18531         * real.c: Likewise.
18532         * recog.c: Likewise.
18533         * regclass.c: Likewise.
18534         * regmove.c: Likewise.
18535         * reg-stack.c: Likewise.
18536         * reload1.c: Likewise.
18537         * rtlanal.c: Likewise.
18538
18539 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18540
18541         * config/i386/i386.c: Fix formatting.
18542
18543 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
18544
18545         * c-typeck.c (process_init_element): Don't save_expr
18546         COMPOUND_LITERAL_EXPR if just its initializer will be used.
18547
18548 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
18549
18550         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
18551         emit optional traceback table if optimize_size or TARGET_ELF.
18552         * config/rs6000/rs6000.md (prefetch): New.
18553
18554 2002-01-15  Andreas Jaeger  <aj@suse.de>
18555
18556         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
18557
18558 2002-01-15  Kazu Hirata  <kazu@hxi.com>
18559
18560         * mips-tfile.c: Fix formatting.
18561
18562 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
18563
18564         * unroll.c (final_reg_note_copy): Fix previous commit.
18565
18566 2002-01-14  Kazu Hirata  <kazu@hxi.com>
18567
18568         * config/h8300/h8300-protos.h: Remove the prototype for
18569         eq_operator.
18570         * config/h8300/h8300.c (eq_operator): Remove.
18571
18572 2002-01-14  Richard Henderson  <rth@redhat.com>
18573
18574         * config/i386/i386.md (prefetch): Tidy.
18575         (prefetch_3dnow): Fix locality operand.
18576
18577 2002-01-14  Richard Henderson  <rth@redhat.com>
18578
18579         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
18580         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
18581
18582 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
18583
18584         * reload1.c (reload_combine): Pass reg_sum replacement through
18585         copy_rtx in loop performing multiple changes.
18586
18587 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
18588
18589         * except.c (remove_unreachable_regions): New.
18590         (free_eh_status): Clear exception_handler_labels.
18591         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
18592         (find_exception_handler_labels): Don't add the same label more than
18593         once.
18594         (remove_exception_handler_label): Don't die if
18595         find_exception_handler_labels hasn't been called for the current
18596         function yet.
18597
18598 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
18599
18600         * toplev.c (rest_of_compilation): Rebuild jump labels after
18601         gcse.
18602
18603 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
18604
18605         * doc/extend.texi: Move documentation of X86 built-in functions
18606         here.
18607         * doc/invoke.texi: From here.
18608         * doc/sourcebuild.texi: Document location of documentation for
18609         machine built-in functions.
18610
18611 2002-01-13  Christopher Faylor  <cgf@redhat.com>
18612
18613         * cppfiles.c (TEST_THRESHOLD): New macro.
18614         (SHOULD_MMAP): Ditto.
18615         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
18616         be used.
18617
18618 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
18619
18620         * unroll.c (final_reg_note_copy): Properly handle
18621         REG_LABEL
18622         (unroll_loops): Fix LOOP_CONDITION heuristics.
18623
18624 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
18625
18626         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
18627         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
18628
18629 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
18630
18631         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
18632         threaded loop.
18633
18634 2002-01-14  Tom Rix  <trix@redhat.com>
18635
18636         * config/rs6000/rs6000.md: Fix typo with sradi.
18637
18638 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
18639
18640         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
18641         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
18642         (clrstrdi, clrstrsi): Adapt callers.
18643
18644         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
18645
18646         (movti splitter): Never use register 0 as base register.
18647
18648 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
18649
18650         * combine.c (simplify_shift_const): Always generate new rtx
18651         for shift expression instead of reusing given expression.
18652
18653 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18654
18655         * config/alpha/alpha.c (alpha_expand_mov): Don't call
18656         alpha_legitimize_address unless mode is Pmode.
18657
18658 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
18659
18660         * doc/md.texi (Modifiers): Document the '*' constraint for the
18661         user.
18662
18663         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
18664         * doc/extend.texi (Function Attributes): 'interrupt' is valid
18665         for xstormy16 too.
18666
18667 2002-01-13  Richard Henderson  <rth@redhat.com>
18668
18669         * reload.c (find_reloads): Use a hard reg destination as reload reg
18670         for an input reload of the source.
18671
18672 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18673
18674         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
18675         more generic.
18676
18677 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
18678
18679         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18680         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18681
18682         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
18683
18684 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18685
18686         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
18687
18688 2002-01-12  Tom Rix  <trix@redhat.com>
18689
18690         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
18691         TARGET_POWERPC64.
18692
18693 2002-01-12  Richard Henderson  <rth@redhat.com>
18694
18695         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
18696
18697         * doc/invoke.texi: Update Alpha options.
18698
18699         * doc/invoke.texi: Update i386 built-in function lists.
18700
18701 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
18702
18703         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
18704         referencing outside.
18705
18706 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18707
18708         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
18709         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
18710         offsets, and change line folding.
18711         * optabs.c (expand_binop): Remove warnings.
18712         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
18713
18714 2002-01-12  Graham Stott <grahams@redhat.com>
18715
18716         * attribs.c (handle_deprecated_attribute): constify WHAT.
18717         * diagnostic.c (warn_deprecated_use): Add braces, fixes
18718         dangling else warning and constify WHAT.
18719         * except.h (struct function, struct inline_remap): Move
18720         struct tag forward defs before all prototypes.
18721         (duplicate_eh_regions): Whitespace.
18722
18723 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
18724
18725         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18726         MODE_BASE_REG_CLASS.
18727         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
18728
18729 2002-01-12  Richard Henderson  <rth@redhat.com>
18730
18731         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
18732         (ix86_expand_vector_move): New.
18733         (bdesc_2arg): Remove andps, andnps, orps, xorps.
18734         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
18735         Remove old prefetch builtins.  Special case the logicals removed above.
18736         (ix86_expand_builtin): Likewise.
18737         (safe_vector_operand): Use V4SFmode, not TImode.
18738         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
18739         (ix86_expand_timode_binop_builtin): New.
18740         * config/i386/i386-protos.h: Update.
18741         * config/i386/i386.h (enum ix86_builtins): Update.
18742         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
18743         Use ix86_expand_vector_move in vector move expanders.
18744         (movti_internal, movti_rex64): Add xorps alternative.
18745         (sse_clrv4sf): Rename and adjust from sse_clrti.
18746         (prefetch): Don't work so hard.
18747         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
18748         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
18749         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
18750
18751 2002-01-11  Richard Henderson  <rth@redhat.com>
18752
18753         * config/i386/mmintrin.h: New file.
18754         * config/i386/xmmintrin.h: New file.
18755         * config.gcc (i?86-*-*): Add extra_headers.
18756         * simplify-rtx.c (simplify_unary_operation): Handle saturating
18757         truncation codes.
18758         (simplify_binary_operation): Handle saturating arithmetic codes.
18759         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
18760         not the lowpart subreg.
18761         (ix86_expand_builtin): Return a TImode dummy register instead of 0
18762         on error.
18763         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
18764
18765 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18766
18767         * conflict.c (conflict_graph_compute): Free regsets when finished.
18768         * ssa.c (compute_coalesced_reg_partition): Likewise.
18769
18770 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18771
18772         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
18773         every where we allocate a register.
18774
18775 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
18776
18777         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
18778         * lcm.c (compute_earliest, compute_farthest): Likewise.
18779
18780 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
18781
18782         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
18783
18784 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
18785
18786         * doc/rtl.texi (Insns): Fix 2 typos.
18787
18788 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
18789
18790         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
18791         options.  Use @table @gcctabopt for MMIX options.  Add index
18792         entries for MMIX options.  Start new paragraph with first
18793         heading of the machine-dependent options.
18794
18795 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18796
18797         PR other/5299
18798         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
18799         * combine.c (force_to_mode): Same.
18800         * reload1.c (clear_reload_reg_in_use): Same.
18801
18802 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
18803
18804         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
18805         and 'subtargets'.
18806
18807 2002-01-11  Andreas Jaeger  <aj@suse.de>,
18808             Brad Lucier <lucier@math.purdue.edu>
18809
18810         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
18811         mcpu.
18812
18813 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
18814
18815         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
18816         Protect with IN_LIBGCC.
18817         (LINK_EH_SPEC): Add required trailing space.
18818
18819 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
18820
18821         * c-tree.h: Move function declarations so that they are listed
18822         under the filename which contains them.
18823         (check_identifier, finish_decl_top_level,
18824         lookup_name_current_level_global, shadow_record_fields): Remove.
18825
18826 2002-01-11  Andreas Jaeger  <aj@suse.de>
18827
18828         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
18829         march.
18830
18831 2002-01-10  Richard Henderson  <rth@redhat.com>
18832
18833         * config/alpha/alpha.c (print_operand): Add 'J'.
18834         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
18835         new operand with the sequence number for the lituse.  When splitting
18836         the insns, use gen_movdi_er_high_g and generate a sequence number.
18837         (gen_movdi_er_high_g): Print the sequence number if non-zero.
18838
18839 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
18840
18841         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
18842         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
18843         stvxl.
18844         (altivec_expand_builtin): Same.
18845         (altivec_expand_stv_builtin): New.
18846
18847         * config/rs6000/rs6000.h (rs6000_builtins): Same.
18848
18849         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
18850         ("altivec_lvehx"): New.
18851         ("altivec_lvewx"): New.
18852         ("altivec_lvxl"): New.
18853         ("altivec_lvx"): New.
18854         ("altivec_stvx"): New.
18855         ("altivec_stvebx"): New.
18856         ("altivec_stvehx"): New.
18857         ("altivec_stvewx"): New.
18858         ("altivec_stvxl"): New.
18859
18860 2002-01-10  Richard Henderson  <rth@redhat.com>
18861
18862         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
18863         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
18864         care not to delete instructions twice.
18865
18866 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
18867
18868         * toplev.c: Don't declare environ (it's not used anywhere).
18869         * configure.in: Don't check for declaration of environ.
18870         * config/i386/xm-mingw32.h: Don't #define environ.
18871         * config.in, configure: Regenerate.
18872
18873 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
18874
18875         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
18876         * configure: Regenerate.
18877
18878         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
18879         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
18880         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
18881         alpha/xm-vms.h.
18882         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
18883         LIMITS_H_TEST here, not in m68k/x-next.
18884         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
18885         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
18886
18887         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
18888         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
18889         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
18890
18891         * config/i386/x-djgpp: Renamed i386/t-djgpp.
18892         * config/m88k/x-dolph: Renamed m88k/t-dolph.
18893         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
18894         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
18895         replacement of quadlib.asm with quadlib.c.
18896
18897         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
18898         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
18899         config/rs6000/xm-beos.h: Delete file.
18900
18901         * config.gcc: Update to match above changes.
18902
18903 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18904
18905         * config/h8300/h8300.h: Fix comment typos.
18906         * config/h8300/h8300.md: Likewise.
18907         * config/h8300/lib1funcs.asm: Likewise.
18908
18909 2002-01-10  Dale Johannesen  <dalej@apple.com>
18910
18911         PR optimization/5269
18912         * unroll.c (precondition_loop_p): Make *increment be the correct
18913         sign when n_iterations known, to avoid confusing caller.
18914
18915 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18916
18917         * doc/extend.texi (deprecated): Fix a typo.
18918
18919 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
18920
18921         * basic-block.h (update_br_prob_note): Declare.
18922         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
18923         (try_forward_edges): Care negative frequencies and update note.
18924         (outgoing_edges_match): Tweek conditional merging heuristics.
18925         (try_crossjump_to_edge): use update_br_prob_note.
18926         * cfglayout.c (fixup_reorder_chain): Likewise.
18927         * cfrtl.c (update_br_prob_note): New.
18928         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
18929
18930         * i386.c (ix86_decompose_address): Return -1 if address contains
18931         shift.
18932         (legitimate_address_p): Require ix86_decompose_address to return 1.
18933
18934         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
18935         (cprop_insn): Likewise.
18936
18937 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18938
18939         * toplev.c: Fix formatting.
18940         * tree.c: Likewise.
18941         * tree-dump.c: Likewise.
18942         * unroll.c: Likewise.
18943         * unwind-dw2.c: Likewise.
18944         * unwind-dw2-fde.c: Likewise.
18945         * unwind-dw2-fde-glibc.c: Likewise.
18946         * unwind-sjlj.c: Likewise.
18947
18948 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
18949
18950         * doc/invoke.texi: Document PDP-11 options.
18951
18952 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18953
18954         * config/h8300/h8300.h: Fix formatting.
18955
18956 2002-01-10  Ira Ruben   <ira@apple.com>
18957
18958         Add __attribute__ ((deprecated)).
18959         * extend.texi: Document __attribute__ ((deprecated)).
18960         * invoke.texi: Document -Wno-deprecated-declarations.
18961         * testsuite/g++.dg/other/deprecated.C: New C++ test.
18962         * testsuite/gcc.dg/deprecated.c: New C test.
18963         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
18964         (c_common_attribute_table): Add "deprecated" entry.
18965         (handle_deprecated_attribute): New function.
18966         * c-decl.c (deprecated_states): New enum.
18967         deprecated_state: State of "deprecated" handling.
18968         (start_decl): Set deprecated_state based on attributes.
18969         (grokdeclarator): Test for deprecated uses, propagate attribute.
18970         * c-typeck.c (build_component_ref): Test for deprecated fields.
18971         (build_external_ref): Test for deprecated primaries.
18972         * diagnostic.c (warn_deprecated_use) New function to issue
18973         warnings about __attribute__ ((depricated)) references.
18974         * flags.h (warn_deprecated_decl): Extern declared for
18975         -W[no-]deprecated-declarations option.
18976         * print-tree.c (print_node): Show deprecated flag status.
18977         * toplev.c (warn_deprecated_decl): Defined.
18978         (W_options): Added "deprecated-declaration".
18979         * toplev.h (warn_deprecated_use): Extern declared.
18980         * tree.h (struct tree_common): Define deprecated_flag.
18981         (TREE_DEPRECATED): New macro to access flag.
18982         * cp/call.c (build_call): Test for deprecated calls.
18983         * cp/class.c (add_implicitly_declared_members): Set global
18984         flag to tell grokdeclarator to not issue deprecated warnings.
18985         * cp/cp-tree.h: Add extern for adding_implicit_members.
18986         * cp/decl.c (deprecated_states): New enum.
18987         (start_decl): Set deprecated_state based on attributes.
18988         (grokdeclarator): Test for deprecated uses, propagate attribute.
18989         * cp/lex.c (do_identifier): Test for deprecated primaries.
18990         * cp/typeck.c (build_component_ref): Test for deprecated fields.
18991
18992 2002-01-10  Ira Ruben   <ira@apple.com>
18993
18994         Fix to assign attributes to inline member functions.
18995         * cp/decl.c (start_method): Handle attrlist.
18996
18997 2002-01-10  Kazu Hirata  <kazu@hxi.com>
18998
18999         * combine.c (expand_field_assignment): Use subreg_lsb().
19000
19001 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
19002
19003         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
19004         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
19005         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
19006         Recurse for any operand of AND as long as constant is non-zero.
19007
19008 2002-01-10  Kazu Hirata  <kazu@hxi.com>
19009
19010         * config/h8300/h8300.md: Remove constraints from expanders.
19011
19012 2002-01-10  Kazu Hirata  <kazu@hxi.com>
19013
19014         * varasm.c: Fix formatting.
19015         * varray.c: Likewise.
19016         * vmsdbgout.c: Likewise.
19017         * xcoffout.c: Likewise.
19018
19019 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
19020
19021         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
19022         update edge probabilities to match.
19023
19024 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
19025
19026         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
19027         dependencies.
19028         * doc/languages.texi, doc/sourcebuild.texi: New files.
19029         * doc/configfiles.texi: Make a subsubsection.  Update.
19030         * doc/configterms.texi: Add @node.  Remove warning that this isn't
19031         instructions for building GCC.
19032         * doc/makefile.texi: Make a subsection.
19033         * doc/gccint.texi: Update.
19034
19035 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
19036
19037         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
19038
19039 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
19040
19041         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
19042
19043 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
19044
19045         * optabs.c (expand_fix): Look for wider integer modes first.
19046
19047         * i386.md (mov?f): Avoid the fake const double trick for medium
19048         memory model.
19049         (min?f*/max?f*): Prohibit memory operands for i387 variant.
19050         (fop_df_4): Disable for SSE compilation.
19051
19052 2002-01-10  Graham Stott  <grahams@redhat.com>
19053
19054         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
19055         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
19056
19057 2002-01-10  Richard Henderson  <rth@redhat.com>
19058
19059         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
19060
19061 2002-01-10  Richard Henderson  <rth@redhat.com>
19062
19063         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
19064         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
19065
19066 2002-01-10  Kazu Hirata  <kazu@hxi.com>
19067
19068         * combine.c (can_combine_p): Fix a comment typo.
19069
19070 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
19071
19072         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
19073         empty list correctly.  Change loop index $t to $f for
19074         consistency with rest of Makefile.
19075
19076 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
19077
19078         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
19079         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19080
19081         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
19082         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
19083         (altivec_init_builtins): Same.
19084         (altivec_expand_unop_builtin): Return NULL_RTX on error.
19085         (altivec_expand_binop_builtin): Same.
19086         (altivec_expand_ternop_builtin): Same.
19087         (bdesc_dst): New.
19088
19089         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
19090         ("altivec_vctuxs"): Fix typo.
19091         ("altivec_vnmsubfp"): Same.
19092         ("altivec_dssall"): New.
19093         ("altivec_mfvscr"): New.
19094         ("altivec_dss"): New.
19095         ("altivec_lvsl"): New.
19096         ("altivec_lvsr"): New.
19097         ("altivec_dstt"): New.
19098         ("altivec_dstst"): New.
19099         ("altivec_dststt"): New.
19100         ("altivec_dst"): New.
19101
19102         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
19103         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19104
19105 2002-01-09  Richard Henderson  <rth@redhat.com>
19106
19107         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
19108
19109 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
19110
19111         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
19112         function.
19113         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
19114         prototype.
19115         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
19116
19117 2002-01-09  Kazu Hirata  <kazu@hxi.com>
19118
19119         * read-rtl.c: Fix formatting.
19120         * real.c: Likewise.
19121         * regclass.c: Likewise.
19122         * regrename.c: Likewise.
19123         * reg-stack.c: Likewise.
19124         * reload1.c: Likewise.
19125         * reload.c: Likewise.
19126         * rtl.c: Likewise.
19127
19128 2002-01-09  Kazu Hirata  <kazu@hxi.com>
19129
19130         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
19131         to extract items in the expr_list chain.
19132
19133 2002-01-09  Richard Henderson  <rth@redhat.com>
19134
19135         * config/vax/vax.c (vax_rtx_cost): Never abort.
19136
19137         * config/vax/vax.h (REAL_ARITHMETIC): Define.
19138
19139 2002-01-09  Jan Hubicka  <jh@suse.cz>
19140
19141         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
19142
19143 2002-01-09  Richard Henderson  <rth@redhat.com>
19144
19145         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
19146         Unify code from various alternatives.
19147
19148 2002-01-09  Richard Henderson  <rth@redhat.com>
19149
19150         * regrename.c (copy_value): Ignore the copy if the source register
19151         is present in the value chain with a narrower mode.
19152
19153 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
19154
19155         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
19156         for the c4x target. Also improve layout.
19157
19158 2002-01-09  Richard Henderson  <rth@redhat.com>
19159
19160         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
19161         * config/m32r/m32r.md (and ior xor splitters): Swap operands
19162         to match insn patterns.
19163
19164 2002-01-09  Richard Henderson  <rth@redhat.com>
19165
19166         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
19167         (copyprop_hardreg_forward_1): Likewise.
19168
19169 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19170
19171         * pa.md (decrement_and_branch_until_zero): Change predicate for
19172         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
19173
19174 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
19175
19176         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
19177         gets undefined. For Darwin.
19178
19179 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19180
19181         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
19182
19183 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19184
19185         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
19186
19187 2002-01-08  Richard Henderson  <rth@redhat.com>
19188
19189         * regrename.c (copy_value): Ignore overlapping copies.
19190
19191 2002-01-08  Richard Henderson  <rth@redhat.com>
19192
19193         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
19194         as needed to avoid shared structure.
19195
19196 2002-01-08  Kazu Hirata  <kazu@hxi.com>
19197
19198         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
19199         H8/300H and H8/S.
19200
19201 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
19202
19203         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
19204         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
19205         documentation of obsolete macros.
19206         * system.h: Poison these macros.
19207         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
19208         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
19209         config/c4x/c4x.h, config/clipper/clipper.h,
19210         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
19211         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
19212         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
19213         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
19214         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
19215         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
19216         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
19217         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
19218         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
19219         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
19220         config/sparc/sparc.h, config/stormy16/stormy16.h,
19221         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
19222         definitions and commented out definitions of obsolete macros.
19223         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
19224         of MAX_INT_TYPE_SIZE.
19225
19226 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
19227
19228         * config/s390/s390.c (s390_preferred_reload_class): Never
19229         return ADDR_REGS if it isn't a subset of the given class.
19230         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
19231         FP_REGS, but all superclasses as well.
19232
19233         * config/s390/s390.c (s390_function_profiler): Fix thinko.
19234
19235         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
19236         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
19237         must not be a const_int.
19238
19239 2002-01-08  Richard Henderson  <rth@redhat.com>
19240
19241         * Makefile.in (toplev.o): Depend on options.h.
19242         (gcc.o): Depend on specs.h.
19243
19244 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
19245
19246         * expr.c (store_expr): Convert VOIDmode constants back to target's
19247         mode.
19248
19249 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19250
19251         * doc/invoke.texi: Markup gcc as @command.  Refer to
19252         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
19253         of http://gcc.gnu.org/thanks.html.
19254
19255 2002-01-08  Dale Johannesen  <dalej@apple.com>
19256
19257         * config/rs6000/rs6000.md: Add missing int register
19258         target case to movdf_low.
19259
19260 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
19261
19262         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
19263         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
19264         (cppinit.o): Depend on except.h.
19265         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
19266         s-specs): New rules.
19267
19268         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
19269         Don't create specs.h/options.h/gencheck.h here.  Remove
19270         unnecessary variable settings from last argument of AC_OUTPUT.
19271         * config.in, configure: Regenerate.
19272         * intl.c: Hardcode package name as "gcc".
19273
19274         * cppinit.c: Include except.h.
19275         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
19276         appropriate.
19277         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
19278         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
19279         (!)USING_SJLJ_EXCEPTIONS.
19280         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
19281
19282 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
19283
19284         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
19285         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
19286         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
19287         documentation of obsolete macros.
19288         * system.h: Poison these macros.
19289         * config/d30v/d30v.h, config/ns32k/encore.h,
19290         config/stormy16/stormy16.h: Remove definitions and commented out
19291         definitions of obsolete macros.
19292
19293 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
19294
19295         * objc/objc-act.c (handle_class_ref): Mark the declaration of
19296         %sobjc_class_ref_%s as used - to prevent unwanted compiler
19297         warnings.
19298
19299 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
19300
19301         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
19302         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
19303         to insn adjusting stack/frame pointer.
19304         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
19305         accept operands that cause the insn to be non-splittable.
19306
19307 2002-01-08  Graham Stott  <grahams@redhat.com>
19308
19309         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
19310         (C_TYPE_FIELDS_VOLATILE): Likewise.
19311         (C_TYPE_BEING_DEFINED): Likewise.
19312         (C_IS_RESERVED_WORD): Likewise.
19313         (C_TYPE_VARIABLE_SIZE): Likewise.
19314         (C_DECL_VARIABLE_SIZE): Likewise.
19315         (C_MISSING_PROTOTYPE_WARNED): Likewise.
19316         (C_SET_EXP_ORIGINAL_CODE): Likewise.
19317         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
19318         parenthesis.
19319         (C_DECL_ANTICIPATED): Likewise.
19320         (c_build_type_variant): Add parenthesis.
19321
19322 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
19323
19324         * gcc.c (option_map): Remove --version.
19325         (process_command): Handle -fversion following the GNU Coding
19326         Standards.  Partially addresses PR other/704.
19327
19328 2002-01-08  Graham Stott  <grahams@redhat.com>
19329
19330         * combine.c (combine_instructions): Fix typo.
19331
19332 2002-01-08  Graham Stott  <grahams@redhat.com>
19333
19334         * debug.h: Use "tree" and "rtx" throughout.
19335
19336         * debug.c: Likewise.
19337
19338 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
19339
19340         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
19341         constant pool, use the pool's version of the symbol instead.
19342
19343 2002-01-07  Richard Henderson  <rth@redhat.com>
19344
19345         * regrename.c (find_oldest_value_reg): Ignore the value chain if
19346         the original register was copied in a mode with a fewer number of
19347         hard registers than the desired mode.
19348         (copyprop_hardreg_forward_1): Likewise.
19349         (debug_value_data): Fix loop test.
19350         * toplev.c (parse_options_and_default_flags): Reenable
19351         -fcprop-registers at -O1.
19352
19353 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
19354
19355         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
19356         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
19357
19358         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
19359         predicates.
19360
19361         * config/rs6000/rs6000.md: Add altivec predicate patterns.
19362
19363 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19364
19365         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
19366         (pa_output_function_prologue): Output local label at the beginning of
19367         the prologue when profiling.
19368         (hppa_profile_hook): Use the local label rather than the function label.
19369         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
19370
19371 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
19372
19373         * config/rs6000/rs6000.c (print_operand): Remove extra space.
19374         (altivec_expand_unop_builtin): Fix thinko.
19375         (altivec_expand_binop_builtin): Same.
19376         (altivec_expand_ternop_builtin): Same.
19377         (altivec_expand_builtin): Same.
19378
19379 2002-01-07  Richard Henderson  <rth@redhat.com>
19380
19381         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
19382
19383 2002-01-07  Jason Merrill  <jason@redhat.com>
19384
19385         * unwind-dw2.c (execute_cfa_program): Use < again.
19386
19387 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
19388
19389         * predict.c (combine_predictions_for_insn): Avoid division by zero.
19390
19391 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
19392
19393         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
19394         Don't allow -1 - x -> ~x simplifications in the first pass.
19395
19396 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
19397
19398         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
19399         arguments.
19400         (altivec_expand_binop_builtin): Same.
19401         (altivec_expand_unop_builtin): Same.
19402         (print_operand): Fix typo.
19403         (bdesc_1arg): Add vupk* variants.
19404
19405         * rs6000.h (rs6000_builtins): Add vupk* enums.
19406
19407         * rs6000.md: Add altivec_vupk* variants.
19408
19409 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
19410
19411         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
19412         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
19413         and last update dates.
19414
19415 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
19416
19417         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
19418
19419 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
19420
19421         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
19422         * config/avr/avr.h (CPP_SPEC): Likewise.
19423         (LINK_SPEC): Likewise.
19424         (CRT_BINUTILS_SPECS): Likewise.
19425         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
19426         * doc/invoke.texi (AVR Options): Document them.
19427
19428 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
19429
19430         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
19431         LABEL_NUSES.
19432
19433 2002-01-07  Graham Stott  <grahams@redhat.com>
19434
19435         * config/i386/i386.h: Update copyright date.
19436         (HALF_PIC_PTR): Add parenthesis.
19437         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
19438         (CONSTANT_ALIGNMENT): Add parenthesis.
19439         (DATA_ALIGNMENT): Likewise.
19440         (LOCAL_ALIGNMENT): Likewise.
19441         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
19442         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
19443         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
19444         (HARD_REGNO_NREGS): Add paranethesis.
19445         (VALID_SSE_REG_MODE): Whitespace.
19446         (VALID_MMX_REG_MODE): Whitespace.
19447         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
19448         (ix86_hard_regno_mode_ok): Add parenthesis.
19449         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
19450         (RETURN_IN_MEMORY): Whitespace.
19451         (N_REG_CLASSES): Add parenthesis.
19452         (INTEGER_CLASS_P): Add parenthesis and wrap.
19453         (FLOAT_CLASS_P): Likewise.
19454         (SSE_CLASS_P): Likewise.
19455         (MMX_CLASS_P): Likewise.
19456         (MAYBE_INTEGER_CLASS_P): Likewise.
19457         (MAYBE_FLOAT_CLASS_P): Likewise.
19458         (MAYBE_SSE_CLASS_P): Likewise.
19459         (MAYBE_MMX_CLASS_P): Likewise.
19460         (Q_CLASS_P): Likewise.
19461         (GENERAL_REGNO_P): Uppercase macro parameter.
19462         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
19463         (FP_REGNO_P): Likewise.
19464         (ANY_FP_REGNO_P): Uppercase macro parameter.
19465         (SSE_REGNO_P): Likewise.
19466         (SSE_REGNO): Likewise.
19467         (SSE_REG_P): Likewise.
19468         (SSE_FLOAT_MODE_P): Likewise.
19469         (MMX_REGNO_P): Likewise.
19470         (MMX_REG_P):Likewise.
19471         (STACK_REG_P): Likewise.
19472         (NON_STACK_REG_P): Likewise.
19473         (STACK_TOP_P): Likewise.
19474         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
19475         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
19476         (SECONDARY_MEMORY_NEEDED): Likewise.
19477         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
19478         (MD_ASM_CLOBBERS): Whitespace and wrap.
19479         (MUST_PASS_IN_STACK): Whitespace and wrap.
19480         (RETURN_POPS_ARGS): Add parenthesis.
19481         (INIT_CUMULATIVE_ARGS): Likewise.
19482         (FUNCTION_ARG): Likewise.
19483         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
19484         (SETUP_INCOMING_VARARGS): Likewise.
19485         (BUILD_VA_LIST_TYPE):  Add parenthesis.
19486         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
19487         parenthsis.
19488         (EXPAND_BUILTIN_VA_ARG): Likewise.
19489         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
19490         (INITIALIZE_TRAMPOLINE): Add parenthesis.
19491         (INITIAL_ELIMINATION_OFFSET): Likewise.
19492         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
19493         (REGNO_OK_FOR_BASE_P): Likewise.
19494         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
19495         (REGNO_OK_FOR_DIREG_P): Likewise.
19496         (REG_OK_FOR_INDEX_P): Whitespace.
19497         (REG_OK_FOR_BASE_P): Whitespace.
19498         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
19499         parenthesis.
19500         (FIND_BASE_TERM): Fix typo.
19501         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
19502         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
19503         (SYMBOLIC_CONST; Whitespace.
19504         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
19505         (ENCODE_SECTION_INFO): Whitespace.
19506         (FINALIZE_PIC): Remove do { ... } while (0).
19507         (PROMOTE_MODE): Wrap in do { ... } while (0).
19508         (CONST_COSTS): Whitespace.
19509         (RTX_COSTS): Add paramethesis, whitespace and wrap.
19510         (REGISTER_MOVE_COST): Add parenthesis.
19511         (MEMORY_MOVE_COST): Likewise.
19512         (EXTRA_CC_MODES): Whitespace.
19513         (SELECT_CC_MODE): Add parenthesis and whitespace.
19514         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
19515         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
19516         (ASM_OUTPUT_LABEL): Add paramethesis.
19517         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
19518         (ASM_OUTPUT_REG_POP): Likewise.
19519         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
19520         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19521
19522         * config/i386/i386.c: Update copyright.
19523         (CHECK_STACK_LIMIT): Add parenthesis.
19524         (AT_BP): Uppercase macro parameter.
19525         (x86_64_int_parameter_registers): Constify.
19526         (x86_64_int_return_registers): Likewise.
19527         (ix86_compare_op0): Use rtx.
19528         (construct_container): Constify INTREG parameter.
19529         (function_arg): Use rtx.
19530
19531         * diagnostic.h: Update copyright date.
19532         (output_buffer_state): Add parenthesis.
19533         (output_buffer_format_args): Likewise.
19534
19535         * combine.c (combine_instructions): Replace XEXP (links, 0)
19536         with link.
19537
19538 2002-01-06  H.J. Lu <hjl@gnu.org>
19539
19540         * cfgcleanup.c (thread_jump): Fix 2 typos.
19541
19542 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
19543
19544         * config.gcc: Add support for --enable-altivec.
19545
19546 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19547
19548         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
19549
19550 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
19551
19552         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
19553         __objc_class_name_*.
19554
19555 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19556
19557         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
19558
19559 2002-01-06  Richard Henderson  <rth@redhat.com>
19560
19561         * reorg.c (emit_delay_sequence): Remove death notes, not merely
19562         nop them out.  Increment label reference count for REG_LABEL.
19563         (fill_slots_from_thread): Frob label reference count around
19564         delete_related_insns.
19565
19566 2002-01-05  Richard Henderson  <rth@redhat.com>
19567
19568         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
19569         jump threading.
19570
19571 2002-01-05  Richard Henderson  <rth@redhat.com>
19572
19573         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
19574         * integrate.c (output_inline_function): Likewise.
19575         * toplev.c (rest_of_compilation): Do it here instead.  Move call
19576         to remove_unnecessary_notes after emitting abstract instance.
19577         Force an emitted nested function to have its parent emited as well.
19578         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
19579         for null.
19580         (rtl_for_decl_location): Do not look at reload data structures
19581         before reload has run.
19582
19583 2002-01-05  Kazu Hirata  <kazu@hxi.com>
19584
19585         * cse.c: Fix formatting.
19586         * dwarf2asm.c: Likewise.
19587         * dwarf2out.c: Likewise.
19588         * explow.c: Likewise.
19589         * expmed.c: Likewise.
19590         * function.c: Likewise.
19591         * gcov.c: Likewise.
19592         * gencheck.c: Likewise.
19593         * genrecog.c: Likewise.
19594         * ggc-common.c: Likewise.
19595         * ggc-page.c: Likewise.
19596         * global.c: Likewise.
19597
19598 2002-01-05  Kazu Hirata  <kazu@hxi.com>
19599
19600         * combine.c: Fix formatting.
19601
19602 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
19603
19604         PR middle-end/1557
19605         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
19606
19607 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
19608
19609         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
19610         as 1 for __powerpc64__ as well.
19611
19612         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
19613
19614         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
19615         return it.
19616
19617 2002-01-05  Daniel Berlin  <dan@dberlin.org>
19618
19619         * lcm.c: Revert change, due to performance regression it causes on
19620         SPEC because it's slightly more conservative (sigh, I hate
19621         edge-based LCM).
19622
19623 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
19624
19625         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
19626
19627 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
19628
19629         * doc/cppinternals.texi: Update.
19630
19631 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
19632
19633         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
19634         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
19635         negatives.
19636         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
19637         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
19638         kludge for pre-october-14th mmix versions to handle new-found bug
19639         with PUSHJ/PUSHGO and the register stack.
19640         * config/mmix/mmix.h (struct machine_function): Rename member
19641         has_call_value_without_parameters to has_call_without_parameters.
19642         All referers changed.
19643         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
19644         TARGET_MASK_BRANCH_PREDICT): New macros.
19645         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
19646         -mno-reg-stack-fill-bug-workaround.
19647         * config/mmix/mmix.md ("call"): Set struct machine member
19648         has_call_without_parameters.
19649
19650 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
19651
19652         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
19653
19654 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
19655
19656         * cfgcleanup.c: Include tm_p.h
19657         (mark_effect): Fix handling of hard register; fix handling of SET
19658
19659 2002-01-04  Kazu Hirata  <kazu@hxi.com>
19660
19661         * config/h8300/h8300.md (anonymous patterns): Check that
19662         operands are registers before using REGNO on them.
19663
19664 2002-01-03  Roland McGrath  <roland@frob.com>
19665
19666         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
19667
19668 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
19669
19670         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
19671         * c-common.h (genrtl_expr_stmt_value): Likewise.
19672         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
19673         (expand_expr_stmt_value): Add maybe_last argument.
19674         Don't warn about statement with no effect if it is the last statement
19675         in expression statement.
19676         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
19677         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
19678         expand_expr_stmt_value.
19679         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
19680         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
19681         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
19682         as maybe_last to expand_expr_stmt_value.
19683
19684 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
19685
19686         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
19687         be passed in, do not build it.
19688         (c_begin_if_stmt): New function.
19689         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19690         * c-common.h (c_expand_start_cond): Update prototype.
19691         (c_begin_if_stmt): Prototype new function.
19692         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19693         * c-parse.in (if_prefix): Use c_begin_if_stmt,
19694         c_begin_while_stmt and c_finish_while_stmt_cond.
19695
19696 2002-01-04  William Cohen  <wcohen@redhat.com>
19697
19698         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
19699         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19700         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19701         * config/pa/som.h (ASM_FILE_START): Likewise.
19702
19703 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
19704
19705         * lcm.c: Include df.h.
19706         Add available_transfer_function prototype.
19707         (compute_available): Rework to use iterative dataflow framework.
19708         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
19709         with bb_info in df.h
19710         (available_transfer_function): New function.
19711
19712         * Makefile.in (lcm.o): add df.h to dependencies.
19713
19714 2002-01-04  Richard Henderson  <rth@redhat.com>
19715
19716         * config/alpha/alpha.c (some_operand): Accept HIGH.
19717         (input_operand): Likewise; accept simple references to globals.
19718         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
19719         (alpha_const_double_ok_for_letter_p): Likewise.
19720         (alpha_extra_constraint): Likewise.
19721         (alpha_preferred_reload_class): Likewise.  Do not force
19722         symbolic constants to memory.
19723         (alpha_legitimate_address_p): Accept simple references
19724         to small_symbolic_operand.
19725         (alpha_legitimize_address): New arg scratch.  Be prepared to be
19726         called when no_new_pseudos.  Emit simple symbolic references.
19727         Split integers into low, high, and rest.
19728         (alpha_expand_mov): Use alpha_legitimize_address.
19729         (some_small_symbolic_mem_operand): New.
19730         (split_small_symbolic_mem_operand): New.
19731         * config/alpha/alpha-protos.h: Update.
19732         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
19733         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
19734         (EXTRA_CONSTRAINT): Likewise.
19735         (PREFERRED_RELOAD_CLASS): Likewise.
19736         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
19737         (PREDICATE_CODES): Update.
19738         * config/alpha/alpha.md: New post-reload splitters to convert
19739         simplfied symbolic operands to the form that references $29.
19740         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
19741         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
19742
19743 2002-01-03  Richard Henderson  <rth@redhat.com>
19744
19745         * local-alloc.c (function_invariant_p): Update commentary.
19746
19747 2002-01-04  H.J. Lu <hjl@gnu.org>
19748
19749         * toplev.c (rest_of_compilation): Fix a typo when calling
19750         cleanup_cfg.
19751
19752 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19753
19754         * c-common.c: Fix formatting.
19755         * diagnostic.c: Likewise.
19756         * doloop.c: Likewise.
19757         * dwarf2out.c: Likewise.
19758
19759 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19760
19761         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
19762         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
19763
19764 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
19765
19766         * cpperror.c: Update comments and copyright.
19767         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
19768         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
19769
19770 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19771
19772         * collect2.c (main): Use strcmp when testing for "-shared".
19773
19774 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
19775
19776         * cppmacro.c: Don't include intl.h.  Update comments.
19777         (new_number_token): Allocate enough buffer for 64-bit unsigned
19778         integers; update prototype.
19779         * cppmain.c: Update comments.
19780
19781 2002-01-03  William Cohen  <wcohen@redhat.com>
19782
19783         * function.h (struct function): Add profile.
19784         (current_function_profile): New.
19785         doc/extend.texi: Update documentation.
19786         * final.c (final_start_function): Use current_function_profile
19787         instead of profile_flag.
19788         (profile_after_prologue): Likewise.
19789         * function.c (expand_function_start): Likewise.
19790         (expand_function_start): Likewise.
19791         * config/alpha/alpha.c (direct_call_operand):
19792         (alpha_does_function_need_gp): Likewise.
19793         (alpha_expand_prologue): Likewise.
19794         * config/arm/arm.c (arm_expand_prologue): Likewise.
19795         thumb_expand_prologue: Likewise.
19796         * config/d30v/d30v.c (d30v_stack_info): Likewise.
19797         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
19798         (fr30_expand_prologue): Likewise.
19799         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
19800         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
19801         * config/i386/i386.h (FINALIZE_PIC): Likewise.
19802         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
19803         * config/i960/i960.c (i960_output_function_prologue): Likewise.
19804         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
19805         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
19806         (m32r_expand_prologue): Likewise.
19807         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
19808         (m88k_expand_prologue): Likewise.
19809         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
19810         * config/mips/mips.c (compute_frame_size): Likewise.
19811         (mips_expand_prologue): Likewise.
19812         (mips_can_use_return_insn): Likewise.
19813         * config/pa/elf.h (ASM_FILE_START): Likewise.
19814         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19815         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19816         * config/pa/som.h (ASM_FILE_START): Likewise.
19817         * config/romp/romp.c (romp_using_r14): Likewise.
19818         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
19819         (rs6000_stack_info): Likewise.
19820         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19821         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
19822         * config/v850/v850.c (compute_register_save_size): Likewise.
19823
19824 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
19825
19826         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
19827         gen_lowpart_common fails, use gen_lowpart_SUBREG.
19828
19829 2002-01-03  Turly O'Connor  <turly@apple.com>
19830
19831         * darwin.c (machopic_output_possible_stub_label): Don't generate
19832         stub routines for pseudo-stubs which we've just defined.
19833
19834 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19835
19836         * builtins.c: Fix formatting.
19837         * c-typeck.c: Likewise.
19838         * combine.c: Likewise.
19839         * expr.c: Likewise.
19840         * loop.c: Likewise.
19841
19842 2002-01-03  Andreas Schwab  <schwab@suse.de>
19843
19844         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
19845         and return true if _cpp_push_next_buffer pushed a new include
19846         file.
19847         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
19848         _cpp_pop_file_buffer did not push a new file.
19849         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
19850
19851 2002-01-02  Eric Christopher  <echristo@redhat.com>
19852
19853         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
19854         FIND_REG_INC_NOTE call. Update copyright.
19855         * loop.c (canonicalize_condition): Ditto.
19856         * reorg.c (delete_scheduled_jump): Ditto.
19857
19858 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19859
19860         * gcse.c: Fix formatting.
19861
19862 2002-01-03  Graham Stott  <grahams@redhat.com>
19863
19864         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
19865         forward defs for struct tags rtx_def, union_tree, rtvec_def
19866         also output corresponding typedefs for rtx, tree, and rtvec.
19867
19868         * system.h: Move forward defs for struct tags rtx_def, union_tree,
19869         rtvec_def along with corresponding typedefs for rtx, tree, and
19870         rtvec to config.h, hconfig.h, tconfig.h.
19871
19872 2002-01-03  Graham Stott  <grahams@redhat.com>
19873
19874         * tree.h: Update copyright date.
19875         (IS_EXPR_CODE_CLASS): Add parenthesis.
19876         (TREE_SET_CODE): Add whitespace.
19877         (TREE_CHECK): Add parenthesis.
19878         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
19879         (CST_OR_CONSTRUCTOR_CHECK):
19880         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
19881         (TREE_SYMBOL_REFERENCED): Whitespace.
19882         (INT_CST_LT): Likewise.
19883         (INT_CST_LT_UNSIGNED): Likewise.
19884         (tree_real_cst): Unwrap comment.
19885         (tree_string): Likewise.
19886         (tree_complex): Likewise.
19887         (IDENTIFIER_POINTER): correct cast.
19888         (SAVE_EXPR_CONTEXT): Whitespace.
19889         (EXPR_WFL_FILENAME_NODE): Likewise.
19890         (EXPR_WFL_FILENAME): Remove parenthesis.
19891         (DECL_ORIGIN): Add parenthesis.
19892         (DECL_FROM_INLINE): Use NULL_TREE.
19893         (build_int_2): Whitespace.
19894         (build_type_variant): Add parenthesis.
19895
19896         * gcc/jcf-parse.c: Update copyright date.
19897         (yyparse): Constify resource_filename.
19898
19899 2002-01-03  Graham Stott  <grahams@redhat.com>
19900
19901         * rtl.h: Update copyright date.
19902         (RTL_CHECK1): Wrap long line.
19903         (RTL_CHECK2): Likewise.
19904         (RTL_CHECKC1): Wrap long line and whitespace.
19905         (RTL_CHECKC2): Likewise.
19906         (XWINT): Whitespace.
19907         (XINT): Likewise.
19908         (XSTR): Likewise.
19909         (XEXP): Likewise.
19910         (XVEC): Likewise.
19911         (XMODE): Likewise.
19912         (XBITMAP): Likewise.
19913         (XTREE): Likewise.
19914         (XBBDEF): Likewise.
19915         (XTMPL): Likewise.
19916         (X0WINT): Likewise.
19917         (X0INT):Likewise.
19918         (X0UINT): Likewise.
19919         (X0STR): Likewise.
19920         (X0EXP): Likewise.
19921         (X0VEC): Likewise.
19922         (X0MODE): Likewise.
19923         (X0BITMAP): Likewise.
19924         (X0TREE): Likewise.
19925         (X0BBDEF): Likewise.
19926         (X0ADVFLAGS): Likewise.
19927         (X0CSELIB): Likewise.
19928         (X0MEMATTR): Likewise.
19929         (XCWINT): Likewise.
19930         (XCINT): Likewise.
19931         (XCUINT): Likewise.
19932         (XCSTR): Likewise.
19933         (XCEXP): Likewise.
19934         (XCVEC): Likewise.
19935         (XCMODE): Likewise.
19936         (XCBITMAP): Likewise.
19937         (XCTREE): Likewise.
19938         (XCBBDEF): Likewise.
19939         (XCADVFLAGS): Likewise.
19940         (XCCSELIB): Likewise.
19941         (XC2EXP): Likewise.
19942         (INSN_UID): Likewise.
19943         (PREV_INSN): Likewise.
19944         (PATTERN): Likewise.
19945         (INSN_CODE): Likewise.
19946         (PUT_REG_NOTE_KIND): Likewise.
19947         (CODE_LABEL_NUMBER): Likewise.
19948         (NOTE_SOURCE_FILE): Likewise.
19949         (NOTE_BLOCK): Likewise.
19950         (NOTE_EH_HANDLER): Likewise.
19951         (NOTE_RANGE_INFO): Likewise.
19952         (NOTE_LIVE_INFO): Likewise.
19953         (NOTE_BASIC_BLOCK): Likewise.
19954         (NOTE_EXPECTED_VALUE): Likewise.
19955         (NOTE_LINE_NUMBER): Likewise.
19956         (LABEL_NAME): Likewise.
19957         (LABEL_NUSES): Likewise.
19958         (LABEL_ALTERNATE_NAME): Likewise.
19959         (ADDRESSOF_DECL): Likewise.
19960         (JUMP_LABEL): Likewise.
19961         (LABEL_NEXTREF): Likewise.
19962         (REGNO): Likewise.
19963         (ORIGINAL_REGNO: Likewise.
19964         (HARD_REGISTER_NUM_P): Add parenthesis.
19965         (SUBREG_REG): Whitespace.
19966         (SUBREG_BYTE): Likewise.
19967         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
19968         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
19969         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
19970         (ASM_OPERANDS_INPUT_VEC): Likewise.
19971         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
19972         (ASM_OPERANDS_INPUT): Likewise.
19973         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
19974         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
19975         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
19976         (ASM_OPERANDS_INPUT_MODE): Likewise.
19977         (ASM_OPERANDS_SOURCE_FILE): Likewise.
19978         (ASM_OPERANDS_SOURCE_LINE): Likewise.
19979         (MEM_SET_IN_STRUCT_P): Minor reformat.
19980         (TRAP_CONDITION): Whitespace.
19981         (TRAP_CODE): Likewise.
19982         (COND_EXEC_TEST): Likewise.
19983         (COND_EXEC_CODE): Likewise.
19984         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
19985         (PHI_NODE_P): Add parenthesis.
19986         (plus_constant): Whitespace and add parenthesis.
19987
19988 2002-01-03  Kazu Hirata  <kazu@hxi.com>
19989
19990         * config/avr/avr.c: Fix comment typos.
19991         * config/c4x/c4x.md: Likewise.
19992         * config/dsp16xx/dsp16xx.h: Likewise.
19993         * config/dsp16xx/dsp16xx.md: Likewise.
19994         * config/i386/i386.md: Likewise.
19995         * config/ia64/ia64.c: Likewise.
19996         * config/m32r/m32r.h: Likewise.
19997         * config/m68hc11/m68hc11.md: Likewise.
19998         * config/mmix/mmix.c: Likewise.
19999         * config/mn10200/mn10200.c: Likewise.
20000         * config/romp/romp.c: Likewise.
20001         * config/sh/sh.c: Likewise.
20002         * config/stormy16/stormy16.c: Likewise.
20003         * config/stormy16/stormy16.h: Likewise.
20004         * config/stormy16/stormy16.md: Likewise.
20005
20006 2002-01-03  Graham Stott  <grahams@redhat.com>
20007
20008         * loop.h: Update copyright date.
20009         (LOOP_MOVABLES): Fix typo.
20010         (LOOP_REGS): Likewise.
20011         (LOOP_IVS): Likewise.
20012
20013 2002-01-03  Graham Stott  <grahams@redhat.com>
20014
20015         * cppinit.c: Update copyright date.
20016         Don't include output.h
20017         * Makefile.in: Update copyright date.
20018         Update dependency.
20019
20020 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20021
20022         PR c/5226
20023         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
20024         (-pthread) Add to RS/6000 options.
20025
20026 2002-01-02  Kazu Hirata  <kazu@hxi.com>
20027
20028         * except.c: Fix comment typos.
20029         * loop.c: Likewise.
20030         * varasm.c: Likewise.
20031         * doc/tm.texi: Fix a typo.
20032
20033 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
20034
20035         * c-typeck.c (output_init_element): Allow initializing static storage
20036         duration objects with compound literals.
20037
20038 2002-01-02  Richard Henderson  <rth@redhat.com>
20039
20040         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
20041         after abusing it.
20042
20043 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20044
20045         * gcc.c (default_compilers): Const-ify.
20046         * mips-tdump.c (stab_names): Likewise.
20047         * mips-tfile.c (map_coff_types, map_coff_storage,
20048         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
20049         pseudo_ops_t, pseudo_ops): Likewise.
20050         * protoize.c (default_include): Likewise
20051
20052         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
20053         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
20054         Add array size in declaration.
20055         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
20056         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
20057         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
20058         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
20059         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
20060         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
20061         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
20062         emtens, make_nan): Const-ify.
20063         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
20064         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
20065
20066 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
20067
20068         * config.gcc (ia64-*-*): Set extra_headers.
20069         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
20070         * config/alpha/t-osf: Remove.
20071         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
20072
20073 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
20074
20075         * config/rs6000/t-aix43: Revert previous change.
20076
20077 2002-01-02  Jason Merrill  <jason@redhat.com>
20078
20079         * c-decl.c (c_expand_body): Call outlining_inline_function when
20080         emitting an inline function out of line.
20081
20082 2002-01-02  Richard Henderson  <rth@redhat.com>
20083
20084         * dwarf2out.c (limbo_die_node): Add created_for member.
20085         (new_die): New argument created_for.  Update all callers.
20086         (mark_limbo_die_list): New.
20087         (dwarf2out_init): Register limbo_die_list as a root.
20088         (dwarf2out_finish): Force insert limbo dies into their function
20089         context.
20090
20091 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
20092
20093         PR c++/5089
20094         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
20095
20096 2002-01-02  Kazu Hirata  <kazu@hxi.com>
20097
20098         * config/h8300/fixunssfsi.c: Update copyright.
20099         Fix comment typos.
20100         Fix formatting.
20101         * config/h8300/h8300.c: Update copyright.
20102         Eliminate warnings.
20103
20104 2002-01-02  Kazu Hirata  <kazu@hxi.com>
20105
20106         * config/romp/romp.c: Fix comment formatting.
20107         * config/romp/romp.h: Likewise.
20108         * config/romp/romp.md: Likewise.
20109         * config/s390/s390.c: Likewise.
20110         * config/stormy16/stormy16.c: Likewise.
20111         * config/stormy16/stormy16.h: Likewise.
20112
20113 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
20114
20115         * c-common.h (genrtl_expr_stmt_value): Declare.
20116         * c-semantics.c (genrtl_goto_stmt): Redirect to...
20117         (genrtl_goto_stmt_value): ... this new function.  Pass new
20118         argument down to expand_expr_stmt_value, taking
20119         TREE_ADDRESSABLE into account.
20120         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
20121         STMT_EXPR as addressable, i.e., one whose result we want.
20122         * expr.c (expand_expr): Don't save expression statement value
20123         of labeled_blocks or loop_exprs.
20124         * stmt.c (expand_expr_stmt): Redirect to...
20125         (expand_expr_stmt_value): ... this new function.  Use new
20126         argument to tell whether to save expression value.
20127         (expand_end_stmt_expr): Reset last_expr_type and
20128         last_expr_value if we don't have either.
20129         * tree-inline.c (declare_return_variable): Mark its use
20130         statement as addressable.
20131         * tree.h: Document new use of TREE_ADDRESSABLE.
20132         (expand_expr_stmt_value): Declare.
20133
20134 2002-01-01  Tom Rix  <trix@redhat.com>
20135
20136         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
20137         rs6000_emit_allocate_stack.
20138
20139 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
20140
20141         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
20142         ${srcdir}/ginclude/ to every entry in extra_headers.
20143         * configure: Regenerate.
20144         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
20145         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
20146         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
20147         * ginclude/proto.h: Rename to config/convex/proto.h.
20148
20149 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20150
20151         * attribs.c (handle_vector_size_attribute): Use host_integerp
20152         and tree_int_cst; remove warnings.
20153         * caller-save.c (insert_restore): Add cast to get rid of warning.
20154         (insert_save): Likewise.
20155         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
20156         * regmove.c (find_matches): Add temporary var to kill a warning.
20157
20158 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
20159
20160         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
20161         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
20162         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
20163         (vms-dwarf2eh.o): Add Makefile rule.
20164         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
20165         * config/alpha/vms-dwarf2eh.asm: New file.
20166
20167         * gcc.c (delete_if_ordinary): Delete all versions.
20168
20169 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
20170
20171         * config/mmix/mmix.md: Update FIXME to not mention
20172         define_constants.
20173         (MMIX_rJ_REGNUM): New define_constants constant.
20174         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
20175         "*movdicc_real"): Adjust contraints formatting.
20176         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
20177         for branch prediction.
20178         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
20179         output template.
20180         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
20181         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
20182         number.  Delete related FIXMEs.
20183         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
20184         from number to MMIX_rJ_REGNUM.
20185         (TARGET_MASK_BRANCH_PREDICT): New.
20186         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
20187         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
20188         value.  Add -mbranch-predict and -mno-branch-predict.
20189         (TARGET_VERSION): Drop date.
20190         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
20191         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
20192         for finding out global symbols.
20193         (mmix_asm_output_labelref): Revert condition for global symbol.
20194         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
20195         (mmix_print_operand_punct_valid_p): A '+' is valid.
20196
20197 See ChangeLog.6 for earlier changes.